Repository navigation
Commit 908d56c
docs(skills): teach five landed refusals and behaviours in the data, query and ui skills (#35757)
<!-- claude-projects-attribution: {"github_login":"os-sales"} -->
_Requested by **Sales** · [project
thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuEoKvgs2TW7hc47KRGVnwtY)_
Fixes #35496
Fixes #35714
Fixes #35480
Fixes #35456
Fixes #35692
Clause-②: no
Metadata-protocol: none
Skills-docs: updated here
This pull supersedes #35743, #35746, #35750 and #35751: it carries their
commits unchanged, merged onto current `main`, with one changeset in
place of four. Those four pulls are closed. Merging closes all five
cards.
**Update at `370465fea` (2026-11-20, after two contract-review
rounds).** Three commits follow the first folded head `0c80caa0b`:
1. `ee231bb06` empties `must_not_contain` of eval case 34 (record
7034102949, S1: the two forbidden tokens were in the case's own
reference answer).
2. `5e1710787` merges `origin/main` `f44758b21`, no conflict.
3. `370465fea` corrects the body-table placement (record 7046910845,
S2): #35824 landed on `main` after this pull was written and draws an
unplaced body table after the open field sections, not above them. Three
carriers changed: `record-page.md` step 2, the reference answer of
`record-page.json` case 1 (the table sits after the lead's open field
sections; `relatedLists` puts it first among the tables), and the
changeset clause.
Readings at `370465fea` against `f44758b21`: `record-page.md` 65 lines /
3944 bytes / 986 tokens under its unmoved row of 991; `filters.md`
2596/2596, `seeds.md` 1898/1898, `data-hooks.md` 10117/10122,
`relationships.md` 4198/4203, all as below; ratcheted tokens / ceilings
197118 / 202279 to 197374 / 202541 (+256 / +262, the two raises); eval
fixtures 74969 to 76080; bundle total 286640 to 288007. The token
ratchet now prints `60 authored bundle file(s)` (main added one).
`check:skill-examples` is measured at this head, exit 0 (`346 prose
examples type-check`), and `node ui/scripts/check-skill-eval-tokens.mjs`
exits 0; the gate block under Verification was taken at `0c80caa0b`.
## 维护者速读
- 用户能看到什么变化:照着已发布技能写应用的 AI 和开发者,现在会写对五件事:「本 ISO
周」周键占位符只能用在文本字段上;钩子和定时任务脚本编译不过会被拒收以及怎么改;初始化数据每条记录都要填识别键;运行时保存的初始化数据必须指向已存在的对象;主从子表默认就是记录页里的整宽表格。平台行为不变。
-
为什么做:属于「已发布技能文档跟上平台行为」这条线,这五条行为都已上线而技能还没写;四份改动共用同一张技能字数预算表,合成一份可避免互相排队返工。
- 出错会怎样:只改说明文字和评测样例,不动运行时;写错了 AI 会按错的说法写应用并在校验或保存时碰壁,撤回这一个合并即可恢复原文。
-
要你做什么:这是对外发布的技能文字(需人工合入的受管范围),并按既有裁决抬高了两个文件的字数上限(先删重复、余额按实测);请在席位核对之后审批一次。
## What changes
Text only: nine files under `skills/`, two ceiling rows in
`scripts/check-skills-token-ratchet.mjs`, one changeset. No package
source moves. Folded head `370465fea`; `origin/main` `f44758b21` is
merged in (merge commit `5e1710787`, no conflict). The readings below
marked `ca4ec2a2f` were taken at the first base, before that merge; the
update block above gives the current ones.
| Card | Source pull, head | Skill text | Eval | Ceiling row |
|:--|:--|:--|:--|:--|
| the period-key card (line 3) | #35743, `47fe01057` |
`skills/objectstack-query/rules/filters.md`, "Date Macros" |
`filters-pagination-search.json` id 10 | `filters.md` 2473 to 2596 |
| the compile-refusal card (line 4) | #35746, `0c9f76eb3` |
`skills/objectstack-data/references/data-hooks.md`, "Sandbox
restrictions" | `hooks-security-seeds-datasources.json` id 33 | none |
| the keyed-record card (line 5) | #35750, commit `b3b374b39` |
`skills/objectstack-data/references/seeds.md`, "`externalId` selection"
| same file, id 34 | `seeds.md` 1759 to 1812 |
| the unknown-object card (line 6) | #35750, commit `20c06ad50` |
`seeds.md`, the note under the field table | same file, id 35 |
`seeds.md` 1812 to 1898 |
| the body-table card (line 7) | #35751, `1ea279acf` |
`skills/objectstack-data/rules/relationships.md`,
`skills/objectstack-ui/rules/record-page.md` | `record-page.json` case
1, `evals/README.md` | none |
Read first, by risk:
1. `skills/objectstack-query/rules/filters.md`, the **Period key**
paragraph, and `skills/objectstack-data/references/seeds.md`, the two
added paragraphs: every clause is a claim about the runtime, sourced
below.
2. `scripts/check-skills-token-ratchet.mjs`, the two row comments
(deletion lists and arithmetic).
3. `skills/objectstack-ui/evals/record-page.json` case 1: its must and
must-not lists decide what a graded answer may contain.
Two-minute check: `node scripts/check-skills-token-ratchet.mjs` prints
`filters.md is 2596 tokens (ceiling 2596; headroom 0)`, `seeds.md is
1898 tokens (ceiling 1898; headroom 0)`, `data-hooks.md is 10117 tokens
(ceiling 10122; headroom 5)` and `59 authored bundle file(s) within
their ceilings`.
**Where the sentences were sourced.** The four source pulls read
`origin/main` at `598a34d04` (#35743, #35746) and `03bce5c22` (#35750,
#35751). The 31 source files the tables below cite are byte-identical at
`ca4ec2a2f` (`git diff --stat` from each of those two commits to
`origin/main` over the 31 paths is empty), so every line number below
held at this pull's first base. At `f44758b21`, now merged, 23 of the 31
are unchanged and line numbers in the other 8 have shifted
(`filter-tokens.ts`, `filter-tokens.test.ts`, the comparand door test,
`api-surface/data.json`, `field.zod.ts`, the ui core `index.ts`,
`buildDefaultPageSchema.ts` and its body-tables test); only the last two
changed a taught fact, the placement sentence, corrected in commit
`370465fea`.
### 1. The `{current_iso_week}` period key (from #35743)
`filters.md`, section "Date Macros (declarative filter metadata)":
- A new **Period key** paragraph beside the date-macro bullets and the
session tokens: `{current_iso_week}` is a member of `PERIOD_KEY_TOKENS`,
not a date macro; it resolves to today's ISO week key `YYYY-Www` in the
workspace time zone, Monday-start weeks, ISO week-year at year edges
(2027-01-01 is `2026-W53`); it is text, for a text field storing week
keys; a `date` / `datetime` / `time` field refuses it with
`INVALID_FILTER` / 400 like the literal key, and the date-field spelling
is `{current_week_start}` / `{current_week_end}`; a date dashboard
filter's `defaultValue` and `calendar.initialDate` refuse it, a text
dashboard filter may default to it; there is no last- or next-week key.
- The session-token example carries the week key on a text field
(`cost_week: '{current_iso_week}'`).
- **Scope** names `resolveFilterPlaceholders()` as the client resolver,
the one call over `resolveDateMacros()`, `resolvePeriodKeyTokens()` and
`resolveContextTokens()`.
- The spelling check is `isKnownFilterToken(tok)`, the one predicate
that answers for all three vocabularies. The two predicates the file
named before both answer `false` for `current_iso_week`.
Eval 10: a text week-key field filtered with the token and a date field
filtered with the week's boundaries, never with the token.
| Sentence in the skill | Source on main |
|:---|:---|
| a list of its own, not a date macro |
`packages/spec/src/data/date-macros.zod.ts:62-67` and `:179-181`
(`PERIOD_KEY_TOKENS`), `:190-192` |
| `YYYY-Www`, workspace time zone, Monday-start weeks, ISO week-year |
`packages/spec/src/data/date-macros.zod.ts:69-74` and `:344-348`; server
resolver `packages/core/src/utils/filter-tokens.ts:471-473` |
| 2027-01-01 is `2026-W53` |
`packages/core/src/utils/filter-tokens.test.ts:568` (parity table row),
spec prose `date-macros.zod.ts:72` |
| text, for a text field storing week keys | `date-macros.zod.ts:75-80`;
positive control
`packages/objectql/src/engine-temporal-comparand-door.test.ts:646-647` |
| `date` / `datetime` / `time` refuse it, `INVALID_FILTER` / 400, like
the literal key |
`packages/objectql/src/engine-temporal-comparand-door.test.ts:621-641`
(both wrappings, code and status asserted, the literal `2026-W47` in the
same loop); over HTTP
`packages/rest/src/data-temporal-write-real-day-iso.test.ts:385` |
| use `{current_week_start}` / `{current_week_end}` on a date field |
`date-macros.zod.ts:133` (the two tokens); the same door test's title
and its positive control |
| a date dashboard filter's `defaultValue` refuses it, a text one may
default to it | `packages/spec/src/ui/dashboard.test.ts:506-518`;
`packages/spec/src/ui/dashboard.zod.ts:1663-1676` |
| `calendar.initialDate` refuses it |
`packages/spec/src/ui/calendar-config-initial-date.test.ts:94` |
| both spellings, in every vocabulary |
`ui/packages/core/src/utils/date-macros.ts:255` (the same wrapper
pattern); `filter-tokens.test.ts:603-604` |
| client resolver `resolveFilterPlaceholders()` over the three |
`ui/packages/core/src/utils/filter-tokens.ts:301-308`; exported at
`ui/packages/core/src/index.ts:221-234` |
| `isKnownFilterToken(tok)` |
`packages/spec/src/data/context-tokens.zod.ts:333-335`; listed in
`packages/spec/api-surface/data.json:1057` |
| no last- or next-week key | `PERIOD_KEY_TOKENS` has one member
(`date-macros.zod.ts:179-181`) |
### 2. A hook or job `js` body that does not compile (from #35746)
`data-hooks.md`, section "Sandbox restrictions", gains one bullet after
"Rejected by `objectstack build`":
> - **Refused when it does not compile:** a `js` source is compiled,
unrun, inside its `(async (ctx) => { … })` wrapper, where `ctx` is
already declared. So `const ctx = ctx.input || {};` (or `let ctx`, one
name declared twice, any syntax error) is `hook-body-does-not-compile`:
an **error** from `os validate`, `os build`, `os lint` and a runtime
hook save (`422 INVALID_METADATA`), naming the hook, the `SyntaxError`
and its line. Fix: use `ctx` as it is, or rename the local (`const input
= ctx.input || {};`). A job's `js` body runs in the same wrapper:
`job-body-does-not-compile`, from the three commands. A regex pattern
the checking engine refuses is a warning: the runtime may accept it.
Eval case 33, at the end of the array: the refused `const ctx = …` body
under `os validate`, graded on naming `hook-body-does-not-compile` and
on `input.status`, a token both repairs carry and the refused source
does not.
One deliberate difference from the card's wording: the card says the
"save door" refuses a hook or job body. Main refuses a job body at the
three commands only, because no door publishes a job
(`packages/spec/src/kernel/metadata-plugin.zod.ts:1040`,
`allowRuntimeCreate: false`;
`packages/lint/src/authoring-rules.ts:2986`, `runtimeTypes: ['hook']`).
The skill says exactly that. No published skill teaches a job `js` body
anywhere else, so the job sentence lives in this one bullet.
| Sentence in the skill | Source on main |
|:---|:---|
| the two rule ids |
`packages/lint/src/validate-hook-body-compiles.ts:51` and `:54` |
| compiled, unrun, inside the `(async (ctx) => { … })` wrapper |
`packages/lint/src/action-body-wrapper.ts:52-54`; compiled inside it at
`validate-hook-body-compiles.ts:98` (hooks) and `:120` (jobs); the
runtime runs the same expression at
`packages/runtime/src/sandbox/quickjs-runner.ts:435` |
| `js` bodies only | `validate-hook-body-compiles.ts:73-76` |
| an error from `os validate`, `os build`, `os lint` and a runtime hook
save | `packages/lint/src/authoring-rules.ts:2980-2987`; pinned by
`packages/lint/src/validate-hook-body-compiles.test.ts:137-146` and
`:148-160` |
| `422 INVALID_METADATA` at the runtime door |
`packages/metadata-protocol/src/runtime-authoring-gate.ts:1683-1684` |
| a regex pattern the checking engine refuses is a warning, the runtime
may accept it | `validate-hook-body-compiles.ts:32-34`, test `:94-95`;
`packages/lint/src/validate-action-body-compiles.ts:204` and the message
at `:217-219` |
| naming the hook, the `SyntaxError` and its line |
`validate-hook-body-compiles.ts:105-113`;
`validate-action-body-compiles.ts:190` |
<details><summary>Probe run by the source pull on 598a34d (the rule
called on one hook and one job per body)</summary>
```text
const ctx = ctx.input || {}; -> hook-body-does-not-compile error + job-body-does-not-compile error
let ctx; -> both ids, error
let x = 1; let x = 2; -> both ids, error (Identifier 'x' has already been declared, line 1)
if (ctx.input.a { } -> both ids, error (Unexpected token, line 1)
const r = /(?[a]x)|(?[a]y)/; -> both ids, warning (a duplicate named group; the angle brackets of the group name are written as square brackets here)
const input = ctx.input || {}; -> no finding
language: 'expression' body -> no finding
```
Not re-run at the folded head: the three files the probe exercises are
among the 31 unchanged ones.
</details>
### 3 and 4. Two seed refusals (from #35750)
**Keyed records (commit `b3b374b39`).** "Every record carries a value
for each `externalId` field (each field of a list; `name` when the seed
names none). One left blank (no value, `null` or `''`; whitespace is a
value) is refused at load in every mode: the result names the object,
record index, field and fix, and the other records still load." The
`externalId` row of the field table points at it. Eval id 34: an
`upsert` seed keyed on `code` where two records have none.
| Sentence in the skill | Source on main |
|:---|:---|
| in every mode (the keyed modes are `upsert`, `update`, `ignore`, every
mode the skill teaches) |
`packages/metadata-protocol/src/seed-loader.ts:1840` |
| blank is no value, `null` or `''`; whitespace is a value |
`seed-loader.ts:469-471` (`isBlankSeedKeyValue`, no trim) |
| `name` when the seed names none | `seed-loader.ts:69`
(`DEFAULT_EXTERNAL_ID_FIELD`); the refusal says so at `:493-494` |
| each field of a list | `seed-loader.ts:2346` |
| the result names the object, record index, field and fix |
`seed-loader.ts:506-510` |
| the other records still load | `seed-loader.ts:2347-2364`
(`errors.push`, `continue`); pinned by
`packages/metadata-protocol/src/seed-loader-empty-key-warn.test.ts:139`
|
**Unknown object (commit `20c06ad50`).** "A `seed` saved at runtime
names its `object` itself. One that resolves to nothing is refused: `422
INVALID_METADATA` at `object`, "which is not defined". Correct the name
to the object's full name (`crm_lead`, not `lead`) or create the object
first: a draft of it is enough for a draft seed; a live seed needs it
published." The `object` row now reads "hand-written only in a runtime
save (below)" in place of "never write manually", the one sentence in
the file that contradicted the note. Eval id 35: a draft seed saved with
`object: 'lead'` when the object is `crm_lead`.
| Sentence in the skill | Source on main |
|:---|:---|
| the save door asks it; publish promotion and restore leave it to the
load |
`packages/metadata-protocol/src/protocol-save-door-refusals.ts:1087-1091`
|
| `422 INVALID_METADATA`, one finding at path `object` |
`protocol-save-door-refusals.ts:1180-1192` |
| "which is not defined", the full name, a draft is enough for a draft
seed, publish for a live one |
`protocol-save-door-refusals.ts:1174-1184`; pinned by
`packages/metadata-protocol/src/protocol.seed-external-id-refusal.test.ts:381-421`
|
Doors not taught: `os validate` and `os build` judge seed record values,
not a blank key and not a seed's object; the skill names only the load
(first rule) and the runtime save (second rule). Ids 34 and 35 sit
directly after the existing seed cases (ids 4, 30, 31), as #35750 placed
them.
### 5. A `master_detail` child is a body table by default (from #35751)
- `relationships.md`, "Detail-page related lists": the lead sentence
states both defaults and that `inlineEdit` plays no part. The example no
longer writes `inlineEdit: true` and `relatedList: 'primary'` on a
`master_detail` field. The list reads `'primary'` (default for a
`master_detail` FK), `false`, `true` (default for a `lookup` FK).
- `record-page.md`, step 2: the same defaults; the table is drawn after
the open field sections (it said "after the first field section"); "put
the tasks first" is the parent's `relatedLists`; the example field drops
`relatedList: 'primary'`.
- `evals/record-page.json`, case 1: the prompt is unchanged. The
expected answer adds no placement flag. `must_contain` is
`relatedListFilter` and `relatedLists`; `must_not_contain` gains
`inlineEdit:` (the authored key, so prose that only names it still
passes). `evals/README.md` follows.
| Skill sentence (after) | Source on main |
|:---|:---|
| A `master_detail` child with no `relatedList` is a body table |
`packages/spec/src/data/related-list-body-table.ts:62-67`; verdict table
rows `related-list-body-table.test.ts:36-40`;
`packages/spec/src/data/field.zod.ts:2129-2134` |
| A `lookup` child with no `relatedList` is a panel |
`related-list-body-table.test.ts:31,35`; `field.zod.ts:2134` |
| `'primary'` is the body table on either type |
`related-list-body-table.ts:64`; `related-list-body-table.test.ts:34,41`
|
| `true` is a panel, also on a `master_detail` |
`related-list-body-table.ts:65`; `related-list-body-table.test.ts:42,44`
|
| `false` hides the list | `related-list-body-table.test.ts:43,45`;
`field.zod.ts:2113` |
| `inlineEdit` governs entry in the parent's form only |
`field.zod.ts:2085`; `related-list-body-table.ts:16-18`; test rows 37-40
and 44-45 |
| Body tables are drawn after the field sections the record page draws
open; closed trailing sections follow the tables |
`ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts:844-859`
and `:904-906`;
`ui/packages/plugin-detail/src/synth/__tests__/buildDefaultPageSchema.bodyTables-27055.test.ts:57-68`,
`:87-90`, `:205-209` (main `f44758b21`) |
| The parent's `relatedLists` orders the tables |
`ui/packages/app-shell/src/utils/deriveRelatedLists.ts:428`;
`field.zod.ts:2120-2123` |
## Token budget
Standing ruling for `skills/**`, quoted verbatim: 「A:先削重复,余额按实测提高」
(maintainer, 2026-10-27; ruling record 6513306068). Counting is the
gate's, `ceil(utf8 bytes / 4)`. Before-readings at `origin/main`
`ca4ec2a2f`, after-readings at the folded head `ee231bb06`. Both moved
rows sit at the values the source pulls pinned; nothing on `main` moved
either file in between.
**`filters.md`, deleted first, all in the same section:**
1. The wrapper regex in the "Both spellings parse" bullet, which
restated in pattern form the sentence it sat in.
2. The code comment `// List-view / dashboard filter values`, which
repeated the sentence above its block.
3. The second date-macro comparison in the session-token example
(`close_date` with `{current_year_start}`); the week key takes its
place.
4. The two per-vocabulary predicates, replaced by the one predicate.
5. The driver sentence's list of value kinds ("ISO strings and concrete
ids"), now "resolved values".
**`seeds.md`, deleted first, in the same file:**
1. The `columns` row's shape literal (`{ FIELD: { applyOn: 'create' }
}`), which its own section and code block show.
2. The one-row best-practices table, now one sentence with the same
content.
3. The second telling of what a refused seed value leaves behind, which
the validation paragraph above it already says ("a refused row never
lands").
Arithmetic in bytes: `filters.md` 9876 to 10382, +506, 127 tokens, the
row's 4 tokens of headroom absorbed, ceiling +123. `seeds.md` 7033 to
6905 after the cuts (-128); the first rule nets +340 (7245, ceiling
1812); the second +345 (7590, ceiling 1898); the cuts pay for 128 bytes
of 813 and the remainder is the measured raise.
**`data-hooks.md`, paid in full, no row move:** the new bullet is +713
bytes; six restatements removed, 713 bytes, each with its other home in
the file.
| Removed | Its other home in `data-hooks.md` |
|:--|:--|
| The `body` implementation stub under "Key Properties Explained" | the
schema listing's `body` comment, "The `body` shape", "Error Handling" |
| "(This is unlike `ctx.input` / `ctx.result` inside the body, which
stay partial, see Gotcha 1.)" | the `ctx.input` and `ctx.result` rows of
the sandbox `ctx` table, and Gotcha 1 |
| Listing comment "Matches the `organization_id` column +
`current_user.organizationId` (RLS)" | "Reading the current
organization" |
| Pattern 4's five-line static-masking note, shortened to two lines |
the "Why so few?" note |
| Pattern 4's comment "Never a session claim (`ctx.session.roles` is
gone, ctx table above)" | the `ctx.session` row of the sandbox table,
and the `HookContext` listing comment on privilege |
| Best Practices "use `before*` for validation and `after*` for side
effects" | the "Purpose" row of "Before vs After Hooks" and the events
table |
| Reading | Before (`ca4ec2a2f`) | After (`ee231bb06`) |
|:---|---:|---:|
| `filters.md` lines / bytes / tokens | 208 / 9876 / 2469 | 215 / 10382
/ 2596 |
| `filters.md` ceiling row | 2473 (headroom 4) | 2596 (headroom 0) |
| `seeds.md` lines / bytes / tokens | 182 / 7033 / 1759 | 190 / 7590 /
1898 |
| `seeds.md` ceiling row | 1759 (headroom 0) | 1898 (headroom 0) |
| `data-hooks.md` lines / bytes / tokens | 888 / 40467 / 10117 | 884 /
40467 / 10117 |
| `data-hooks.md` ceiling row | 10122 (headroom 5) | 10122 (headroom 5),
not moved |
| `relationships.md` lines / bytes / tokens | 411 / 16811 / 4203 | 408 /
16790 / 4198 |
| `relationships.md` ceiling row | 4203 (headroom 0) | 4203 (headroom
5), not moved |
| `objectstack-ui/rules/record-page.md` lines / bytes / tokens | 65 /
3961 / 991 | 65 / 3939 / 985 |
| `record-page.md` ceiling row | 991 (headroom 0) | 991 (headroom 6),
not moved |
| `hooks-security-seeds-datasources.json` lines / bytes (not ratcheted)
| 331 / 31633 | 361 / 34938 |
| `filters-pagination-search.json` lines / bytes (not ratcheted) | 95 /
7590 | 105 / 8638 |
| `record-page.json` lines / bytes (not ratcheted) | 56 / 3237 | 57 /
3288 |
| all `skills/*/SKILL.md`, lines summed | 4844 | 4844 (none touched) |
| whole `skills/` tree, lines | 22518 | 22567 (+49) |
| ratcheted (authored) tokens / ceilings | 195871 / 201053 | 196126 /
201315 (+255 / +262) |
| eval fixtures, tokens (not ratcheted) | 70045 | 71144 (+1099) |
| bundle total, tokens | 280469 | 281823 (+1354) |
The sum of the two ceiling raises is 123 + 139 = 262, the whole movement
of the ceiling total. The base readings differ from the ones the source
pulls printed (`SKILL.md` lines 4861, ratcheted 196132, bundle 280730)
because `main` shortened seven `SKILL.md` files and `skills/README.md`
between their bases and `ca4ec2a2f`; none of the files this pull touches
moved.
## Fold note
The five cards share one defect shape (a landed behaviour the published
skill did not teach) and one fix (one paragraph and one eval case, the
ratchet paid by same-file deletion first). They sit in one package,
`@objectstack/skills`, with the same landing and review tier (Tier H
governed surface), and all five were triaged p2. Each card keeps its own
eval case as its independent check: ids 10, 33, 34, 35 and
`record-page.json` case 1. Left out on purpose: #35696 and #35647, both
on `skills/objectstack-ui/rules/actions.md`, which wait for #35673.
**Folded tree against the four sources.** The four heads were merged
with `git merge --no-ff`, no rebase, their eight commits kept; all four
merges were clean, no conflict was resolved by hand.
- At the first folded head `0c80caa0b`, eight files were byte-identical
to their one source head; six still are, and `record-page.md` and
`record-page.json` now differ from #35751's head by the placement phrase
(commit `370465fea`). The eight were (same blob id): `filters.md`,
`filters-pagination-search.json`, `data-hooks.md`, `seeds.md`,
`relationships.md`, `objectstack-ui/evals/README.md`,
`record-page.json`, `objectstack-ui/rules/record-page.md`.
- Two files have two sources each.
`scripts/check-skills-token-ratchet.mjs`: the 35 changed lines against
`origin/main` are exactly the union of the two source diffs (the
`filters.md` row and the `seeds.md` row).
`hooks-security-seeds-datasources.json`: the 30 added lines are the
union of the two source diffs except one: case 34's `must_not_contain`
is empty where #35750 wrote two tokens (contract-review should-fix S1 of
record 7034102949, commit `ee231bb06`); it parses, holds 35 cases with
unique ids, ids 34 and 35 after id 31 and id 33 last.
- The one difference: the four changeset files are replaced by
`.changeset/35496-skills-teach-five-landed-behaviours.md`. It carries
the four bodies under one title, with four bold lead-ins added. One
sentence was reworded: #35751 wrote "Both rules files are shorter than
before. No ceiling moves.", which is no longer true of a tree where two
other rows move; it now reads "Both of those rules files are shorter
than before, and neither one's token ceiling moves."
**Prior review inputs, cited and not relied on** (each was made on a
source head, none on this one): contract-review records 7031292409
(#35743 at `47fe0105`) and 7031303652 (#35746 at `03b9383f`; its S1 and
S2 were answered in `0c9f76eb`), and the seat ACCEPT records 7031096611
and 7031127238.
## Tests
No package source changes, so no build closure, unit test or ablation is
owed. Five eval cases, one per card (above). Local readings are gates,
taken at `0c80caa0b`; the one later commit, `ee231bb06`, changes one
eval JSON line, and at it the token ratchet with its self-test, the
skill gates, the two changeset gates and the overlap check were re-run,
all exit 0. The readings are under Verification.
## Acceptance notes
Carried from the source pulls:
- Period key: the `this_week` preset the card offers as a date-field
alternative is left out; where a preset is a legal filter comparand is a
separate rule not measured here. The server reads the request's
reference time zone (`filter-tokens.ts:172`, UTC when the request
carries none); the skill says "workspace time zone", the wording of the
spec's own description table. Whole-value only is true on main and not
written again: the section's "Unknown tokens" paragraph already says it
for every token.
- `filters.md`: the section's opening ("compute the date yourself" for
ad-hoc queries) and its Scope paragraph ("use tokens in a hand-issued
engine query too") pull in different directions. Older text, not
changed.
- Compile refusal: the neighbouring bullet's older "Rejected by
`objectstack build`" wording is left as it is.
- Seeds: the first rule is stated once, in "`externalId` selection",
with a pointer from the `externalId` row; the composite-key sentence is
covered by "each field of a list".
- Body table: `relationships.md` lost one true clause to pay for the new
text, "owned (`master_detail`) children first" (the derived order when
the parent declares no `relatedLists`, `deriveRelatedLists.ts:424-428`);
the Order bullet under it still teaches the authored order. An explicit
`relatedList: 'primary'` on a `master_detail` field stays valid and the
eval does not forbid it.
- `record-page.md` step 1 still says the tab row is "Overview, Activity,
one tab per panel", while
`buildDefaultPageSchema.bodyTables-27055.test.ts:94-97` says no per-list
tab is emitted any more. Read only, not measured in a running console,
outside these cards.
This pull touches `skills/**`, a governed surface: it stays a draft,
with no reviewer request and no auto-merge from this side.
## Verification
`node scripts/pm/dispatch-gates.mjs --commands` derived 67 families for
this diff (the edit to one `scripts/*.mjs` file matches the
script-population families); all 67 were run at `0c80caa0b`, plus
`check:skill-docs`, `check:skill-examples` and the overlap check outside
the derivation. `--ran` reconciliation: `67 derived famil(ies) accounted
for — 64 run, 3 NOT-MEASURED (3 DERIVED from a recorded exit 3)`.
<details><summary>Local gate readings at 0c80caa (exit code first,
captured before any pipe)</summary>
```text
0 node scripts/check-skills-token-ratchet.mjs ✓ 59 authored bundle file(s) within their ceilings; 11 generator-owned file(s) and 39 eval fixture(s) measured, not ratcheted.
0 node scripts/check-skills-token-ratchet.mjs --self-test ✓ self-test: 104 cases pass.
0 pnpm --filter @objectstack/spec run check:skill-refs ✅ 10 generated files in sync with packages/spec
0 pnpm --filter @objectstack/spec run check:skill-docs ✅ Skill docs in sync (outside the derivation)
0 pnpm --filter @objectstack/spec run check:skill-served-sections ✓ 24 served section(s), each heading exactly once in its file
0 pnpm check:skill-links ✓ 268 relative link(s) in 74 published skill file(s) resolve; 138 fragment(s) name a real heading
0 pnpm check:skill-identifier-liveness OK, Leg 1: 545 citation(s) over 74 published file(s)
0 pnpm check:skill-compatibility
0 pnpm check:skill-frame-sync
0 pnpm check:pm-skill-id-lint ✓ 130 file(s) clean
0 pnpm check:doc-authoring
0 pnpm check:nul-bytes OK (scanned 26278 text file(s))
0 node scripts/check-empty-changeset.mjs --base origin/main ✓ No changeset from the merge base modified or deleted by this diff
0 node scripts/check-changeset-no-major.mjs --base origin/main
0 node scripts/check-adr-0087-registration.mjs --base origin/main
0 pnpm check:pm-dispatch-gates the battery (the fast tier) took 448.7s on this box
0 node scripts/pm/overlap-check.mjs --exclude-pr=35743,35746,35750,35751 VERDICT clean exit 0 (origin/main merges cleanly; the one other open pull sharing the ratchet script merges cleanly)
0 the other 49 derived families (script self-tests, changeset-gate self-tests, declaration mirrors, comment-mask corpus, closing-keyword parity, role-word, ratchet-remedy-authority, scripts-symbol-anchors, corpus-claim-drift, closed-ceremony-text, published-files, dts-closure, sourcemap-no-sources-content and the rest of the list)
3 pnpm --filter @objectstack/lint run check:doc-formula-expressions PREREQUISITE NOT MET: NOT MEASURED
3 pnpm check:dual-build-cjs-loads PREREQUISITE NOT MET: NOT MEASURED
3 pnpm check:lean-entry-closure PREREQUISITE NOT MET: NOT MEASURED
3 pnpm --filter @objectstack/spec run check:skill-examples PREREQUISITE NOT MET: NOT MEASURED (outside the derivation)
```
</details>
NOT MEASURED: the four exit-3 families above, reason: each reads built
output of packages this diff does not touch (only `@objectstack/spec`
was built here). CI builds them. #35751 measured `check:skill-examples`
green on its own head with the client packages built (`346 prose
examples type-check`), and the one `os:check` block this diff edits, in
`record-page.md`, is byte-identical to that head.
The overlap check excludes the four superseded pulls by number: this
branch contains their commits, so they overlap it by construction.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01L6bhgTRf6qBRCqPh4JZaZL
<!-- signed: repo:objectstack#1 · os-sales ·
session_01L6bhgTRf6qBRCqPh4JZaZL -->
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent c7174c3 commit 908d56c
11 files changed
Lines changed: 170 additions & 55 deletions
File tree
- .changeset
- scripts
- skills
- objectstack-data
- evals
- references
- rules
- objectstack-query
- evals
- rules
- objectstack-ui
- evals
- rules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1370 | 1370 | | |
1371 | 1371 | | |
1372 | 1372 | | |
1373 | | - | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
1374 | 1388 | | |
1375 | 1389 | | |
1376 | 1390 | | |
| |||
1846 | 1860 | | |
1847 | 1861 | | |
1848 | 1862 | | |
1849 | | - | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
| 1873 | + | |
| 1874 | + | |
| 1875 | + | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
1850 | 1881 | | |
1851 | 1882 | | |
1852 | 1883 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
64 | 84 | | |
65 | 85 | | |
66 | 86 | | |
| |||
326 | 346 | | |
327 | 347 | | |
328 | 348 | | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
329 | 359 | | |
330 | 360 | | |
331 | 361 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | 126 | | |
132 | 127 | | |
133 | 128 | | |
| |||
155 | 150 | | |
156 | 151 | | |
157 | 152 | | |
158 | | - | |
159 | | - | |
160 | | - | |
| 153 | + | |
161 | 154 | | |
162 | 155 | | |
163 | 156 | | |
| |||
344 | 337 | | |
345 | 338 | | |
346 | 339 | | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
347 | 349 | | |
348 | 350 | | |
349 | 351 | | |
| |||
450 | 452 | | |
451 | 453 | | |
452 | 454 | | |
453 | | - | |
454 | | - | |
| 455 | + | |
455 | 456 | | |
456 | 457 | | |
457 | 458 | | |
| |||
660 | 661 | | |
661 | 662 | | |
662 | 663 | | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
| 664 | + | |
| 665 | + | |
668 | 666 | | |
669 | 667 | | |
670 | 668 | | |
| |||
674 | 672 | | |
675 | 673 | | |
676 | 674 | | |
677 | | - | |
678 | 675 | | |
679 | 676 | | |
680 | 677 | | |
| |||
777 | 774 | | |
778 | 775 | | |
779 | 776 | | |
780 | | - | |
781 | | - | |
782 | | - | |
| 777 | + | |
| 778 | + | |
783 | 779 | | |
784 | 780 | | |
785 | 781 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
| 47 | + | |
| 48 | + | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
| |||
95 | 101 | | |
96 | 102 | | |
97 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
98 | 109 | | |
99 | 110 | | |
100 | 111 | | |
| |||
165 | 176 | | |
166 | 177 | | |
167 | 178 | | |
168 | | - | |
169 | | - | |
170 | | - | |
| 179 | + | |
171 | 180 | | |
172 | 181 | | |
173 | | - | |
174 | | - | |
| 182 | + | |
175 | 183 | | |
176 | 184 | | |
177 | 185 | | |
| |||
0 commit comments