Skip to content

Commit bcfa8fa

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/project-thread-mjoky7
2 parents 1560682 + a2d0f73 commit bcfa8fa

93 files changed

Lines changed: 5545 additions & 463 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): more of objectstack-data's self-contained examples are type-checked by `check:skill-examples`, and the `Field.*` factory example imports from the subpath that exports it
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
Fourteen more fenced TypeScript blocks in `skills/objectstack-data` carry the opt-in check marker, so 25 of its 95 are now compiled against the spec: 8 of 10 in `rules/indexing.md` (index lists typed as `ObjectIndex[]` from `@objectstack/spec/data`), 4 more in `references/data-hooks.md` (the full `defineHook` definition and three pattern hooks, which gain their `defineHook` import), and one each in `rules/lifecycle.md` and `rules/field-types.md`. One example was wrong: `rules/field-types.md` imported `Field` from `@objectstack/spec`, which does not export it (the spec root has no namespace exports); it now imports from `@objectstack/spec/data`, and the prose no longer names the root. The ✅ script example in `rules/validation.md` gains the `name` every validation rule requires. The rest stay unmarked: fragments, shapes, ❌ examples, and the blocks whose file had no token headroom left to pay for a wrapper. No rule's teaching changes.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/driver-sql': patch
3+
---
4+
5+
fix(driver-sql): an Oracle `RAW(16)` uuid column (a `SYS_GUID()` key, or a lookup over one) is now filtered and written by the uuid text it reads back as
6+
7+
Clause-②: yes (widening)
8+
Metadata-protocol: none
9+
10+
The driver already read a `RAW(16)` column as a lowercase hyphenated uuid, but it bound that same text back as a string, which Oracle refuses against `RAW`. So a lookup keyed by a `SYS_GUID()` column displayed correctly and could not be filtered, written, updated or deleted by its value.
11+
12+
The driver now reads, once per federated object, which of its remote columns are `RAW(16)` (`ALL_TAB_COLUMNS`), and binds a comparand, a written value or a by-id key for those columns as `HEXTORAW(?)` over the uuid's 32 hex digits. The column type decides, never the value: a `VARCHAR2` column holding uuids is bound as text, as before. Uuid text is accepted dashed (the read form) or as the 32 digits undashed, in either case. Anything else is refused before the statement is sent: a filter comparand with `INVALID_FILTER` / 400, a written value with `VALIDATION_ERROR` / 400. A failed catalog read changes nothing: values are bound as before and the next read asks again. Other dialects are unchanged.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): the objectstack-ui actions rule teaches that a param's `helpText`, like `description`, takes a sentence or an inline locale map, and that the map is how a page button's inline `action` writes its hint per locale
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The skill taught a param's `helpText` as a sentence only, so an agent writing a page button's inline `action`, which no translation bundle reaches, left its hint in one language. `{{ record.* }}` holes work in either form, as `content/docs/protocol/objectui/actions.mdx` and the action param schema say.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@objectstack/spec': minor
3+
'@objectstack/lint': minor
4+
---
5+
6+
feat(spec): a dataset dimension and measure carry business vocabulary (`synonyms`, `description`), and the `list_datasets` / `query_dataset` tool inputs and outputs are declared in spec (ADR-0149 D1, D2)
7+
8+
Clause-②: yes (widening)
9+
Metadata-protocol: added
10+
Skills-docs: follow-up owed — skills dataset authoring page
11+
12+
- **`@objectstack/spec`: member vocabulary (ADR-0149 D1).** `DatasetDimensionSchema` and `DatasetMeasureSchema` accept two optional keys. `synonyms` is a list of the words a person uses for the member in a question (`['收入', '销售额', 'revenue']`): each trimmed and non-empty, at most 60 characters, at most 20 per member. It is matched, never rendered, so it is not translated. `description` is the member's business definition in plain language, a string or an inline locale map of at most 500 characters per locale; it is never a prompt to an AI (M1, ruled A). Authors who write `synonym`, `aliases`, `keywords`, `terms`, `alternateNames` or `alias` are pointed at `synonyms`, and `aiDescription`, `aiContext`, `hint`, `help` or `tooltip` at `description`.
13+
- **Within one dataset a word answers to one member.** `DatasetSchema` refuses a synonym that equals another member's name, another member's label (any locale of an inline map) or another member's synonym, and a synonym listed twice on one member. Words are compared after `normalizeDatasetTerm` (NFKC, lower case, `_` and `-` read as a space, whitespace collapsed), which is exported so the dataset tools' term matcher uses the same rule. A synonym equal to its own member's name or label is accepted as written. The same word may answer to different members in different datasets. The refusal names both members and the word.
14+
- **Translations.** The `datasets` translation group accepts `datasets.<name>.{dimensions,measures}.<member>.description`, and `translateDataset` overlays it the way it overlays `label`. A member `description` in a bundle used to be refused with a pointer to the dataset's own description; that guidance and its message are retired. `synonyms` in a bundle is refused with the reason: one authored list holds the words of every language.
15+
- **Dataset AI tool schemas (ADR-0149 D2).** A new `ai/dataset-tools.zod.ts`, exported from `@objectstack/spec/ai`, declares the inputs and outputs of `list_datasets` and `query_dataset`: the catalogue entry with its dimensions, measures, vocabulary, `membersWithheld` and term `matches`; the `partial` / `warning` shape of a degraded catalogue; `query_dataset`'s input, whose `selection` is `DatasetSelectionSchema` itself; and its output, the dataset answer's members taken by reference without `sql`, plus `provenance` (the dataset and the measures and dimensions used, and the caller's `runtimeFilter` echoed as sent, never the dataset's own `filter`), `rowCount`, `truncated` and the delegation narrowing. `getDatasetToolJsonSchemas()` projects them to the JSON Schema an `AIToolDefinition` carries. No executor ships here: the catalogue, the term matcher, the compiler write and the tool registration are cards #31589 and #31590. The four new member keys are recorded `planned` in the liveness ledger with #31589 as their reader.
16+
- **`@objectstack/lint`:** the i18n walk emits `datasets.<name>.{dimensions,measures}.<member>.description`, so `os i18n extract` scaffolds a member's description and `check:i18n-coverage` measures it. It emits nothing for `synonyms`.
17+
18+
Every dataset and translation bundle that parsed before parses to the same value.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@objectstack/formula': patch
3+
'@objectstack/objectql': patch
4+
---
5+
6+
feat(formula): `@objectstack/formula` publishes the home-amount conversion arithmetic, `toScaledDecimal`, `divideToPlaces`, `formatScaledDecimal`, `documentDateOf` and the `ScaledDecimal` type
7+
8+
Clause-②: yes (widening)
9+
Metadata-protocol: none
10+
11+
The four functions the write-time home projection (ADR-0144 D5) converts a record amount with: exact decimal reading, the one division by the rate rounded half away from zero to the decimals you pass (the home currency's `CURRENCY_FRACTION_DIGITS`, still in `@objectstack/spec`), the canonical decimal spelling, and the calendar day a document date names in the organization's timezone (UTC when unset). They move unchanged out of `@objectstack/objectql`, which now imports them back and still re-exports them from its projection module, so a form can preview "≈ home amount" with the engine's own arithmetic instead of a second copy. Stored home amounts, rates and refusals do not change.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
---
4+
5+
fix(app-shell): Installed Apps shows the engine's reason for an app whose register it refused at boot
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
Since `@objectstack/cloud-connection` lists a ledgered install whose register the engine refuses at boot as `notLoaded: { code, message }`, the install-local marker is a closed union of two arms: the protocol arm `{ code: 'OS_PROTOCOL_INCOMPATIBLE', requiredRange }` and the register-refusal arm `{ code, message }`, where `message` is the engine's own sentence. The console typed the marker as the protocol arm only and never read `message`, so a register-refused app read "Not loaded" with its code and no reason. `LocalInstallNotLoaded` now mirrors the two arms, and one reader, `MarketplaceNotLoadedReason`, draws the reason on both the Setup → Packages row and the package page header. The protocol arm reads exactly as before. The register-refusal arm reads the existing "did not load this package (CODE)" sentence followed by the engine's sentence, so the operator can tell whether to uninstall the app or fix the package. The engine's sentence is drawn as text, never as markup. A marker with no sentence, or an empty one, reads with the code alone, as before. No language pack changes.

‎.claude/skills/pm-dispatch/SKILL.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,15 +192,15 @@ PM 的工作是循环:选卡 → 认领 → 派发 → 收集 → 复核 → 报
192192
- 草稿归 dev:PR 正文带 `## 维护者速读` 六行(见 os-dev.md),中文、业务角度,不写席位意见。
193193
- 终稿 = 席位对照自己读的 diff 校正六行、加席位意见行,置顶席位记录;维护者只读评论。
194194
- `pm:awaiting-merge` 只挂 PR、不入六态,与请审同为等人批清单,随获批或撤回判决离开。
195-
- 批准判定单源 = 队列守卫常量 `GOVERNED_APPROVERS`:授权账户 APPROVED 即算,⛔ 不卡 `commit_id`。
196195
- 批准后再推亦不过期;席位落地 = 过落地前检、清标、ready、auto-merge,踢出/变基同法。
197196
- ③ 请审 = 席位交棒:ACCEPT 与现 head 同形 PASS 俱在案,同轮中继 `pr_request_reviewers` 请审批人。
198197
- 作者是审批人 ⇒ `assign` 它、请其余(请它必 422);⛔ 永不请席位自身账号;Tier S 不交人。
199198
- `pr_create` 派不请;`pr_ready` 只补交棒漏;非例外 head 移 ⇒ 撤挂回等;脱中继 PR 自读请/派。
200199
- 速读「需要你做的」求批点名 PASS 评论 id+`Head-sha`;无 PASS ⇒ 写 contract review owed 不求批。
201200
- ④ 轮报单列 awaiting a human merge 并现读请审人;⛔ 未请审不在 chat 报「等你批」,先补请。
202201
- skills 车道自有 PR:纯代码面如 `scripts/pm/` 由本席按达档自审(清单不减)后落地。
203-
- 受管面两层:Tier S = `.claude/**` 全树,余皆 Tier H 等人批;S 经达档复核 PASS 后 ready → 入队。
202+
- 受管面两层:Tier S = `.claude/**`+下行 S 面,余皆 Tier H 等人批;S 经达档 PASS 后 ready → 入队。
203+
- 本仓 `.github/workflows/**` 由 `readWorkflowDiff` 定档:发布路径、C2 触发、拒读或未读 ⇒ H,余 S。
204204
- 入队资格:每 check 绿或预期 skip,⛔ 非必查子集;名单 check-expected-skips.mjs 只判 objectstack。
205205
- 非必查红是真缺陷或坏门,归 PM 入队前处置;第三种按设计而红,三条全立才可带红入队:
206206
- 源码自述 pushed 分支上按设计而红、不跑 `merge_group`、PR 评论记明门与因,缺一即否。

0 commit comments

Comments
 (0)