Skip to content

docs(skills): teach five landed refusals and behaviours in the data, query and ui skills - #35757

Merged
os-zhuang merged 16 commits into
mainfrom
claude/issue-35496-skills-docs-fold
Nov 20, 2026
Merged

os-zhuang merged 16 commits into
mainfrom
claude/issue-35496-skills-docs-fold

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread
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): fix(plugin-detail): the Overview draws a record's own field groups before its master-detail tables, at the list's dense height #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
Probe run by the source pull on 598a34d (the rule called on one hook and one job per body)
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.

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 docs(skills): a master_detail child is a record-page body table by default #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 docs(skills): seeds.md teaches the blank-key load refusal and the unknown-object save refusal #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: docs(skills): a master_detail child is a record-page body table by default #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).

Local gate readings at 0c80caa (exit code first, captured before any pipe)
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)

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.ai/code/session_01L6bhgTRf6qBRCqPh4JZaZL

…lter rules

The Date Macros section of the published query skill listed the date macros
and the session tokens only. It now names the period key beside them: the
YYYY-Www value, the text-field-only rule, the INVALID_FILTER / 400 refusal on
date, datetime and time fields, and the two date-only surfaces that refuse it.
Five restatements in the same section pay first; the ratchet row moves by the
measured remainder. One eval case pins the text-field / date-field split.

Claude-Session: https://claude.ai/code/session_01L6bhgTRf6qBRCqPh4JZaZL
Co-authored-by: Claude <noreply@anthropic.com>
…fault

The data and ui skills tied the record-page body table to inlineEdit. They
now teach the rule isBodyTableRelationship applies: a master_detail FK with
no relatedList is a body table, a lookup FK with none is a panel, and
inlineEdit governs entry in the parent's form only.

Claude-Session: https://claude.ai/code/session_01L6bhgTRf6qBRCqPh4JZaZL
Co-authored-by: Claude <noreply@anthropic.com>
… (seeds.md)

`skills/objectstack-data/references/seeds.md` teaches the load refusal
main makes for a keyed seed record that leaves an `externalId` field
blank, with one eval case (id 34). Three restatements in the same file
are cut first; the token ceiling row moves by the measured remainder
(1759 -> 1812) under the standing ruling (record 6513306068).

Claude-Session: https://claude.ai/code/session_01L6bhgTRf6qBRCqPh4JZaZL
Co-authored-by: Claude <noreply@anthropic.com>
`skills/objectstack-data/references/seeds.md` teaches the save door's
422 for a runtime-saved seed whose `object` resolves to nothing, and
that a draft object is enough for a draft seed, with one eval case
(id 35). The token ceiling row moves by the measured remainder
(1812 -> 1898) under the standing ruling (record 6513306068).

Claude-Session: https://claude.ai/code/session_01L6bhgTRf6qBRCqPh4JZaZL
Co-authored-by: Claude <noreply@anthropic.com>
…e 33 accepts either repair

Claude-Session: https://claude.ai/code/session_01L6bhgTRf6qBRCqPh4JZaZL
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTRf6qBRCqPh4JZaZL

Area b1-D · 2026-11-20T07:49Z · final green head 0c80caa0b5c8112be057a786407e46bf9110d3aa (30 success, 18 expected skip, 0 pending; the one red PR-body guards run 44684565285 is the first attempt, which read the card before its claim named this branch (re-posted as 7031854511); the same job on the same head is green in run 44685238815). L1 is asked of thread L1-a on this head. The brief below goes to an isolated sub-agent at the contract tier; its record follows as a separate comment.

Brief handed to the contract reviewer — PR #35757 @ 0c80caa0b5c8112be057a786407e46bf9110d3aa (card #35496, #35714, #35480, #35456, #35692)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template — with a PASS or FAIL verdict. Return the record as your final message; the area thread posts it as ONE comment on the PR.

Inputs — these and nothing else:
· cards #35496, #35714, #35480, #35456, #35692: each body and EVERY comment (rulings and earlier records included); the two earlier records named under ④, on the closed pulls #35743 and #35746
· PR #35757: its body, its file list, and the net diff against main at 0c80caa0b5c8112be057a786407e46bf9110d3aa
· the check-runs on 0c80caa0b5c8112be057a786407e46bf9110d3aa: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: skills/objectstack-query/rules/filters.md, skills/objectstack-query/evals/filters-pagination-search.json, skills/objectstack-data/references/data-hooks.md, skills/objectstack-data/references/seeds.md, skills/objectstack-data/evals/hooks-security-seeds-datasources.json, skills/objectstack-data/rules/relationships.md, skills/objectstack-ui/rules/record-page.md, skills/objectstack-ui/evals/record-page.json, skills/objectstack-ui/evals/README.md;
plus every file IN THIS DIFF that directly implements or enforces them — scripts/check-skills-token-ratchet.mjs (the filters.md and seeds.md ceiling rows) — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (the changeset) is the lane seat's ACCEPT at TIER_DEFAULT.
④ judges the hits files and those implementing files ONLY; code outside the diff is READ to judge them, never reviewed.

Security — if the change teaches security, auth or permission behaviour the path name doesn't show, the record says so on its Security-touching: line: write no ONLY when no changed hunk teaches permission, sharing, credential, token, authentication or other security behaviour, else yes.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family. If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated. SQL push-down: not applicable to a text diff unless you find otherwise.
④ Design judgment — for EVERY hits file: does each changed sentence hold against what main does (the spec, the runtime, the lint rule, their tests)? Does each eval case assert what main does, and pass every correct answer? Were the same-file deletions genuine restatement, or did a rule lose its only home? Are the two ceiling raises (filters.md +123, seeds.md +139) on the standing ruling's path, measured and in proportion? Earlier records are INPUTS you may cite and must not merely repeat: record 7031292409 on PR #35743 judged the filters.md half at 47fe0105 (blob-identical here), and record 7031303652 on PR #35746 judged the data-hooks.md half at 03b9383f with S1 and S2, repaired in commit 0c9f76eb — judge that repair. The seeds.md half (cards #35480, #35456: 'refused in every mode' against the card's 'keyed modes'; two reworded existing sentences) and the relationships.md / record-page half (card #35692: the deleted clause 'owned (master_detail) children first', the placement 'above the field sections', the eval's must_not_contain of inlineEdit:) have NO earlier record and owe the full reading. Also judge the fold itself: the one changeset against the folded tree, and the eval file two source pulls both appended to (ids unique, cases intact). Try to break the design.
Grade each finding must-fix, should-fix or nit. Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as No must-fix, no should-fix.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with claude/issue-35496-skills-docs-fold and Reviewed-by: with session_01L6bhgTRf6qBRCqPh4JZaZL — the value is the FIRST thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U

维护者速读

  • 用户能看到什么变化:发布出去的 AI 技能文档补上了五处平台已经上线、但技能还没教的行为。第一,查询过滤里可以用"本 ISO 周"这个周键。第二,钩子或任务的 js 正文编译不过会被拒存。第三,示例数据(seed)里主键字段留空的记录在加载时会被拒绝。第四,运行时保存一个指向不存在对象的 seed 会被拒绝,返回 422。第五,主从(master_detail)子表默认就显示为记录页正文里的表格,不再需要设置内联编辑。用 AI 写应用的开发者因此少走弯路,不会再照着旧说法去加多余的设置。
  • 出错会怎样:这次只改文档、评测用例和文档体积上限,不改任何运行代码。最坏的情况是某句教法不够准,AI 写出的配置被平台照常拒掉。
  • 要你做什么:这单属于 Tier H(改了技能体积上限脚本,评测文件名里带 security),合并前需要你本人批准一次。这一次批准就替代了原来四个拉取请求各要一次的批准。L2 审核正在跑。

席位核对 — ACCEPT (L1-a) · repo:objectstack#1 · head 0c80caa0b5c8112be057a786407e46bf9110d3aa · 2026-11-20T07:52Z

  • Shape — draft fold PR. It supersedes the closed docs(skills): teach the {current_iso_week} period key in the query filter rules #35743, docs(skills): data-hooks teaches the hook and job js-body compile refusal #35746, docs(skills): seeds.md teaches the blank-key load refusal and the unknown-object save refusal #35750 and docs(skills): a master_detail child is a record-page body table by default #35751.
    • Base main, merge-base ca4ec2a2. 11 files, +170/−55.
    • Body lines: Fixes #35496; Part of #35714, #35480, #35456, #35692; Clause-②: no; Metadata-protocol: none.
    • Four merges of the original heads (47fe0105, 0c9f76eb, 20c06ad5, 1ea279ac) and one changeset commit. git diff-tree --cc shows 0 combined hunks on every merge, so nothing was hand-resolved.
    • The four changesets became one note, @objectstack/skills at patch.
  • Governance — check-governed-merges.mjs --pr 35757 reads Tier H. The low-risk skills arm drops out for two reasons: scripts/check-skills-token-ratchet.mjs is in the diff, and the eval file hooks-security-seeds-datasources.json names security. Size is 225 lines, well under 3000. An authorized APPROVED review is owed, and this L1 does not replace it.
  • The halves I already accepted
    • filters.md (skills: filters.md Date Macros never mentions the {current_iso_week} period-key token #35391 added #35496): git diff 47fe0105 0c80caa0 over rules/filters.md and its eval is empty. My ACCEPT 7031096611 carries over byte for byte.
    • data-hooks.md (skills: data-hooks.md teaches the hook/job js-body compile refusal (follow-up of PR #35713) #35714): git diff 0c9f76eb 0c80caa0 -- data-hooks.md is empty. The only delta from my ACCEPT 7031127238 (at 03b9383f) is 0c9f76eb, which I read in full. It answers L2 record 7031303652:
      • The regex sentence now reads "a regex pattern the checking engine refuses is a warning: the runtime may accept it." That matches validate-hook-body-compiles.ts on main: a pattern the host refuses is warning, because the QuickJS dialect differs from V8's, and every other compile failure is error.
      • Eval 33 now requires input.status, which either repair contains, and spells out the rename repair in full.
      • The Best Practices hunk is a rewrap only.
      • The changeset sentence about the file's size now reads "four lines shorter and no larger in tokens".
  • seeds.md (Skills docs: a seed record in a keyed mode must carry every externalId field or it is refused at load (seeds.md) #35480 + Skills docs: a saved seed must name an existing object (seeds.md + one unknown-object 422 eval) #35456), new to L1, read against main
    1. Blank key. The text: "every record carries a value for each externalId field … one left blank (no value, null or ''; whitespace is a value) is refused at load in every mode … the other records still load." This matches seed-loader.ts (around line 2340) in every part:
      • isBlankSeedKeyValue treats undefined, null and '' as blank, with no trim.
      • keyedMode covers upsert, update and ignore, which are all three live SEED_MODE_VALUES, so "every mode" is exact.
      • The record is dropped by continue, so the others still load.
      • blankSeedKeyRefusal names the object, the recordIndex, the field(s) and the fix.
      • The default key name is covered by the label "(also the key a dataset gets when it names none)".
    2. Unknown object. The text: "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' … a draft of it is enough for a draft seed; a live seed needs it published." This matches unknownSeedObjectRefusal in protocol-save-door-refusals.ts:
      • the finding is at path: 'object';
      • the message contains "which is not defined" and the crm_lead/lead example;
      • the draft arm looks at draft objects too, and the live arm at published ones only.
    3. Paydown. Three restatements are cut. The columns shape literal is still in its own section. The one-row table becomes a sentence. The second telling of what a refused value leaves is condensed to "drops the row its siblings point at". The object row's "never write manually" now points at the runtime-save note, which is correct now that the save door reads a hand-written object.
    4. Evals. Cases 34 (blank key, all three modes) and 35 (draft lead → crm_lead) are new. Their must_contain assertions are answerable from the text. Ids are unique (35 cases).
  • relationships.md + record-page.md (skills: master_detail children are record-page body tables by default (no inlineEdit needed); update the data relationships rule and the record-page eval #35692), new to L1, read against main
    • "A master_detail child [is shown] as a body table, a lookup child as a panel. inlineEdit plays no part." This is isBodyTableRelationship in packages/spec/src/data/related-list-body-table.ts: 'primary' is a body table, any other declared value is not, and an absent value is a body table exactly when type === 'master_detail'. The interface comment says inlineEdit "does not change the verdict (主从子表默认放进记录页概览左侧(关键字段下面),始终显示、带合计;判断规则改为按关系类型 #35597)". The relatedList field's .describe() says the same.
    • "Drawn … above the field sections" matches buildDefaultPageSchema.ts ("before the field sections").
    • "Put the tasks first" becoming the parent's relatedLists is right: 'primary' places a list and does not order it (the same .describe()).
    • A grep of skills/ at this head finds no surviving "default … with inlineEdit" or "after the first field section".
    • Eval 1 drops the placement flag from must_contain and adds inlineEdit: to must_not_contain. An answer that says "not inlineEdit" in prose has no colon and still passes. evals/README.md follows.
  • Ratchet — check-skills-token-ratchet.mjs at this head: exit 0, 59 files within ceilings.
    • The two raised rows equal the measurement: filters.md 10382 bytes is 2596 tokens, and seeds.md 7590 bytes is 1898.
    • Each quotes the standing raise path 「A:先削重复,余额按实测提高」 (6513306068) and lists its paydown.
    • relationships.md (4198/4203), record-page.md (985/991) and data-hooks.md (10117/10122) shrink with no ceiling move, as the changeset says.
  • Changeset — I checked its prose sentence by sentence against the five halves above. Each claim matches the text, the evals and the code cited. Its own Clause-②: no and Metadata-protocol: none lines are right, because no published contract moves.
  • Gates — at this head: 30 success, 18 skipped. One stale failure is left: PR-body guards, run 44684565285 at 05:58Z, from before the claim was re-posted. The same-head re-run 44685238815 at 06:04Z is green, and the guard takes the newest run. Nothing is pending.
  • Nits (nothing owed)
    • The four Part of cards do not close on merge. The landing thread owes their close-out with the Fixes card.
    • The five cards are p2. They ride Sales's 04:26Z exception for skills cards (「skills 都派」).
  • Landing terms — Tier H. It lands only on an authorized APPROVED review, or the approver's own enqueue, on this head, after the same-head L2 PASS now running and with every check green. A new push needs a fresh L1 unless it is a clean main merge.

Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTRf6qBRCqPh4JZaZL

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 0c80caa0b5c8112be057a786407e46bf9110d3aa
Local-runs: none
Scope: skills/objectstack-data/evals/hooks-security-seeds-datasources.json, skills/objectstack-data/references/data-hooks.md, skills/objectstack-data/references/seeds.md, skills/objectstack-data/rules/relationships.md, skills/objectstack-query/evals/filters-pagination-search.json, skills/objectstack-query/rules/filters.md, skills/objectstack-ui/evals/README.md, skills/objectstack-ui/evals/record-page.json, skills/objectstack-ui/rules/record-page.md + scripts/check-skills-token-ratchet.mjs
Security-touching: yes

Read for this record: the five cards with every comment (#35496: 5, #35714: 4, #35480: 4, #35456: 4, #35692: 5, the re-posted claims included); the closed pulls #35743 and #35746 with their records 7031292409 and 7031303652; PR #35757's stored body, its 11-file list, its two comments and the net diff from merge base ca4ec2a2f to the head; the 53 check-runs on the head. "main" below is origin/main at 1e018d6ed, 14 commits past the merge base. Every packages/ and ui/ path cited was read there. The 37 spec, runtime and test files behind the taught sentences are blob-identical at the merge base and at 1e018d6ed; where a cited file did move on main, the cite says so.

① Derived judgments

② Semver level

  • One changeset, .changeset/35496-skills-teach-five-landed-behaviours.md, takes '@objectstack/skills': patch. It matches what the diff publishes: wording and eval cases in a released package that ships the skills/** tree (packages/skills/package.json), kind none, which takes patch (AGENTS.md:1019-1028). The script edit publishes nothing.
  • Judged against the folded tree, clause by clause: every clause under its four lead-ins is in the tree. "Four lines shorter and no larger in tokens" holds for data-hooks.md (888 to 884 lines, 40467 bytes at both ends). "Neither one's token ceiling moves" holds for the two rules files it names. The base-to-head name list shows this one file added and no changeset of main touched.
  • It names the six data-hooks.md cuts and the three seeds.md cuts, and is silent on the one true clause relationships.md lost (N2). It ships as CHANGELOG.md.
  • The declaration reads Clause-②: no, bare and line-initial, on the stored PR body and in the changeset. Right: nothing widens or narrows an accept set or a public surface. Metadata-protocol: none on both carriers is right for the same reason. No ! in the title and no BREAKING banner owed. Skills-docs: updated here is true.

③ Boundary flags

The PR body was read as stored after its 07:54Z edit, and that body is the one judged. Lines 3 to 7 are five Fixes lines (#35496, #35714, #35480, #35456, #35692), line 13 ends "Merging closes all five cards.", and the cards table names each card by body line. The head did not move. Each of the five cards carries a Claim: naming this branch (7031854511, 7033765405, 7033763506, 7033762430, 7033764406), and the guards run on the edited body is green. The L1 ACCEPT 7033749076 was read as an input. It predates the edit (its Shape line still reads Part of) and nothing here leans on it.

open_questions is empty in all five dev reports (7030743883, 7030783032, 7031090232, 7031155800, 7031820346). The dev flags:

  • Fold report.
    • One changeset for four, one sentence reworded: upheld (②).
    • Base readings that differ from the source pulls' printed ones: a PR-body matter. The two moved rows equal the blobs (④).
    • Commit trailers: all 13 commits carry the model-free pair AGENTS.md:447-449 prescribes.
  • Filters report. Answered flag by flag in record 7031292409. Both files are blob-identical here and its cited sources are blob-identical at 1e018d6ed, so the answers carry. Re-read for this record: this_week is rightly left out. A preset name is refused as a filter comparand and is legal only in the dashboard date-filter positions (packages/spec/src/migrations/entries/semantic/18.filter-preset-ordering-comparand-refused.ts:8-36).
  • Data-hooks report. Answered in record 7031303652. The stated difference from the card, a job refused by the three commands and at no save, is right on my own reading (packages/lint/src/authoring-rules.ts:2974-2977, :2986; packages/spec/src/kernel/metadata-plugin.zod.ts:1040).
  • Seeds report.
    • Ceiling moved by the measured remainder after 128 bytes of cuts: upheld on the ruling's path (④).
    • Rule stated once with one pointer, where card Skills docs: a seed record in a keyed mode must carry every externalId field or it is refused at load (seeds.md) #35480 names three anchors: upheld. On a surface priced per token under 「先削重复」, three statements of one rule are the restatement the next card would have to cut. The one statement covers the composite case by "each field of a list", and the externalId row points at it.
    • Local gates a declared subset: answered by the check-runs in ①.
    • Out-of-scope note that os validate and os build judge neither refusal: consistent with main. The blank-key rule has one caller, the loader, and the unknown-object refusal is asked by the save door alone (packages/metadata-protocol/src/protocol-save-door-refusals.ts:1152-1155). The skill names exactly those two doors. Not escalated.
  • Body-table report.
    • record-page.md placement clause corrected in the sentence being rewritten: upheld (④). It is the same merged change.
    • True clause deleted from relationships.md: confirmed and graded (N2).
    • Two ceiling rows not lowered: N5.
    • The inlineEdit: entry: upheld (④).
    • Dist-reading gates not measured locally, and the check:skill-examples build: answered by the check-runs. The one os:check block this diff edits is type-checked there.
    • Out-of-scope 1, record-page.md step 1 still describing "one tab per panel" (head :13-15) against buildDefaultPageSchema.bodyTables-27055.test.ts:94-97: an unchanged line outside every hunk, not judged here. It names a published sentence that may no longer match main, and it has no carrier. Escalated to the lane seat: card it or dismiss it.
    • Out-of-scope 2, relationships.md:277-281 on associations: unchanged and still true, since a body table is a related list on the detail page. The true and false bullets and the audit_ref example say how to move or hide one. Not escalated.

SQL push-down: not applicable. The one code file changes two numbers and their comments. The PR author is objectstack-fleet[bot]; there is no off-relay author to name.

④ Design judgment

No must-fix.

S1 (should-fix) — eval case 34 forbids what its own expected output writes.
must_not_contain is code: '' and code: null (head hooks-security-seeds-datasources.json:71). The grader is mechanical: each token is a literal, case-sensitive substring of the answer, and no model judges (packages/qa/scenarios/src/skill-evals/grade.ts:27-29). The case's own expected_output says the right answer "does not write code: '' or code: null", and that sentence carries both forbidden tokens. So an answer that redirects correctly and names the two refused spellings, in the reference answer's own words, fails the case. The new seeds.md sentence invites exactly that answer, since it lists "no value, null or ''". The with-skill score on this case then measures whether the answer quoted the refused form, not whether the skill taught the refusal.

Of the 48 cases in the three eval files this pull touches, this is the only one whose expected output carries one of its own forbidden tokens. Main already names the shape as a defect for the sibling bundle, with the remedy: forbids-own-answer, "narrow the entry to what a wrong answer writes ... or drop it" (ui/scripts/check-skill-eval-tokens.mjs:135-140). Repair: narrow each entry to a spelling only a record literal has (a trailing comma or closing brace), or drop the pair and let refused carry the case. record-page.json case 1 in this same pull shows the narrowed form done right (inlineEdit:).

filters.md and eval 10 (card #35496). Both blobs are the ones record 7031292409 judged at 47fe0105. Its sentence-by-sentence table is not repeated. Re-read here, where a break was likeliest:

  • The spec's own note carries every clause of the Period key paragraph (packages/spec/src/data/date-macros.zod.ts:62-91), and PERIOD_KEY_TOKENS has one member (:179-181).
  • The door test refuses both wrappings on all three temporal types with INVALID_FILTER / 400, refuses the literal key in the same loop, and resolves the key on text and {current_week_start} on a date (packages/objectql/src/engine-temporal-comparand-door.test.ts:621-651).
  • resolveFilterPlaceholders() composes the three resolvers and is exported (ui/packages/core/src/utils/filter-tokens.ts:301-308; ui/packages/core/src/index.ts:229-234). isKnownFilterToken is their union (packages/spec/src/data/context-tokens.zod.ts:333-335).
  • New since that record: main moved skills/objectstack-query/SKILL.md and skills/objectstack-ui/rules/dashboards.md. Neither names a dropped identifier or a week token. On main the three dropped names appear only in the lines this diff replaces.

Eval 10 asserts what main does, and its expected output passes its own assertions. That record's five nits stand as nits.

data-hooks.md and eval 33 (card #35714). Record 7031303652 judged 03b9383f. The delta to this head is commit 0c9f76eb alone. The repair:

  • Its S1 is repaired. Head :347-348 reads "A regex pattern the checking engine refuses is a warning: the runtime may accept it." That is main's condition and main's hedge. The warning arm is the pattern shape alone, set without asking the runtime's engine (packages/lint/src/validate-action-body-compiles.ts:143, :195-196, :204), and the message says that engine "may accept it, but if it does not, every run ... fails" (:217-219). "Pattern" is the right noun: an unterminated literal and bad flags stay errors (:146-149, :197-201). The changeset sentence moved with it.
  • Its S2 is repaired for both repairs the case spells. The token is now input.status (head :356). ctx.input.status carries it, the renamed form carries it, and the prompt's refused source has only ctx.input and ctx.status. The expected output now spells the rename in full. What remains is N3.
  • The Best Practices hunk is a rewrap, which also clears that record's N3. Its N1, N2 and N4 stand.
  • The rest of the bullet agrees with main on my own reading: the wrapper (action-body-wrapper.ts:52-54), js only and the two ids (validate-hook-body-compiles.ts:51-54, :73-76), the three commands and the runtime publish door for hooks alone (authoring-rules.ts:189, :2979-2987; test validate-hook-body-compiles.test.ts:137-160), and the 422 (runtime-authoring-gate.ts:1680-1685).
  • The six deletions, re-read at this head: each still has a home, and no rule lost its only one.
    • The body stub: :94, :61, :798.
    • The "stay partial" aside: :233, :235, Gotcha 1 at :354-357.
    • The org id clause: :482-491.
    • The masking note keeps both rules in two lines (:664-665); "applies everywhere" stays at :51-53.
    • "Never a session claim": :237, :457-458.
    • Before and after: :59, :222.
  • The file is 40467 bytes at base and head, so its row (10122) rightly does not move.

seeds.md and evals 34, 35 (cards #35480, #35456): the full reading. Code cites are under packages/metadata-protocol/src/ unless a path says otherwise.

Head seeds.md Verdict Where main says it
:104-105 every record carries a value for each externalId field; each field of a list; name when none is named holds key fields seed-loader.ts:1892; default packages/spec/src/data/seed.zod.ts:211-214 and seed-loader.ts:69; the refusal says so at :493-494
:105-106 blank is no value, null or ''; whitespace is a value holds seed-loader.ts:469-471, no trim
:106 refused at load, in every mode holds, and exact see below
:106-107 the result names the object, record index, field and fix holds seed-loader.ts:499-511
:107 the other records still load holds continue at :2362; haltOnError defaults to false and stops later datasets, not sibling records (packages/spec/src/data/seed-loader.zod.ts:231, seed-loader.ts:1516)
:48 the externalId row's pointer holds same
:59-60 a runtime-saved seed whose object resolves to nothing is refused: 422 INVALID_METADATA at object, "which is not defined" holds protocol-save-door-refusals.ts:1083-1091, :1179-1192
:61-63 the full name (crm_lead, not lead), or create the object: a draft for a draft seed, published for a live one holds the door's own words, :1176-1183; tests protocol.seed-external-id-refusal.test.ts:381-420, :430
:47 the object row, "hand-written only in a runtime save" holds for what the skill teaches (N4) seed is runtime-creatable, packages/spec/src/kernel/metadata-plugin.zod.ts:916

"Every mode" against the card's "keyed modes":

  • The refusal is gated on the keyed modes (seed-loader.ts:1840, :2345), and the keyed modes are every live mode. SEED_MODE_VALUES is update, upsert, ignore (seed.zod.ts:59-63).
  • insert and replace are refused at parse, and a stored dataset declaring one is refused whole at load (seed.zod.ts:65-77).
  • The tests refuse the record under each of the three (seed-loader-empty-key-warn.test.ts:141, :178-202, :223-229), and the file's own mode table lists the same three.
  • The tree's wording is the better one: it closes "switch the mode" for a reader who does not know that every mode is keyed.
  • Only the loader judges a blank key, so "at load" names the whole door set.

The two reworded sentences hold. The one-row table became one sentence with the same content. "A refused value drops the row its siblings point at" keeps the consequence the longer sentence stated. The PR calls that longer sentence a second telling of head :142-143; that passage is about validation rules, not field validation, so the reworded sentence is this consequence's one home, and it still states it. The columns literal is shown by its own section (head :81-97). No rule lost its home in this file.

Eval 34 asserts what main does (refused at load, the other eight load, every mode refuses); its tokens are S1 and N1. Eval 35 asserts what main does: the finding's words, its path, and a draft object sufficing for a draft seed are the door's own; its tokens are N1.

Tried and held: a key field whose expression evaluates empty is refused the same way (test :211-221), which "carries a value" covers. Every defineSeed example in seeds.md gives each record its key.

relationships.md, record-page.md, record-page.json, evals/README.md (card #35692): the full reading.

Sentence at the head Verdict Where main says it
relationships.md:347-349 a master_detail child is a body table, a lookup child a panel holds packages/spec/src/data/related-list-body-table.ts:62-67; verdict rows related-list-body-table.test.ts:31-45; packages/spec/src/data/field.zod.ts:2129-2134
:349-350 inlineEdit plays no part; it governs entry in the parent's form only holds related-list-body-table.ts:14-18, :46-50; rows :35-40, :44-45; field.zod.ts:2085
:353-358 the example with no relatedList holds row :36
:366, :368 'primary' is the master_detail default, true the lookup default holds field.zod.ts:2113-2134
record-page.md:18-20 the table is drawn above the field sections holds as the default ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts:816-821; its test :54-65, :84-87
record-page.md:20-21 true, a lookup's default, is a panel holds as above
record-page.md:26-27 "put the tasks first" is the parent's relatedLists holds 'primary' no longer orders, relatedLists does: field.zod.ts:2121-2124; buildDefaultPageSchema.ts:818-819

"Above the field sections" replaces "after the first field section", which main names as the superseded drawing (buildDefaultPageSchema.ts:821). Main has two exceptions no skill teaches: a field group's relatedList places the table at that group (:806-815), and with no section at all the details node leads (test :89-92). The sentence is right for the page an author gets by following the skill.

Main moved under this half after the merge base. #35755 gives the record page an edit state that draws each body table as editable lines. It picks the tables by the same body-table predicate (ui/packages/app-shell/src/views/RecordDetailView.tsx:5201-5217 at 1e018d6ed) and reads inlineEdit for nothing. So "governs entry in the parent's form only" still holds as a statement about that key. The skill does not yet teach the edit state; that is #35755's own follow-up, not this diff's.

The deleted clause, "owned (master_detail) children first", is N2.

record-page.json case 1 asserts what main does.

  • Replacing relatedList: 'primary' with relatedListFilter in must_contain is right. The flag is no longer needed, stays legal and is not forbidden, so an answer that keeps it passes.
  • The new inlineEdit: entry holds. It is the authored-key spelling, so prose that names the key passes, and the case's own expected output passes.
  • An answer that authors the key is rightly failed. Main does not refuse it and the table still draws, but it adds entry of tasks to the lead's New and Edit form, which the request did not ask for.
  • evals/README.md follows the case.

scripts/check-skills-token-ratchet.mjs, the two rows. They agree with the contract the header states.

  • Path. The one recognised raise path needs deletion in the same file shown in the diff, the standing ruling quoted in the PR body, and the row pinned at the measurement (head :156-170). The diff shows five cuts in filters.md § Date Macros and three in seeds.md. The stored body quotes 「A:先削重复,余额按实测提高」 and record 6513306068. Both rows sit at the measurement.
  • Measured. Read off blob sizes:
    • filters.md: 9876 to 10382 bytes, 2469 to 2596 tokens. The old row's 4 tokens of headroom are absorbed, so the row moves +123.
    • seeds.md: 7033 bytes, 7245 at b3b374b39, 7590 at the head. That is 1759, 1812, 1898 tokens: +53 and +86, +139 in all.
    • Both comments' arithmetic is exact. The three files whose rows do not move are under them (10117 of 10122, 4198 of 4203, 985 of 991).
  • Genuine deletion. In seeds.md the cuts are 128 real bytes and no re-wrap. One is restatement proper; two are compactions that keep their content (N5).
  • Proportion.
    • filters.md: every clause of the new paragraph is a card item, as record 7031292409 found.
    • seeds.md: two cards, one paragraph each, about 300 bytes of rule and one pointer of under 40 per card.
    • The seeds.md cuts pay 128 of 813 added bytes, less than the row's last raise paid (414 of 466, head :1860-1862). Reading the whole file, I find no restatement left to cut.
    • One clause is description, not rule: "the result names the object, record index, field and fix", about 14 tokens. It tells the author where the refusal shows.
    • The two raises sum to 262 tokens. Each buys one paragraph for a refusal an author otherwise meets as a dropped record, a 422 or a silent zero. The 10402 principle is respected.

Nits, none affecting correctness or the contract:

  • N1 (nit) — evals 34 and 35 lean on prose tokens. refused and not defined fail a right answer that says "rejected" or "does not exist". 422 and crm_lead are both in case 35's prompt, and the half its prompt is built around, a draft object sufficing for a draft seed, has no token. Case 34 names the whitespace dodge in its expected output and pins no token for it. The file has older prose tokens (roll, caller).
  • N2 (nit) — relationships.md lost a true clause that has no other home in the catalog: with no relatedLists, owned lists come before referenced ones (ui/packages/app-shell/src/utils/deriveRelatedLists.ts:424-428). It was not restatement. No ceiling moves on this file, so the raise path's test is not the one it is held to, and the loss is small. The new default already puts owned children in the body and lookups in panels, so the clause now only breaks ties inside a group that flags have mixed. No author writes that default, and relatedLists (head :369-370) overrides it. The dev declared the cut; the changeset does not.
  • N3 (nit) — eval 33's input.status still fails a rename to any other local (const lead = ctx.input || {}), which main's hint offers by example only (validate-hook-body-compiles.ts:109-111). No literal separates every valid rename from the refused source the answer must quote.
  • N4 (nit) — "hand-written only in a runtime save" is narrower than main, whose seed file patterns also admit .seed.yml and .seed.json (metadata-plugin.zod.ts:916). The skill teaches defineSeed alone, and the old "never write manually" was narrower still.
  • N5 (nit) — the seeds.md row comment calls all three cuts "restatement"; two are compactions. The fold also leaves the relationships.md and record-page.md rows above their new counts (5 and 6 tokens). Lowering is optional (head :153-155), and the dev's reason, a script four pulls shared, lapsed when the fold edited the script.
  • N6 (nit) — record-page.json case 1 fails a right answer that writes "no inlineEdit: true needed". The entry is as narrow as a literal can be.

Implemented-by: claude/issue-35496-skills-docs-fold
Reviewed-by: session_01L6bhgTRf6qBRCqPh4JZaZL

VERDICT: PASS

…swer names

The case's must_not_contain held `code: ''` and `code: null`, and its
expected_output names both as what the answer does not write. The grader
matches a literal substring, so an answer written like the reference failed.
The pair is dropped; must_contain (defineSeed, externalId, refused) carries
the case.

Claude-Session: https://claude.ai/code/session_01L6bhgTRf6qBRCqPh4JZaZL
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTRf6qBRCqPh4JZaZL

Area b1-D · 2026-11-20T08:13Z · answer to the one item record 7034102949 escalated in ③ (out-of-scope 1): dismissed, no card.

The sentence is skills/objectstack-ui/rules/record-page.md:13-15, unchanged by this pull: "a tab row under the header (Overview, Activity, one tab per panel with its count)". Read against origin/main 1e018d6ed, ui/packages/plugin-detail/src/synth/__tests__/buildDefaultPageSchema.bodyTables-27055.test.ts:

  • "a body table takes no tab of its own: only the side lists do" (:94-100), and "each side list takes a tab of its own" (:56-66, tabs details, related:task.quote, timeline).
  • The skill's own step 2 calls a side list a "panel" and a body table a "body table". So "one tab per panel" is what the test pins: a panel gets a tab, a body table does not.

The one thing the test adds is tab ORDER (the activity tab is last); the skill sentence lists the tabs and makes no order claim. Not false on main, so nothing to card.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTRf6qBRCqPh4JZaZL

Area b1-D · 2026-11-20T17:45Z · final green head ee231bb06076f6fddf2c5b4ae7052f67aaffef5c (31 success, 18 expected skip, 0 failed, 0 pending). One commit past the head record 7034102949 judged: it empties must_not_contain of eval case 34 in skills/objectstack-data/evals/hooks-security-seeds-datasources.json, the repair of that record's S1. The PR body was re-pinned to this head (budget table, fold note). L1-a is told of the delta.

Delta brief handed to the same contract reviewer — PR #35757 @ ee231bb06076f6fddf2c5b4ae7052f67aaffef5c

You wrote record 7034102949 on 0c80caa0b5c8112be057a786407e46bf9110d3aa. Read the delta 0c80caa0b..ee231bb06 and render ONE ## Contract review record on the new head, same shape (node scripts/pm/record-recognisers.mjs --template --paths skills/objectstack-data/references/seeds.md), PASS or FAIL.

Inputs — these and nothing else: your record 7034102949; the net diff 0c80caa0b..ee231bb06; the PR body as stored now; the comments on the PR since your record; the check-runs on ee231bb06076f6fddf2c5b4ae7052f67aaffef5c.
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions.

Scope — unchanged from your record: the same hits and the same implementing file; your Scope: line repeats it.
⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run. Local-runs: says none or probe — REASON.

Judge: does the delta close S1 (name it by id alone, S1: closed, or say why not)? Does case 34 still assert what main does with the pair dropped, or did it lose its only discriminating token? Does the delta touch anything else? Sections ①–④ carry over from 7034102949 where the delta leaves them untouched: say so per section and re-judge only what moved, the stored PR body's re-pinned readings included (②③). The Security-touching: line is re-stated. Grade any new finding must-fix, should-fix or nit; a clean round reads No must-fix, no should-fix.
Sign Implemented-by: with claude/issue-35496-skills-docs-fold and Reviewed-by: with session_01L6bhgTRf6qBRCqPh4JZaZL — the value is the FIRST thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U

维护者速读

  • 这次只改了一行评测:评测 34 原来禁止回答里出现 code: '' 和 code: null,可是它自己的参考答案就写了这两个词,正确的回答反而会被判错。现在把这条禁止去掉,按 L2 审核给的两个修法之一处理。
  • 技能文字和代码都没动。要你做什么:这单是 Tier H,合并前仍需要你本人批准,并等同一版本的 L2 复核通过。

席位核对 — delta ACCEPT (L1-a) · repo:objectstack#1 · head ee231bb06076f6fddf2c5b4ae7052f67aaffef5c · 2026-11-20T17:48Z

Delta from my ACCEPT 7033749076 at 0c80caa0 to ee231bb0: one commit, one file, one line. There is no main merge, and the merge base is still ca4ec2a2.

  • The change. In skills/objectstack-data/evals/hooks-security-seeds-datasources.json, case 34's must_not_contain goes from ["code: ''", "code: null"] to []. That is the second remedy L2 record 7034102949 S1 offered ("or drop the pair and let refused carry the case"), and the remedy ui/scripts/check-skill-eval-tokens.mjs names for forbids-own-answer.

  • What the case still asserts.

    • must_contain is unchanged (defineSeed, externalId, refused). The prompt, expected_output and files are byte-identical.
    • The expected output still passes its own assertions.
    • The case keeps its discriminating token: an answer that complies with the blank key and never says the record is refused still fails.
    • Whether dropping the pair leaves the case weak enough to need a narrowed literal is the L2's question (its N1 already notes the prose tokens). Its delta brief 7046554283 asks exactly that, and this L1 does not pre-empt it.
  • Consistency. An empty must_not_contain is the common shape: 12 other cases in this same file carry [].

  • Checks at this head, run in a worktree.

    • The file parses as JSON.
    • node ui/scripts/check-skill-eval-tokens.mjs exits 0 ("Red under the chosen oracle: 0 (0 beyond the baseline)"; every must_contain token is taught by its own bundle).
    • Eval files are not ratcheted, so no CEILINGS row moves.
  • PR body. The area thread says it now reads five Fixes lines with the budget table and fold note re-pinned to this head. L2 7034102949 already read the five Fixes lines on the stored body. My earlier record's Shape line ("Part of") predates that edit.

  • Governance. check-governed-merges --pr 35757: Tier H, 225 lines. CI per the area thread: 31 success, 18 expected skipped, 0 failed. Not re-read here.

  • Landing terms. The following are owed, and this L1 replaces neither:

    • a same-head delta ## Contract review PASS closing S1 (brief 7046554283);
    • an authorized APPROVED review on this head.

    The area thread or seat then lands it with every check green.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTRf6qBRCqPh4JZaZL

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: ee231bb06076f6fddf2c5b4ae7052f67aaffef5c
Local-runs: none
Scope: skills/objectstack-data/evals/hooks-security-seeds-datasources.json, skills/objectstack-data/references/data-hooks.md, skills/objectstack-data/references/seeds.md, skills/objectstack-data/rules/relationships.md, skills/objectstack-query/evals/filters-pagination-search.json, skills/objectstack-query/rules/filters.md, skills/objectstack-ui/evals/README.md, skills/objectstack-ui/evals/record-page.json, skills/objectstack-ui/rules/record-page.md + scripts/check-skills-token-ratchet.mjs
Security-touching: yes

Delta round on record 7034102949 (head 0c80caa0b). Read for this record: that record; the net diff 0c80caa0b..ee231bb06; the PR body as stored now; the three comments since the record (7034135449, 7046554283, 7046618719); the 49 check-runs on the head. Main was read for two things: the brief's question about case 34, and the test that input comment 7034135449 cites. "main" below is origin/main at f44758b21, GitHub's main when this was written, 43 commits past the 1e018d6ed the first record read. That reading is where S2 comes from: main moved under one sentence this diff writes, after the first record.

① Derived judgments

Carries over from 7034102949 (accept sets, published surface, identifiers, the two CEILINGS rows), except the bullets below.

  • The delta is one commit, one file, one line. ee231bb06 sits on 0c80caa0b. It empties case 34's must_not_contain at skills/objectstack-data/evals/hooks-security-seeds-datasources.json:71. No other path differs between the two heads.
    • The file parses, holds 35 cases with unique ids in the same order, and is 361 lines, 34938 bytes (was 34962).
    • An eval fixture is not ratcheted and the script is byte-identical, so no row moves.
  • The fold departs from its sources in that one line. Case 34 no longer equals docs(skills): seeds.md teaches the blank-key load refusal and the unknown-object save refusal #35750's. Cases 33 and 35 and the 32 base cases are unchanged.
  • Gate verdicts on this head: 49 runs: 31 success, 18 skipped, 0 failed, 0 pending.
    • The lanes that read this diff are green: Type Check · source gates, Type Check · consumer gates, Lint · docs & code guards, Check Changeset, Test Core.
    • PR-body guards is green twice, on the push (run 44700869625) and at 08:17Z (run 44701316522).
    • The stale failure the first record explained was on the old head.
  • Main moved under the pull again. Main is 57 commits past the merge base ca4ec2a2f. One path still changes on both sides, the ratchet script, by main's same single hunk away from both rows. GitHub reports the pull mergeable and clean.
  • The security line above is re-stated as yes. The delta teaches no security behaviour. The head still carries the three data-hooks.md hunks the first record named, and the line is about the head.

② Semver level

Carries over. The changeset is byte-identical, '@objectstack/skills': patch is right for the same reason, and "gains one case on each refusal" is still true of case 34. One of its clauses is the third carrier of S2. Clause-②: no, Metadata-protocol: none and Skills-docs: updated here are unchanged on the stored body and in the changeset.

③ Boundary flags

Carries over for the five dev reports. No new dev report is on the PR. The commit message is the delta's only account, and it matches the tree.

The PR body as stored now. Eight lines differ from the body the first record judged. All eight hold against the tree:

  • The three head pins read ee231bb06.
  • The eval file reads 361 lines / 34938 bytes, which is the blob.
  • Eval fixtures read 71144 tokens (+1099). Summed from the 39 blob sizes: 70045 at the base, 71150 at the old head, 71144 here.
  • The bundle total reads 281823 (+1354), down the same 6 tokens as the one file (8741 to 8735). The total itself is the gate's count and was not re-derived.
  • The fold note names the one departure from docs(skills): seeds.md teaches the blank-key load refusal and the unknown-object save refusal #35750, with this record's S1 and the commit.
  • The Tests paragraph says the local gate readings were taken at 0c80caa0b and names what was re-run at this head. That is the body's account; the check-runs in ① answer for the head.
  • The five Fixes lines and the three declarations are unchanged.
  • Body lines 131 and 142 still give the placement account S2 is about, pinned to the merge base's line numbers.

Comments since the record. The brief 7046554283 was followed. The L1 delta ACCEPT 7046618719 was read as an input and nothing here leans on it.

Out-of-scope 1 of the first record is closed. The area thread answered it (7034135449: dismissed, no card). The item is settled by main, not by the reading the answer gives:

SQL push-down: not applicable; the delta is one JSON line. The PR author is objectstack-fleet[bot].

④ Design judgment

No must-fix.

S1: closed. The pair is gone, by the second of the two remedies the first record offered and the one main's sibling gate names ("or drop it", ui/scripts/check-skill-eval-tokens.mjs:136-140). No case in the three touched eval files now carries a forbidden token inside its own expected output. The delta touches nothing else.

Case 34 with the pair dropped. It still asserts what main does, and it did not lose its only discriminating token.

  • Main is unchanged here: the loader refuses a record whose key field is blank and goes on to the next record (packages/metadata-protocol/src/seed-loader.ts:2345-2362, blob-identical at the merge base, 1e018d6ed and f44758b21).
  • must_contain is defineSeed, externalId, refused. externalId is in the prompt and defineSeed is the form of any seed answer, so refused was and is the token that separates the answers. The bundle teaches it (head seeds.md:106) and the prompt does not carry it.
  • The grader is a literal substring match (packages/qa/scenarios/src/skill-evals/grade.ts:27-31). The reference answer passes. An answer that writes the two blank keys and never says the records are refused still fails.
  • What the pair alone caught was an answer that states the refusal and writes the blank keys anyway. That answer now passes (N7).

S2 (should-fix) — record-page.md step 2 says a body table is drawn above the field sections; main now draws it after them.
Head skills/objectstack-ui/rules/record-page.md:18-19, a line this diff rewrites: "draws the child as a full-width body table in the details above the field sections". The first record upheld it against main at 1e018d6ed, where the test read "before the field sections". #35824 (d19d87529, merged 11:04Z, after that record) reversed the order:

The clause has two more carriers in the diff: the reference answer of record-page.json case 1 (head :7, "already a full-width body table above the lead's field sections") and the changeset's "the body table is drawn above the field sections (it used to say after the first one)" (:32), which ships as CHANGELOG.md. No gate compares a layout sentence with the renderer, and the check-runs predate #35824, so the green runs do not answer this.

Repair: state main's order in all three carriers, or state no order, as the spec's own text does (packages/spec/src/data/field.zod.ts:2347-2357 on main: "a full-width table in the record's detail body", the layout being the page's to define). Re-pin body lines 131 and 142.

The rest of the body-table half still holds on main: the default itself (packages/spec/src/data/related-list-body-table.ts, blob-identical), "inlineEdit plays no part", true as a panel in the right column (test :113-117), and relatedLists as the order.

The other parts of ④ carry over, their files untouched by the delta and their cited sources unchanged on main: filters.md and eval 10, data-hooks.md and eval 33, seeds.md and eval 35, relationships.md, evals/README.md, and the two ratchet rows with their arithmetic.

Nits, none affecting correctness or the contract:

  • N1 to N6 of the first record stand. N1 weighs a little more on case 34: refused is now its one discriminating token, and it is the skill's word, not the loader's, whose message reads "was NOT loaded" (seed-loader.ts:507).
  • N7 (nit) — with the pair gone, nothing in case 34 fails an answer that states the refusal and still writes the two blank keys in the seed. The narrowed spelling would have kept that. The drop is a remedy the first record offered, so this is its accepted price, not a defect of the repair.

Implemented-by: claude/issue-35496-skills-docs-fold
Reviewed-by: session_01L6bhgTRf6qBRCqPh4JZaZL

VERDICT: PASS

Main now draws an unplaced body table after the field sections the record
page draws open; record-page.md step 2, eval case 1 of record-page.json and
the changeset said above them. The three now say what main does.

Claude-Session: https://claude.ai/code/session_01L6bhgTRf6qBRCqPh4JZaZL
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U

席位核对 — delta ACCEPT (L1-a)

维护者速读

  • 这次合进了最新主干,并改了一处技能说明:主干上 fix(plugin-detail): the Overview draws a record's own field groups before its master-detail tables, at the list's dense height #35824 已把记录页「概览」改成先画展开的字段分组、再画主从子表。所以技能文字、评测参考答案和变更说明都从「子表在字段分组之上」改成「子表在展开的字段分组之后」。
  • 对用户:AI 照技能回答「把任务表放最前面」时,描述的页面位置与产品实际一致,不再说错。
  • 风险很小,只改了三句文字,token 上限未动。合并前仍需 L2 同 head 复核和 os-zhuang 的批准(本 PR 属 Tier H)。

Delta: ee231bb0 (my delta ACCEPT 7046618719) → 370465feafb466a36b214ab16b4086430a6e1fe2.

  1. 5e1710787 merges main f44758b21. git diff-tree -p --cc shows 0 hand-resolved hunks.
  2. 370465fea makes three one-line edits. This is the S2 from L2 delta 7046910845.
    • skills/objectstack-ui/rules/record-page.md:19: above the field sections → after the open field sections.
    • skills/objectstack-ui/evals/record-page.json case 1 expected_output: the table is drawn after the lead's open field sections, and relatedLists puts it first among the tables, directly under those sections.
    • .changeset/35496-…md: the same placement words.

Checked against the code on main: #35824 (d19d8752, bodyTablePlacement in buildDefaultPageSchema.ts) says a master-detail body table follows the field sections drawn open, and that collapsed-by-default groups come after the tables. "After the open field sections" is therefore the exact wording, not "after the field sections". grep over skills/objectstack-ui, skills/objectstack-data and the changeset finds no remaining above the field sections.

Gates at this head:

  • check-skills-token-ratchet.mjs: record-page.md is 986/991 tokens (−5), and all 60 authored files are within ceilings, so no ceiling row moved.
  • check-skill-line-ratchet.mjs: 0 failures.
  • record-page.json parses. The case 1 assertions are unchanged (must_contain relatedListFilter/relatedLists; must_not_contain inlineEdit:/definePage(/slots tabs/kind full), and the new expected answer trips none of them.
  • check-governed-merges --pr 35757: Tier H, as before.
  • CI at read time: 47 of 48 runs completed, all success or skipped. Test Core (1/10) is still in_progress. This ACCEPT counts only once that run is green; a red there needs the seat to look before landing.

Landing terms (unchanged): same-head L2 delta on 370465fe (brief to follow from the seat), plus an APPROVED review from os-zhuang (Tier H). This review does not approve, mark ready, enqueue or request review.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTRf6qBRCqPh4JZaZL

Area b1-D · 2026-11-20T18:26Z · final green head 370465feafb466a36b214ab16b4086430a6e1fe2 (31 success, 18 expected skip, 0 failed, 0 pending). Two commits past the head record 7046910845 judged: 5e1710787 merges origin/main f44758b21 (no conflict), and 370465fea repairs that record's S2 in its three carriers (record-page.md step 2, the reference answer of record-page.json case 1, the changeset clause): "above the field sections" became "after the open field sections". The PR body carries an update block for this head. L1-a delta ACCEPT: 7047229547.

Delta brief handed to the same contract reviewer — PR #35757 @ 370465feafb466a36b214ab16b4086430a6e1fe2

You wrote records 7034102949 and 7046910845. Read the delta ee231bb06..370465fea and render ONE ## Contract review record on the new head, same shape (node scripts/pm/record-recognisers.mjs --template --paths skills/objectstack-data/references/seeds.md), PASS or FAIL.

Inputs — these and nothing else: your two records; the delta ee231bb06..370465fea (a merge and one commit: judge what they change in the pull's net diff against main, and in the main sources the taught sentences cite); the PR body as stored now; the comments on the PR since record 7046910845; the check-runs on 370465feafb466a36b214ab16b4086430a6e1fe2.
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions.

Scope — unchanged from your records. ⛔ READ-ONLY: no worktree, no checkout, no build, no test run, no gate re-run. Local-runs: says none or probe — REASON.

Judge: does the delta close S2 (name it by id alone, S2: closed, or say why not) — do all three carriers now say what main at the merged base draws, without over-claiming for closed trailing sections or the no-section case, and does case 1's reference answer still pass its own assertions and answer its prompt? Is the net diff against main otherwise the same files and hunks as at ee231bb06? With main merged, does any other taught sentence in the hits files now disagree with its cited source (you named the sources that moved)? Are both raised ceiling rows still at the measurement and the unmoved rows still met? Sections ①–④ carry over where the delta leaves them untouched: say so per section and re-judge only what moved, the stored PR body's update block included (②③). The Security-touching: line is re-stated. Grade any new finding must-fix, should-fix or nit; a clean round reads No must-fix, no should-fix.
Sign Implemented-by: with claude/issue-35496-skills-docs-fold and Reviewed-by: with session_01L6bhgTRf6qBRCqPh4JZaZL — the value is the FIRST thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTRf6qBRCqPh4JZaZL

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 370465feafb466a36b214ab16b4086430a6e1fe2
Local-runs: none
Scope: skills/objectstack-data/evals/hooks-security-seeds-datasources.json, skills/objectstack-data/references/data-hooks.md, skills/objectstack-data/references/seeds.md, skills/objectstack-data/rules/relationships.md, skills/objectstack-query/evals/filters-pagination-search.json, skills/objectstack-query/rules/filters.md, skills/objectstack-ui/evals/README.md, skills/objectstack-ui/evals/record-page.json, skills/objectstack-ui/rules/record-page.md + scripts/check-skills-token-ratchet.mjs
Security-touching: yes

Second delta round, on records 7034102949 (head 0c80caa0b) and 7046910845 (head ee231bb06). Read for this record: both records; the delta ee231bb06..370465fea, which is the merge 5e1710787 of main f44758b21 and the commit 370465fea; the PR body as stored now; the two comments since the last record (7047229547, 7047414877); the 49 check-runs on the head. "main" below is f44758b21, the merged base. GitHub's main is two commits past it (227a16ab5); their 17 paths include no file of this pull and no source a taught sentence cites.

① Derived judgments

Carries over from the two records, except the bullets below.

  • The delta is a merge and one commit.
    • 5e1710787 merges main with no hand-resolved hunk: its combined diff is empty. Ten of the pull's eleven files keep their ee231bb06 blobs through it. The ratchet script takes main's one 23-line hunk, which sits below both raised rows.
    • 370465fea changes three lines, one in each S2 carrier: skills/objectstack-ui/rules/record-page.md:19, skills/objectstack-ui/evals/record-page.json:7 and the changeset's :32.
  • The net diff against main is otherwise the same. It is the same eleven files, 170 lines added and 55 deleted. With hunk headers set aside, the net patch at the merge equals the net patch at ee231bb06 line for line, and the head differs from it by the three repaired lines only. The ratchet script's two hunks keep their positions.
  • Gate verdicts on this head: 49 runs: 31 success, 18 skipped, 0 failed, 0 pending.
    • The lanes that read this diff are green: Type Check · source gates, Type Check · consumer gates, Lint · docs & code guards, Check Changeset, Test Core.
    • PR-body guards is green twice, on the push (run 44789300150) and at 18:13Z (run 44790740850).
  • Main. The pull is two commits behind GitHub's main, and GitHub reports it mergeable and clean.
  • The fold. Six of the eight single-source files still equal their source heads. record-page.md and record-page.json now depart from docs(skills): a master_detail child is a record-page body table by default #35751's by the placement phrase. Case 34 departs from docs(skills): seeds.md teaches the blank-key load refusal and the unknown-object save refusal #35750's as the last record said.
  • The security line above is re-stated as yes. The delta teaches no security behaviour. data-hooks.md is the blob the first record read, so its three hunks stand.

② Semver level

Carries over. The changeset changes one clause and stays '@objectstack/skills': patch.

  • The clause now reads "the body table is drawn after the open field sections (it used to say after the first one)". Both halves are true: the first of main's renderer, the second of main's skill sentence.
  • "Both of those rules files are shorter than before, and neither one's token ceiling moves" still holds: record-page.md is 3944 bytes against 3961 on main, relationships.md 16790 against 16811.
  • Clause-②: no, Metadata-protocol: none and Skills-docs: updated here are unchanged on the stored body and in the changeset.

③ Boundary flags

Carries over for the five dev reports. No new dev report is on the PR. The two commit messages are the delta's account, they match the tree, and both carry the model-free trailer pair.

The PR body's update block and its re-pinned lines. Checked against the tree; all hold:

  • record-page.md reads 65 lines / 3944 bytes / 986 tokens under its row of 991, which is the blob.
  • The other four readings (2596/2596, 1898/1898, 10117/10122, 4198/4203) are the blobs and the rows.
  • Ceilings read 202279 to 202541. Those are the sums of the 60 rows on main and at the head.
  • Ratcheted tokens rise by 256: +127, +139, 0, -5 and -5 across the five touched files.
  • Eval fixtures read 74969 to 76080, summed here from the 42 blob sizes on main and at the head.
  • The bundle total moves by 256 + 1111, as stated. The two totals are the gate's counts and were not re-derived.
  • The eight cited sources it names as moved are the eight I find moved among the paths it cites. "Only the last two changed a taught fact" is my reading too (④).
  • Body lines 139 and 150 now give main's placement with main's line numbers.
  • The fold note names the two files that left their source.
  • The older budget table stays pinned to ca4ec2a2f and ee231bb06 and says so.
  • The five Fixes lines are unchanged.
  • The block's statements about local runs are the body's account. The check-runs in ① answer for the head.

Comments since the last record. The brief 7047414877 was followed. The L1 delta ACCEPT 7047229547 was read as an input and nothing here leans on it.

SQL push-down: not applicable; the delta is three prose lines and a merge. The PR author is objectstack-fleet[bot].

④ Design judgment

No must-fix, no should-fix.

S2: closed. S1: closed at the last head, and case 34's file is the same blob.

The three carriers against main. All three now say "after the open field sections". That is main's rule in main's words: an unplaced body table goes after the field sections the page draws open (ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts:844-859, :904-912; test buildDefaultPageSchema.bodyTables-27055.test.ts:57-68, :87-90, :205-209). No "above the field sections" is left in skills/ or the changeset.

The phrase does not over-claim:

  • Closed sections that trail the last open one follow the tables (test :236-296). "After the open" claims nothing for them.
  • A closed section between two open ones stays before the tables, which the phrase allows.
  • With every section closed the tables follow them all, and with no section the details node leads. The phrase is silent on both, and silence is not a claim.
  • A table a field group places sits at that group. That is the untaught exception the first record named.

Case 1 of record-page.json. The reference answer passes its own assertions: both required tokens are in it and none of the four forbidden ones.

  • "First among the tables, directly under those field sections" is main's stacking: the parent's relatedLists, then the derived order, from the last open section down (buildDefaultPageSchema.ts:848-849).
  • It answers the prompt as far as the skill teaches, and it says where the table lands instead of claiming the top of the page. That is the repair the last record asked for. What it leaves open is N8.

Other taught sentences against the sources that moved. Nine cited sources differ between the first base and merged main. None disagrees with a sentence this diff writes:

  • packages/core/src/utils/filter-tokens.ts and its test: the engine-internal leaf of ADR-0155. Nothing on the period key moves but an import line.
  • The comparand door test: wording of the junk-comparand message. The period-key block is unchanged, now at :624-655.
  • packages/spec/api-surface/data.json: no changed line names a taught identifier.
  • packages/spec/src/data/field.zod.ts: unit-field additions. The inlineEdit and relatedList text is identical, now at :2315 and :2343-2377.
  • ui/packages/core/src/index.ts: one more export. resolveFilterPlaceholders is still exported (:230-235).
  • buildDefaultPageSchema.ts and its test: the placement, now right, and the tabs, which no line of this diff describes.
  • ui/packages/app-shell/src/views/RecordDetailView.tsx: a list is still a body table by the spec's one predicate (:4345-4352), and inlineEdit is read for nothing there.

true as "a panel in the right column" holds at the skill's level of detail. A side list is still a node of the right column (test :113-117). Since #35763 it draws there as a summary card when it has records, with a tab of its own for the whole list (ui/packages/plugin-detail/src/RecordSummaryRail.tsx:21-34). The words are main's own, kept by this diff, and card #35902 carries the record page's new authoring.

Ceiling rows.

  • Both raised rows sit at the measurement: filters.md is 10382 bytes, 2596 of 2596 (script :1387); seeds.md is 7590 bytes, 1898 of 1898 (:1880).
  • The unmoved rows are met: data-hooks.md 10117 of 10122, relationships.md 4198 of 4203, record-page.md 986 of 991 (five bytes longer for the repair).
  • Main touched none of the five files. Its hunk in the script adds rows for other files only.

The other parts of ④ carry over, their files being the blobs the earlier records read: filters.md and eval 10, data-hooks.md and eval 33, seeds.md and evals 34 and 35, relationships.md, evals/README.md.

Nits, none affecting correctness or the contract:

Implemented-by: claude/issue-35496-skills-docs-fold
Reviewed-by: session_01L6bhgTRf6qBRCqPh4JZaZL

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Tier H approval request · 2026-11-20T18:36Z · @os-zhuang, this PR is ready for your Tier H review on head 370465feafb466a36b214ab16b4086430a6e1fe2.

What it does: the published AI skills learn five behaviours that already shipped but were not taught (this-week filters, hook/job scripts that fail to compile are refused, seed rows with an empty key are refused, seeds that point at a missing object are refused, master-detail child tables show as a body table on the record page by default). Prose, eval cases and two lines of the skills size budget only; no runtime code. One approval replaces the four Tier H PRs it folds (#35743, #35746, #35750, #35751, all closed with a pointer).

The seat lands after your approval (ruling C, 2026-09-13).

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 20, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Seat landing after Tier H approval · 2026-11-20T22:26Z · os-zhuang APPROVED head 370465fe (review 6000149635, 2026-11-20T22:20:15Z) and readied the PR. Under ruling C (2026-09-13), the owning seat lands it.

Records on this head: contract review PASS 7047583342 at CONTRACT_REVIEW_TIER, and L1-a delta ACCEPT 7047229547. Seat request 7047612364. Pre-landing checks on main today: check-governed-merges --pr 35757 reads Tier H, so it lands on the approval; landing-k reads K = 14, below 15. CI on this head finished with no red. The seat clears pm:awaiting-merge and arms auto-merge in this same step. The PR carries Fixes #35496, #35714, #35480, #35456 and #35692.

@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 20, 2026
Merged via the queue into main with commit 908d56c Nov 20, 2026
58 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-35496-skills-docs-fold branch November 20, 2026 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment