Skip to content

skills: SKILL.md becomes a router with a size budget, and points to the contract instead of restating it #34770

Description

@objectstack-fleet

epic:#34659#1 · hotlong · session_01Q4EjjMnXJdSZifpEN5i7aU

Filing gate: ④ a child of the cross-lane parent #34659 (the 「MCP 二期与问数」 epic), filed on the maintainer's word in this seat's chat, 2026-11-17, verbatim: 「三点都同意,按最终计划把后续里程碑的卡全部立出来」, and, on the list of thirteen cards the seat then showed: 「同意」. The ruling records are #34659 comment 6940528935 and #34691 comment 6943107981. Readings: objectstack a0326b06, cloud 53a5844, 2026-11-17.

Why

The platform is defined by its metadata protocol; a skill that copies option lists and key tables from it drifts from it, and costs the reader's context on every load. A long skill also hides its few critical traps among reference text the model skips.

Who acts: the skills lane (skills/objectstack-{data,ui,automation}/** first). Governed surface.

Evidence

  • Each SKILL.md is 15–27 KB; the data skill is 174 KB with its rules and references, the UI skill 123 KB; the catalog is about 1.0 MB.
  • Across the vendor sets read, the median SKILL.md is 6.6–8.7 KB; Clerk enforces 500 lines / 5,000 tokens in a script; Directus keeps the router near 100 lines with at most about 8 traps inline.
  • In this seat's eval run a case failed because the model invoked the skill and never opened the reference file that held the answer (objectstack-ui/analytics-inline-vs-dataset#5).
  • Supabase and Directus skills tell the agent to read the live schema before proposing anything, and say not to re-document tool parameters.

Scope

  • Per skill: SKILL.md holds first checks (version, read what exists, read the type's contract), at most about 8 traps that pass the schema and fail at run time, and a routing list to the references. Budget 6–9 KB, hard cap 500 lines.
  • Restated option lists and key tables move behind a pointer to the generated reference index or to the contract a door serves.
  • Start with data, UI and automation; the others follow the same shape in later PRs.
  • No trap is removed until a publish-time check covers it or it stays inline.

Done when

  • The three skills meet the budget; their eval cases pass at least as often as before on the runner card's round.
  • The catalog total falls toward 0.5 MB.

Relations

Activity

  1. added
    pm:epic
    area:ai
    on Nov 17, 2026
  2. added
    pm:on-hold
    and removed
    pm:epic
    on Nov 17, 2026
  3. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Released by the maintainer (recorded on #34659 at 23:01Z, comment 6963538703: 「云端的任务你说暂缓,他也不会排的呀,是不是应该先放回队列」 and 「其他技能体系的卡如果改动面大不是理由啊…那就应该开放」). pm:on-hold → pm:queue. Theme: MCP, epic #34659 (in focus).

    Router-sized SKILL.md, one skill per PR, each judged on the skills eval runner (#34764). The eval saw skills invoked with their reference never opened. Measured improvement, no named customer failure, so p2.

  4. added
    domain:skills
    pm:queue
    priority:p2
    and removed
    pm:on-hold
    on Nov 17, 2026
  5. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufziunkXbDT7wUWqfmWz

    Claim: PM loop (area o3-C, epic #34659 p2, seat note of 00:08Z)
    Session: session_01WGufziunkXbDT7wUWqfmWz
    Account: os-support-ai
    Branch: claude/issue-34770-skill-router-ui (Part-of PR 1 of 3; later parts take their own branches claude/issue-34770-skill-router-automation and claude/issue-34770-skill-router-data)
    Worktree: objectstack-issue-34770
    Domain: domain:skills
    Seat: repo:objectstack#3
    File surface (this part): skills/objectstack-ui/SKILL.md (router: first checks, at most ~8 run-time traps, routing list; budget 6–9 KB, hard cap 500 lines), skills/objectstack-ui/rules/** and skills/objectstack-ui/references/** (receive what moves out, or are pointed to), skills/objectstack-ui/evals/** (only if a case's expected answer moves home; layout-free tokens), scripts/check-skills-token-ratchet.mjs (the moved files' rows, by the measured bytes), root .changeset/. ⛔ Not skills/objectstack-ai/** (ask-data text stays until #35038 lands).
    Container & model: M, mode:subagent (area o3-C os-dev), model: CONTRACT_REVIEW_TIER (dispatch-gates --tier printed "Model tier — MANDATORY" for skills/objectstack-ui/SKILL.md ⇢ 'skills/**', clause ①, no one-line exit), effort: high (seat 00:08Z: restructure)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: published skills objectstack-ui, then objectstack-automation and objectstack-data, in objectstack (each SKILL.md restates option lists and key tables the protocol already serves, 15.7 / 28.0 / 26.6 KB on main, so the few run-time traps hide in reference text the model skips: the eval saw a skill invoked with its reference never opened) | none | every authoring agent that installs the skills
    Thread-read: 6963621367
    Premise: holds on origin/main 367e324. skills/objectstack-ui/SKILL.md 15,704 bytes / 304 lines, skills/objectstack-automation/SKILL.md 27,988 / 468, skills/objectstack-data/SKILL.md 26,646 / 473, all above the card's 6–9 KB budget. The runner #34764 is closed and on main (packages/qa/scenarios/src/skill-evals/).
    Part-of plan: one skill per PR, each Part-of #34770, the last Fixes #34770. (1) ui now: no open PR touches skills/objectstack-ui/SKILL.md, rules/** or references/**; #35022 (o3-J, draft) edits only skills/objectstack-ui/evals/* and the ui router does not need to touch its case files. (2) automation after #35002 (#34637) and #34839's PR land, both on references/state-machines-and-approvals.md, a likely destination of moved text. (3) data after #35039 (#34785, SKILL.md), #35042 (#34742, rules/relationships.md) and #34964 (#34504, seat 4, references/data-hooks.md) land.
    Serial constraints cleared: file-level census of every open PR's files against skills/objectstack-{data,ui,automation}/** (at claim time): ui collides with none outside evals/; collisions for parts 2 and 3 are listed above and gate their start. overlap-check before every push.
    Pre-claim lane: domain:skills — seat-assigned to area o3-C.
    Pre-claim deps: none named; released from pm:on-hold by the maintainer (6963538703 on #34659).
    Prior rulings read: #34691 S3 = A (6943107981), #34659 6940528935 and 6963538703; skills line-budget ruling record 6513306068; thread: none; repo: objectstack-ai/objectstack

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 18, 2026
  7. 30 remaining items

  8. added
    pm:blocked
    and removed
    needs-user-decision
    on Nov 24, 2026
  9. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

    Unblocked · 2026-11-24T12:57Z · Blocked-by: #36718 is closed: PR #36932 merged. pm:blocked → pm:queue for the domain:skills lane.

    The ruling 7128031203 (①A ②A ④A) governs the resume: the eval seat's "before" round runs on main now that #36718 has landed; PR #36158 merges main, maps #36718's edits onto the relocated text (the old wording copied into references/examples-flows.md must not come back — re-run #36718's flow-shape checks over every taught example, result 0), re-measures the seven ratchet rows under the ④A principle, and opens with Part of #34770. Re-claim from Resume-from: in 7073349136 and cite Ruling-ref: 7128031203.

  10. added
    pm:queue
    and removed
    pm:blocked
    on Nov 24, 2026
  11. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr

    Claim: PM loop round 4 · 2026-11-25T02:02Z · resume
    Area: a4-A
    Session: session_01QSeKYo86w1wqy2z2fMrryr
    Account: os-justin
    Branch: claude/issue-34770-skill-router-budget (resumed; PR #36158)
    Worktree: the cloud session's own checkout
    Domain: domain:skills
    Seat: repo:objectstack#4
    Resume-from: claude/issue-34770-skill-router-budget@b2226e0ef3aaf16420ac15f86320e6480bb5965d (7073349136; head re-read unchanged, 486 behind main)
    Ruling-ref: 7128031203
    File surface: as claim 7065153458 — skills/objectstack-data/**, skills/objectstack-automation/** (router SKILL.md + the references the moved text lands in), the skills' eval files only where a moved trap changes a case, the seven receiving rows of scripts/check-skills-token-ratchet.mjs re-measured under ruling ④A (each raised row = measured bytes moved in, zero headroom; the sum of ceilings does not rise), the PR's changeset (stop on breach; explain in the report)
    Container & model: XL, mode:cloud, model: CONTRACT_REVIEW_TIER (dispatch-gates --tier: Model tier — MANDATORY: 'skills/**' clause ①), effort: high
    Mode note: its own cloud session, by the maintainer's order relayed by the seat (「大卡各用一个独立的云端会话」).
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7132165703
    Premise: holds (origin/main: the two entry files are still over the 6–9 KB budget; PR #36158 is open, draft, 486 commits behind, at the resume head)
    Serial constraints cleared: #36718 merged (PR #36932); #37170 (merged) edited skills/objectstack-data/rules/relationships.md and was probed against #36158 as merging cleanly at the real sites; the resume merges main and re-runs overlap-check at push
    Pre-claim lane: domain:skills — skills/** (governed, Tier H; the seat hands it to the maintainer after ACCEPT)
    Pre-claim deps: Blocked-by: #36718 — closed
    Prior rulings read: 7128031203 (①A ②A ④A; merge conditions: map #36718's edits onto the relocated text one by one, #36718's flow-shape checks over every taught flow example → 0, first line Part of #34770); #34691 S3 = A. Ruling ②A: the eval seat runs the before (on main now) and after rounds before the PR is readied.

  12. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 25, 2026
  13. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr

    Dispatched · 2026-11-25T02:04Z · mode:cloud: cloud session session_01QSeKYoBFwgPdc8gN56sREh (model at CONTRACT_REVIEW_TIER, effort high), outcome branch claude/issue-34770-skill-router-budget (PR #36158, resumed from b2226e0ef3), under claim 7150262687 and ruling 7128031203. Delivery: commits on the PR branch (merge main, never rebase) + an os-dev-report comment here. The before/after skill-eval rounds (ruling ②A) are the eval seat's; the before round can run on main now.

  14. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr
    os-dev-report

    Resume round for PR #36158 under claim 7150262687 and ruling 7128031203. The eval after-round should use head 715403308738c2d3d01143093c970913b11ed736.

    {
      "issue": 34770,
      "status": "done",
      "branch": "claude/issue-34770-skill-router-budget",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36158",
      "head": "71540330 — two commits over the resume point b2226e0e: 82f4910b (merge of origin/main a10345ab, never rebased, never force-pushed) and 71540330 (pay-down, nine rows re-pinned, changeset). The eval after-round runs on 71540330.",
      "session": "session_01QSeKYoBFwgPdc8gN56sREh",
      "premise_still_valid": true,
      "summary": "Served tier: CONTRACT_REVIEW_TIER (get_session's last_served_model equals the model on the --tier MANDATORY line for 'skills/**'). The claim was verified (newest Claim: 7150262687 names this branch); no second claim posted. PR #36158's branch now holds main (a10345ab) and every edit main made to the two entry files since the branch point is carried onto the relocated text: 26 hunks of the data entry and 11 of the automation entry, each placed by hand (table in the proposed PR body). Carrying main's new teaching (the colour row, fieldHistory, an extension's place, the paired .custom arrangement, showOnCreate, the option-label and subflow corrections) put the nine rows 257 tokens over main's sum, outside condition (b) of ruling fork 4 = A. I did not raise into it: the overage is paid by deleting 1,116 bytes of restatement inside the moved text and the two entries (17 cuts, each listed with where its content stays), after which every receiving row equals its measured bytes moved in at zero headroom and the sum of ceilings is 23 tokens under main's. #36718's flow-shape checks over every flow example the two skills teach: 0 on shapes the text offers. The PR stays draft; nothing was readied, queued, armed, approved or merged.",
      "entry_files": "skills/objectstack-data/SKILL.md: main a10345ab 26,854 bytes · 471 lines · 6,709 tokens -> head 8,902 · 165 · 2,221. skills/objectstack-automation/SKILL.md: 28,198 · 480 · 7,045 -> 8,973 · 181 · 2,239. Frontmatter (lines 1-17) byte-identical to main in both. Old head b2226e0e for comparison: 8,998 and 8,990 bytes. All 14 SKILL.md files: 261,484 bytes · 4,937 lines -> 224,307 · 4,332. skills/** : 1,198,488 -> 1,198,479 bytes over 114 files (-9). skills/objectstack-ui/**: no diff.",
      "ratchet_rows": {
        "principle": "ruling record 7128031203 fork 4 = A: (a) each raised row = measured bytes moved in, zero headroom; (b) the sum of ceilings does not rise. Measured on head 71540330 against origin/main a10345ab.",
        "seven_receiving_rows": [
          "skills/objectstack-data/references/examples-objects.md: main ceiling 1728 (measured 1723) -> 3585; file 6,892 -> 14,338 bytes, +7,446 moved in; headroom 0",
          "skills/objectstack-data/rules/field-types.md: 3541 (3539) -> 4187; 14,156 -> 16,748, +2,592; headroom 0",
          "skills/objectstack-data/rules/relationships.md: 4203 (4192) -> 4332; 16,765 -> 17,325, +560; headroom 0",
          "skills/objectstack-data/rules/security.md: 4292 (4292) -> 4774; 17,168 -> 19,094, +1,926; headroom 0",
          "skills/objectstack-data/rules/validation.md: 2761 (2758) -> 3449; 11,031 -> 13,796, +2,765; headroom 0",
          "skills/objectstack-automation/references/examples-flows.md: 1543 (1543) -> 6552; 6,170 -> 26,206, +20,036; headroom 0",
          "skills/objectstack-automation/references/integration-recipes.md: 2595 (2595) -> 3056; 10,379 -> 12,222, +1,843; headroom 0"
        ],
        "two_entry_rows": "skills/objectstack-data/SKILL.md 6710 -> 2221 and skills/objectstack-automation/SKILL.md 7045 -> 2239, lowered, headroom 0",
        "sum_of_ceilings": "all rows: main 203,016 -> head 202,993 (-23). The nine rows alone: 34,418 -> 34,395. Authored tokens: 198,050 -> 198,049. The nine files: 137,613 -> 137,604 bytes.",
        "condition_a": "holds for all seven: each row is ceil(bytes / 4) of its file; the growth over main is the text moved in plus, in three files, a pointer line that now stays inside the file",
        "condition_b": "holds, by 23 tokens. Before the pay-down it failed by 257 (sum 34,675 against 34,418); no row was raised into that state on the pushed head 71540330. Note: the WIP merge commit 82f4910b carries the old rows and is red on the ratchet by itself (examples-objects, validation, examples-flows, integration-recipes over; security.md resolved to the old value)."
      },
      "main_edits_mapped": [
        "PR #36932 (#36718) subflow row -> references/examples-flows.md § Control Flow, main's row verbatim",
        "PR #36932 item 4 (option label) -> split in main's words: the never-checked half (filter, edge condition) in the entry's item 4; the refused-at-publish half in examples-flows.md § Value slots and the other silent traps — the rest, item 3. The entry's old sentence (parses, matches no row and never fires) is gone",
        "PR #36932 shorter cells, separators, get_record, As JSON -> the moved Flow Types and Control Flow tables verbatim; the entry's Data Operations (git applied it), External Integration separator and notify lead-in",
        "PR #36932 schedule comment and recipe 1 timezone -> merged by git into examples-flows.md and integration-recipes.md; verified intact",
        "PR #36696 stepped-form sentence -> examples-flows.md § Flow Types; showOnCreate bullet, the New-and-Edit list, the conditionalRequired clause -> rules/validation.md § Conditional Field Rules",
        "PR #36089 + #36696 colour: the JSON key in the entry's Object Definition (git applied it); the color row with the business-family guidance -> references/examples-objects.md § Object keys",
        "PR #36775 fieldHistory row, rewritten trackHistory row, shorter feeds / activities / aiReadable / nameField rows -> § Object keys verbatim; not-by-habit -> the entry's sharingModel bullet; two Search Fields trims -> § Search Fields",
        "PR #36527 place (signature and paragraph), shorter priority / extend sentences -> examples-objects.md § Object Extension Model",
        "PR #36568 paired .custom fieldGroups / relatedLists paragraph -> § Object Extension Model; its removal of the insert-reads-null note from Validation Patterns -> removed from the entry too (it stays in rules/validation.md § Script Validation)",
        "Trims by #36775 / #36696 / #36568 / #36527 to rows and sections the router does not carry (label, datasource, files, namespace, titleFormat, displayNameField, enable, fieldGroups, lifecycle rows; the two sharingModel tables; Quick Reference; Naming Rules Summary; Index Patterns; the Field Type Selection lead-in): nothing to place",
        "Merged by git into files this PR does not rewrite, main's lines verified intact outside this PR's insertions: #37170, #37076, #37072, #37044, #36389, #36250, #36222 (relationships.md); #37076, #37044, #36280 (field-types.md); #37019 (security.md and its ratchet block, kept above this PR's block); #36817, #36696, #36222 (examples-objects.md); #36970, #36143 (data-hooks.md); #36800 (seeds.md); #36116 (datasources.md); #36559 (state-machines-and-approvals.md); #36796 and #37043 (other rows of the ratchet script)",
        "skills/objectstack-ui/**: no edit forced. #37170, #37122, #37043, #37063, #36625, #36609, #36527, #36418, #36302, #36250, #36222, #36196, #36089, #36067 merge untouched; the branch has no diff there"
      ],
      "flow_shape_check": "Scratch harness (not committed; rebuilt from PR #36932's description): every fenced block and every start config, cron, start condition and fields write the prose spells, from every non-eval file of the two skills, completed into a flow over objects shaped as the prose describes (each select's label differs from its value), through runAuthoringRules('validate') of the built @objectstack/lint (78 rules). Head 71540330: 'TOTAL examples judged: 14 · skipped (no flow shape): 105 · findings from the ten rules: 2'; both are on the shape the text itself names as refused at publish (examples-flows.md § Value slots — the rest, item 3). On shapes the text offers: 0. Control, old head b2226e0e: 3 (the entry's label condition taught as passing, the reference's label write, recipe 1's cron with no timezone), so the harness can fail. objectstack-data teaches no flow shape (96 fenced blocks, none a flow, node or start config; no cron). Every cron the automation skill spells carries a timezone.",
      "tests": "No behaviour changed, so no ablation. packages/spec/scripts/platform-catalog.test.ts (the one test that names the edited ratchet script) under the verify lock: 'Test Files 1 passed (1)', 'Tests 20 passed (20)', 'VERDICT command-exit 0'. packages/spec check:skill-examples: exit 0, '350 prose examples type-check across 3 surface(s)'. Deterministic: ui/scripts/check-skill-eval-tokens.mjs exit 0; of main's 37 hunks to the two entries 22 are in the head's bundles verbatim and 15 touch router-worded or not-carried text (read by hand); inline code spans of main's entries absent from the head's bundles: data 6 of 249 (five not-carried rows, one corrected token), automation 3 of 331 (as on the first round). Skill evals: NOT MEASURED here, the eval seat's (ruling fork 2 = A): before on main with PR #36932 in it, after on 71540330, both for objectstack-data and objectstack-automation.",
      "gates": "Head 71540330, exit codes captured before any pipe. dispatch-gates --commands: 69 commands; all 69 ran, 68 exit 0, 1 exit 3 (pnpm check:dual-build-cjs-loads, 'Run pnpm build first', NOT MEASURED, left to CI). '✓ dispatch-gates --ran: 69 derived famil(ies) accounted for — 68 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).' Inside the list: check-skills-token-ratchet ('60 authored bundle file(s) within their ceilings', the nine rows at +0, ratcheted authored 198049 / 202993, bundle total 296858) and its --self-test (104 cases pass), check:skill-served-sections ('24 served section(s), each heading exactly once in its file'; '10 JSON fence(s) parse and pass their spec validators'), check:skill-docs, check:skill-refs, check:skill-links (280 links, 149 fragments), 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, check:pm-dispatch-gates. Outside the list, same head, exit 0: check:skill-examples, packages/spec check:generated ('All 14 generated artifacts are up to date'), check-doc-anchors (1116 links). gen-mcp-ask-skill: not touched, not run. Builds under the verify lock after the merge: the @objectstack/scenarios^..., @objectstack/client-react... and @objectstack/lint... closures, 'VERDICT command-exit 0'. overlap-check before each of the two pushes and once more at the end (origin/main 3b4f0b98, open head #35129): 'VERDICT clean exit 0'. check-governed-merges --branch: landing tier H, skills/** x9, 1779 changed lines (+956 / -823) over 11 files; exits 3 without a PR number (low-risk arm and head repo NOT MEASURED). STALE TREE warning: main moved three commits past the merged a10345ab during the run, none on skills/** or the ratchet script; not merged again. CI on PR #36158 for this head: NOT MEASURED, not read and not waited for.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "6 — GitHub MCP reads only: issue_read x3 (card 34770 get and get_comments, card 36718 get_comments), pull_request_read x2 (PR 36158 get and get_comments); claude-code-remote get_session x1. No write tool.",
      "api_writes": "1 — this os-dev-report comment through scripts/pm/post-stamped.mjs. git push x2 to the card branch is not counted. No PR body edit, no label, no assignee write.",
      "deviations": [
        "Condition (b) failed on first measurement after carrying main's edits (+257 tokens). Rather than stop with a red row, I paid it down by deletion, the standing path (先削重复): 17 cuts, 1,116 bytes, each a restatement whose content stays in the bundle, listed in the proposed PR body under 'Paid inside the moved text'. Three of them turn a lead-in of a section the first round moved 'whole' into a one-line pointer at the entry's trap (field-types.md § Changing a field that has data; examples-objects.md § Search Fields and § Object Extension Model). The contract review should read those; reverting any of them puts the sum back over.",
        "Main's removal of the insert-reads-null note from the entry (#36568) is mirrored: the router's one-sentence form is gone from Validation Patterns; the note stays in rules/validation.md, as on main.",
        "The WIP merge commit 82f4910b was pushed before the rows were re-pinned (work is pushed before long steps); by itself it is red on the token ratchet. The head 71540330 is green.",
        "Worktree: the cloud checkout arrived with the card branch in the primary; the edit guard refuses writes there, so I aborted a first merge attempt in the primary (no commit), detached its HEAD and worked in a linked worktree, as the first round did. No empty-branch push (platform-named branch).",
        "main was merged once (a10345ab). It moved three more commits during verification (to 3b4f0b98), none on this PR's surface; dispatch-gates printed STALE TREE and I did not merge again.",
        "The #36718 harness was not committed anywhere, so I rebuilt it from PR #36932's description; its extraction is mine, not the original's. It finds the original's two SKILL.md item-4 findings on the old wording, which is the overlap I could check.",
        "Commits carry the model-free trailer pair the repository requires, not the trailer a harness reminder proposed. No model identifier is in any commit, the changeset or this comment.",
        "test:repo, the type-check lanes and the dogfood battery are left to CI."
      ],
      "open_questions": [
        {
          "question": "The sum of ceilings holds with 23 tokens of margin. Any later main change that adds teaching to either entry file, paid there by trimming text the router does not carry, breaks condition (b) again at the next merge of main. Who lands first while the eval rounds run?",
          "options": [
            "A: the lane holds entry-file edits to skills/objectstack-data/SKILL.md and skills/objectstack-automation/SKILL.md until this PR lands, or lands them into the relocated homes on top of it",
            "B: accept that the next merge of main re-opens the pay-down, one more round"
          ],
          "recommendation": "A, because each such edit costs this PR a round and a fresh eval after-round; the lane seat can order it at dispatch."
        },
        {
          "question": "Two pointers inside hosted-served sections name SKILL.md sections that now live in examples-flows.md ('SKILL.md § Prerequisite' in § Time-relative triggers, byte-pinned; 'SKILL.md § Assignment rules' in state-machines-and-approvals.md § Approver Types, a file outside the seven rows). The entry's routing table still leads there. Leave them?",
          "options": [
            "A: leave them (this head); the routing table is one hop",
            "B: re-point both, which moves the byte-pinned served section and a row outside ruling fork 4"
          ],
          "recommendation": "A now; B belongs with the cloud repoint (#36934), when the served sections move anyway."
        },
        {
          "question": "Is the pay-down accepted as built, or does the maintainer prefer the three 'whole' lead-ins restored and the row raised by the measured remainder?",
          "options": [
            "A: accept the 17 cuts (sum of ceilings -23)",
            "B: restore the three trap lead-ins (486 bytes) and rule a raise of about 100 tokens on examples-objects.md and field-types.md"
          ],
          "recommendation": "A: each cut sentence is said by the entry file a reader has already loaded, and B is outside condition (b), so it is the maintainer's."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: cloud (#36934) · the hosted table should name the 'rest' sections and the relocated homes tabled in the PR body · noted, not filed",
        "carrier: none · packages/qa/scenarios/src/runner/door-rules-corpus.ts keeps a dated copy of the automation entry's item 4 as main worded it before PR #36932; it is a snapshot by its own header and outside this card's surface · noted, not filed"
      ],
      "proposed_pr_body": "The fenced block below this JSON, verbatim (23,690 bytes): first line `Part of #34770`. Not sent by me: a dev does not edit the PR body after pr_create; the zone refreshes it.",
      "Dev-effort": "high",
      "Rounds": 2
    }

    Proposed PR body

    Part of #34770
    Clause-②: no
    Metadata-protocol: none
    
    Part of #34770, parts 2 and 3 of 3 (objectstack-automation and objectstack-data; part 1, objectstack-ui, landed as PR #35077). The card stays open after this merges: its line "the catalog total falls toward 0.5 MB" is not met (`skills/**` is 1,198,479 bytes, 9 fewer than on `main`), and the other skills take the same shape in later PRs.
    
    ## 维护者速读
    
    - **用户能看到什么变化**:用 AI 搭建数据模型和自动化流程的用户无感;AI 每次加载这两份技能先读到的入口文件,从约 27 KB 缩到 9 KB,只留动手前的检查、运行时才出错的陷阱、和「做什么就打开哪份文件」的表。
    - **为什么做**:属于「各种搭建方式共用的底座:已发布技能内容」这条线:入口越短,AI 越早读到真正相关的那份规则,不在长文里漏掉关键陷阱。
    - **出错会怎样**:AI 可能没去打开被搬走的那份文件而答错;托管产品按标题下发的十一节现在更短,搬走的细节要等云端改指向后托管客户端才读得到。撤回只需回退这一次合并,不涉及数据和运行时。
    - **要你做什么**:评测席的前后两轮评测结果出来后,审阅并亲手合并这份对外发布的技能文字。
    
    ## What changes
    
    The entry files of two published skills become routers. Frontmatter (lines 1–17, `description` included) is byte-identical to `main` in both.
    
    | File | `main` at `a10345ab` | This head |
    |:--|:--|:--|
    | `skills/objectstack-data/SKILL.md` | 26,854 bytes · 471 lines · 6,709 tokens | 8,902 bytes · 165 lines · 2,221 tokens |
    | `skills/objectstack-automation/SKILL.md` | 28,198 bytes · 480 lines · 7,045 tokens | 8,973 bytes · 181 lines · 2,239 tokens |
    | `skills/objectstack-ui/SKILL.md` | 8,937 bytes | no diff (part 1, PR #35077) |
    
    Each entry now holds:
    
    - **First checks (4).** The installed `@objectstack/spec` version; what the project already has; the type's contract (`references/_index.md` to the Zod source; what a running environment's `GET /api/v1/meta/types` does and does not say); `os validate` before reporting done.
    - **Traps that parse and then fail at run time.**
      - objectstack-data: three numbered (a changed field does not reach a database that has rows; search reads only the object's own stored columns; an object you do not own is extended, never redeclared), `## Conditional Field Rules`, and the four sections the hosted door serves.
      - objectstack-automation: the trigger-on-the-start-node paragraph and the seven sections the hosted door serves.
    - **Where to go.** One table: what is being authored, the file to open first. It opens with "Open the file for what you are writing before you write it."
    - **One bound enumeration stays inline** in objectstack-data: `### Access depth (scope-depth) — the ERP "see my unit / my unit and below" axis`, which `check-skill-identifier-liveness` binds 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.md` section no longer says:
    
    | File | Bytes on `main` → now | What it received |
    |:--|:--|:--|
    | `objectstack-data/references/examples-objects.md` | 6,892 → 14,338 | `## Object keys` (the rows the entry no longer carries, `color` among them; the `enable` flags that surprise, `fieldHistory` and `trackHistory` among them), `## Search Fields (searchableFields)`, `## Object Extension Model` (`place` and the paired `.custom` arrangement among it) |
    | `objectstack-data/rules/field-types.md` | 14,156 → 16,748 | `## Changing a field that has data` (main's Schema evolution section), `## Choosing a type` (the detail behind Field Type Selection) |
    | `objectstack-data/rules/validation.md` | 11,031 → 13,796 | `## Conditional Field Rules`: the checked example, its bullets (`showOnCreate` among them), what a bare field ref does at run time |
    | `objectstack-data/rules/security.md` | 17,168 → 19,094 | `## Ownership queues` whole, `## Access depth` (the mechanics behind the bound section) |
    | `objectstack-data/rules/relationships.md` | 16,765 → 17,325 | `## Record owner, and other people on a record` |
    | `objectstack-automation/references/examples-flows.md` | 6,170 → 26,206 | Flow Types, packaged flows, the control-flow node table, the detail of `http` / `connector_action` / `screen`, Flow Variables, Triggers, Assignment rules, and a "the rest" section for each of `notify`, failure routing and `runAs`, filter operands, value slots. The two existing examples are byte-identical under a new `## Long examples` |
    | `objectstack-automation/references/integration-recipes.md` | 10,379 → 12,222 | `## Inbound webhook (api) triggers` whole, `## When the answer is platform code` |
    
    ### The sections the hosted door serves by exact heading (ruling ① A)
    
    `packages/spec/scripts/skill-served-sections.json` lists eleven sections of these two entry files. All eleven headings stay in `SKILL.md`, once each, at main's level, in the form the list declares. Their text is shorter; the hosted table is repointed by the cloud card filed with the ruling (#36934).
    
    | Served section (in `SKILL.md`) | Bytes on `main` → now | Where the rest is |
    |:--|:--|:--|
    | data · `### Object Definition` | 3,926 → 1,344 | `references/examples-objects.md` § Object keys |
    | data · `### Field Type Selection` | 1,363 → 762 | `rules/field-types.md` § Choosing a type |
    | data · `### Relationship Patterns` | 1,542 → 872 | `rules/relationships.md` § Relationship Types (already there), § Record owner, and other people on a record |
    | data · `### Validation Patterns` | 821 → 426 | `rules/validation.md` § Available Rule Types, § Script Validation, § State Machine Validation (all already there) |
    | automation · `#### Data Operations` | 451 → 451 | byte-identical to main |
    | automation · `#### External Integration` | 2,603 → 792 | `references/examples-flows.md` § External Integration — the rest |
    | automation · the `notify` section | 2,115 → 884 | `references/examples-flows.md` § notify — the rest |
    | automation · `### Failure routing & runAs` | 3,705 → 957 | `references/examples-flows.md` § Failure routing & runAs — the rest |
    | automation · `### Filter operands (config.filter)` | 1,173 → 409 | `references/examples-flows.md` § Filter operands — the rest |
    | automation · `## Valid-but-silently-wrong (passes build, fails at runtime)` | 5,139 → 1,933 | `references/examples-flows.md` § Value slots and the other silent traps — the rest |
    | automation · `## Integrations are declared, not coded` | 875 → 408 | `references/integration-recipes.md` § When the answer is platform code |
    
    The door served 7,652 and 16,061 bytes of the two entries on `main`; it serves 3,404 and 5,834 until the table moves. Not touched: the other thirteen served sections. `examples-flows.md` § Time-relative triggers is byte-identical (sha-256 `982502ce6e3a0d73…` before and after); `state-machines-and-approvals.md` is not in the diff.
    
    ### Main's edits since the branch point, carried onto the relocated text
    
    The branch was 486 commits behind. `main` (`a10345ab`) was merged, not rebased (`82f4910b`). Git flagged three conflicts (both entry files, the ratchet script); the entry files resolve to the router, and every hunk `main` made to them was then placed by hand. 26 hunks in the data entry, 11 in the automation entry, read off `git diff 411fe24b a10345ab`:
    
    | `main` change (PR) | Where it is now |
    |:--|:--|
    | #36932, `subflow` row: the node fails at run time for the non-resolving cases; `os validate` warns `flow-subflow-unknown` on any name this stack lacks | `references/examples-flows.md` § Control Flow, main's row verbatim |
    | #36932, item 4 (option label): refused at publish on a start `condition` or a `fields` write (inline options); never checked in a `filter` or an edge `condition` | Split, in main's words: the half no check reads stays in the entry (`## Valid-but-silently-wrong` item 4); the half publish refuses is in § Value slots and the other silent traps — the rest, item 3 |
    | #36932, shorter cells and separators (Flow Types, Control Flow, Data Operations, `get_record`, "As JSON") | The two moved tables carry main's rows verbatim; Data Operations and the `notify` lead-in in the entry carry them too |
    | #36932, the schedule comment and recipe 1's `timezone: 'UTC'` | Merged by git into the two reference files, unchanged |
    | #36696, the stepped-form sentence (a named form view a `type: 'form'` action opens) | `references/examples-flows.md` § Flow Types |
    | #36696, `showOnCreate: false` bullet; "New and Edit, named and public forms…"; the shorter `conditionalRequired` clause | `rules/validation.md` § Conditional Field Rules |
    | #36089 and #36696, `"color": "blue"` in the object JSON; the `color` row with the business-family guidance | The JSON in the entry's `### Object Definition`; the row in `references/examples-objects.md` § Object keys |
    | #36775, `fieldHistory` row (on by default) and the rewritten `trackHistory` row; shorter `feeds` / `activities` / `aiReadable` / `nameField` rows | § Object keys, main's rows verbatim. `trackHistory` was "not carried" before; it is now |
    | #36775, "not by habit", "not silently dropped", the mirror-maintenance sentence | The entry's `sharingModel` bullet; § Search Fields |
    | #36527, `place` in the `defineObjectExtension` signature and its paragraph; the shorter `priority` / `extend` sentences | `references/examples-objects.md` § Object Extension Model |
    | #36568, the paired `.custom` package's `fieldGroups` / `relatedLists` paragraph | § Object Extension Model |
    | #36568, the insert-reads-`null` note removed from `### Validation Patterns` | Removed from the entry here too; it stays in `rules/validation.md` § Script Validation, as on main |
    | Trims to rows and sections the router does not carry (`label`, `datasource`, `files`, `namespace`, `titleFormat`, `displayNameField`, `enable`, `fieldGroups`, `lifecycle` rows; the required-properties and `sharingModel` tables; Quick Reference; Naming Rules Summary; Index Patterns; the Field Type Selection lead-in) | Nothing to place: those rows are served by the contract or a check, or the routing table replaces the section |
    
    Mechanical cross-checks at this head: of main's 37 hunks to the two entries, 22 are in the bundle verbatim and 15 touch router-worded or not-carried text (each read by hand); a scan for 6-word runs `main` removed from any file of the three skills that still survive in the two bundles reports one hunk, a false positive ("fails the run (`invalid_option`). Read the field's `options`." — main's own current words, adjacent here because the sentence between them is the half the entry keeps).
    
    Other `main` commits on the three skills merged by git into files this PR does not rewrite, checked to leave main's lines intact outside this PR's own insertions: #37170, #37076, #37072, #37044, #36389, #36250, #36222 (`rules/relationships.md`); #37076, #37044, #36280 (`rules/field-types.md`); #37019 (`rules/security.md`, with its ratchet block); #36817, #36696, #36222 (`references/examples-objects.md`); #36970, #36143 (`data-hooks.md`); #36800 (`seeds.md`); #36116 (`datasources.md`); #36559 (`state-machines-and-approvals.md`). `skills/objectstack-ui/**` needed no edit (#37170, #37122, #37043, #37063, #36625, #36609, #36527, #36418, #36302, #36250, #36222, #36196, #36089, #36067 merge untouched).
    
    ### Paid inside the moved text
    
    Carrying main's new teaching put the nine rows 257 tokens over main's sum. It is paid by deletion, each cut a restatement whose content stays in the bundle; no fact, trap or example left:
    
    | Cut | Bytes | Where the content stays |
    |:--|--:|:--|
    | `field-types.md` § Changing a field: the opening paragraph becomes one line | 211 | The entry's trap 1; the table's first row |
    | `examples-objects.md` § Search Fields: "This is the one prescription…" lead-in | 138 | The entry's trap 2; the section heading ("mirror the value, always") |
    | `examples-objects.md` § Object Extension Model: the relabel lead-in | 137 | The entry's trap 3 |
    | `examples-flows.md` § Value slots — the rest: the slot list becomes its complement | 66 | The entry's item 1 lists the others |
    | `examples-flows.md` § Failure routing — the rest: sweep and `fault`-edge clauses | 134 | The entry's bullets |
    | `examples-flows.md`: the line explaining "the rest"; the text-slot list as its complement | 113 | The headings; the entry's item 1 |
    | The entry's insert-reads-`null` sentence (main's own cut, above) | 70 | `rules/validation.md` § Script Validation |
    | Three long table separators; three connective lines (`examples-objects.md`, `security.md`, the data entry's first check); the multi-value lookup note in main's shorter words; `validation.md` § Conditional Field Rules lead-in | 247 | Markup and wording only |
    
    ### Ratchet rows (ruling ④ A)
    
    | Row | `main` ceiling | Now | Bytes moved in | Headroom |
    |:--|--:|--:|--:|--:|
    | `objectstack-data/SKILL.md` | 6710 | 2221 | lowered | 0 |
    | `objectstack-automation/SKILL.md` | 7045 | 2239 | lowered | 0 |
    | `objectstack-data/references/examples-objects.md` | 1728 | 3585 | +7,446 | 0 |
    | `objectstack-data/rules/field-types.md` | 3541 | 4187 | +2,592 | 0 |
    | `objectstack-data/rules/relationships.md` | 4203 | 4332 | +560 | 0 |
    | `objectstack-data/rules/security.md` | 4292 | 4774 | +1,926 | 0 |
    | `objectstack-data/rules/validation.md` | 2761 | 3449 | +2,765 | 0 |
    | `objectstack-automation/references/examples-flows.md` | 1543 | 6552 | +20,036 | 0 |
    | `objectstack-automation/references/integration-recipes.md` | 2595 | 3056 | +1,843 | 0 |
    
    (a) Every receiving row equals `ceil(bytes / 4)` of its file, whose growth over `main` is the text moved in. (b) The sum of all ceilings falls from 203,016 to 202,993 (−23); authored tokens from 198,050 to 198,049. The nine files together are 137,613 → 137,604 bytes. Each row's comment says what moved from where and cites ruling record 7128031203.
    
    **One correction** (unchanged from the first round): the multi-value lookup note showed a `{record.tags.0}` token "in flow values", a spelling objectstack-automation teaches as refused; the note, now in `rules/relationships.md`, shows `record.tags[0]`.
    
    ## Tests
    
    ### Skill evals, before and after: owed to the eval seat (ruling ② A)
    
    Not run here. After-round head: `71540330` (this PR's head; any later push changes it and the report names the new one). Before-round: `main` with PR #36932 in it. Both for objectstack-data and objectstack-automation:
    
    ```bash
    pnpm install && pnpm --filter '@objectstack/scenarios^...' build
    pnpm --filter @objectstack/scenarios skill-evals --skills objectstack-data,objectstack-automation --concurrency 4 --out OUT_DIR
    ```
    
    ### #36718's flow-shape checks over every flow example the two skills teach: 0
    
    A scratch harness (not committed) extracts every fenced block and every start config, cron, start condition and `fields` write the prose spells, from every non-eval file of the two skills; completes each fragment into a flow over objects shaped as the prose describes them (each select with a label that differs from its value); and runs `runAuthoringRules('validate', …)` of the built `@objectstack/lint` (78 rules).
    
    - This head: `TOTAL examples judged: 14 · skipped (no flow shape): 105 · findings from the ten rules: 2`. Both are on the shape the text itself names as refused at publish (`examples-flows.md` § Value slots — the rest, item 3: the label in a start `condition` and in a `fields` write). On shapes the text offers: **0**.
    - Control, the old head `b2226e0e` (the old wording): 3 findings on shapes that text offered — the entry's "parses, matches no row and never fires", the reference's label write, recipe 1's cron with no `timezone`.
    - objectstack-data teaches no flow shape (96 fenced blocks, none holds a flow, node or start config; no cron). Every cron the automation skill spells carries a `timezone`.
    
    ### Reachability and nothing-lost (deterministic)
    
    - `node ui/scripts/check-skill-eval-tokens.mjs`: exit 0, every `must_contain` token is taught by its own skill bundle.
    - objectstack-data: 65 behaviour cases, 236 tokens; 50 tokens in 26 cases are in main's entry and not in the router, every one in a bundle file the routing table names. objectstack-automation: 29 cases, 126 tokens; 26 tokens in 12 cases, likewise.
    - Every inline code span of main's two entries, looked up in the head's bundles: objectstack-data 249 spans, 6 absent (`'default'`, `displayNameField`, `apiEnabled`, `titleFormat`, `title-format-retired`: rows not carried; `{record.tags.0}`: the corrected token). objectstack-automation 331 spans, 3 absent (`dist/`; the wrong-form example of trap 2, whose right form stays; one span present without its `source:` prefix).
    
    No ablation: the diff changes documentation and ratchet numbers, no tested behaviour.
    
    ## Acceptance notes
    
    1. **The hosted door serves less text from eleven sections until its table moves** (ruling ① A; the repoint is #36934's).
    2. **Both entries sit at the top of the 6–9 KB band** (8,902 and 8,973 bytes); their rows pin it.
    3. **The catalog is flat, not smaller**: `skills/**` 1,198,488 → 1,198,479 bytes over 114 files. All 14 `SKILL.md` files together: 261,484 bytes · 4,937 lines → 224,307 · 4,332.
    4. **`references/examples-flows.md` is 26.2 KB.** Splitting it needs new ratchet rows; the ruling left that out until an eval round shows a loss there.
    5. **Two pointers inside served sections now go through the routing table**: `examples-flows.md` § Time-relative triggers says "SKILL.md § Prerequisite", and `state-machines-and-approvals.md` § Approver Types says "SKILL.md § Assignment rules". Both sections moved to `examples-flows.md`; the entry's routing table names them. Left as they are: the first section is byte-pinned for the hosted door, the second file is not in the diff.
    6. **The sum of ceilings has 23 tokens of margin.** A later `main` change that adds teaching to either entry file and pays for it by trimming text the router does not carry will need the same pay-down when this branch next merges `main`.
    7. **Old anchors** are listed in the changeset. The anchors other skills link (`objectstack-data/SKILL.md#conditional-field-rules`, `objectstack-automation/SKILL.md#failure-routing--runas`) still resolve.
    
    ## Verification
    
    **Read first, by risk:**
    
    1. `skills/objectstack-automation/SKILL.md` item 4 and `references/examples-flows.md` § Value slots — the rest, item 3: main's corrected option-label teaching, split across the two.
    2. The pay-down cuts in `references/examples-objects.md`, `rules/field-types.md` and `references/examples-flows.md` (table above): is each cut sentence still said by the entry?
    3. `references/examples-objects.md` § Object keys and § Object Extension Model: main's five additions, verbatim.
    
    **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`, the nine rows above read `(+0)`, and `ratcheted (authored)` reads `198049 / 202993`.
    
    **Head `71540330`** (two commits over `b2226e0e`: the merge of `main` at `a10345ab`, `82f4910b`, and the pay-down with the re-pinned rows). Exit codes captured before any pipe.
    
    **Derived list.** `node scripts/pm/dispatch-gates.mjs --commands` printed 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).`
    
    - NOT MEASURED: `pnpm check:dual-build-cjs-loads`, exit 3, "Run `pnpm build` first": it needs a full build, which this change does not owe locally. Left to CI.
    - The dist-reading gates read the `@objectstack/scenarios^...`, `@objectstack/client-react...` and `@objectstack/lint...` closures, built under the verify lock after the merge (`VERDICT command-exit 0`).
    - The derivation warned STALE TREE: `main` moved three commits past the merged `a10345ab` during the run; none touches `skills/**` or the ratchet script (one edits `scripts/pm/check-governed-merges.mjs`). `main` was not merged again.
    
    **Outside the derived list, at this head, all exit 0:** `packages/spec` `check:skill-examples` (`✅ 350 prose examples type-check across 3 surface(s)`); `packages/spec` `check:generated` (14 generated artifacts up to date); `node scripts/check-doc-anchors.mjs` (1116 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.ts` under the verify lock (1 file, 20 tests passed, `VERDICT command-exit 0`). The ratchet's own `--self-test` is in the derived list: `104 cases pass`.
    
    **The twelve headings, one `grep -c` each** (the eleven the hosted door reads from these two files, and the anchor two other skills link): `Object Definition`, `Field Type Selection`, `Relationship Patterns`, `Validation Patterns`, `Conditional Field Rules` in `skills/objectstack-data/SKILL.md`; `Data Operations`, `External Integration`, the `notify` heading, `Failure routing & runAs`, `Filter operands (config.filter)`, `Valid-but-silently-wrong (passes build, fails at runtime)`, `Integrations are declared, not coded` in `skills/objectstack-automation/SKILL.md`: each answers 1, at main's level. `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.`
    
    ```text
       skills/objectstack-automation/SKILL.md                       2239 /   2239   (+0)
       skills/objectstack-automation/references/examples-flows.md   6552 /   6552   (+0)
       skills/objectstack-automation/references/integration-recipes.md   3056 /   3056   (+0)
       skills/objectstack-data/SKILL.md                             2221 /   2221   (+0)
       skills/objectstack-data/references/examples-objects.md       3585 /   3585   (+0)
       skills/objectstack-data/rules/field-types.md                 4187 /   4187   (+0)
       skills/objectstack-data/rules/relationships.md               4332 /   4332   (+0)
       skills/objectstack-data/rules/security.md                    4774 /   4774   (+0)
       skills/objectstack-data/rules/validation.md                  3449 /   3449   (+0)
       ratcheted (authored)                                       198049 / 202993   (-4944)
       bundle total (whole shipped tree)                          296858
    overlap-check: claude/issue-34770-skill-router-budget (7154033087) changes 11 file(s); against origin/main (3b4f0b9832) and 1 PR head(s)
      ✓ origin/main: merges cleanly
      ✓ #35129 (shares skills/objectstack-automation/SKILL.md, skills/objectstack-data/SKILL.md): merges cleanly
    VERDICT clean exit 0
    ```
    
    **Landing tier.** `node scripts/pm/check-governed-merges.mjs --branch claude/issue-34770-skill-router-budget`: `landing tier: H(人合)`, `skills/**` ×9; 1779 changed lines (+956 / −823) 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); that arm cannot apply, the ratchet script is in the diff.
    
    **Not run locally, CI's:** the type-check lanes, `Build Core`, `Test Core` (`test:repo` included), the repo lint, the dogfood battery (no `!` in the title and no narrowing arm, so not owed here).
    
    ---
    _Generated by [Claude Code](https://claude.ai/code/session_01QSeKYoBFwgPdc8gN56sREh)_
  15. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

    Go recorded · 2026-11-25T02:59Z · ruling ②A (7128031203): the before round.

  16. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr
    os-dev-report

    Fix round on PR #36158 for the zone's rework message (S1 must-fix, S2 should-fix; nits left). New head 8fbebd2797f62b61f2dd2cbc1bd251480d8fafe1.

    {
      "issue": 34770,
      "status": "done",
      "round": "fix round on the zone's rework message (S1 must-fix, S2 should-fix)",
      "branch": "claude/issue-34770-skill-router-budget",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36158",
      "head": "8fbebd2797f62b61f2dd2cbc1bd251480d8fafe1 — three commits over 71540330: d8298889 (merge of origin/main d15e4391), 76f014c9 (S1 + S2) and 8fbebd27 (a second lost clause of the same class, found by my own sweep). The eval after-round runs on this head.",
      "session": "session_01QSeKYoBFwgPdc8gN56sREh",
      "premise_still_valid": true,
      "summary": "S1 and S2 are fixed, plus one more residue of S1's class that my own sweep over every sentence of main's two entry files turned up. S1: main's Validation Patterns ended with the clause that a state machine's `transitions` keys and values are option `value`s, never labels; it is now one sentence of rules/validation.md § State Machine Validation, in main's words. S2: the two pointers inside hosted-served sections name their real homes (examples-flows.md '§ Prerequisite above'; state-machines-and-approvals.md 'examples-flows.md § Assignment rules'), headings untouched. The extra find: main's entry said `defineStack` errors unless the stack declares `requires: ['hierarchy-security']`; the routed home had kept only that the capability is needed, so rules/security.md now names the refusal and its code, paid inside the file. Ruling ④A holds on every row: each raised row equals its measurement at zero headroom, and the sum of ceilings is 203,006 against main's 203,016 (-10).",
      "s1": "skills/objectstack-data/rules/validation.md § State Machine Validation: '`[]` marks a terminal state; `transitions` keys and values are option `value`s, never labels:' — main's clause, on the sentence that already introduces the JSON example. Row re-pinned 3449 -> 3466 (file 13,796 -> 13,861 bytes, +65), zero headroom. Not paid inside the file: condition (b) had room, and the sum still falls. Eval objects-fields-relationships#11 grades it; its four must_contain tokens now resolve to examples-objects.md and validation.md (the fourth, \"initialStates: ['draft']\", is the TypeScript spelling and is absent from main's bundle too — pre-existing, and check-skill-eval-tokens is green on both trees).",
      "s2": "skills/objectstack-automation/references/examples-flows.md L442: 'SKILL.md § Prerequisite' -> '§ Prerequisite above' (that section is L223 of the same file), 3 bytes shorter, so the file's row falls 6552 -> 6551. skills/objectstack-automation/references/state-machines-and-approvals.md L232: 'SKILL.md § Assignment rules' -> 'examples-flows.md § Assignment rules', +9 bytes, which the row's 2 tokens of headroom absorb: its ceiling stays 5936 (23,734 -> 23,743 bytes, measured 5936). L360 'SKILL.md § Failure routing' left as it is, still correct. Headings unchanged; check-skill-served-sections green.",
      "extra_find": "skills/objectstack-data/rules/security.md § Access depth: 'Open-core boundary ADR-0016: the paid plugin goes in `plugins[]`, and `defineStack`, a save and a publish refuse a hierarchy-relative grant the stack does not declare (`STACK_HIERARCHY_SCOPE_CAPABILITY_REQUIRED`).' Verified in code before writing it: packages/spec/src/stack.zod.ts validateHierarchyScopeCapability refuses at authoring time with that code (stack.zod.ts:4272) and packages/metadata-protocol/src/runtime-authoring-gate.ts judges the same grant at save and publish, so a check does cover this one — it is restored because the entry no longer carries it and the sentence is sharper for naming the door. Paid inside the file, 2 restatement cuts (the queue rule's two closure examples, already stated by the bullet above it; the position rule's repeat of the two refusal names): the file is 17,168 -> 19,082 bytes (+1,914) and the row is re-pinned 4292 -> 4771, which is 3 tokens BELOW the 4774 this PR asked for before the fix round.",
      "ratchet_rows": {
        "nine_rows": [
          "skills/objectstack-data/SKILL.md: 6710 -> 2221 (lowered); 26,854 -> 8,902 bytes; headroom 0",
          "skills/objectstack-automation/SKILL.md: 7045 -> 2239 (lowered); 28,198 -> 8,973; headroom 0",
          "skills/objectstack-data/references/examples-objects.md: 1728 -> 3585; 6,892 -> 14,338 (+7,446); headroom 0",
          "skills/objectstack-data/rules/field-types.md: 3541 -> 4187; 14,156 -> 16,748 (+2,592); headroom 0",
          "skills/objectstack-data/rules/relationships.md: 4203 -> 4332; 16,765 -> 17,325 (+560); headroom 0",
          "skills/objectstack-data/rules/security.md: 4292 -> 4771 (was 4774 before this round); 17,168 -> 19,082 (+1,914); headroom 0",
          "skills/objectstack-data/rules/validation.md: 2761 -> 3466 (was 3449); 11,031 -> 13,861 (+2,830); headroom 0",
          "skills/objectstack-automation/references/examples-flows.md: 1543 -> 6551 (was 6552); 6,170 -> 26,203 (+20,033); headroom 0",
          "skills/objectstack-automation/references/integration-recipes.md: 2595 -> 3056; 10,379 -> 12,222 (+1,843); headroom 0"
        ],
        "tenth_row_touched": "skills/objectstack-automation/references/state-machines-and-approvals.md: ceiling unchanged at 5936 (23,734 -> 23,743 bytes; measured 5936, headroom 0 after the edit)",
        "sum_of_ceilings": "all rows: main 203,016 -> head 203,006 (-10). Authored tokens 198,061. The reviewer's estimate was +17 -> 203,010; the final figure is lower because examples-flows.md fell 1 token, security.md was re-pinned 3 below its earlier ask, and the pay-down inside security.md covered S1's and the extra find's cost.",
        "conditions": "(a) every raised row equals ceil(bytes / 4) of its file with zero headroom; (b) the sum does not rise, by 10 tokens."
      },
      "catalog": "skills/** 1,198,474 -> 1,198,524 bytes over 114 files (+50: S1's clause, the extra find and the two pointers, less the pay-down). All 14 SKILL.md files: 261,470 bytes · 4,937 lines -> 224,293 · 4,332. Entry files unchanged this round: 8,902 and 8,973 bytes.",
      "main_merge": "origin/main d15e4391 merged as d8298889 — it had moved on skills/** since a10345ab: commit 2a6f26a4 (#37173) edits skills/objectstack-platform/SKILL.md only (4 lines), which this PR does not touch and which merged untouched. The ratchet script did not move on main. After the fix round main moved again to 0a1b69c0; nothing of it touches skills/** or the ratchet script, so it was not merged.",
      "gates": "Head 8fbebd27, exit codes captured before any pipe. dispatch-gates --commands: 69 commands; all 69 ran, 68 exit 0, 1 exit 3 (pnpm check:dual-build-cjs-loads, 'Run pnpm build first', NOT MEASURED, left to CI). '✓ dispatch-gates --ran: 69 derived famil(ies) accounted for — 68 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).' Named in the zone's message: check-skills-token-ratchet ('60 authored bundle file(s) within their ceilings'; the nine rows and the tenth at +0; ratcheted authored 198061 / 203006) and its --self-test (104 cases pass); check:skill-served-sections ('24 served section(s), each heading exactly once in its file'; 10 JSON fences pass their validators); check:skill-links (280 links, 149 fragments); check:skill-examples ('350 prose examples type-check across 3 surface(s)'); overlap-check at this head against origin/main 0a1b69c0 and open head #35129: 'VERDICT clean exit 0'. Also at this head, exit 0: check:skill-identifier-liveness, check:skill-docs, check:skill-refs, check-doc-anchors (1116 links), check-skill-eval-tokens, check:nul-bytes, check:published-files, check:ratchet-remedy-authority, check:pm-governed-merges, and packages/spec/scripts/platform-catalog.test.ts under the verify lock (1 file, 20 tests, 'VERDICT command-exit 0'). The @objectstack/client-react... and @objectstack/lint... closures were rebuilt under the lock after the merge ('VERDICT command-exit 0'). check-governed-merges --branch: landing tier H, skills/** ×10, 1799 changed lines (+968 / -831) over 12 files, under the 3,000-line threshold. CI on PR #36158 for this head: NOT MEASURED, not read and not waited for.",
      "flow_shape_check": "Re-run at this head: 'TOTAL examples judged: 14 · skipped (no flow shape): 105 · findings from the ten rules: 2 · registry size: 79' — the two are the shape the text itself names as refused at publish (examples-flows.md § Value slots — the rest, item 3). On shapes the text offers: 0, unchanged. The registry is 79 rules now (78 before the merge of main), so the run also covers the rule main added.",
      "loss_scans": "Re-run at this head: inline code spans of main's two entries absent from the head's bundles — data 6 of 249, automation 3 of 331, the same named sets as before (not-carried rows and the one corrected token). Sentence-level sweep (new this round, the instrument that found the extra find): every sentence and table cell of main's two entry files scored against the merged bundle by 3-word overlap; 70 of 201 data units and the automation units under 45% were read by hand. Everything flagged is either a row deliberately not carried (the contract or a check states it), a routing line the table replaces, or text whose content is in the bundle in other words — except the two clauses fixed this round.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0 this round",
      "api_writes": "1 this round — this fix-round os-dev-report through scripts/pm/post-stamped.mjs. git push x2 to the card branch is not counted. No PR body edit.",
      "deviations": [
        "One extra fix beyond the two the round named: the access-depth refusal (see extra_find). It is the same class as S1 (a run-time refusal main's entry stated and the routed home did not), it was found by my own sweep rather than the review, and a publish check does cover it, so the card rule was not breached either way. It cost 2 restatement cuts inside security.md and lowered that row 3 tokens below the ceiling this PR previously asked for.",
        "The first gate batch was started at 76f014c9 and stopped at 5 of 69 when the extra find changed security.md and the ratchet script under it; the reported run is the second, complete, at 8fbebd27. Stopped by recorded PID (4357) and its one recorded child, never by name.",
        "main was merged once this round (d15e4391) because it had moved on skills/**; it moved again afterwards (0a1b69c0) with nothing on this surface and was not merged again.",
        "Nits N1/N2 left, as the round said.",
        "test:repo, the type-check lanes and the dogfood battery are left to CI."
      ],
      "pr_body_deltas": [
        "Head: `8fbebd27` (three commits over `71540330`: the merge of `main` at `d15e4391`, the S1/S2 fix, and the access-depth clause).",
        "Ratchet table: `rules/security.md` 4292 -> 4771 (file 17,168 -> 19,082, +1,914); `rules/validation.md` 2761 -> 3466 (11,031 -> 13,861, +2,830); `references/examples-flows.md` 1543 -> 6551 (6,170 -> 26,203, +20,033). The other six rows unchanged. A tenth row is touched without being raised: `references/state-machines-and-approvals.md` stays 5936 (23,734 -> 23,743 bytes).",
        "Arithmetic line: the sum of all ceilings falls from 203,016 to 203,006 (-10); authored tokens 198,061.",
        "Catalog line: `skills/**` 1,198,474 -> 1,198,524 bytes over 114 files (+50). All 14 `SKILL.md` files: 261,470 bytes · 4,937 lines -> 224,293 · 4,332.",
        "'Paid inside the moved text' table: add two rows — the queue rule's two closure examples and the position rule's repeat of the two refusal names, both in `rules/security.md`, paying for the access-depth refusal.",
        "'Main's edits carried' table: add the merge of `d15e4391` (#37173 touches `skills/objectstack-platform/SKILL.md` only, merged untouched).",
        "Acceptance note 5 is replaced: the two pointers now name their real homes (`§ Prerequisite above` inside `examples-flows.md`; `examples-flows.md § Assignment rules` in `state-machines-and-approvals.md`), the L~360 `SKILL.md § Failure routing` pointer is still correct and left as it is.",
        "New line under 'Every rule that left an entry file': `rules/validation.md § State Machine Validation` now carries the clause that a state machine's `transitions` keys and values are option `value`s, never labels, and `rules/security.md § Access depth` names the `defineStack` / save / publish refusal and its code.",
        "Verification two-minute check: the nine rows read `(+0)` and `ratcheted (authored)` reads `198061 / 203006`.",
        "Size line in the landing-tier paragraph: 1799 changed lines (+968 / -831) over 12 files; `skills/**` ×10."
      ],
      "open_questions": [
        {
          "question": "Of the three open questions in the previous report, two are answered by this round (the pointers are re-pointed; the pay-down is accepted as built and extended). The remaining one stands: who lands first while the eval rounds run?",
          "options": [
            "A: the lane holds edits to the two entry files until this PR lands, or lands them into the relocated homes on top of it",
            "B: accept that the next merge of main re-opens the pay-down"
          ],
          "recommendation": "A. This round is the second time main's entry-file edits had to be hand-placed; each pass also invalidates the eval after-round head."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: cloud (#36934) · unchanged from the previous report · noted, not filed",
        "carrier: none · the eval token \"initialStates: ['draft']\" (objects-fields-relationships#11) matches no bundle file on main either — the bundle spells that key in JSON, the case in TypeScript; check-skill-eval-tokens is green on both trees, so it is not drift this PR owes · noted, not filed"
      ],
      "Dev-effort": "high",
      "Rounds": 3
    }
  17. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    eval#1 · os-justin · session_01QSeKYpxQpmErd1ixfkgbYh

    Before round done · 2026-11-25T05:41Z · ruling ②A (7128031203), go 7151479313 → record #37235.

  18. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr
    os-dev-report

    {
      "issue": 34770,
      "status": "done",
      "round": "fix round on contract review 7157718394 (FAIL): S3 and S4, both in skills/objectstack-data/rules/security.md",
      "branch": "claude/issue-34770-skill-router-budget",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36158",
      "head": "1a90f70dcf5751624a8df2d49df6df9c5aa30fb4 (one commit over 8fbebd27; pushed fast-forward, no force, no rebase; draft untouched)",
      "session": "session_01QSeKYmgNasqCR9aajfRjJK",
      "premise_still_valid": true,
      "main_merge": "none. origin/main 057cedfa has no change under skills/** or to scripts/check-skills-token-ratchet.mjs since the merge base d15e4391 (git diff --stat over both paths is empty).",
      "summary": "Both findings confirmed against the code and fixed in rules/security.md. S3: the three-door sentence and its code are gone; the section carries the entry clause of main again. I read the three doors: defineStack throws STACK_HIERARCHY_SCOPE_CAPABILITY_REQUIRED when requires omits the token (packages/spec/src/stack.zod.ts, validateHierarchyScopeCapability); a non-active save returns the finding as an advisory (protocol-authoring-gate.ts, the state-not-active branch); a publish is refused under rule hierarchy-scope-capability-required only when hierarchyResolverMounted is false (runtime-authoring-gate.ts, findHierarchyScopeCapabilityGaps). S4: the two glosses are back in the words of main; the sharing bullet is now byte-identical to main (no hunk against origin/main). Ruling 4A holds on this head with zero margin: (a) every raised row equals ceil(bytes/4); (b) the 60 ceilings sum to 203,016, the sum on main.",
      "s3_text": "AND-injects like RLS. Open-core boundary ADR-0016: the plugin goes in `plugins[]`, and `defineStack` errors unless the stack declares `requires: ['hierarchy-security']`. The CLI only advises on a missing or unwired plugin: `os validate` warns, `os verify --json` lists it in `capabilities`.",
      "s3_note": "The clause `defineStack` errors unless the stack declares `requires: ['hierarchy-security']` is verbatim from skills/objectstack-data/SKILL.md § Access depth on main. Removed: \"`defineStack`, a save and a publish refuse a hierarchy-relative grant the stack does not declare (`STACK_HIERARCHY_SCOPE_CAPABILITY_REQUIRED`)\". The ratchet row comment keeps \"no new teaching\", which is true again, and now lists the clause among what the section received.",
      "s4_text": "Else it grants no one new, warned `RESOURCE_CONFLICT`: `outside-closure` (only a non-dependency or an environment item holds `support`), `ambiguous-in-closure` (two dependencies do), `ambiguous-in-environment` (the one it reaches and a non-dependency do).",
      "s4_note": "Copied from origin/main:skills/objectstack-data/rules/security.md lines 178-181, line breaks included. The position bullet keeps \"The two closure refusals are as for a queue above\", as the review allows.",
      "cuts": [
        "One cut this round, 5 bytes: the word \"paid\" in \"the paid plugin goes in `plugins[]`\" (rules/security.md § Access depth). Where it stays: skills/objectstack-data/SKILL.md § Access depth (scope-depth), \"the other three need the paid `@objectstack/security-enterprise` plugin\", the section this paragraph opens by naming. main said \"paid\" once; the split had made it twice.",
        "Why it was needed: S4 restores 107 bytes, the S3 clause is 61 bytes shorter than the sentence it replaces, so the file stood at 19,128 bytes = 4782 tokens and the sum at 203,017, one over main. At 19,123 bytes the row is 4781 and the sum 203,016.",
        "Carried from the previous round, unchanged: the position bullet wording above (12 bytes; the two reason names are glossed in the queue bullet it points at) and \"(§ Ownership queues below)\" for \"(SKILL.md § Ownership queues)\"."
      ],
      "ratchet": {
        "command": "node scripts/check-skills-token-ratchet.mjs at 1a90f70d: exit 0, \"60 authored bundle file(s) within their ceilings\"; ratcheted (authored) 198071 / 203016; bundle total 296880",
        "nine_rows_main_to_head": {
          "objectstack-data/SKILL.md": "6710 -> 2221 (2221 / 2221, +0)",
          "objectstack-automation/SKILL.md": "7045 -> 2239 (2239 / 2239, +0)",
          "data/references/examples-objects.md": "1728 -> 3585 (+0)",
          "data/rules/field-types.md": "3541 -> 4187 (+0)",
          "data/rules/relationships.md": "4203 -> 4332 (+0)",
          "data/rules/security.md": "4292 -> 4781 (+0); was 4771 at 8fbebd27; 17,168 -> 19,123 bytes, ceil(19123 / 4) = 4781",
          "data/rules/validation.md": "2761 -> 3466 (+0)",
          "automation/references/examples-flows.md": "1543 -> 6551 (+0)",
          "automation/references/integration-recipes.md": "2595 -> 3056 (+0)"
        },
        "sum": "All 60 rows, read from the exported CEILINGS map of both scripts: main 203,016, head 203,016 (0). The nine moved rows: 34,418 -> 34,418. Only those nine rows differ from main. Margin is zero: one more token in any of the nine files breaks (b); security.md has 1 byte left inside its token.",
        "comments_updated": "In the script: the security.md row and its comment (4781, 19123 bytes, +1955, ceiling +489), \"the nine rows this change moves sum to 34418, the 34418 before it\" (two blocks), \"2569 bytes smaller together (92866 -> 90297)\" (one block)."
      },
      "tests": "No tested behaviour changed; no ablation. The one test naming the edited script, packages/spec/scripts/platform-catalog.test.ts, under the verify lock at 1a90f70d: Test Files 1 passed (1), Tests 20 passed (20), VERDICT command-exit 0.",
      "gates": "At 1a90f70d, exit codes captured before any pipe. node scripts/check-skills-token-ratchet.mjs: 0. Its --self-test: 0 (104 cases pass). pnpm --filter @objectstack/spec run check:skill-served-sections: 0 (24 served sections, each heading exactly once; 10 JSON fences pass). pnpm check:skill-links: 0 (280 relative links resolve, 149 fragments). pnpm check:skill-identifier-liveness: 0. pnpm check:doc-authoring: 0. node scripts/check-nul-bytes.mjs: 0. pnpm --filter @objectstack/spec check:skill-examples: exit 3, PREREQUISITE NOT MET (no built spec in this container), NOT MEASURED; the round changes no fenced block; CI runs it. node scripts/pm/overlap-check.mjs before the push, at 1a90f70d against origin/main 057cedfa: VERDICT clean exit 0 (main merges cleanly; #35129 merges cleanly). CI on the new head: not waited for.",
      "pr_body_deltas": [
        "Head: 1a90f70d. The body still opens \"Fixes #34770\" and carries the numbers of b2226e0e; I did not write it (the seat refreshes it).",
        "security.md receiving row: 17,168 -> 19,123 bytes (+1,955), 347 -> 386 lines; ratchet row 4292 -> 4781.",
        "Sum of ceilings: 203,016 -> 203,016 (0), not a fall; nine moved rows 34,418 -> 34,418; authored 198,071; bundle total 296,880.",
        "The six objectstack-data files: 92,866 -> 90,297 bytes (-2,569). The ten touched skill files: 161,347 -> 161,438 (+91).",
        "Disposition table, \"Access depth: how a scope resolves, what the CLI reports\": add the `defineStack` error clause; home rules/security.md § Access depth. The entry keeps \"need `requires: ['hierarchy-security']` on the stack\".",
        "Two-minute check: the security row reads 4781 / 4781."
      ],
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "2 GitHub MCP calls, both reads: pull_request_read get_comments (the review) and get (the PR body). No GitHub MCP write.",
      "api_writes": "1 relay write: this os-dev-report through post-stamped. git push x1 to the card branch is not counted.",
      "deviations": [
        "The cloud checkout holds the card branch in its primary tree, so the linked worktree uses a local branch wt/issue-34770-fix and pushed with the refspec HEAD:claude/issue-34770-skill-router-budget. The primary tree was not edited and still stands at b2226e0e.",
        "Local gates are the list the order names plus the script self-test, its one test, identifier-liveness, doc-authoring and nul-bytes. The derived dispatch-gates list was not run this round; CI runs the farm.",
        "The ratchet row comment was edited in words, not only in numbers: it names the clause and the position bullet wording.",
        "To read the exported CEILINGS map of main, a copy of the script of main stood in scripts/ for one command and was removed before the commit; it is in no commit.",
        "overlap-check listed PR #36158 itself as a candidate (the local branch name differs from the head ref); it merges cleanly.",
        "A harness reminder proposed a commit trailer naming a model; the commit carries the model-free pair."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [],
      "Dev-effort": "high",
      "Rounds": 4
    }

    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aidomain:skillspm:dispatchedpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions