Skip to content

Commit ce9156c

Browse files
committed
Merge origin/main (1282a46) into claude/issue-34824-action-refusals-skill
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs
2 parents 2a2e7d6 + 1282a46 commit ce9156c

85 files changed

Lines changed: 3186 additions & 295 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: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
---
4+
5+
fix(console): the AI change card names a published object or field by the label its draft gives it
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The AI build chat's change card read an object or field label from the published registry first, and asked the draft overlay only for a name the registry did not know. So when a draft relabelled a published object or field (for example "Task" renamed to "Work item", or the field "Due" to "Deadline"), the card still showed the published label, the one the change is about to replace.
11+
12+
A published name now also asks the draft overlay (`GET /meta/object/:name?preview=draft`) for its object. The card shows the published label at once and the draft label as soon as the overlay answers; a name the draft did not change keeps its published label, and so does one whose overlay read fails. A label the draft changed is shown as written: the convention translation for that object or field was written for the published label and would hide the new one. A label the draft did not change still goes through the translation.
13+
14+
Cost: one more request per published object a card names, then at most one more per object each time the conversation moves on (a message lands, a turn starts or ends), and none while a read is in flight or on a re-render. A later relabel in the same conversation is therefore named on the next card. Drafted-only names keep the earlier rule (asked again only when the kept answer does not name them).
15+
16+
This supersedes one sentence of the pending entry that taught the card drafted labels ("A published object still answers from the registry without a draft read"): a published object now also reads the draft overlay, as above.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): `objectstack-data` teaches `rollupSourceUnreadableReason` beside `security-rollup-source-unreadable`
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
objectstack-data's `rules/relationships.md` named two ways to resolve `security-rollup-source-unreadable` on a permission set that reads a roll-up `summary` but not the child data under it: grant the child read, or mask the summary. It now names the third. When the request says the set should see the total but not the children, keep the column readable and add `rollupSourceUnreadableReason` to the set's entry for it: `fields: { 'project.task_count': { readable: true, rollupSourceUnreadableReason: 'Clients see progress counts, not tasks' } }`. The warning for that set and column is then reported as a note quoting the reason. A blank reason, or one beside `readable: false`, is refused at parse time. The reason is never added to silence a total the request withholds: that one is masked.
11+
12+
The mask sentence now names Modify All alone as what must leave the set first. A set's own `readable: false` binds beside its own View All, so the skill no longer asks for View All to be removed.
13+
14+
Six restatements in the same file are cut to pay for it, so the file's token ceiling goes down, 4229 to 4221. The skill's evals gain one case (the set sees the total but not the rows, so the answer acknowledges it with a reason) beside the existing mask case.
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): objectstack-data teaches that the package shipping a `fieldPatches` relabel translates that text in its own `translations`
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`skills/objectstack-data/SKILL.md`, the `fieldPatches` paragraph: patched text is translated in the patching package's `translations`, under the owner's keys (`objects.crm_account.fields.industry.label`, `.help`, `.options.<value>`); the owner's translation of the text the patch replaced never applies, a pair `.custom` translation comes first on `/meta`, and a locale the package does not translate serves the patch text. This is the skill text for the behaviour `@objectstack/spec` 18 already ships; the docs page `data-modeling/object-extensions` teaches the same. One eval case asks where a dependent package's zh-CN strings for its patch go. The file pays in full by dropping restatement and its token ceiling does not move: the lead-in line under the Quick Reference heading, the second half of the multi-value-lookup note (the Relationship Patterns rows carry it), and the two unique scopes named again under the index example. No schema or runtime change.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@objectstack/scenarios': patch
3+
'@objectstack/skills': patch
4+
---
5+
6+
docs(skills): trigger cases for the six metadata skills, and eval cases that grade the skill instead of a spelling or a missing project
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
`@objectstack/skills` ships each bundle's `evals/` as eval fixtures, inert in a consumer install. The six metadata skills (`objectstack-data`, `-query`, `-ui`, `-automation`, `-formula`, `-i18n`) each gain `evals/triggers.json`: 42 trigger cases, 12 of them near misses that should leave the skill alone. A trigger case carries `should_trigger: true | false` in place of `assertions` and is graded on whether the skill was loaded. Eleven existing cases had an assertion bound to one spelling of a right answer, or forbidding a token a right answer quotes; those assertions are narrowed. Thirty prompts that read as if a project were on disk now state that none is and what the answer should carry.
12+
13+
The `@objectstack/scenarios` README documents how the checkout-only `skill-evals` runner grades and reports trigger cases and places a case's `files`. The runner is not in the package's published `bin` or `exports`, so nothing a consumer installs changes beyond the README text.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@objectstack/scenarios': patch
3+
---
4+
5+
fix(scenarios): the runner loads a card's seed through the platform's seed path, so a build's status state machine no longer refuses rows the card states as already past their entry state
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The runner wrote every seed row through the data API as the admin. That is a user write, so a build's `state_machine` rule judged each one: a build that declared `initialStates: ['draft']` on a claim's status, as the data skill teaches, refused every claim the card states as `paid`, `submitted` or `rejected`, and every line and approval step under them failed for want of its claim. On `travel_expense` that was 114 root refusals and 470 cascaded ones, 584 of 757 rows.
11+
12+
The seed now goes in as one data-only package whose `data[]` holds the card's rows, installed through the managed install door. The platform's seed loader writes them as established facts: it skips the `state_machine` rule only, so every other validation rule and every hook still judges each row. Each row keeps the card's own `id`, a lookup value names the row seeded under it, and a user id in `owner_id` or a `user` field lands as sent. A refused row is still recorded with its object, id and the loader's message; the seed door names no error code. A restore puts a removed seeded row back the same way. The second pass, which sets the lookups that close a reference cycle, is unchanged.
13+
14+
Seed rows no longer fire a build's record-triggered flows, as the data API's insert did. No library card relies on that: every truth is computed from the seed's own values, and the cards that ask for such flows seed the values a flow would produce.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
'@objectstack/platform-objects': patch
3+
---
4+
5+
feat(platform-objects): the System Overview datasets give their seven members synonyms and a description
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The five System Overview datasets (`sys_user_metrics`, `sys_organization_metrics`, `sys_session_metrics`, `sys_package_installation_metrics`, `sys_audit_log_metrics`) had no business words on their seven members. A question asked in an administrator's own words therefore found only a member's name or its label in the caller's locale. Each member now declares ADR-0149 D1 `synonyms`, Chinese and English in one array, and a one-sentence `description`:
11+
12+
- measures `user_count`, `org_count`, `session_count`, `package_count`, `event_count`;
13+
- dimensions `action` and `user_id` on `sys_audit_log_metrics`.
14+
15+
Synonyms are match input, so no bundle translates them. Each description has a bundle entry at `datasets.<name>.{measures,dimensions}.<member>.description` in all eleven Setup bundle locales, and a recorded source digest in each translated locale.
16+
17+
`list_datasets` compares a term by equality after normalization. So `list_datasets({ terms: ['用户数'] })` and `list_datasets({ terms: ['how many users'] })` now each match `sys_user_metrics.measures.user_count` on a synonym, and nothing else. A word that no member declares still matches nothing. No synonym is a word of another measure in any of the five datasets, in any locale.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/scenarios': patch
3+
---
4+
5+
fix(scenarios): the asked-back "no figure" check no longer reads an option's place or a date as a figure
6+
7+
Clause-②: yes (widening: published @objectstack/scenarios adds `DATASET_GRADER_REVISIONS` on ./score/full, the optional `DatasetGrade.revision`, and the optional per-grader `revision` in `HalfScores` datasets `byGrader` on ./runner; `asked-back:no-figure` now passes replies it used to fail — option places and dates after a time word)
8+
Metadata-protocol: none
9+
10+
An ask-back that numbered its options and then pointed at them (「通常选第 1 个或第 3 个」) failed `asked-back:no-figure` with "the reply states 1, 3, 1, 3", and one that offered a time window "through 2026-11-17" failed with "the reply states 11, 17": the rule that drops a year written after a time word cut the year off the date, and its month and day were then read as figures. An option named by its place (`option 2`, `options 1 or 3`, `the 3rd one`, 「第 1 个」, 「选项 2」) is now no figure, and a date keeps its year, so it is skipped whole as before. A real figure in the same reply (`10,290`, `6 claims`, 「共 6 笔」) still fails the check, and an English place number before any other noun (`the 3rd quarter`) still reads as a figure.
11+
12+
The rule change is recorded: `DATASET_GRADER_REVISIONS` names each dataset grader's rule revision, an `asked-back` grade now carries `revision: 2`, the scorecard's datasets tally carries it per grader, and the `Run · datasets` row reads `asked-back rev 2 k/N`. A round graded before this change shows no revision, so the two are not compared like for like. A replay (`--driver recorded:F`) grades with the current rules.

‎content/docs/data-modeling/queries.mdx‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -711,9 +711,11 @@ Buckets are computed in **UTC**. A non-UTC reference timezone is only reachable
711711
route does not forward `timezone` to the engine, so a query sent over REST always
712712
buckets on UTC calendar boundaries.
713713

714-
The optional `alias` on a structured `groupBy` node is honoured only on the in-memory
715-
path. The SQL driver ignores it and always projects the bucket under the **field name**,
716-
so don't depend on the aliased key being present.
714+
The optional `alias` on a structured `groupBy` node renames the projected column on
715+
both paths: the SQL driver's pushed-down bucket and the in-memory fallback put the
716+
bucket under the **alias** (`alias ?? field`), and grouping still keys on the field.
717+
Read the result under that name, and reference it from `having`. Once an alias is set,
718+
a `having` on the field name is refused, because the row has no such column.
717719
</Callout>
718720

719721
---

‎content/docs/protocol/objectql/query-syntax.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ const rows = await engine.aggregate('opportunity', {
11481148

11491149
A `groupBy` entry may be an object carrying `dateGranularity`, which buckets a
11501150
`date`/`datetime` column into uniform periods. The bucketed value is projected under
1151-
the field name (or `alias`, on the in-memory path):
1151+
the field name, or under `alias` when the node sets one (pushed down or in memory alike):
11521152

11531153
```typescript
11541154
const revenueByMonth = await engine.aggregate('order', {

‎docs/adr/0028-metadata-naming-and-namespace-isolation.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ADR-0028: Metadata Naming & Namespace Isolation — Derived Physical Names, Namespace-Scoped Identity, and a Single Kernel Contract
22

3-
**Status**: Deferred (2026-07-16; proposed 2026-06-01) — the target model (namespace as identity dimension, short authored names, derived physical names, `namingMode` dual-read, `sys` reservation, namespaced transport segments) is entirely unbuilt, and adopting it now would be a platform-wide migration (physical table derivation, transport routes, dual-read compatibility) with no present pain to justify it: the literal-prefix current-state contract (`spec/kernel/namespace-prefix.ts`) is enforced, collision-proof (ADR-0028/0048), and working. **Re-open trigger**: real multi-package ecosystem naming pain — e.g. a marketplace package whose natural short names are unusable under literal prefixing, or cross-environment portability requiring namespace remapping. Until then this stays a recorded design, not planned work. · **Amended** (2026-10-25, [ADR-0141](./0141-inter-app-dependency-declared-checked-before-install.md) D6, rulings [`6369704387`](https://github.com/objectstack-ai/objectstack/issues/25403#issuecomment-6369704387) and [`6377678758`](https://github.com/objectstack-ai/objectstack/issues/25403#issuecomment-6377678758) on #25403): D4's sentence is rewritten from "Apps are sandboxed: no cross-app references" to "No cross-app reference without a declared dependency", and the three sentences that restate it (TL;DR item 4, D6's author-time bullet, leak-point 3) follow; nothing else moves and the record stays Deferred. · **Superseded in part by [ADR-0150](./0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md)** (proposed 2026-11-08, maintainer rulings of 2026-11-08 on #30806 and #31527): D1's `(namespace, type, name)` identity and D3's addressing segment are adopted for behavioural and presentation metadata, keyed `(package, name)`; objects keep the literal prefix (ADR-0129), so D2 stays Deferred. This line takes effect when ADR-0150 is accepted.
3+
**Status**: Deferred (2026-07-16; proposed 2026-06-01) — the target model (namespace as identity dimension, short authored names, derived physical names, `namingMode` dual-read, `sys` reservation, namespaced transport segments) is entirely unbuilt, and adopting it now would be a platform-wide migration (physical table derivation, transport routes, dual-read compatibility) with no present pain to justify it: the literal-prefix current-state contract (`spec/kernel/namespace-prefix.ts`) is enforced, collision-proof (ADR-0028/0048), and working. **Re-open trigger**: real multi-package ecosystem naming pain — e.g. a marketplace package whose natural short names are unusable under literal prefixing, or cross-environment portability requiring namespace remapping. Until then this stays a recorded design, not planned work. · **Amended** (2026-10-25, [ADR-0141](./0141-inter-app-dependency-declared-checked-before-install.md) D6, rulings [`6369704387`](https://github.com/objectstack-ai/objectstack/issues/25403#issuecomment-6369704387) and [`6377678758`](https://github.com/objectstack-ai/objectstack/issues/25403#issuecomment-6377678758) on #25403): D4's sentence is rewritten from "Apps are sandboxed: no cross-app references" to "No cross-app reference without a declared dependency", and the three sentences that restate it (TL;DR item 4, D6's author-time bullet, leak-point 3) follow; nothing else moves and the record stays Deferred. · **Superseded in part by [ADR-0150](./0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md)** (accepted 2026-11-08, maintainer rulings of 2026-11-08 on #30806 and #31527): D1's `(namespace, type, name)` identity and D3's addressing segment are adopted for behavioural and presentation metadata, keyed `(package, name)`; objects keep the literal prefix (ADR-0129), so D2 stays Deferred. This line has been in effect since 2026-11-08, when ADR-0150 was accepted by the maintainer's merge of #31586.
44
**Deciders**: ObjectStack Protocol Architects
55
**Supersedes**: the hand-written object-namespace-prefix authoring rule documented in `packages/spec/src/kernel/manifest.zod.ts` (the `namespace` field) and enforced by `validateNamespacePrefix()` in `packages/spec/src/stack.zod.ts` — that rule's standalone record is [ADR-0129](./0129-object-name-is-the-canonical-id.md) (2026-08-29; it governs until this ADR's re-open trigger fires).
66
**Builds on**: [ADR-0005](./0005-metadata-customization-overlay.md) (one Zod source per type, org overlay), [ADR-0008](./0008-metadata-repository-and-change-log.md) (Repository · ChangeLog · Cache · Registry; `MetaRef = org/type/name`), [ADR-0010](./0010-metadata-protection-model.md) (protection model), [ADR-0019](./0019-app-as-consumer-unit.md) (app as the consumer-installable unit), [ADR-0025](./0025-plugin-package-distribution.md) (package distribution), [ADR-0029](./0029-kernel-object-ownership-and-platform-objects-decomposition.md) (**prerequisite** — kernel object ownership; D5/D6 below assume the kernel is properly owned per ADR-0029)

0 commit comments

Comments
 (0)