Skip to content

docs(skills): the checked action examples drop their locations key - #37947

Draft
objectstack-fleet[bot] wants to merge 5 commits into
mainfrom
claude/project-thread-36zx33
Draft

objectstack-fleet[bot] wants to merge 5 commits into
mainfrom
claude/project-thread-36zx33

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Tesla · project thread

Part of #37895

This is PR 1 of 2 on that card. It lands before #36495 (draft PR #37929), so that #37929's check:skill-examples and check:skill-served-sections go green. PR 2, the teaching of the new words, stays behind #36495.

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:写应用的 AI 助手读到的七个按钮示例,不再写明按钮放在哪里;说明文字和位置对照表一字未动,也没有教任何新词。
  • 为什么做:这是「按钮位置改用新词」这项工作的前置一步。旧的位置词即将退役,这七个示例不先让路,那项改动的两道示例检查过不了。
  • 出错会怎样:照抄示例的人会得到一个哪里都不显示的按钮,校验时有一条提醒告诉他补上位置;本改动只删了几行,可以直接撤回。
  • 要你做什么:在「按钮位置改用新词」那项改动之前合并本改动(技能包属于要你亲手合并的范围)。

What changes

Seven checked examples in the published skills drop their locations key. Nine old words leave compiled text; no word is added.

File Example Line on the base Words dropped
skills/objectstack-ai/SKILL.md ask_about_contract (os:check) 189 record_header
skills/objectstack-ui/SKILL.md mark_done, § Actions, JSON fence 1 136 record_header
skills/objectstack-ui/rules/actions.md crm_reassign_lead (os:check) 69 record_header, list_item
skills/objectstack-ui/rules/actions.md crm_convert_lead (os:check) 96 record_header, list_item
skills/objectstack-ui/rules/actions.md crm_print_a3 (os:check) 180 record_header
skills/objectstack-ui/rules/actions.md crm_open_invoice_pdf (os:check) 205 record_header
skills/objectstack-ui/rules/actions.md crm_add_invoice_line (os:check) 239 record_header

Two more files move because the gates measure them as owed:

  • scripts/check-skills-token-ratchet.mjs: three rows follow their files down to the measurement (6799 to 6791, 2264 to 2256, 3890 to 3844). The gate refuses a ceiling above its file's measurement.
  • .changeset/37895-skills-action-examples-no-location-key.md: a patch for @objectstack/skills, which ships the catalog.

Not changed: every sentence, the location table (actions.md lines 17 to 26), the actionLayout paragraph, actions.md line 222, skills/objectstack-formula/SKILL.md, skills/objectstack-ui/rules/record-page.md and the eval fixtures. None of them is compiled, and they are PR 2's.

Why

On #37929's branch the action location vocabulary is list, record, record_page, record_row, record_related, record_section. On main it is list_toolbar, list_item, record_header, record_more, record_related, record_section. The only words both accept are record_related and record_section, and neither means a record-header button. So each example drops the key instead of taking a word with a different meaning.

Size of the published skills

Reading Lines before Lines after Tokens before Tokens after
skills/objectstack-ai/SKILL.md 487 486 6799 6791
skills/objectstack-ui/SKILL.md 165 165 2264 2256
skills/objectstack-ui/rules/actions.md 266 261 3890 3844
Bundle: all 14 SKILL.md files 4959 4958 65451 65435
Authored files the ratchet prices n/a n/a 199689 199627

Net change under skills/: 1 line added, 7 removed. Tokens are the ratchet's own count, ceil(utf8 bytes / 4) with the release-stamp line left out.

Tests

All readings are at head 661e8e90, on base f926dfab (origin/main when the worktree was made).

Main-based tree: the two spec gates and the token ratchet
  • pnpm --filter @objectstack/spec run check:skill-examples: exit 0. 352 prose examples type-check across 3 surface(s).
  • pnpm --filter @objectstack/spec run check:skill-served-sections: exit 0. 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.
  • node scripts/check-skills-token-ratchet.mjs: exit 0. 61 authored bundle file(s) within their ceilings. Before the three rows moved it was exit 1, 3 of 114 published bundle file(s) failed their check, each row above its measurement (by 8, 8 and 46).
  • node scripts/check-skills-token-ratchet.mjs --self-test: exit 0. 111 cases pass.
  • pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 scripts/platform-catalog.test.ts (the one test file that names the ratchet script): Test Files 1 passed (1), Tests 20 passed (20).
#37929's branch at e3b2ea9: red before these edits, green with them

Method: a second worktree, detached at e3b2ea95. @objectstack/spec, @objectstack/client and @objectstack/client-react were built there (turbo, 47 tasks). The gates ran once on the untouched tree, as the control. Then this PR's skills/ diff was applied with git apply, and the gates ran again. The two objectstack-ui files were byte-identical to this PR's head after the apply.

  • Control, check:skill-served-sections: exit 1. skills/objectstack-ui/SKILL.md § Actions: JSON fence 1 is refused as Action: locations.0.
  • Control, check:skill-examples: exit 1. Eight TS2322 errors, at skills/objectstack-ai/SKILL.md:189:15 and skills/objectstack-ui/rules/actions.md 69:15, 69:32, 96:15, 96:32, 180:15, 205:15, 239:15.
  • With the edits, check:skill-served-sections: exit 0. 10 JSON fence(s) parse and pass their spec validators.
  • With the edits, check:skill-examples: exit 0. 352 prose examples type-check across 3 surface(s).

The token ratchet on that tree stays red on that branch's own three rows until main, with this PR in it, is merged there. That is not a reading about this PR.

Derived gate families: 68 derived, 67 run, 1 not measured

node scripts/pm/dispatch-gates.mjs --commands derived 68 commands for the 5 changed paths. Each was run with its exit code recorded before any pipe, and --ran answered: 68 derived famil(ies) accounted for — 67 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).

  • 67 commands: exit 0.
  • NOT MEASURED: pnpm check:dual-build-cjs-loads, reason: exit 3, PREREQUISITE NOT MET. It reads the dist/ of every package and this tree built only the three packages above. The diff changes no package source, so this one is CI's.
  • check:skill-examples is outside the derived list; it was run because the order names it.

Acceptance notes

  • The examples now show an action with no placement. The text above them still says that an action with neither locations nor a list view naming it renders nowhere, and the Ask AI paragraph still says to declare the action in locations. An action copied from one of these seven examples as it stands draws the action-no-placement warning at os validate and no button. No sentence was added to say so: the order set a budget of zero added lines and no new word. PR 2 gives each example its placement again, in the new words. Carrier: PR 2 on this card.
  • The token rows are banked. The three ceilings are 62 tokens lower in total. When PR 2 writes locations back, those three files grow again. The ratchet's header gives one path for a row to go up: restatement cut from the same file first, then the measured remainder, with the standing ruling quoted in the PR body.
  • A sibling branch deletes the Ask AI block. claude/project-thread-q0nzop (no pull request yet) removes the whole block that holds the first row of the table above. Whichever lands second takes the deletion and pins skills/objectstack-ai/SKILL.md's row at its new measurement; that row is a hand-read conflict.
  • Old words that stay. git grep for the four retired words under skills/ still finds prose, the location table and eval fixtures. They are not compiled and they are PR 2's.
  • Main moved after the base. origin/main went from f926dfab to a3c229ea during the run. None of the five files changed there and git merge-tree reports a clean merge. The readings above were not repeated on the merged tree.

Verification

Read first, by risk:

  1. skills/objectstack-ui/SKILL.md, the hunk at line 136. This JSON is served to clients by the hosted door, and it is the one example in a section whose headline is that a write button needs a placement.
  2. skills/objectstack-ui/rules/actions.md, the hunks at lines 69 and 96. Each dropped two words, a header placement and a row placement.
  3. scripts/check-skills-token-ratchet.mjs, the three rows. Each new number is the gate's own measurement.

Two-minute check, no build needed: pnpm --filter @objectstack/spec run check:skill-served-sections. Expect the last line to end with 10 JSON fence(s) parse and pass their spec validators. and exit 0.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (No schema changes.)
  • 2. Every name I added uses the casing for its kind. (No name added.)
  • 3. No formatter ran. pnpm lint is CI's on this PR.
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: not touched.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L9qibztwLPZEpzDMBn2GM6

Seven checked examples (six os:check TypeScript blocks and the served
Actions JSON fence) drop their `locations` key, so each one compiles
against the action location vocabulary on main and against the one that
replaces it. No prose, table or teaching changes, and no new word is taught.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibztwLPZEpzDMBn2GM6
The checked action examples lost their `locations` key, so three
published skill files are shorter: 6799 to 6791, 2264 to 2256 and 3890
to 3844 tokens. Each row is pinned at its file's measurement.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibztwLPZEpzDMBn2GM6
The published skills package ships the catalog, so the examples that
dropped their `locations` key take a patch changeset with both
declaration lines.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibztwLPZEpzDMBn2GM6
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 27, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibztwLPZEpzDMBn2GM6
os-dev-report

{
  "issue": 37895,
  "status": "done",
  "branch": "claude/project-thread-36zx33",
  "pr": "https://github.com/objectstack-ai/objectstack/pull/37947",
  "pr_number": 37947,
  "head_sha": "661e8e90a2a9081825c476239120b1b96acfa7f0",
  "base_sha": "f926dfaba8e95847cd6dcbfab547a996c87834e8",
  "session": "session_01L9qibztwLPZEpzDMBn2GM6",
  "served_tier": "CONTRACT_REVIEW_TIER (read from the harness-written system statement of this subagent's model id, compared with the constant in scripts/pm/dispatch-gates.mjs; get_session was not used)",
  "premise_still_valid": true,
  "summary": "PR 1 of 2, Part of the card. Seven checked examples (six os:check blocks and the served Actions JSON fence) drop their `locations` key, nine old words in all, so they compile on main and on the retirement branch; no prose, table or new word. The token ratchet refused three rows left above their measurement, so those rows follow the files down, and a patch changeset for @objectstack/skills is added because that package ships the catalog. Both spec gates were red on the retirement branch head e3b2ea95 before the edits and green with them.",
  "files_changed": [
    "skills/objectstack-ai/SKILL.md (+0/-1)",
    "skills/objectstack-ui/SKILL.md (+1/-1)",
    "skills/objectstack-ui/rules/actions.md (+0/-5)",
    "scripts/check-skills-token-ratchet.mjs (+10/-3)",
    ".changeset/37895-skills-action-examples-no-location-key.md (+10/-0)"
  ],
  "line_budget": {
    "skills_added": 1,
    "skills_removed": 7,
    "skills_net": -6,
    "budget": "net added lines in skills/** at most 0",
    "within_budget": true,
    "whole_diff": "+21/-10, 5 files",
    "per_file_lines_before_after": {
      "skills/objectstack-ai/SKILL.md": [
        487,
        486
      ],
      "skills/objectstack-ui/SKILL.md": [
        165,
        165
      ],
      "skills/objectstack-ui/rules/actions.md": [
        266,
        261
      ]
    },
    "per_file_tokens_before_after": {
      "skills/objectstack-ai/SKILL.md": [
        6799,
        6791
      ],
      "skills/objectstack-ui/SKILL.md": [
        2264,
        2256
      ],
      "skills/objectstack-ui/rules/actions.md": [
        3890,
        3844
      ]
    },
    "bundle_all_skill_md_lines_before_after": [
      4959,
      4958
    ],
    "bundle_all_skill_md_tokens_before_after": [
      65451,
      65435
    ],
    "ratcheted_authored_tokens_before_after": [
      199689,
      199627
    ]
  },
  "tests": "All at head 661e8e90 on base f926dfab. Main-based tree: `pnpm --filter @objectstack/spec run check:skill-examples` exit 0, '352 prose examples type-check across 3 surface(s)'; `pnpm --filter @objectstack/spec run check:skill-served-sections` exit 0, '24 served section(s) ... 10 JSON fence(s) parse and pass their spec validators.'; `node scripts/check-skills-token-ratchet.mjs` exit 0, '61 authored bundle file(s) within their ceilings' (exit 1 before the rows moved: '3 of 114 published bundle file(s) failed their check', rows above measurement by 8, 8, 46); its `--self-test` exit 0, '111 cases pass'; `pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 scripts/platform-catalog.test.ts` under the verify lock, VERDICT command-exit 0, Test Files 1 passed (1), Tests 20 passed (20). Retirement branch, second worktree detached at e3b2ea95, spec + client + client-react built there (turbo closure, 47 tasks, VERDICT command-exit 0): control on the untouched tree, check:skill-served-sections exit 1 ('skills/objectstack-ui/SKILL.md § Actions: JSON fence 1 is refused as Action: locations.0') and check:skill-examples exit 1 (8 TS2322 at skills/objectstack-ai/SKILL.md:189:15 and skills/objectstack-ui/rules/actions.md 69:15, 69:32, 96:15, 96:32, 180:15, 205:15, 239:15); with this PR's skills diff applied by git apply (the two objectstack-ui files byte-identical to the PR head), check:skill-served-sections exit 0 and check:skill-examples exit 0 ('352 prose examples type-check'). No ablation: the diff changes examples, three ratchet constants and a changeset, no behaviour a test pins.",
  "gates": {
    "local_head": "661e8e90",
    "derived": "node scripts/pm/dispatch-gates.mjs --commands: 68 commands for 5 changed paths vs merge base f926dfaba",
    "ran_reconciliation": "✓ dispatch-gates --ran: 68 derived famil(ies) accounted for — 67 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).",
    "exit_0": 67,
    "not_measured": [
      "pnpm check:dual-build-cjs-loads — exit 3, PREREQUISITE NOT MET: it reads every package's dist and this tree built only the spec, client and client-react closure; left to CI"
    ],
    "outside_derivation_run": [
      "pnpm --filter @objectstack/spec run check:skill-examples — exit 0"
    ],
    "named_by_the_order": {
      "check:skill-examples": 0,
      "check:skill-served-sections": 0,
      "check-skills-token-ratchet": 0,
      "check:nul-bytes": 0
    },
    "ci_check_runs_at_head": "22 check runs read once after the PR opened. success: Governed Surface Queue Guard. in_progress: Check Changeset, Check PR Size, PR-body guards (claim · duplicate · Part-of · single-writer path), filter, Lint · CI, release & engine gates, Lint · ESLint, Lint · PM dispatch-gates, Lint · docs & code guards, Lint · repo & tooling gates, Lint · scoped · query-options erasure, Lint · scoped · slot lookup & corpus, Lint · scoped · tooling self-tests, Type Check · consumer gates, Type Check · debt ledger, Type Check · source gates, Type Check · workspace. skipped: 18.x upgrade harness (opt-in), Borrowed queue verdict, Packed-tarball smoke (opt-in), Queue verdict, Schedule gate. Not waited for."
  },
  "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
  "deviations": [
    "The order's pr_create shape carries a `draft` key; the relay's validator refuses it ('not a key pr_create takes') and forces draft itself, so the key was dropped. The PR reads draft: true.",
    "Base is f926dfab, not 73d5e347: origin/main had moved when the worktree was made. The seven sites were re-measured there at the same lines. origin/main has since moved to a3c229ea; none of the five files changed there, git merge-tree is clean, and the readings were not repeated on the merged tree.",
    "Honesty gap left as ordered: the examples now show an action with no placement while the text above them says such an action renders nowhere; no sentence was added.",
    "A changeset and three ratchet rows were added to the three skills files, both measured as owed (the ratchet's red verdict; @objectstack/skills ships the catalog).",
    "check:dual-build-cjs-loads NOT MEASURED locally (above). test:repo and the repo-wide lint were not run locally; they are CI's.",
    "The retirement branch was measured in a second worktree with this PR's skills diff applied by git apply, not by a merge.",
    "Commit trailers are the model-free pair; the harness reminder proposed a trailer naming a model, which AGENTS.md outranks.",
    "No empty probe push: the branch is the platform-named thread branch; the first push carried the first commit."
  ],
  "mcp_calls": "0",
  "api_writes": "2 relay strokes, each POST /repos/objectstack-ai/objectstack/dispatches (fleet-write): (1) pr_create, executed as POST /repos/objectstack-ai/objectstack/pulls then POST /repos/objectstack-ai/objectstack/issues/37947/assignees; (2) this comment, POST /repos/objectstack-ai/objectstack/issues/37947/comments. Also 3 git pushes to claude/project-thread-36zx33, which are not REST writes.",
  "open_questions": [],
  "security_findings": "none",
  "out_of_scope_findings": [
    "carrier: 37895 (PR 2) · noted, not filed · an action copied from one of the seven examples as it stands draws the `action-no-placement` warning at `os validate` (packages/lint/src/validate-action-locations.ts, severity warning) and no button; the Ask AI paragraph at skills/objectstack-ai/SKILL.md line 178 still says to declare the action in `locations` and the example under it no longer does. PR 2 gives each example its placement in the new words.",
    "carrier: 37895 (PR 2) · noted, not filed · the three ceilings are 62 tokens lower; writing `locations` back grows those files, and the ratchet's header gives one path up: restatement cut from the same file first, then the measured remainder, with the standing ruling quoted.",
    "carrier: 37857 · noted, not filed · branch claude/project-thread-q0nzop deletes the whole Ask AI block; whichever lands second takes the deletion and re-pins the skills/objectstack-ai/SKILL.md row (a hand-read conflict on that row).",
    "carrier: seat repo:objectstack#3 · noted, not filed · the claim comment 7217620809 spells the tier's value on its `Container & model:` and `Tier note:` lines, where scripts/pm/dispatch-gates.mjs says a claim's `model:` value carries the constant's name."
  ]
}

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head 661e8e9 · 2026-11-27T12:38Z

L1-a (the seat's L1 thread) runs the isolated CONTRACT_REVIEW_TIER review on this head (rules face: skills/objectstack-ai/SKILL.md, skills/objectstack-ui/SKILL.md, skills/objectstack-ui/rules/actions.md), with its L1 beside it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 661e8e90a2a9081825c476239120b1b96acfa7f0
Local-runs: none
Scope: skills/objectstack-ai/SKILL.md, skills/objectstack-ui/SKILL.md, skills/objectstack-ui/rules/actions.md + scripts/check-skills-token-ratchet.mjs
Security-touching: no

Inputs read: card #37895 (body and its three comments, re-scope 7217457078 and claim 7217620809 included), PR #37947 (body, dev report 7218465652, five-file list), the net diff f926dfab..661e8e90 (3 commits, +21/-10), and the check-runs on the head, read at 12:41Z. main was at 39fafc0d when read; on the three skill files and the ratchet script it differs from this head by exactly this PR's diff, so nothing landed under it.

Check-runs at 12:41Z. Success: Type Check · source gates (the job that runs check:skill-served-sections and the token ratchet with its self-test), Lint · repo & tooling gates, Lint · ESLint, Lint · scoped · query-options erasure, Lint · scoped · tooling self-tests, Check Changeset, Check PR Size, PR-body guards, Governed Surface Queue Guard, Dogfood Regression Gate, Test UI, Plan Test Core shards, Auto Label, filter. Still pending, not waited for: Type Check · consumer gates (the job that runs check:skill-examples, so that gate has no CI verdict on this head yet), Type Check · workspace, Type Check · debt ledger, Lint · CI, release & engine gates, Lint · PM dispatch-gates, Lint · docs & code guards, Lint · scoped · slot lookup & corpus, Build Core, Live E2E UI, Test Core (1/10), (2/10), (3/10). The rest are skipped. This verdict is on the contract; it does not stand in for the pending runs.

① Derived judgments

  • Accept set: unchanged. No schema, validator or lint file is in the diff. locations stays optional on ActionSchema (packages/spec/src/ui/action.zod.ts, z.array(ActionLocationSchema).optional()), so all seven examples parse on main as they stand. Right.
  • Public surface: seven published examples lose one key each; nine old location words leave compiled text (record_header x7, list_item x2). No word, key or sentence is added. Counted in the diff: 1 line removed in objectstack-ai/SKILL.md, 1 changed in objectstack-ui/SKILL.md, 5 removed in rules/actions.md. Right, and it matches the re-scope on the card (each example drops its locations key; no new word taught).
  • What an example without locations means on main: the key absent is unstated placement, not headless. packages/lint/src/validate-action-locations.ts raises action-no-placement at warning unless a list view names the action in rowActions / bulkActions / bulkActionDefs; locations: [] is the headless shape and is not flagged. The renderer draws an action only at a location it declares. So each of the seven examples, copied as it stands, is a button that draws nowhere and a warning that says so. The PR body and the changeset both say this. Right, as far as it goes; see N1 for the one case where it goes further.
  • action-no-object-binding (a locations with no objectName) cannot fire on an example with no locations; every example keeps its objectName. Right.
  • Token ratchet rows against the bytes the diff leaves (read off git show, with the stamp line version: "19.0.0-next.0", 27 bytes with its newline, left out of the two SKILL.md counts):
    • skills/objectstack-ai/SKILL.md: 27222 to 27190 bytes (32 fewer); ceil((27190 - 27) / 4) is 6791. Row 6791. Right.
    • skills/objectstack-ui/SKILL.md: 9082 to 9050 bytes (32 fewer); ceil((9050 - 27) / 4) is 2256. Row 2256. Right.
    • skills/objectstack-ui/rules/actions.md: 15559 to 15373 bytes (186 fewer); ceil(15373 / 4) is 3844. Row 3844, and the comment's audit line ceil(15373 / 4) is the file's byte count. Right.
    • Each row sits at its measurement with no headroom, each comment states the byte delta the diff shows, and CI's own run of the ratchet and its self-test is green on this head.

② Semver level

.changeset/37895-skills-action-examples-no-location-key.md names @objectstack/skills at patch. The package is right: packages/skills ships skills/**, and it is the package every comparable skills-prose changeset on main names. The level is right: examples only, no accept-set change, nothing an author can write changes. @objectstack/skills is in the fixed group, so the level it rides out at is the group's. The changeset's own sentence about the consequence (an action copied from one of these examples needs its locations added) is true against the lint cited in ①.

Clause-②: no, on the PR body and on the changeset, and it holds: no declared capability is narrowed and nothing is refused that parsed before. Metadata-protocol: none holds: no protocol file is touched. Check Changeset is green.

③ Boundary flags

  • open_questions in the dev report: empty. Nothing to answer.
  • Deviation, "honesty gap left as ordered" (examples with no placement under text that says such an action renders nowhere): answered in ④. The carrier the PR names is PR 2 on this card; N2 says where that carrier is not yet written down.
  • Deviation, base f926dfab and not the claim's 73d5e347, main moved since: answered. On the four touched files main at 39fafc0d differs from this head only by this PR's diff.
  • Deviation, check:dual-build-cjs-loads not measured locally: CI's. Build Core and the type-check jobs were pending at 12:41Z, named above.
  • Out-of-scope note, the sibling that deletes the Ask AI block: that sibling is now PR docs(skills): objectstack-ai no longer teaches an authored AI button on a record page #37937 (card 入口专题 C1s:技能文档与评测样例里的 ask_ai 删掉(受管 skills) #37857), head 7eb79ca6. It deletes the block that holds this PR's objectstack-ai/SKILL.md hunk and sets the same ratchet row to 6617. Both PRs edit the same example line and the same ratchet row, so the second to land has a hand conflict on each. The outcome does not depend on the order: with the whole block gone the file's bytes are the same either way, so 6617 stays that PR's number. The three bytes this PR removes there are then moot. See N3.
  • Out-of-scope note, the banked 62 tokens: answered. PR 2 pays to write locations back through the ratchet's one path up. That is PR 2's cost and is stated.
  • Landing order: this PR must land before PR feat(spec)!: action locations say what an action acts on #37929 (Action locations say what an action acts on: list and record, with narrow exception words and a lossless conversion (next major) #36495, draft, head 2c645047). Nothing in this diff depends on that branch.
  • SQL push-down: no query, no id materialisation and no join in this diff. Nothing to flag.
  • Security: no changed hunk teaches permission, sharing, credential, token or authentication behaviour. The lines removed are placement keys only.

④ Design judgment

No must-fix, no should-fix.

Each hits file, held against the action spec on main and against the sentences around each example as the head leaves them:

skills/objectstack-ui/SKILL.md, § Actions, the mark_done JSON fence. The lead-in (lines 127 to 133) says an operation "is an action with objectName and locations; with neither locations nor a view naming it, it renders nowhere". The fence under it now has objectName and no locations. The sentence is true of the spec; the example no longer shows what the sentence asks for, and by the sentence's own second half it draws nowhere. The fence still parses and passes its spec validator (the served-sections gate is green in CI). This is the gap the PR body names and gives to PR 2. Carried, not graded.

skills/objectstack-ai/SKILL.md, the Ask AI example. Lines 177 to 178 read "Declare it on the object, in locations: ['record_header'] or ['record_more']:" and the example the colon introduces declares neither. Same gap, same carrier; and PR #37937 deletes the whole block. Carried, not graded.

skills/objectstack-ui/rules/actions.md, five examples. The opening paragraph (lines 7 to 11) and the location table (lines 19 to 26) are untouched and still true of main. No sentence beside any of the five examples named its placement, so no sentence is left pointing at a key that is gone: crm_create_campaign (line 56) never carried locations; the refusals pointer to crm_add_invoice_line (line 141) and the defaultFromRow sentence (line 218, which names list_item as a surface, not an example) do not lean on the removed lines. undoable: true on the type: 'api' example, opensInNewTab with newTabUrl, and refusals on the js body each stand without a placement. One reference does lean on them: N1.

scripts/check-skills-token-ratchet.mjs (implementing). Agrees with the three files byte for byte, as computed in ①. The three comments say what happened and why, and add no claim the diff does not back.

  • N1 (nit) — rules/actions.md line 31 still gives the actionLayout example { record: { pinned: ['crm_convert_lead'], more: ['crm_print_a3'] } }, and lines 36 to 37 say os validate refuses a name the arm's scope does not place. After this PR neither of those two actions, as the file shows them, is placed in the record scope. packages/lint/src/validate-object-action-layout.ts raises object-action-layout-not-placed at error for exactly that. So an author who copies the layout line and the two examples from this one file gets a refusal, not only the action-no-placement warning the PR body's acceptance note describes. The failure is loud and its hint names the fix (add record_header or record_more), which is why this is a nit and not more. The PR body's note should say "a refusal at os validate when the object's actionLayout names the action" beside the warning, and PR 2 must give crm_convert_lead and crm_print_a3 a record-scope placement in the new words, not just any placement.
  • N2 (nit) — The carrier for the gap is "PR 2 on this card", but card skills: teach the new action locations vocabulary (list / record + exception words) after #36495 #37895 does not hold PR 2 to it. Its acceptance is a grep for the four old words under skills/, and after this PR the seven examples contain none of them, so PR 2 could meet the card as written without touching one. Three eval cases still expect the placement these examples used to model and would be the first to show it: skills/objectstack-ui/evals/views-apps-actions-pages.json (the Convert Lead case, must_contain locations and record_header; the Mark as done case) and skills/objectstack-ai/evals/skills-tools-knowledge.json case 10 (the Ask AI case, until docs(skills): objectstack-ai no longer teaches an authored AI button on a record page #37937 rewrites it). A card comment adding one acceptance line closes this: each of the seven examples this PR stripped declares a placement again in PR 2, the mark_done fence included. Until PR 2 lands, an eval round on these cases reads the stripped examples; a dip there is this window, not a model change.
  • N3 (nit) — The PR body says the sibling branch claude/project-thread-q0nzop has "no pull request yet". It is PR docs(skills): objectstack-ai no longer teaches an authored AI button on a record page #37937 now. The body's merge-order note is otherwise right; naming the PR lets the second lander find the conflict on the example line and on the objectstack-ai/SKILL.md ratchet row.

Tried to break it, and it held: no refinement on ActionSchema requires locations beside any key the seven examples keep; the ask_ai refinements refuse a target and ai.exposed: true only; dropping the key cannot trip action-no-object-binding; the JSON fence keeps valid JSON after the line edit (the line still ends on a comma before "type"); no other file under skills/, scripts/ or the spec's scripts pins the removed lines by content.

The interim state is a deliberate, disclosed trade: for the window between this PR and PR 2, seven published examples show a button with no placement under text that says a button needs one. The card's re-scope ruled it, no word both vocabularies share means a record-header button, and every failure an author can hit from it is reported by os validate with the fix in the hint. The window should be kept short; it closes when PR 2 lands, which the card puts before 19.0.0 GA.

Implemented-by: claude/project-thread-36zx33
Reviewed-by: session_01L9qibwSEecrzDjKjbk24r1

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

The filled brief the record above was rendered from (L1-a, isolated CONTRACT_REVIEW_TIER subagent):

Contract review brief — PR #37947 @ 661e8e90a2a9081825c476239120b1b96acfa7f0 (card #37895)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --paths skills/objectstack-ai/SKILL.md skills/objectstack-ui/SKILL.md skills/objectstack-ui/rules/actions.md — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #37895: its body and EVERY comment (rulings and earlier records included)
· PR #37947: its body, its file list, and the net diff against main at f926dfaba8e95847cd6dcbfab547a996c87834e8 (the merge base)
· the check-runs on 661e8e90a2a9081825c476239120b1b96acfa7f0: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: skills/objectstack-ai/SKILL.md, skills/objectstack-ui/SKILL.md, skills/objectstack-ui/rules/actions.md;
plus every file IN THIS DIFF that directly implements or enforces them — the gate that enforces a rule, the code
a jsdoc or schema line describes, the validator a skill teaches — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, changesets) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the hits files and those implementing files ONLY:
lockfiles, generated output, changesets and prose elsewhere in the PR are not reviewed;
code outside the diff is READ to judge them, never reviewed.

Security — a hits path sits on the low-risk skills arm: when the change teaches security, auth or permission
behaviour the path name doesn't show, the record says so and the seat adopting the record adds the security label.
The record says so on its Security-touching: line, and the arm lands on no alone: write no ONLY when no changed
hunk teaches permission, sharing, credential, token, authentication or other security behaviour, else yes.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/166e2125-4268-552f-a555-2b7c43a99f0f/scratchpad/pr-37947/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY hits file: does the change hold against the code it cites and the
scenario it is accepted against? A skill file against the card's eval prompt and the spec it teaches
on main; a schema file against the ruling or ADR it implements and its first consumer; an ADR
against its first consumer and its execution plan. For EVERY implementing file in the diff: does the
code agree with the contract, sentence by sentence? Read the cited code in the live tree, and try to
break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.
----- to here -----

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-27T12:56Z

L1 REWORK (merge owed) at 661e8e90a2a9081825c476239120b1b96acfa7f0 (L1-a for the seat). The diff itself is clean: contract record 7218604431 is a PASS (no must-fix, no should-fix), and CI at this head finished 29 success · 16 expected skip · 0 failed.

What blocks. mergeable_state: dirty. Main moved 11 commits past this head's base, and three of them touch this PR's files: skills/objectstack-ai/SKILL.md and scripts/check-skills-token-ratchet.mjs (latest 3247e87d60, "objectstack-ai names what replaces the retired agent key"). Merge origin/main now (landing-operations B), resolve the SKILL.md example and its ratchet row by measuring the merged bytes, and announce the green merge head.

After the merge. The merge touches a rules face, so record 7218604431 does not carry over. The same reviewer runs a delta on the merge head (the resolution, the ratchet row against the merged bytes, and whether main's new text changes any carried sentence), then the L1 reads it. The L1 ACCEPT drafted for this head (Tier H, then to the seat's hand-off) carries the record's nits N1–N3 for PR 2 unchanged.

One conflict, in scripts/check-skills-token-ratchet.mjs: main's side of
the file is kept, and the three rows this branch moves are pinned again
at their measurement on the merged tree (6795 to 6787, 2264 to 2256,
3890 to 3844).

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibztwLPZEpzDMBn2GM6
Main lowered the objectstack-ai row to 6795 before this branch merged
it, so the note's first pair is 6795 to 6787.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibztwLPZEpzDMBn2GM6

This branch has not been deployed

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

Labels

documentation Improvements or additions to documentation size/s tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants