Repository navigation
docs(skills): objectstack-data and objectstack-automation SKILL.md become routers - #36158
objectstack-fleet[bot] wants to merge 13 commits into
Conversation
SKILL.md keeps the first checks, the run-time traps, the routing table and the sections the hosted door serves by heading; the text that left moved into the skill's existing rule and reference files. Claude-Session: https://claude.ai/code/session_017xRBcULDAsasAL8sAQTfET Co-authored-by: Claude <noreply@anthropic.com>
SKILL.md keeps the first checks, the routing table, the trigger rule and the seven sections the hosted door serves by heading; the text that left moved into references/examples-flows.md and integration-recipes.md. Claude-Session: https://claude.ai/code/session_017xRBcULDAsasAL8sAQTfET Co-authored-by: Claude <noreply@anthropic.com>
The moved data and automation text no longer repeats its SKILL.md section; restated key rows a check already refuses are gone. Claude-Session: https://claude.ai/code/session_017xRBcULDAsasAL8sAQTfET Co-authored-by: Claude <noreply@anthropic.com>
… routers The two SKILL.md rows follow their files down to the measurement, which pins the 9 KB budget; seven receiving rows move by the measured bytes that left the entry files. Claude-Session: https://claude.ai/code/session_017xRBcULDAsasAL8sAQTfET Co-authored-by: Claude <noreply@anthropic.com>
… re-pinned Claude-Session: https://claude.ai/code/session_017xRBcULDAsasAL8sAQTfET Co-authored-by: Claude <noreply@anthropic.com>
…oken Claude-Session: https://claude.ai/code/session_017xRBcULDAsasAL8sAQTfET Co-authored-by: Claude <noreply@anthropic.com>
…ctor-input text main's two hunks to objectstack-automation/SKILL.md land where this branch moved their sections: the connector_action row in references/examples-flows.md, the inbound-webhook bullets in references/integration-recipes.md. Three ratchet rows re-pinned at the merged measurement. Claude-Session: https://claude.ai/code/session_017xRBcULDAsasAL8sAQTfET Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#6 · sunhaolin · session_017xRBcULDAsasAL8sAQTfET {
"issue": 34770,
"status": "done",
"branch": "claude/issue-34770-skill-router-budget",
"pr": "https://github.com/objectstack-ai/objectstack/pull/36158",
"head": "b2226e0e (one merge of origin/main 411fe24b over 08639dad)",
"session": "session_017xRBcULDAsasAL8sAQTfET",
"premise_still_valid": true,
"summary": "skills/objectstack-data/SKILL.md (26,608 -> 8,998 bytes, 472 -> 166 lines) and skills/objectstack-automation/SKILL.md (28,192 -> 8,990 bytes, 479 -> 181 lines) are routers: four first checks, the traps that parse and then fail at run time, a routing table; frontmatter byte-identical. objectstack-ui has no diff: part 1 (PR #35077) already made it a router and it measures 8,687 bytes, 161 lines, seven traps at the base. No new file: text that left landed in seven existing rule and reference files, each receiving section cut to what its SKILL.md section no longer says, so skills/** is flat (1,165,890 -> 1,165,837 bytes, -53). The premise holds with one thing the dispatch did not name: the hosted door serves eleven sections of these two entry files by exact heading (packages/spec/scripts/skill-served-sections.json), 8,090 and 16,033 bytes on main, more than the budget. All eleven headings stay in SKILL.md, once each, at main's level and in their declared JSON forms, with shorter text; that is the fork in open_questions 1. The before and after eval rounds did not run: NOT MEASURED, owed.",
"tests": "Skill evals: NOT MEASURED. The runner's login guard passes in this container (claude auth status: loggedIn true, authMethod oauth_token) and a before-round started on the untouched base tree; I stopped it after 8 turns because every record read the login's seven-day window at 0.88 to 0.89 (allowed_warning; it resets at 03:00 UTC on 22 November 2026) and the runner stops scheduling at 0.9. The 8 turns are not a measurement. Owed, both rounds on the same side of PR #35649 (in both trees), about 190 turns each: `pnpm install && pnpm --filter '@objectstack/scenarios^...' build && pnpm --filter @objectstack/scenarios skill-evals --skills objectstack-data,objectstack-automation --concurrency 4 --out DIR`, once on main at 411fe24b and once on this branch head. Deterministic, at b2226e0e: ui/scripts/check-skill-eval-tokens.mjs exit 0 (every must_contain token is taught by its bundle); a both-trees script finds 40 tokens in 22 of 59 data cases and 26 tokens in 12 of 29 automation cases that the old SKILL.md held and the new one does not, every one in a file the routing table names (tabled per case in the PR body); a code-span loss check finds 6 of 225 data spans and 3 of 328 automation spans absent from the new bundles, each named and explained in the PR body. packages/spec check:skill-examples exit 0 (347 prose examples type-check, the moved os:check blocks included). packages/spec/scripts/platform-catalog.test.ts (the one test naming the edited ratchet script) under the verify lock: 1 file, 20 tests passed, VERDICT command-exit 0. No ablation: documentation and ratchet numbers only.",
"gates": "Local, at b2226e0e, exit codes captured before any pipe: dispatch-gates --commands printed 69 commands; all 69 ran, 68 exit 0 and 1 exit 3 (pnpm check:dual-build-cjs-loads, prerequisite not met, NOT MEASURED, left to CI). --ran: '✓ dispatch-gates --ran: 69 derived famil(ies) accounted for — 68 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).' Inside that list: check-skills-token-ratchet (60 authored files within their ceilings; the nine changed rows at +0; ratcheted authored 197420 / 202452; bundle total 288731) and its --self-test (104 cases pass), check:skill-served-sections (24 served sections, each heading exactly once; 10 JSON fences pass their validators), check:skill-docs, check:skill-refs, check:skill-links, check:skill-identifier-liveness, check:skill-compatibility, check:skill-frame-sync, check:doc-authoring, check:nul-bytes, check:published-files, check:pm-governed-merges, check:ratchet-remedy-authority. Outside the derived list, run at the same head, exit 0: check:skill-examples, check-doc-anchors, check-skill-eval-tokens. Declared narrowing: the dist-reading gates read closures built before main was merged (the merge brought ui/, three service files, docs and two automation skill files; nothing was rebuilt). overlap-check at b2226e0e against origin/main 411fe24b: main merges cleanly, #35129 merges cleanly, #36089 conflicts in skills/objectstack-data/SKILL.md; VERDICT overlap exit 1. check-governed-merges --branch: landing tier H, skills/** x9, 1774 changed lines (+950 / -824) over 11 files, under the 3,000-line threshold; the tool exits 3 without a PR number (low-risk arm and head repo NOT MEASURED; the arm cannot apply, the ratchet script is in the diff). CI on PR #36158 at report time, 39 check-runs: success 4 (Governed Surface Queue Guard, PR-body guards, Check PR Size, filter); in_progress 19 (Build Core, Plan Test Core shards, Test UI, Live E2E UI, Dogfood Regression Gate, Check Changeset, Auto Label, the six Lint lanes and Lint · ESLint, the four Type Check lanes, Lint · PM dispatch-gates); skipped 16; none red. Not waited for.",
"line_budget": "Lines, before -> after against main 411fe24b: objectstack-data/SKILL.md 472 -> 166; objectstack-automation/SKILL.md 479 -> 181; examples-objects.md 191 -> 297; field-types.md 267 -> 314; relationships.md 408 -> 418; security.md 334 -> 371; validation.md 329 -> 390; examples-flows.md 145 -> 449; integration-recipes.md 186 -> 212. The nine files: 2,811 -> 2,798 lines. All 14 SKILL.md files: 4,946 -> 4,342 lines, 260,553 -> 223,741 bytes. Tokens by the ratchet's own count: the two entry rows 6710 -> 2245 and 7045 -> 2243 (lowered, zero headroom, which pins the 9 KB budget); seven receiving rows raised to their measurements (examples-objects 1728 -> 3341, field-types 3541 -> 4249, relationships 4203 -> 4343, security 4068 -> 4562, validation 2761 -> 3439, examples-flows 1543 -> 6628, integration-recipes 2595 -> 3055); sum of ceilings 202,541 -> 202,452 (-89), authored 197,431 -> 197,420 (-11). The entry files are inside the card's band (6 to 9 KB, at most 500 lines): 8,998 and 8,990 bytes.",
"files_changed": [
"skills/objectstack-data/SKILL.md",
"skills/objectstack-data/references/examples-objects.md",
"skills/objectstack-data/rules/field-types.md",
"skills/objectstack-data/rules/relationships.md",
"skills/objectstack-data/rules/security.md",
"skills/objectstack-data/rules/validation.md",
"skills/objectstack-automation/SKILL.md",
"skills/objectstack-automation/references/examples-flows.md",
"skills/objectstack-automation/references/integration-recipes.md",
"scripts/check-skills-token-ratchet.mjs",
".changeset/34770-skills-data-automation-router.md"
],
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "7 GitHub MCP calls, all reads: issue_read x4 (card 34770 get and get_comments, decision record 34691 get and get_comments), pull_request_read x3 (PR 35077 get and get_comments, PR 36158 get_check_runs). No GitHub MCP write. Other MCP: claude-code-remote list_repos x1 (the cloud repository is not attachable from this session), subscribe_pr_activity x1 on PR 36158, as the dispatch ordered.",
"api_writes": "2 relay writes: one repository_dispatch carrying pr_create (PR #36158, draft, assignee sunhaolin, no labels; read-back 32,019 bytes sent, 32,019 stored, identical), and this os-dev-report comment through post-stamped. git push x4 to the card branch is not counted.",
"deviations": [
"scripts/check-skills-token-ratchet.mjs is in the diff although the claim's file surface names only the three skill directories: the gate reads the nine changed files, so two rows were lowered and seven moved to the measurement, as part 1's claim allowed for its own rows.",
"origin/main was merged once (b2226e0e): PR #36087 landed mid-task and conflicted in objectstack-automation/SKILL.md. Its two hunks were re-applied in main's words where their sections had moved (the connector_action row in references/examples-flows.md, the inbound-webhook bullets in references/integration-recipes.md); three ratchet rows were re-pinned. Nothing was rebuilt after the merge.",
"One teaching correction rides along: objectstack-data showed a `{record.tags.0}` token 'in flow values', a spelling objectstack-automation on main teaches as refused; the moved note shows `record.tags[0]`.",
"Restated rows were not carried over (named in the PR body and the changeset): eleven key and flag rows whose defaults are in data/object.zod.ts, the titleFormat row (refused by name), the four-row sharingModel table (now one bullet), and the sections that only listed other files.",
"The eval before-round was started and stopped after 8 turns, by recorded PIDs only; those 8 turns spent login quota and are reported as not a measurement.",
"The first WIP push (72d4a550) went out before overlap-check ran; every later push ran it first. All four pushes went out with VERDICT overlap exit 1 standing against open PR #36089 (and, until it merged, #36087): the check reports, it was not used as a gate.",
"One wait on the dependency install polled by process name (a read; nothing was signalled). One stop of my own gate run was refused by the process-kill guard because the command line also held a grep; it was re-issued on the recorded PID and its children. Nothing was killed by name.",
"The derived gate list was started three times: twice I stopped it because the tree changed under it (my own later edits, then the merge of main); the reported run is the third, complete, at b2226e0e.",
"Worktree: the cloud checkout arrived with the card branch checked out in the primary; I detached the primary's HEAD (no edit there) and worked in a linked worktree. No empty-branch push (platform-designated branch).",
"The PR body carries `Fixes #34770` as dispatched although the card's eval done-when is NOT MEASURED.",
"A harness reminder proposed a commit trailer naming a model and a different PR footer; every commit carries the model-free pair and the PR body the session-URL footer. No model name is in any commit, the changeset, the PR or this comment.",
"test:repo, the type-check lanes and the dogfood battery are left to CI."
],
"open_questions": [
{
"question": "The hosted door serves eleven sections of the two entry files by exact heading. They cannot stay whole inside a 9 KB entry (8,090 and 16,033 bytes on main). This PR keeps every heading in SKILL.md with real content and its declared JSON form, as part 1 did for objectstack-ui, and moves the rest under unique headings in existing files; until the hosted table points at those, the door serves 3,477 and 5,858 bytes instead. Is that the wanted landing?",
"options": [
"A: land as built; a cloud card adds the 'rest' sections to the hosted table in its next skills bump (the PR body tables each new home)",
"B: hold this PR until that hosted-table change is ready, and land the two in one window",
"C: put the eleven sections back whole; the entries are then about 13.6 KB and 19.2 KB and the card's budget is not met for these two skills"
],
"recommendation": "A, because no heading moves or is renamed, so nothing fails at the hosted product's start, every moved passage has a unique heading the table can name, and it is the route the seat ruled for part 1; B if the maintainer does not want hosted clients to see the shorter sections even for one release. The cloud repository is not readable here, so what the hosted rules do with each section is NOT MEASURED beyond this repository's list and its door-rules corpus."
},
{
"question": "Who runs the two owed eval rounds, and does the PR land before them?",
"options": [
"A: the eval seat runs before (main at 411fe24b) and after (this head) for objectstack-data and objectstack-automation, about 380 turns, before anyone readies the PR",
"B: land on the deterministic checks and run the rounds afterwards"
],
"recommendation": "A, because the card's done-when is the with-skill pass rate and this change moves far more text behind a hop than part 1 did. This account's login read 0.88 to 0.89 of its seven-day window, so the rounds need another login or the reset."
},
{
"question": "references/examples-flows.md is now 26.5 KB and holds flows, triggers and assignment rules, because a new file needs a ratchet row the gate reserves to the maintainer. Split it?",
"options": [
"A: leave it (this PR)",
"B: a follow-up moves it into rules/flows.md, rules/triggers.md and rules/assignment-rules.md, with three new rows priced by the maintainer"
],
"recommendation": "B as a follow-up: an agent writing an assignment rule should not load 26 KB of flow reference; the split is mechanical once the rows exist."
},
{
"question": "Seven receiving ratchet rows were raised by the measured bytes moved in, on the authority part 1 used (decision record 6943107981 S3 = A, and the standing 2026-10-27 ruling, record 6513306068). No ruling names these seven files. Is that authority accepted again?",
"options": [
"A: accept, as on PR #35077 (sum of ceilings falls 89 tokens, authored falls 11)",
"B: the maintainer rules the rows on this PR"
],
"recommendation": "A; the Tier H approval this PR needs anyway is the place it is read."
},
{
"question": "Open PR #36089 adds a `color` key to the Object Definition JSON and a `color` row to the optional-properties table, and conflicts with this PR in objectstack-data/SKILL.md. Which lands first?",
"options": [
"A: this PR first; #36089 re-applies its row in references/examples-objects.md § Object keys and its JSON key in SKILL.md",
"B: #36089 first; this PR merges main and carries both hunks to those homes in a further round"
],
"recommendation": "The seat's call; A keeps #36089's diff three lines, B costs this PR one more merge round and a re-pin of two rows."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: cloud · the hosted table (packages/service-ai-studio/src/skills/published-refs.ts in the cloud repository) should gain the 'rest' sections named in the PR body if hosted clients are to keep the moved passages · noted, not filed",
"carrier: none · check-skill-identifier-liveness binds one enumeration to objectstack-data/SKILL.md by heading (Access depth), which costs about 0.6 KB of the entry; moving it needs that script's binding re-pointed, outside this card's surface · noted, not filed",
"carrier: none · the skill-evals runner has no with-skill-only mode, so a before/after comparison pays for the no-skill arm twice (about half of the 380 owed turns) · observation, not filed"
],
"Dev-effort": "xhigh",
"Rounds": 1
}Generated by Claude Code |
…ld group, not inlineEdit (objectstack-ai#36280) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XC63go34oEMBFaBgqpoDC8N)_ Fixes objectstack-ai#36252 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:照着数据技能里的「检查规则表」写应用的作者和 AI,以前读到的是「明细子表没开行内编辑就会被提示」,而检查实际看的是「主表有没有用字段分组把明细放进表单」;现在这三条规则,以及字段类型表里「可重复项」那一行,都按实际判断来写。 - 为什么做:属于「对外发布的技能包教的内容要和运行时一致」这条线,替按技能生成应用的作者和 AI 解决「去调一个已经不起作用的开关、却猜不到检查什么时候报」的问题。 - 出错会怎样:只改技能文字和一条变更说明,不动检查本身;写错的话作者读到的仍是一段不准的说明,直接回退这个 PR 即可。 - 要你做什么:无。 ## What changes State at head `a5ea2daa9` (one commit on `origin/main` `c30ce97cd`). Text only, in the published catalog; the rule ids and the lint are unchanged. `skills/objectstack-data/references/lint-rules.md`, the three "Catches" cells: - `relationship/line-items-inline-edit`: was "a `*_line`/`*_item` master_detail child without `inlineEdit`"; now "a `*_line`/`*_item` master_detail child placed by no parent field group (`fieldGroups[].relatedList`)". - `relationship/inline-edit-needs-bulk`: was "`inlineEdit` while the parent's or child's `enable.apiMethods` omits `'bulk'`"; now "a child a group places while the parent's or child's `enable.apiMethods` omits `'bulk'`". - `relationship/association-inline-edit`: was "an association (comment/audit/activity) marked `inlineEdit` (clutters the parent form — use a detail-page related list)"; now "an association (comment/audit/activity) a group places (leave it a tab)". `skills/objectstack-data/rules/field-types.md`, seat-added scope (seat comment 7073941454 on PR objectstack-ai#36250), the `repeater` row: "a typed list is a child object (`master_detail`, `inlineEdit: 'grid'`)" becomes "a typed list is a `master_detail` child a parent `fieldGroups[].relatedList` names". Three punctuation trims in the same section pay for it (the section's intro line and the `composite` and `repeater` rows: an em dash becomes a comma or a colon, two spaced slashes close up); no teaching is removed. Changeset `.changeset/36252-lint-rules-field-group.md`: `@objectstack/skills` patch. This agrees with the rule that PR objectstack-ai#36250 teaches in `rules/relationships.md`: a parent field group naming the child places it in the record details and the entry form, and `inlineEdit` only picks how the rows are edited. <details><summary>Each claim against the lint source (origin/main c30ce97)</summary> - None of the three rules reads `inlineEdit`. In `packages/lint/src/data-model-rules.ts` the word occurs only in comments and in one unrelated `fix` string (see Acceptance notes). - R5, `relationship/line-items-inline-edit` (severity `suggestion`): fires on a `master_detail` field of an object whose name matches `LINE_ITEM_RE` when `isGroupPlaceableRelationship(def)` holds and `formInlines(...)` is false. `formInlines` is `isGroupPlaceableRelationship(def)` and `fieldGroupsPlaceRelationship(parent.fieldGroups, child, field)`, which reads each parent group's `relatedList` (a bare child name, or `object.field`). Its `fix` line adds a `relatedList` group to the parent's `fieldGroups`. - `lintInlineEditBulk`, `relationship/inline-edit-needs-bulk` (severity `warning`): for every group-placeable relationship that a parent field group places, it warns once per object, parent or child, whose declared `enable.apiMethods` does not allow `bulk`. - R6, `relationship/association-inline-edit` (severity `warning`): fires on a relationship of an association-named object when `formInlines(...)` is true, i.e. a parent field group places it. Its message says to leave it a tab of the record page; its `fix` removes the group. - `repeater` row: the spec's own route sentence for a typed list (`EMBEDDED_JSON_TYPED_LIST` in `packages/spec/src/data/authoring-key-lint.ts`) reads: a child object whose `master_detail` field points back at this object; a field group on this object whose `relatedList` names that child edits its rows as an inline grid on this object's form. </details> ## Evals No eval case pins the old wording, so none is changed. Searched `skills/*/evals/*.json` for the three rule ids, for the old cell wording, and for `repeater` and "typed list": zero hits. Three cases mention `inlineEdit` for other reasons (objectstack-data case 2 and objectstack-ui views case 6, both rewritten by PR objectstack-ai#36250; objectstack-ui record-page case 1, see Acceptance notes). No eval round was run (a round is the eval seat's). ## Tests All readings at head `a5ea2daa9`. <details><summary>Token ratchet, size and line budget</summary> - `skills/objectstack-data/references/lint-rules.md`: 49 lines and 3735 bytes before, 49 lines and 3736 bytes after; 934 tokens before and after (ceiling 934, headroom 0). - `skills/objectstack-data/rules/field-types.md`: 267 lines and 14163 bytes before, 267 lines and 14162 bytes after; 3541 tokens before and after (ceiling 3541, headroom 0). - Whole package: every `SKILL.md` summed is 4947 lines before and after (none is touched); the ratchet's bundle total is 288824 tokens after, and the same before by the per-file identity above (both files keep their token count; the before total was not run separately). - `node scripts/check-skills-token-ratchet.mjs`: exit 0, "60 authored bundle file(s) within their ceilings". No ceiling row is moved. - Diff: 3 files, +16 / -6; net added lines 10 (changeset 10, skills 0), inside the card's budget of 12. </details> <details><summary>Derived gates and the skill-evals test</summary> - `node scripts/pm/dispatch-gates.mjs --commands`: 48 commands. All 48 ran under `os-verify-lock.sh`; 43 answered exit 0 on the first pass, and 5 answered exit 3 (PREREQUISITE NOT MET, nothing built yet): `check:doc-formula-expressions`, `check:dts-closure`, `check:dual-build-cjs-loads`, `check:lean-entry-closure`, `check:sourcemap-no-sources-content`. After `pnpm build` (120 tasks successful) the same five commands answered exit 0. - `--ran` reconciliation: "48 derived famil(ies) accounted for, 48 run, 0 NOT-MEASURED", exit 0. - `pnpm --filter @objectstack/scenarios exec vitest run --maxWorkers=2 test/skill-evals/skill-evals.test.ts`: Test Files 1 passed (1), Tests 38 passed (38); lock line `VERDICT command-exit 0`. - `node scripts/pm/overlap-check.mjs --branch=claude/issue-36252-lint-rules-field-group`: `VERDICT clean exit 0`; PR objectstack-ai#36158 shares `rules/field-types.md` and merges cleanly with this branch. - No ablation: the diff changes no behaviour a test pins. </details> ## Acceptance notes - Precision limit, declared: the `line-items-inline-edit` cell does not spell the rule's one precondition, that the FK is one a group may place. A line-item FK that itself declares `relatedList: true` or `false` is never flagged, because a group naming it would be refused. The cell stays at the table's summary level, like its `*_line`/`*_item` shorthand for the ten suffixes the lint matches. - The `line-items-inline-edit` cell uses the file's one byte of headroom (3735 to 3736 bytes, 934 tokens either way). The `field-types.md` edit is one byte smaller than before, so PR objectstack-ai#36158's measured row for that file cannot be pushed up by this change. - Out of scope, not changed here (lint source): `packages/lint/src/data-model-rules.ts`, the `fix` line of `field/embedded-sub-fields`, still says to make the typed list a child object and that `inlineEdit: 'grid'` edits it inline. The spec's route sentence and that rule's explanation text already name the parent field group. Read, not run. - Out of scope, not changed here (skills, same family): `skills/objectstack-data/rules/relationships.md` § Detail-page related lists and `skills/objectstack-ui/rules/record-page.md` item 2 still teach that a `master_detail` child with no `relatedList` is a body table by default, and objectstack-ui eval `record-page.json` case 1 expects that answer. `packages/spec/src/data/related-list-body-table.ts` says it is a tab by default and a body table only when a parent field group names it. Read against the spec source, not run. ## Verification Read first, by risk: 1. `skills/objectstack-data/references/lint-rules.md`, the three changed rows (the published claim about when each rule fires). 2. `skills/objectstack-data/rules/field-types.md`, the `repeater` row and the two byte-paying lines beside it. 3. `.changeset/36252-lint-rules-field-group.md`. Two-minute check: `node scripts/check-skills-token-ratchet.mjs` exits 0 and prints `lint-rules.md 934 / 934 (+0)` and `field-types.md 3541 / 3541 (+0)`; then `grep -c "inlineEdit" skills/objectstack-data/references/lint-rules.md` prints `0` (it printed `3` on `origin/main` `c30ce97cd`; the rule ids are spelled `inline-edit` and are unchanged). --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5kDGa1ViantgrfH797)_ Co-authored-by: Claude <noreply@anthropic.com>
…child list still shows on a declared tab list (objectstack-ai#36527) <!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9WF2JA4aXQRy81L1mg6vYtR)_ Fixes objectstack-ai#35902 Clause-②: no Metadata-protocol: none ## 维护者速读 - **用户能看到什么变化**:用 AI 搭建应用的人,让自己的扩展包给别人的对象加字段或子表时,AI 现在会写明它们排在哪个字段、哪个页签后面;技能和指南不再说「别的包加的子表会被隐藏」;CRM 示例的客户对象演示了页签清单和分组自己列字段。 - **为什么做**:属于「记录页的页签和字段分组改由父对象一处声明」专题:平台的四种新写法都已合并,这一批补上最后一种(扩展包声明位置)的技能、指南、评测和示例,免得「做了没人知道」。 - **出错会怎样**:AI 可能没写位置或写错,扩展包带来的字段和页签就按默认排在末尾,不丢数据;撤回只需回退这一次合并。 - **要你做什么**:批准合并这份技能与指南的更新。 ## What changes The fourth form of the parent-declared record page, an extension's `place`, reaches the skills, the guide and an eval; the sentence that said another package's child list is hidden goes; one repository example declares a tab list. | File | Change | |:--|:--| | `skills/objectstack-data/SKILL.md` § Object Extension Model | `defineObjectExtension` takes `place`. One example with a field entry and a list entry, the group form `{ group: { key, label }, after }`, `before` as the other anchor, and the condition: placement applies where the target declares `fieldGroups` / `relatedLists`. | | `skills/objectstack-ui/rules/record-page.md` step 2 | "A child list another package adds is hidden by a `relatedLists` that does not name it (no package places its own list yet)" becomes "still shows, after the named lists or where its extension's `place` puts it (objectstack-data)". | | `skills/objectstack-data/evals/objects-fields-relationships.json` case 26, `evals/README.md` | An add-on package puts its Tax ID field after Industry in the account's Basic group and its Contracts tab after Opportunities, on an account whose tab list names another child list after Opportunities, so a missing list placement draws a different page. Expected: two `place` entries on the package's own extension, no redeclared `crm_account`, no `overrides:`. | | `content/docs/ui/pages.mdx`, record page section | The same sentence corrected (shows where the extension places it, or at the end of the tabs, before approvals and the activity stream); a paragraph and a checked `defineObjectExtension` example for `place`, linking the object-extensions guide, which already documents the key. | | `examples/app-crm/src/objects/account.object.ts` | `fieldGroups` listing each group's `fields`, and `relatedLists` naming every tab in order, one entry with its own `columns`, the two built-ins by object name. | | `examples/app-crm/src/translations/crm.translation.ts` | zh-CN labels for the two new groups. | | `.changeset/35902-skills-extension-place.md` | New, `@objectstack/skills` patch. | | `.changeset/35902-skills-related-lists-tabs.md` | DELIBERATE CORRECTION, see below. | What the skills already taught before this change, and is not in the diff: the tab list with the three built-ins, an entry's `label` / `columns`, a group's `fields`, and the group that places a child table, each with its example and its eval (record-page evals 1, 4, 5, 6), and the repository examples of a group placing a child table (the showcase invoice, the CRM example's opportunity). **DELIBERATE CORRECTION of a pending release note.** `.changeset/35902-skills-related-lists-tabs.md` is on main and unreleased. Its first bullet said: "A child list another package adds is hidden by a `relatedLists` that does not name it." The platform change that let a package place its own list made that false before any release carried it. The sentence now reads: "A child list another package adds still shows, after the named lists or where that package's extension places it." Nothing else in the note changed. `Check Changeset` is red on this by design; no `skip-changeset`. ### Skill size readings | | main `316f7571` | This head | |:--|:--|:--| | `skills/objectstack-data/SKILL.md` | 473 lines · 26,832 bytes · 6,703 tokens (ceiling 6,710) | 473 lines · 26,858 bytes · 6,710 tokens (ceiling 6,710, not raised) | | `skills/objectstack-ui/rules/record-page.md` | 64 lines · 3,952 bytes · 988 tokens (ceiling 991) | 64 lines · 3,958 bytes · 990 tokens (ceiling 991, not raised) | | All 14 `SKILL.md` files | 4,950 lines · 261,027 bytes | 4,950 lines · 261,053 bytes | | Ratcheted (authored) tokens | 197,533 | 197,542 | | Eval fixtures (measured, not ratcheted) | 78,177 | 78,658 | | `skills/**`, 114 files | 1,172,198 bytes | 1,174,155 bytes | The data skill's entry file had 7 tokens of headroom and the `place` paragraph costs about 75, so the rest is paid in the same file by shorter wording, no ceiling moved. Every inline code span and every link of the file on main is still in it (compared by script), except the one signature that gained `place`. What the shorter wording no longer says, all prose: "on 31/31 objects in the reference apps" (twice, on `pluralLabel` and `icon`; the instruction to author both stays), "the fundamental data entity in ObjectStack", the lead-in "The full table, per-type config and traps" (the link stays), "stored and read ... on the record" in the multi-value lookup note, "range" before `0–999`, "incorrect/correct" before "examples", and "This axis is distinct from `ownership`, which decides" (now "`ownership` is a separate axis"). ## Tests - No runtime behaviour changes, so no ablation. - **The taught shapes parse.** The skill's example, its group form, the guide's example and a `before` entry go through the built spec's `defineObjectExtension`: 4 of 4 accepted. Control leg: an entry with both `after` and `before`, and an entry with a misspelt key, are both refused, so an accept is a measurement. - `pnpm --filter @objectstack/spec run check:skill-examples`: exit 0, `349 prose examples type-check across 3 surface(s)`, the guide's new block among them, against a spec built at this base (full build under the verify lock, `VERDICT command-exit 0`). - **The example app.** `@objectstack/example-crm`: `typecheck` exit 0; `test` 7 files, 51 tests passed (under the verify lock, `VERDICT command-exit 0`); `validate` "Validation passed", no warning. - **Eval token reachability.** `node ui/scripts/check-skill-eval-tokens.mjs`: exit 0, "Every must_contain token is taught by its own skill bundle." - **Skill evals: NOT MEASURED.** No eval round ran here. The card's "four eval cases pass" and the new case 26 are owed a round: `pnpm --filter @objectstack/scenarios skill-evals --skills objectstack-data,objectstack-ui`. ## Acceptance notes 1. **This slice is the card's last.** Item 5 of the card (HotCRM declares `relatedLists` on its five main objects) lives in another repository and is carried by objectstack-ai/hotcrm#2742, which the seat filed from the hand-off on the card (comment 7082792445); it waits for a release that carries these keys. Seat record: card comment 7083107636. 2. **Overlap.** `overlap-check` at this head exits 1 on two open pull requests. The draft that turns the data skill's entry file into a router, objectstack-ai#36158, rewrites `skills/objectstack-data/SKILL.md` whole: this pull request does not wait for it (the seat's call), and whichever lands second merges main and replays its entry-file text. If the router lands first, the `place` paragraph belongs in `references/examples-objects.md` § Object Extension Model, where that draft moves the section, and the wording payments here are dropped. The release pull request (`chore: version packages`) deletes every pending note, so a corrected pending note conflicts with it by construction; the release job regenerates it from main. 3. **A `relatedLists` entry's `label` has no translation key that I could find.** The CRM example's entries carry no `label` for that reason. Read from `packages/spec/src/system/translation.zod.ts`: it has `relatedListTitle` under the child's field and `_sections` for groups, and no key for a tab-list entry's `label`. The console's reading was not traced and nothing was reproduced at run time. The seat filed the observation as objectstack-ai#36528. 4. **The example lives in the CRM example, not the showcase.** The showcase account's record page is pinned by an end-to-end shape test, and the CRM example's account had neither key. 5. **The multi-value lookup note keeps its `{record.tags.0}` token.** The router draft above records that the automation skill refuses that token in a value slot and corrects it; this change only shortened the sentence around it. 6. **Merging ends the card while its eval done-when is unmeasured.** The round named under Tests is owed; the seat filed objectstack-ai#36535 as its carrier, for the eval lane to run on main after the merge. 7. **Guide example.** The record page section of the guide carries the full Quote example from the parent card already; this change adds the extension half beside it. ## Verification **Read first, by risk:** 1. `skills/objectstack-data/SKILL.md`: the payments. Risky hunk: the Object Extension Model guard, where "`extend` is not object-level `ownership`" replaced a longer sentence; the four enum values stay. 2. `skills/objectstack-ui/rules/record-page.md` step 2: one sentence flips from "hidden" to "still shows". 3. `examples/app-crm/src/objects/account.object.ts`: the declared tab list names all four child lists, so no tab the page had is dropped. **Two-minute check:** `node scripts/check-skills-token-ratchet.mjs`. Expected: the last line reads `✓ check-skills-token-ratchet: 60 authored bundle file(s) within their ceilings`, and the two changed rows read `6710 / 6710` and `990 / 991`. **Head `8c346d66`**, two commits. The readings below were taken at `b9cdb233`; the second commit, from the contract review's finding S1, changes one eval fixture (the prompt's tab list and one sentence of the expected answer) and one comment in the CRM example. Re-run at `8c346d66`: `check-skills-token-ratchet` exit 0, `ui/scripts/check-skill-eval-tokens.mjs` exit 0, `check-nul-bytes` exit 0, the CRM example's `typecheck` exit 0. Exit codes captured before any pipe. **Derived list.** `node scripts/pm/dispatch-gates.mjs --commands` printed 90 commands. All 90 ran at `b9cdb233`: 89 exit 0, 1 exit 1. The exit 1 is `node scripts/check-empty-changeset.mjs --base origin/main`, red by design on the corrected pending note (DELIBERATE CORRECTION above); its other half reads "No empty-frontmatter changeset introduced by this diff (2 declaring changeset(s) added)". Reconciliation: `✓ dispatch-gates --ran: 90 derived famil(ies) accounted for — 90 run, 0 NOT-MEASURED (a DERIVED zero — all 90 recorded an exit code and none of them is 3).` The dist-reading gates in that list read a full build of this tree (`pnpm build`, 13m40s, `VERDICT command-exit 0`). The build ran before the last wording edits to the two skill files and the guide; none of those files is a build input of the packages the gates read, and the gates themselves ran after the final commit. **Outside the derived list:** `node scripts/pm/overlap-check.mjs` exit 1 (Acceptance note 2); the example app's three commands and the eval-token check under Tests. **Not run locally, CI's:** the type-check lanes, `Build Core`, `Test Core`, the repo lint, the docs build. --- _Generated by [Claude Code](https://claude.ai/code/session_01ADHkmTSjgh1xF2oiht7G2Z)_ <!-- signed: repo:objectstack#2 · os-steve · session_01ADHkmTSjgh1xF2oiht7G2Z --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…hole arrangement (fieldGroups, relatedLists) (objectstack-ai#36568) <!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi91tYCagMT6JaQ6YA5YqnWwi)_ Fixes objectstack-ai#36541 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用 AI 写配置的客户,想给已安装软件包里的对象重排记录页(换字段分组、调页签顺序、隐藏页签)时,AI 现在知道这份排布要写在该软件包配套的环境定制包里;以前技能没讲这件事,AI 要么不会用,要么写进别的扩展包后被拒收。 - 属于「记录页标签与分组」专题:环境管理员整页排布的能力上一步已经上线,这一步把它教给 AI 作者,并补一道考题。 - 如果教错,AI 会把排布写到会被拒收的位置,保存或校验时当场报错并给出改法,数据不受影响;撤回这次改动,技能文字就回到原样。 - 审批这次对外技能文字的改动(技能包属于受管范围,需要你来合入)。 ## Fix round 1 Head `90a673de67`, one commit on top of `0db54351e8`, answering the contract review of that head (record 7087999230). - **S1, the refused writer is named by what the judge tests.** The paragraph's last sentence read "In any other package both keys are refused at those doors". That is false for a `.custom` package that is not the object's pair: `judgeExtensionArrangement` returns no refusal when `isCustomizationPackage(packageId)` holds (`packages/metadata-protocol/src/protocol-extension-arrangement.ts:94`; the predicate is the id's `.custom` suffix over a valid base, `packages/spec/src/kernel/customization-package.ts:119`), and the key descriptions say such a package "is not refused at those doors: the registry merge does not apply what it writes here ... and the boot log names it" (`CUSTOM_ARRANGEMENT_WRITER`, `packages/spec/src/data/object.zod.ts:6832`). Both files read again on `main` at `abe95a950d`: unchanged since `d463c46f`. The sentence now reads "Outside a `.custom` package both keys are refused at those doors: use `place`." The changeset's first bullet carries the same words. - **Bytes.** The new wording is 7 bytes longer and the file had exactly 7 priced bytes of headroom, so nothing more is cut: 26,853 to 26,860 bytes, 6,709 to 6,710 tokens, ceiling 6,710 unchanged. - **N1, case 27 asserts `place:`.** The token `place` also matched the word "replaces", so an answer that never said what the add-on package writes could pass. It is `place:` now, the token case 26 uses; the reference answer already contains `place: [`. Regraded below. - **N2 is left as it is.** No byte remains after S1, and the review ties the clause to bytes being left. ## What changes **One paragraph in `skills/objectstack-data/SKILL.md`, § Object Extension Model** (lines 386 to 390 at head `90a673de67`), inside the paragraph about an object an installed package ships, right after the sentence that lists the doors of the `__c` rule: > Only the pair's extension may also write `fieldGroups` and `relatedLists`, shaped as on an object. A written key replaces that arrangement whole (the owner's and every `place`): an unlisted field shows after the last group, an unnamed tab still shows after the listed ones, and `{ list: 'crm_note', hidden: true }` hides a tab. Outside a `.custom` package both keys are refused at those doors: use `place`. "Those doors" are the ones the sentence before it names: save, publish and install, `os validate` and `os build`. **What it teaches is what is on `main`** (PR objectstack-ai#36517, merge commit `45ef94ef`; ADR-0146 D2, D3 and D10), read at `d463c46f`: | Sentence | Where it is on `main` | |:---|:---| | The two keys, in an object's shapes | `packages/spec/src/data/object.zod.ts:7070` (`fieldGroups`, an array of the object's group schema) and `:7082` (`relatedLists`); the key list is `CUSTOM_ARRANGEMENT_KEYS`, `packages/spec/src/data/field-customization.ts:124` | | `{ list, hidden: true }` | `packages/spec/src/data/object.zod.ts:6703`: `hidden` is a boolean on the extension's entry only; an object's own entry refuses it by name (`:1347`) | | A written key replaces whole; an unlisted field after the last group; an unnamed tab still shows after the listed ones | the two key descriptions, `packages/spec/src/data/object.zod.ts:6837` and `:6863`; the fold is `applyCustomArrangement`, `packages/objectql/src/registry-custom-arrangement.ts:144` | | Only the pair writes them; outside a `.custom` package they are refused and the writer is told to use `place` | one judge, `judgeExtensionArrangement`, `packages/metadata-protocol/src/protocol-extension-arrangement.ts:91`. Its answer is `VALIDATION_ERROR` / 400 (`:116`); the message, measured on this PR's eval shape: "`relatedLists` in the extension of object 'crm_account' in package 'acme_contracts': only the object extension of a base's paired `.custom` package declares an object's whole arrangement (ADR-0146 D10). Remove the key and place what this package brings with `place`, e.g. `place: [{ list: 'contract', after: 'opportunity' }]`." | | The doors | save `packages/metadata-protocol/src/protocol-save.ts:1390`; publish `protocol-history-and-publish.ts:1062`; restore `protocol-authoring-gate.ts:129` (all three through `objectExtensionItemRefusal`, `protocol-object-extension-item.ts:257`); `os validate` `packages/cli/src/commands/validate.ts:895`; `os build` `packages/cli/src/commands/compile.ts:948`; install `packages/cloud-connection/src/marketplace-install-local-plugin.ts:3192` (`VALIDATION_ERROR` / 422, one row per key in `details.refusals`) | **Paid for in the same file; the token ceiling is not raised.** The file had 0 tokens of headroom (6,710 of 6,710). The paragraph is 407 bytes (400 before fix round 1); five restatements are cut, 405 bytes, and the content of each stays in the bundle. The remaining 2 bytes come out of the 2 priced bytes the file had under its ceiling: | Cut from `SKILL.md` | Bytes | Where the content stays | |:---|---:|:---| | § Validation Patterns, the note that on insert an omitted optional field reads as `null` in a predicate | 240 | `rules/validation.md` lines 80 to 83 (the same note) and line 17 (a `script` rule judges the merged record: prior row plus this write) | | § Index Patterns, "`unique` defaults to `false`; omit it when that is what you mean." | 66 | `rules/indexing.md` line 11 | | Quick Reference, the lifecycle row's "append-only objects must declare one" | 42 | the `lifecycle` row of the optional-properties table in the same file ("Required for append-only, high-write-rate objects") and `rules/lifecycle.md` line 14 | | The `sharingModel` heading's "(ADR-0090 D4; legacy aliases removed)" | 38 | `references/lint-rules.md` line 23 (`security-owd-alias`: a legacy spelling is an error, ADR-0090 D4) | | The `pluralLabel` row's `(e.g., "Accounts")` | 19 | the object JSON example in the same file (`"pluralLabel": "Accounts"`) | **The two readings** (tokens in the ratchet's convention, `ceil(utf8 bytes / 4)`, the release-stamp line not priced): | | Before (`d463c46f`) | After (`90a673de67`) | |:---|:---|:---| | `skills/objectstack-data/SKILL.md` | 473 lines · 26,858 bytes · 6,710 tokens (ceiling 6,710) | 472 lines · 26,860 bytes · 6,710 tokens (ceiling 6,710, unchanged) | | All 14 `skills/*/SKILL.md` | 4,951 lines · 261,175 bytes | 4,950 lines · 261,177 bytes | | Ratcheted (authored) tokens, whole bundle | 197,573 | 197,573 | | Eval fixtures (measured, not ratcheted) | 81,141 | 81,720 | | Bundle total | 293,321 | 293,900 | **One eval case**, `skills/objectstack-data/evals/objects-fields-relationships.json` case 27: an add-on package put the tab arrangement (two tabs swapped, one hidden) on its own extension of an installed object and `os validate` refused it. The answer moves the arrangement to the object extension of the base's paired `.custom` package and names `place` as what the add-on package writes. `must_contain`: `hotcrm.custom`, `defineObjectExtension`, `extend: 'crm_account'`, `relatedLists`, `hidden: true`, `place:`. Two riders in the eval directory: - Case 26 (the `place` case) said in its reference answer that "an extension has neither key". That stopped being true when the two keys shipped, and the new paragraph says the opposite, so the parenthesis now reads: only the object extension of HotCRM's paired `hotcrm.custom` package writes those keys; here they are refused. Its prompt and assertions are unchanged, so its case hash is unchanged. - `evals/README.md` lists what the file covers and gains the new case's topic. **Changeset**: `.changeset/36541-skills-custom-arrangement.md`, `@objectstack/skills` patch. ## Tests The grader and gate readings are at head `90a673de67`, tree clean. The door suites were run at `0db54351e8`; fix round 1 touches no file they read. <details> <summary>The eval file's reference answers under its own grader</summary> `gradeAnswer` (`packages/qa/scenarios/src/skill-evals/grade.ts`) over each case's `expected_output`, cases parsed by the runner's own `parseEvalFile`. No model round was run. | Tree | Reading | |:---|:---| | `d463c46f` (control) | 26 cases parsed, 0 refusals; reference answers PASS 26/26 | | `0db54351e8` (the head reviewed before) | 27 cases parsed, 0 refusals; reference answers PASS 27/27; case 26 PASS; case 27 PASS | | `90a673de67` | 27 cases parsed, 0 refusals; reference answers PASS 27/27; case 26 PASS; case 27 PASS | Named answers for case 27, each graded under the assertions of both heads and each as expected: | Answer | At `0db54351e8` (`place`) | At `90a673de67` (`place:`) | |:---|:---|:---| | the reference answer | PASS | PASS | | a short answer: the pair, the arrangement, `place: [...]` for the add-on package | PASS | PASS | | the pair and the arrangement, "the key replaces the tab list whole", nothing about what the add-on package writes (the N1 control) | PASS | FAIL, `missing=["place:"]` | | the arrangement kept on the add-on package, the pair never named | FAIL, `missing=["hotcrm.custom"]` | FAIL, `missing=["hotcrm.custom"]` | | the pair named, the tab hidden by leaving it out (an object's own rule) | FAIL, `missing=["hidden: true"]` | FAIL, `missing=["hidden: true"]` | At `0db54351e8` two more named answers were graded as expected: the object redeclared with an `overrides` declaration (FAIL, `forbidden=["name: 'crm_account'","overrides:"]`), and the pair named with nothing said about the add-on package (FAIL, `missing=["place"]`). The reference answer's extension, `{ extend: 'crm_account', relatedLists: ['crm_opportunity', 'crm_contact', { list: 'crm_lead', hidden: true }] }`, parses under `ObjectExtensionSchema`; `judgeExtensionArrangement` answers 1 refusal for package `acme_contracts` (path `objectExtensions[0].relatedLists`) and 0 for `hotcrm.custom`. `node ui/scripts/check-skill-eval-tokens.mjs`: exit 0, "Every must_contain token is taught by its own skill bundle." </details> <details> <summary>Which doors refuse: the suites of the merged protocol, run on this head</summary> The dispatch asked which doors actually refuse a writer that is not a `.custom` package. Each door's suite was run, at `0db54351e8`, after building its dependency closure (`turbo run build --filter='@objectstack/cli^...'`, 64 tasks, exit 0), each run under the shared verification lock: | Door | Suite | Reading | |:---|:---|:---| | The judge, and the gate the save, publish and restore doors ask | `packages/metadata-protocol/src/protocol-extension-arrangement.test.ts` | exit 0, `Tests 13 passed (13)` | | Save, through the real protocol and engine | `packages/objectql/src/protocol-custom-arrangement.test.ts` | exit 0, `Tests 6 passed (6)` | | `os validate` and `os build`, both commands in process | `packages/cli/test/validate-build-extension-arrangement.test.ts`, `packages/cli/src/utils/extension-arrangement.test.ts` | exit 0, `Test Files 2 passed (2)`, `Tests 10 passed (10)` | | Install | `packages/cloud-connection/src/marketplace-install-local-extension-arrangement.test.ts` | exit 0, `Tests 5 passed (5)` | | What a written key does (replaces whole, the unlisted field, the unnamed tab, the hidden tab) | `packages/objectql/src/registry-custom-arrangement.test.ts`, `packages/spec/src/data/object-extension-arrangement.test.ts` | exit 0, `Tests 33 passed (33)` and `Tests 53 passed (53)` | The publish and restore doors are measured at the gate they call (`objectExtensionItemRefusal`); that each of them calls it is read from the call sites cited above, not from a run through the door. </details> <details> <summary>Gates</summary> `node scripts/pm/dispatch-gates.mjs --commands` at `90a673de67` derives the same 50 commands as at `0db54351e8`. All 50 were run again on this head, each exit code recorded before any pipe; `--ran` answers: "50 derived famil(ies) accounted for — 49 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)", exit 0. - 49 exit 0. Among them: `node scripts/check-skills-token-ratchet.mjs` ("60 authored bundle file(s) within their ceilings"; the data row reads `6710 / 6710 (+0)`), `check:skill-docs`, `check:skill-served-sections`, `check:skill-links`, `check:skill-identifier-liveness`, `check:skill-compatibility`, `check:skill-frame-sync`, `check:doc-authoring`, `check:doc-formula-expressions`, `check:role-word`, `check:nul-bytes`, `check-empty-changeset`, `check-changeset-no-major`, `check-adr-0087-registration`. - NOT MEASURED: `pnpm check:dual-build-cjs-loads`, exit 3. It reads the built output of every package and asks for a whole-workspace build; this change touches no package source, and the full build was not made for it. CI reads it. - Outside the derived list, also run on this head: `check:skill-refs` exit 0 ("10 generated files in sync"), `check:skill-examples` exit 0 ("349 prose examples type-check across 3 surface(s)"), `node ui/scripts/check-skill-eval-tokens.mjs` exit 0. - The gates that read built output (`check:dts-closure`, `check:published-files`, `check:sourcemap-no-sources-content`, `check:driver-memory-census`, `check:lean-entry-closure`) answered exit 0 on a tree where the spec, lint, objectql, metadata-protocol and client-react closures were built, not the whole workspace; their full reading is CI's. </details> ## Acceptance notes 1. **Overlap.** `node scripts/pm/overlap-check.mjs` at `90a673de67`: `origin/main` (`abe95a950d`) merges cleanly; objectstack-ai#35129 and objectstack-ai#36559 merge cleanly (objectstack-ai#36559 edits case 3 of the same eval file); draft objectstack-ai#36158 conflicts in `skills/objectstack-data/SKILL.md`. That one is known to the seat and ruled: this card does not wait, and whichever of the two lands second replays its text. 2. **`main` moved after the branch was cut**, `d463c46f` to `abe95a950d`. It merges cleanly and the branch was not merged again. 3. **Both mechanism assumptions of the dispatch hold.** The refusal fires at save, publish and install and at `os validate` / `os build`, the doors the `__c` sentence already lists, so the paragraph says "at those doors". `{ list, hidden: true }` is the schema's spelling. 4. **What the paragraph leaves to the refusal texts and the docs page** (`content/docs/data-modeling/object-extensions.mdx`, "Arranging the whole record page"), to stay inside the ratchet: a `place` entry beside the key that replaces it is refused at parse with its own prescription; a built-in tab is written as its bare name and cannot be hidden; a `.custom` package that is not the object's pair is not refused, it is skipped and named in the boot log (since fix round 1 the paragraph no longer says the opposite; it still does not teach the skip); a list the owner hid by leaving it out stays hidden until the arrangement names it; a field is kept off the page by a group whose `visibleWhen` is false. 5. **Case 27's prompt carries two of its own `must_contain` tokens** (`relatedLists`, `hidden: true`), because the colleague's refused extension is quoted in it. The tokens the prompt does not hand over are `hotcrm.custom`, `defineObjectExtension`, `extend: 'crm_account'` and `place:`. With `place:` an answer that names `place` only in prose, without an entry, does not pass; case 26 has the same property. 6. **`evals/README.md` is outside the file surface the claim lists.** It is the index of the eval file and the same-file PR before this one updated it with its case, so it is updated here too. 7. **The ceiling row is untouched at 6,710** and the file sits exactly on it, with 0 tokens of headroom, as it did on `main`. ## Verification **Read first:** 1. `skills/objectstack-data/SKILL.md` lines 386 to 390, the last sentence first (fix round 1), beside `CUSTOM_ARRANGEMENT_WRITER` and the two key descriptions in `packages/spec/src/data/object.zod.ts` (lines 6828 to 6888). The risk is a sentence that says more than the runtime does. 2. The five deletions in the same diff, each against the home named in the table above. The riskiest is the insert-null note: it leaves the always-loaded file and stays in `rules/validation.md`. 3. Case 27, and the one changed parenthesis of case 26, in `skills/objectstack-data/evals/objects-fields-relationships.json`. **Two-minute check:** `node scripts/check-skills-token-ratchet.mjs`. Expected: the data row reads `6710 / 6710 (+0)` and the last line reads "60 authored bundle file(s) within their ceilings". 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01ADHkmPTDM2MxHR8cvoMVUX <!-- signed: repo:objectstack#2 · os-steve · session_01ADHkmPTDM2MxHR8cvoMVUX --> --------- Co-authored-by: Claude <noreply@anthropic.com>
… a named wizard form, and the sections ladder says New and Edit never read sections (objectstack-ai#36625) <!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi91tYCagMT6JaQ6YA5YqnWwi)_ Part of objectstack-ai#36611 Clause-②: no Metadata-protocol: none Skills-docs: updated here ## 维护者速读 - 用户能看到什么变化:照着技能包写应用的 AI,想要「一个对象上的分步表单」时,会被指到「由动作打开的具名分步表单」;也不会再以为「新建 / 编辑」弹窗能靠表单分区来重新排版。 - 为什么做:这是「内部新建和编辑表单退役」的收尾。平台已经改了,技能总目录和界面技能里还各留着一段旧说法。 - 出错会怎样:AI 照旧文字写出的分步表单或分区不会生效。本次只改两段技能文字,撤回这一个合并就恢复原样。 - 要你做什么:技能包属于受管文件,本单保持草稿,等席位的契约审核记录后落地;数据技能和自动化技能里的同类旧说法留给第二阶段(等另一张在途的数据技能改动先合并)。 ## What changes Stage 1 of the card: the two passages that do not intersect PR objectstack-ai#36158. - **`skills/README.md`**, "Cross-skill routing", the "Screen flows vs. views" bullet. Before: a stepped form over one object that never branches is "a form view, `type: 'wizard'`", with no door named. On `main` the only form views that load are a named one an action of `type: 'form'` opens and a public one; an object's New and Edit load none. After: the bullet names the named wizard form and the action that opens it, and says an object's own New and Edit never step because they are built from its fields and `fieldGroups`. The screen-flow half (branches, or several objects, is automation) is unchanged. - **`skills/objectstack-ui/rules/navigation.md`**, "Record Presentation", the `sections` bullet. Before: step 2 of the ladder read "when one surface needs a local arrangement, a section may name a declared group", in a section about a record's create / edit / detail. After: the bullet opens by saying New and Edit never read `sections` (linking "Form Views" in `rules/list-views.md`), and names what does: a named or public form, and a page's `record:details` or form block. The three steps of the ladder are kept. The enumerate step's example "a wizard/pane structure" becomes "a wizard's steps": `pane` left the section shape in spec 18.3.0, and a wizard step is the case that must enumerate `fields`, because `group` is refused there. - **`.changeset/36611-skills-wizard-routing-sections.md`**: `@objectstack/skills` patch. No eval case teaches either passage (`git grep -n -i "wizard\|sections" skills/objectstack-ui/evals` at this head: one trigger prompt, one `must_not_contain` token, and prose about field groups), so no eval file changes. **Left for stage 2** (a second PR on this card, Blocked-by objectstack-ai#36158, which edits all three files): `skills/objectstack-data/rules/relationships.md` (the pointer to the removed subforms override), `showOnCreate` in objectstack-data, and the same routing sentence in `skills/objectstack-automation/SKILL.md` line 44. Until stage 2 lands, that automation line still reads "an objectstack-ui form view, `type: 'wizard'`", shorter than the README now is. ### Token and line readings (no ceiling is changed) | File | Lines before → after | Bytes before → after | Tokens before → after | Ceiling | |:--|:--|:--|:--|:--| | `skills/objectstack-ui/rules/navigation.md` | 191 → 191 | 10216 → 10216 | 2554 → 2554 | 2564 (unchanged, headroom 10 as before) | | `skills/README.md` | 146 → 148 | 10753 → 10893 | 2689 → 2724 by the same convention | none: outside the ratchet's population ("population 3" in the checker's header), not inside any published skill directory | | All `SKILL.md` files under `skills/`, summed | 4948 → 4948 | | | | | Ratcheted (authored) total | | | 197572 → 197572 | 202541 | | Bundle total (whole shipped tree) | | | 294087 → 294087 | | The new sentence in `navigation.md` is paid in full by cuts inside the same bullet ("in order", "when one surface needs a local arrangement", "at all", "genuinely", "at parse", "beside it", and shorter wording of the last sentence). Readings at `affa89e7a9` against base `ed0edb1b50`. ## Tests No package source changed, so no package suite is owed. No ablation: prose only. Local gates at `affa89e7a9`: the 49 commands `dispatch-gates.mjs --commands` derives, each run with its exit code recorded; `--ran` answers "49 derived famil(ies) accounted for — 47 run, 2 NOT-MEASURED". The two are `check:dual-build-cjs-loads` and `check:lean-entry-closure` (exit 3, PREREQUISITE NOT MET: they read built `dist/` of packages this diff does not touch; CI decides). Among the 47: `check-skills-token-ratchet` exit 0, `check:skill-links` exit 0, `check:skill-docs` exit 0, `check:doc-formula-expressions` exit 0, `check:nul-bytes` exit 0. ## Acceptance notes Each taught sentence against `main` (`ed0edb1b50`): - New and Edit are built from the object's fields and field groups, and read no form view: `ui/packages/app-shell/src/utils/recordFormFields.ts:29` (`recordFormFieldNames`), called by the dialog (`ui/packages/app-shell/src/console/AppContent.tsx:1791`), the full page (`ui/packages/app-shell/src/views/RecordFormPage.tsx:296`) and an action-opened create or edit (`ui/packages/app-shell/src/hooks/useActionModal.tsx:289`). - An internal form parses and steers nothing, with a warning: `packages/lint/src/validate-internal-form-views.ts:36` and `:91-112`. - An action of `type: 'form'` opens a named form at its own page: `ui/packages/core/src/actions/ActionRunner.ts:2931-2939` (`executeForm`), route `ui/apps/console/src/App.tsx:456`; `packages/spec/src/ui/action.zod.ts:693` and `:719`. - That page honours `wizard` (a step per section) and `tabbed`: `ui/apps/console/src/components/FormPage.tsx:2841` and `:2848`; type enum `packages/spec/src/ui/view.zod.ts:5341-5343`. - A named form resolves a `group` section: `ui/apps/console/src/components/FormPage.tsx:845-857`. `group` on a wizard step is refused: `packages/spec/src/ui/view.zod.ts:5727-5737`. - A page's `record:details` block takes `sections` with a `group` reference: `packages/spec/src/ui/component.zod.ts:1327`, `:1379`, `:1549`. The `object-form` and `object-master-detail-form` blocks take them too: `:7259`, `:7540`; resolved in `ui/packages/plugin-form/src/ObjectForm.tsx:336`. - `pane` is gone from both section shapes: `packages/spec/src/ui/view.zod.ts:4106-4115`, `packages/spec/src/ui/component.zod.ts:6556-6559`. Noted, not filed: an `object-form` page block also accepts `formType: 'wizard'` (`packages/spec/src/ui/component.zod.ts:7220`), a second ui home for a stepped single-object form. The README bullet names only the named form, the home "Form Views" teaches; whether the routing should name the page block as well is the reviewer's call. ## Verification Read first, by risk: (1) the `sections` bullet in `skills/objectstack-ui/rules/navigation.md`, the one hunk in a ratcheted file; (2) the routing bullet in `skills/README.md`. Two-minute check: `node scripts/check-skills-token-ratchet.mjs`, expected line "skills/objectstack-ui/rules/navigation.md is 2554 tokens (ceiling 2564; headroom 10)" and exit 0. CI check-runs: not read at the time this body was written. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01ADHkmPTDM2MxHR8cvoMVUX <!-- signed: repo:objectstack#2 · os-steve · session_01ADHkmPTDM2MxHR8cvoMVUX --> --------- Co-authored-by: Claude <noreply@anthropic.com>
… relocated text; ratchet rows not yet re-pinned Claude-Session: https://claude.ai/code/session_01QSeKYoBFwgPdc8gN56sREh Co-authored-by: Claude <noreply@anthropic.com>
… nine rows re-pinned at the measurement Main's additions to the two entry files since the branch point (the colour row, fieldHistory, an extension's place, the paired .custom arrangement, showOnCreate, the option-label and subflow corrections) now sit at their relocated homes, so the receiving files grew. Paid inside the moved text by cutting sentences that restate what the entry's traps and served sections say, two long table separators, and connective text; the insert-null note leaves the entry as it left main's. The sum of ceilings is 23 tokens under main's, every moved row at zero headroom. Claude-Session: https://claude.ai/code/session_01QSeKYoBFwgPdc8gN56sREh Co-authored-by: Claude <noreply@anthropic.com>
…m/SKILL.md Claude-Session: https://claude.ai/code/session_01QSeKYoBFwgPdc8gN56sREh Co-authored-by: Claude <noreply@anthropic.com>
…ome; two pointers name where their sections moved Main's Validation Patterns ended with the clause that a state machine's transitions keys and values are option values, never labels; no file of the bundle said it after the move and no publish check covers it. It is one sentence of rules/validation.md § State Machine Validation. The Prerequisite pointer in examples-flows.md and the Assignment rules pointer in state-machines-and-approvals.md name the sections' homes instead of SKILL.md. Rows re-pinned: validation.md 3466, examples-flows.md 6551; the sum of ceilings is 203,009 against main's 203,016. Claude-Session: https://claude.ai/code/session_01QSeKYoBFwgPdc8gN56sREh Co-authored-by: Claude <noreply@anthropic.com>
Main's entry said defineStack errors unless the stack declares requires: ['hierarchy-security']; the routed home kept only that the capability is needed. rules/security.md now names the refusal and its code (STACK_HIERARCHY_SCOPE_CAPABILITY_REQUIRED, read off packages/spec/src/stack.zod.ts and the runtime authoring gate), paid inside the file by two restatement cuts; the row is re-pinned at 4771, three tokens below the ceiling this PR had asked for. Claude-Session: https://claude.ai/code/session_01QSeKYoBFwgPdc8gN56sREh Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr Contract reviewServed-tier: Full review of PR #36158 (card #34770) on this head, isolated from the build. Inputs: the card and all 23 of its comments (ruling 7128031203, dev reports 7151308696 and 7153988410 among them), the PR, its net diff against ① Derived judgments
(a) Every raised row equals its measurement, zero headroom. (b) All 60 rows sum to 203,016 on
② Semver levelOne changeset, ③ Boundary flags
④ Design judgmentS3 (must-fix) —
S4 (should-fix) — the cut that pays for S3's sentence deletes teaching, not restatement. In the sharing bullet of Nothing-lost sweep. I read Not carried, and why it holds:
Growth is moved text (④A (a)). Every added line of the seven receiving files is a sentence or row of Pay-down cuts. The 17 earlier ones are content-preserving: the three lead-ins are stated by traps 1–3; the value-slot and text-slot lists in "the rest" are the exact complements of the entry's lists (their union is Per file.
Nits (no effect on correctness or the contract):
Implemented-by: VERDICT: FAIL Generated by Claude Code |
…ad as on main rules/security.md § Access depth said defineStack, a save and a publish refuse an undeclared hierarchy-relative grant with one code. Only defineStack does (packages/spec/src/stack.zod.ts, validateHierarchyScopeCapability); a draft save warns and a publish is refused under another rule and another condition (packages/metadata-protocol/src/runtime-authoring-gate.ts). The section carries the entry's own clause again: defineStack errors unless the stack declares requires: ['hierarchy-security']. The sharing bullet's `outside-closure` and `ambiguous-in-environment` glosses are back, byte for byte; that bullet no longer differs from main. Paid inside the file: "paid" leaves "the paid plugin goes in plugins[]", which SKILL.md § Access depth states with the plugin's name. The row is re-pinned at its measurement, 4771 -> 4781 (19123 bytes); the 60 ceilings sum to 203016, the sum on main. Claude-Session: https://claude.ai/code/session_01QSeKYmgNasqCR9aajfRjJK Co-authored-by: Claude <noreply@anthropic.com>
Fixes #34770
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
The entry files of two published skills become routers. Frontmatter (lines 1–17,
descriptionincluded) is byte-identical to main in both.411fe24bskills/objectstack-data/SKILL.mdskills/objectstack-automation/SKILL.mdskills/objectstack-ui/SKILL.mdEach entry now holds:
@objectstack/specversion; what the project already has; the type's contract (references/_index.mdto the Zod source; what a running environment'sGET /api/v1/meta/typesdoes and does not say);os validatebefore reporting done.## Conditional Field Rules, and the four sections the hosted door serves.### Access depth (scope-depth) — the ERP "see my unit / my unit and below" axis, whichcheck-skill-identifier-livenessbinds to that file by heading.No new file. Text that left landed in files that already existed, and each receiving section holds only what its
SKILL.mdsection no longer says:objectstack-data/references/examples-objects.md## Object keys(the rows the entry no longer carries, theenableflags that surprise),## Search Fields (searchableFields)whole,## Object Extension Modelwholeobjectstack-data/rules/field-types.md## Changing a field that has data(main's Schema evolution section, whole),## Choosing a type(the detail behind Field Type Selection)objectstack-data/rules/validation.md## Conditional Field Rules: the checked example, its bullets, what a bare field ref does at run timeobjectstack-data/rules/security.md## Ownership queueswhole,## Access depth(the mechanics behind the bound section)objectstack-data/rules/relationships.md## Record owner, and other people on a recordobjectstack-automation/references/examples-flows.mdhttp/connector_action/screen, Flow Variables, Triggers, Assignment rules, and a "the rest" section for each ofnotify, failure routing andrunAs, filter operands, value slots. The two existing examples are byte-identical under a new## Long examplesobjectstack-automation/references/integration-recipes.md## Inbound webhook (api) triggerswhole,## When the answer is platform codeThe sections the hosted door serves by exact heading
packages/spec/scripts/skill-served-sections.jsonlists eleven sections of these two entry files. All eleven headings stay inSKILL.md, once each, at main's level, with the form the list declares (the JSON object, the JSONnotifynode, the JSON node pair beside its TypeScript block). Their text is shorter, so the hosted door serves less until its table points at the new homes:SKILL.md)### Object Definitionreferences/examples-objects.md§ Object keys### Field Type Selectionrules/field-types.md§ Choosing a type### Relationship Patternsrules/relationships.md§ Relationship Types (already there), § Record owner, and other people on a record### Validation Patternsrules/validation.md§ Available Rule Types, § State Machine Validation (both already there)#### Data Operations#### External Integrationreferences/examples-flows.md§ External Integration — the restnotifysectionreferences/examples-flows.md§ notify — the rest### Failure routing & runAsreferences/examples-flows.md§ Failure routing & runAs — the rest### Filter operands (config.filter)references/examples-flows.md§ Filter operands — the rest## Valid-but-silently-wrong (passes build, fails at runtime)references/examples-flows.md§ Value slots and the other silent traps — the rest## Integrations are declared, not codedreferences/integration-recipes.md§ When the answer is platform codeNot touched: the other thirteen served sections, including the two the hosted door serves with passages replaced (
examples-flows.md§ Time-relative triggers,state-machines-and-approvals.md§ Approval Best Practices). The first is byte-identical (sha-256 of the section before and after:982502ce6e3a0d73…both); the second file is not in the diff.Every rule that left an entry file, and where it is now
(a) moved to a file the router routes to · (b) a restated list now served by the contract · (c) a check refuses it at parse, publish or
os validate· inline = still inSKILL.md.objectstack-data
SKILL.mdheld on maindescriptionnames the neighbours; the routing table names the filesname,sharingModel); a publish withoutsharingModelis refusedsecurity-owd-unsetsharingModeltable and the posture paragraphownershipsentencereferences/examples-objects.md§ Object keys;rules/relationships.md§ Record ownerpluralLabel,icon,namespacehighlightFields,nameFieldnameFieldalso one bullet inlinelabel,datasource,displayNameField,enable,fieldGroups,lifecycledata/object.zod.tsthroughreferences/_index.md; § Object keys says so.lifecycleandfieldGroupskeep their own filestitleFormatos validaterefuse the key (title-format-retired)enable:apiMethods,feeds,activities,aiReadableenable:trackHistory,searchable,apiEnabled,files,cloneObjectCapabilitiesindata/object.zod.tsreferences/examples-objects.md§ Search Fields, wholereadonlyWhen/readonlydrop the value, gate versus invariant## Conditional Field Rulesrules/validation.md§ Conditional Field Rulesrequiredis notNOT NULL, the stale-column tell-talerules/field-types.md§ Changing a field that has data, wholesecretnotpassword,user,formula, the flag, the save-time defaultrules/field-types.md§ Choosing a typerules/relationships.md§ Relationship Types and § Patterns, already thereownership: 'none', positional read of a multi-value lookuprules/relationships.md§ Record owner, and other people on a recordnull,initialStates, nouniquetyperules/validation.md§ Available Rule Types, already thererules/indexing.md§ The declaration surface, § Syntax, § Unique scope, already therereferences/examples-objects.md§ Object Extension Model, wholepermissionsorhookskey)ObjectSchema.create()rejects both as unknown keysrules/security.md§ Access depthrules/security.md§ Ownership queues, wholerules/validation.md§ Conditional Field Rules;os validaterefuses itobjectstack-automation
SKILL.mdheld on mainreferences/examples-flows.md, opening note.customoverride, toggle, clone,defaultActiveflow-node-type-no-executor)loop,parallel,try_catch,map,wait,subflow, gateways)httptimeout, no credential inurl/headers,durableconnector_actionjudged at dispatchinputSchemadetail in § External Integration — the restscreen(file,record_link, progress)notify: the JSON node, recipients,titleXORtemplate, the link pairtopicandseverity; they are in the RAW bullet of § notify — the restnotify: RAW keys, audience selectors in full, the option-label formatterfaultedge, theerrorlabel trapflow-error-label-not-faultrunAs: readonly needs system, elevate the write, identity assignment, pin the organization, who may startrunAs: the detail of each, and a hook's ownrunAsnullrefuses the node, a value never an operatorinvalid_optionreferences/examples-flows.md§ Assignment rules, wholeconfig, guard a self-write## Flows, first paragraphrequirestoken table, trigger types, prefer after, a throwing before-triggerapi) triggersreferences/integration-recipes.md§ Inbound webhook (api) triggers, wholereferences/integration-recipes.md§ When the answer is platform codeOne correction. The multi-value lookup note in objectstack-data showed a
{record.tags.0}token "in flow values". objectstack-automation on main teaches that a value slot refuses that token and gives'record.tags[0]'as its replacement. The note, now inrules/relationships.md, showsrecord.tags[0].Ratchet rows changed (
scripts/check-skills-token-ratchet.mjs)skills/objectstack-data/SKILL.mdskills/objectstack-automation/SKILL.mdskills/objectstack-data/references/examples-objects.mdskills/objectstack-data/rules/field-types.mdskills/objectstack-data/rules/relationships.mdskills/objectstack-data/rules/security.mdskills/objectstack-data/rules/validation.mdskills/objectstack-automation/references/examples-flows.mdskills/objectstack-automation/references/integration-recipes.mdEvery row is pinned at the measurement, zero headroom, and its comment says what moved from where. The two
SKILL.mdrows now hold the 9 KB budget mechanically: a later addition to either entry file is red until it is paid for in the same file. The sum of ceilings falls from 202,541 to 202,452 tokens (−89), authored tokens from 197,431 to 197,420.Authority for the seven raises, the same as part 1's four (PR #35077): decision record 6943107981 on #34691, S3 = A, 「三点都同意,按最终计划把后续里程碑的卡全部立出来」, whose S3 target reads "a router-sized
SKILL.md(6–9 KB, at most 500 lines) … pointers to the contract instead of restated lists"; and the standing ruling of 2026-10-27, 「A:先削重复,余额按实测提高」 (record 6513306068). Paid down first: each moved section was cut to the complement of what its entry section still says (the full-section copies of the automation reference measured 29,784 bytes against 26,509 now), and the restated rows listed under (b) and (c) above were not carried over.Tests
Skill evals, before and after: NOT MEASURED, two rounds owed
The runner starts here (
claude auth status: logged in,oauth_token), and it ran 8 turns of a before-round on the base tree. I stopped it: every turn's record read the login's seven-day window at 0.88 to 0.89 (allowed_warning, resets 2026-11-22T03:00Z), and the runner stops scheduling at 0.9, so neither round could finish. The 8 turns are not a measurement and are not reported as one.Owed, both on the same side of #35649 (merged, and inside both trees), on a login with room for about 380 turns:
Each round is 88 behaviour cases on two arms plus 14 trigger cases, 190 turns. The card's done-when reads the with-skill pass rate of the after-round against the before-round. objectstack-ui has no diff, so this PR owes it no round.
Reachability of every eval token (deterministic)
node ui/scripts/check-skill-eval-tokens.mjsat this head: exit 0, "Every must_contain token is taught by its own skill bundle."What moved behind a hop, read off both trees by one script (a token the old
SKILL.mdheld and the new one does not, with the files that hold it now):must_containtokens. 40 tokens in 22 cases are no longer inSKILL.md; every one is in a file the routing table names. 28 tokens are in no bundle file on either tree (they are words of the expected answer).SKILL.md; every one is inreferences/examples-flows.md,integration-recipes.mdorstate-machines-and-approvals.md. 12 tokens are in no bundle file on either tree.The 34 cases whose tokens now sit one hop away
SKILL.mdproject_name,beforeInsert,afterUpdatereferences/examples-objects.md§ Search Fields; Trap 2defineDatasource,remoteName,columnMaprules/datasources.md; routing rowdefineSeed,externalId,upsert,locale,fallback,422references/seeds.md; routing rowdefineQueue,type: 'position',CONCURRENT_UPDATErules/security.md§ Ownership queues; routing rowINVALID_FIELDrules/security.md; routing rowbeforeInsert,beforeUpdate,afterUpdate,condition:references/data-hooks.md; routing rowoptions,required: true,value: 'rules/field-types.md,references/examples-objects.md; routing rowsunique: 'organization'rules/indexing.md; § Validation Patterns links ithotcrm.custom,extend: 'crm_account',region__c,label: 'Sector',translations,industry,customerreferences/examples-objects.md§ Object Extension Model; Trap 3edgesreferences/examples-flows.md§ Long examplesapproval_revise,revisereferences/state-machines-and-approvals.md; routing rowdefaultValuescreen,record_link)delegated-administration,granted_bydefineAssignmentRule,type: 'queue',value: 'crm_support_intake',dependencies,'acme.crm'.custom,overrides:,basedOn,/toggle,defaultActive: false,toggleoption:opportunity.stage,once per rundependencies,'acme.crm'subflow); routing rowretried_callout_in_subflowtry_catch); routing rowsecretRef,Swagger 2.0references/integration-recipes.md; routing rowNothing taught was lost (deterministic)
Every inline code span of each old
SKILL.md, looked up in its skill's new bundle (all.mdoutsideevals/):'default',displayNameField,apiEnabled,titleFormat,title-format-retired); one is the corrected token{record.tags.0}.dist/(theos buildaside), the wrong-form example of trap 2 (fields: { ref: … 'newRec' }; the right form stays), and one span that is present without itssource:prefix.No ablation: the diff changes documentation and ratchet numbers, no tested behaviour.
Acceptance notes
SKILL.md, unique, with real content, and the rest moves under a unique heading in an existing file, so the hosted table can point at it. Options: (A) land as built, and the hosted table adds the "rest" sections in its next skills bump; (B) hold this PR until that table change is ready; (C) put the eleven sections back whole, which leaves the entries at about 13 KB and 19 KB and the card's budget unmet. The cloud repository is not readable from this session; the list read is this repository'sskill-served-sections.json.skills/**1,165,890 → 1,165,837 bytes over 114 files (−53). objectstack-data falls 3,033 bytes; objectstack-automation rises 2,980, the cost of first checks and a routing table in a skill that had no link list to replace. All 14SKILL.mdfiles together: 260,553 bytes · 4,946 lines → 223,741 · 4,342.references/examples-flows.mdis now 26.5 KB and carries flows, triggers and assignment rules. A new ratchet row is the maintainer's pricing act; splitting that file intorules/flows.md,rules/triggers.mdandrules/assignment-rules.mdis a follow-up that needs those rows.skills/objectstack-automation/SKILL.md, so main was merged once (b2226e0e). Its two hunks to that file now live where their sections moved: theconnector_actionrow (the undeclared-key refusal) inreferences/examples-flows.md§ External Integration — the rest, and the inbound-webhook bullets (the disabled package's401) inreferences/integration-recipes.md§ Inbound webhook, both in main's words; its edits tointegration-recipes.mdmerged untouched. docs(skills): objects carry a colour from the nine-name palette; an object nav item draws its colour tile #36089 (open) adds acolorkey to the Object Definition JSON and acolorrow to the optional-properties table, and conflicts inskills/objectstack-data/SKILL.md: after this PR the row's home isreferences/examples-objects.md§ Object keys. Whichever of the two lands second re-applies that hunk. Its lines are not touched here.scripts/check-skills-token-ratchet.mjsis outside the claim's stated file surface and is in the diff because the gate reads the nine changed files: two rows lowered, seven moved to the measurement. Part 1's claim named it.objectstack-data/SKILL.md#conditional-field-rules,objectstack-automation/SKILL.md#failure-routing--runas,#valid-but-silently-wrong-passes-build-fails-at-runtime) still resolve.Verification
Read first, by risk:
skills/objectstack-automation/SKILL.md: the seven served sections. Risky hunk:### Failure routing & runAs, 3.7 KB of blockquotes down to five bullets. Is each bullet still true alone?skills/objectstack-automation/references/examples-flows.md, the four "the rest" sections: they were rewritten as complements, not moved whole. Risky hunk: the identity-assignment andrequiredPermissionsblockquotes.skills/objectstack-data/SKILL.md§ Object Definition: three tables became three bullets.Two-minute check:
node scripts/check-skills-token-ratchet.mjs. Expected: the last line reads✓ check-skills-token-ratchet: 60 authored bundle file(s) within their ceilings, and the two entry rows read2245 / 2245and2243 / 2243.Head
b2226e0e(one merge of main over08639dad, see Acceptance note 5). Exit codes captured before any pipe.Derived list.
node scripts/pm/dispatch-gates.mjs --commandsprinted 69 commands at this head. All 69 ran: 68 exit 0, 1 exit 3. Reconciliation:✓ dispatch-gates --ran: 69 derived famil(ies) accounted for — 68 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).pnpm check:dual-build-cjs-loads, exit 3, prerequisite not met (it needs a full build, which this change does not owe locally). Left to CI.check:skill-docs,check:doc-formula-expressions,check:dts-closure,check:sourcemap-no-sources-content) read the@objectstack/scenarios^...and@objectstack/client-react...closures, built under the verify lock (VERDICT command-exit 0both) before main was merged. Main broughtui/, three service files, docs and two automation skill files; nothing was rebuilt after it. Declared narrowing: CI builds the merge ref.Outside the derived list, run at this head, all exit 0:
packages/speccheck:skill-examples(✅ 347 prose examples type-check across 3 surface(s): the movedos:checkblocks compile where they now live);node scripts/check-doc-anchors.mjs(1090 fragment links resolve);node ui/scripts/check-skill-eval-tokens.mjs; and, because the diff edits the ratchet script, the one test that names it,packages/spec/scripts/platform-catalog.test.tsunder the verify lock (1 file, 20 tests passed,VERDICT command-exit 0). The ratchet's own--self-testis in the derived list:104 cases pass.The twelve headings, one
grep -ceach (the eleven the hosted door reads from these two files, and the anchor two other skills link):Their levels are main's:
###for the four data sections and fornotify, failure routing and filter operands,####for Data Operations and External Integration,##for the last two.pnpm --filter @objectstack/spec run check:skill-served-sections:✓ check-skill-served-sections: 24 served section(s), each heading exactly once in its file (6 json, 2 json+ts, 16 neutral); 10 JSON fence(s) parse and pass their spec validators.Ratchet, overlap and landing-tier lines
Landing tier.
node scripts/pm/check-governed-merges.mjs --branch claude/issue-34770-skill-router-budget:landing tier: H(人合),skills/**×9; 1774 changed lines (+950 / −824) over 11 files, under the 3,000-line threshold. The tool exits 3 without a pull request number (its low-risk skills arm and head-repo reading are NOT MEASURED); by its allowlist that arm cannot apply, since the ratchet script is in the diff.Not run locally, CI's: the type-check lanes,
Build Core,Test Core(test:repoincluded), the repo lint, the dogfood battery (no!in the title and no narrowing arm, so not owed here).Generated by Claude Code