Skip to content

fix(metadata-protocol)!: judgesPackageLessRows returns a plain boolean, and the boot load joins the hydration-state pins - #33483

Merged
objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/area-E2b-32716
Nov 15, 2026
Merged

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/area-E2b-32716

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Elon · project thread

Fixes #32716

Clause-②: yes (narrowing)
Metadata-protocol: none

BREAKING for a TypeScript caller that narrows type to PackageScopedType through the exported judgesPackageLessRows(registry, type) (for example if (judgesPackageLessRows(r, t)) useScoped(t)): its return type is now boolean, so that call no longer compiles. Call isPackageScopedType(type) from @objectstack/core first. The runtime answer is unchanged; the level stays patch.

维护者速读

  • 改了什么:① judgesPackageLessRows 的返回类型由类型谓词改为普通 boolean,运行时答案不变;packageLessRowOwners 改用 isPackageScopedType 收窄类型。② N3 实测:按包精确读一条包外 action 存储行,在载入前后(启动加载、列表读、裸槽副本)答案一致,都是持有者自己的条目,所以不改代码,只把「启动加载」补进现有的载入状态 pin。
  • 为什么改:① 谓词会让调用方的 false 分支被收窄成 never,但 false 其实取决于注册表。② 卡片说的「载入前 200、载入后 409」在当前 main 上已不存在(metadata-protocol: a package-less item of a two-holder name is still served at both exact addresses on the draft and preview reads and for hook, job, queue, sharing_rule and assignment_rule (ADR-0150 D4, after #32407) #32568 的裁决已经处理),这里实测确认并钉住启动加载这一路。
  • 风险与回滚:仅类型签名与测试;无读答案变化。回滚 = revert 本 PR。
  • 先看:packages/metadata-protocol/src/protocol-exact-qualifier.ts(judgesPackageLessRows 签名与 packageLessRowOwners 首行);packages/objectql/src/package-scoped-exact-qualifier.test.ts 的 location 4 STATES。
  • 两分钟验证:pnpm --filter @objectstack/objectql exec vitest run src/package-scoped-exact-qualifier.test.ts -t "location 4",预期全部通过,含新增的 after the boot load 用例。
  • 需要你做的:无,席位落地。

What changes

  1. N1. judgesPackageLessRows(registry, type) returned the type predicate type is PackageScopedType. Its false depends on the registry (readsByPackage), so the predicate narrowed a package-scoped type to never in a caller's false branch. It now returns boolean. One caller relied on the predicate: packageLessRowOwners passed the narrowed type to isPlatformRequestedBareName. It now narrows through isPackageScopedType, which depends on the type alone. The CLI caller (stored-package-references.ts, a filter) typechecks unchanged. The runtime answer is unchanged.
  2. N3, measured: the answers are the same, so no read moves. A stored package-less action row of a name a package ships was read at the holder's exact address (?package=) and in the layered read. It was read before and after each hydration path: the boot load (loadMetaFromDb), the list read's hydrator (getMetaItems), and a copy in the registry's bare slot stamped '' or sys_metadata. Each path was run with one holder and with two holders in both registration orders. The answer was the holder's own item every time (200), and the layered read reported no overlay. The card's 200-before / 409-after premise came from before the epic ruling 6817768147 on metadata-protocol: a package-less item of a two-holder name is still served at both exact addresses on the draft and preview reads and for hook, job, queue, sharing_rule and assignment_rule (ADR-0150 D4, after #32407) #32568. That ruling's change makes the hydrator decline the row (hydrateOverlayIntoRegistry) and makes the exact read replace a bare-slot copy (declinedCopyReplaced). The list read and the bare-slot copies were already pinned (location 4 of [#32568]). The boot load was not, so this PR adds it to those pins for action, queue and tool, with one holder and two.

No ADR-0150 D4 ruling is needed for N3: nothing differs, so nothing is implemented beyond the pins.

Tests

  • packages/metadata-protocol/src/protocol-exact-qualifier.test.ts: a new case, [#32716 N1]. It is checked by tsc, and the package's typecheck compiles the file (tsc --listFiles lists it). In the false branch, a hook typed PackageScopedType keeps that type.
  • packages/objectql/src/package-scoped-exact-qualifier.test.ts, location 4: a new state, after the boot load, in both registration orders × action/queue/tool (6 new cases). The one-holder case now walks before → after the boot load → after the read-side hydrator. The boot-load leg asserts the load reached the row (loaded: 1, errors: 0), so the pin cannot pass without a load.

All runs on head 4bb529d89 (the merge of origin/main 0c2aeb9 into the branch), through scripts/pm/os-verify-lock.sh:

Unit and package runs
  • pnpm --filter @objectstack/metadata-protocol typecheck → exit 0; pnpm --filter @objectstack/metadata-protocol test → Test Files 340 passed, 9 skipped (349); Tests 22866 passed, 43 skipped. VERDICT command-exit 0.
  • pnpm --filter @objectstack/objectql exec vitest run --maxWorkers=2 src/package-scoped-exact-qualifier.test.ts → Tests 294 passed (294). Before the change the file held 288; the 6 new cases are the boot-load state.
  • pnpm --filter @objectstack/cli typecheck (after building its dependency closure, which included the new .d.ts) → exit 0, and check:test-typecheck OK. This is the one other caller of judgesPackageLessRows.
  • objectql is a tests-only touch here: its full suite and the integration layers are left to CI (Test Core).
Ablations (one-shot; nothing left in the tree)
  • N1. Ran scripts/ablation-replace.mjs on protocol-exact-qualifier.ts, replacing the anchor type: string): boolean { with the predicate type is import('@objectstack/core').PackageScopedType. The anchor went x1 to x0 and the blob changed. typecheck then went RED, with one error at the new pin: protocol-exact-qualifier.test.ts(98,42): error TS2344 ... Actual: never. The file was restored to blob == HEAD and git diff HEAD came back empty.
  • N3 boot-load pin. The hydrator's decline branch in protocol-registry-hydration.ts (if (scoped && canonicalType !== 'flow' && !options.packageId && host.declinesStoredRow() was put behind an always-false guard. The rebuilt dist/ was proven to carry the marker (ablation-dist-preflight). Location 4 then went RED, 6 failed: after the boot load exact: expected 'stored' to be 'alpha action', the same for queue and tool, plus the pre-existing disabled-holder cases. After the restore, the rebuild was proven free of the marker (--absent), and the file is back to 294 passed.
N3 measurement on main (ba35dfd with only the type-only N1 edit on top; a throwaway describe, not committed)

The stored package-less action row is approve, and A and B are the shipping packages. Below, "own" means the holder's own item, and "layered own" means the layered read reported no overlay and its effective item was the holder's own.

holders hydration ?package=A before / after ?package=B before / after layered before / after
A boot load 200 own / 200 own 409 not held / 409 not held own / own
A list read 200 own / 200 own 409 / 409 own / own
A bare copy '', sys_metadata 200 own / 200 own 409 / 409 own / own
A+B, B+A boot load 200 own / 200 own 200 own / 200 own own / own
A+B, B+A list read 200 own / 200 own 200 own / 200 own own / own
A+B, B+A bare copy '', sys_metadata 200 own / 200 own 200 own / 200 own own / own

The boot load reported {loaded:1, errors:0} and left the holder's slot holding the holder's own item. A boot load run before the package registers, and then the package, also gives 200 own at each holder's exact address.

Acceptance notes

Verification

Derived gate families (node scripts/pm/dispatch-gates.mjs --commands, from the tree at the merge head 4bb529d89): 64 commands. Each was run, and its exit code was captured before any pipe:

  • 63 exit 0. These include check:changeset-no-major, check:adr-0087-registration, check:empty-changeset, check:closing-keyword-parity, check:nul-bytes, check:test-source-alias, check:cross-package-test-inputs, check:type-check-coverage, check:type-check-debt, check:durability-log-level, check:engine-double-contract, check:published-files, check:dts-closure, check:doc-authoring and check:issue-citations.
  • 1 NOT MEASURED: pnpm check:dual-build-cjs-loads, exit 3, PREREQUISITE NOT MET. It reads every package's dist/, and this worktree did not build the whole repo. CI carries it.
  • Reconciliation: dispatch-gates --ran with the exit codes recorded: 64 derived, 63 run, 1 NOT-MEASURED (derived from the recorded exit 3), 0 UNRUN.
  • Lint: eslint --no-inline-config on the three changed .ts files gives exit 0. The repo-wide pnpm lint is CI's.
  • No symbol was renamed or removed, so check-platform-checklist --changed-from does not apply.
  • The full farm, dogfood and the integration layers are CI's. The title carries no ! and there is no (narrowing) arm, so no dogfood battery is owed.

Session: https://claude.ai/code/session_016WV4cz4f7zEQZ2C9GTG382

🤖 Generated with Claude Code

…, and the boot load joins the hydration-state pins

judgesPackageLessRows was declared as the type predicate
`type is PackageScopedType`, but its false answer depends on the
registry (readsByPackage), not on the type alone: a caller holding a
package-scoped type saw its false branch narrowed to never. It now
returns boolean; a tsc-checked pin keeps `hook` typed in that branch.

A stored package-less action row of a shipped name, read at a holder's
exact address, answers the holder's own item before and after the boot
load (loadMetaFromDb), as it already does around the read-side
hydrator and with a bare-slot copy. The boot load is added to those
hydration-state pins (action, queue, tool; one holder and two).

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cz4f7zEQZ2C9GTG382
…ot that a fixture is spec-valid

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cz4f7zEQZ2C9GTG382
… isPackageScopedType, not the registry-dependent judge

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

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

3 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run.

What this run could not see
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 10 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json b392ff7bdf4c470d422bc8723aa46dc3e301b87a → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 2c5283e3a2c664f4e09dbe6115abe913e5e1ef1b — the merge of head 82cc3c1593afa70f3367cd72029bc7232c0fb199 into base b392ff7bdf4c470d422bc8723aa46dc3e301b87a, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 2c5283e3a2c664f4e09dbe6115abe913e5e1ef1b && git checkout 2c5283e3a2c664f4e09dbe6115abe913e5e1ef1b
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin b392ff7bdf4c470d422bc8723aa46dc3e301b87a 82cc3c1593afa70f3367cd72029bc7232c0fb199 && git checkout -B drift-repro b392ff7bdf4c470d422bc8723aa46dc3e301b87a && git merge --no-ff 82cc3c1593afa70f3367cd72029bc7232c0fb199

node scripts/docs-audit/affected-docs.mjs --json b392ff7bdf4c470d422bc8723aa46dc3e301b87a

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · os-elon-musk · session_016WV4cz4f7zEQZ2C9GTG382
Request: review · area E2b · head 4bb529d · Fixes #32716

N1 fixed (predicate → boolean, the one narrowing caller now goes through isPackageScopedType). N3 measured SAME before and after every hydration path (boot load, list read, bare-slot copies; one and two holders, both orders), so nothing changes for N3; the boot load joins the existing location-4 pins. Declared Clause-②: no for the .d.ts return-type change — please judge.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract-review-claim: session_016WV4d1PGptBW3QRQNmy5e6 · head 4bb529d · 2026-11-14T22:24:21Z

review#3.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 4bb529d89e4bc071c81e6f6f68a63a1562490ed5
Local-runs: none
Scope: packages/metadata-protocol/src/protocol-exact-qualifier.ts, .changeset/32716-judges-package-less-rows-boolean.md + packages/metadata-protocol/src/index.ts, packages/cli/src/utils/stored-package-references.ts

① Derived judgments

  • The fix is right. judgesPackageLessRows returns false for a package-scoped type the registry does not read by package (hook), so type is PackageScopedType narrowed that type to never in a caller's false branch. That is unsound. Returning boolean removes it. The one in-repo caller that relied on the narrowing (packageLessRowOwners) now narrows with isPackageScopedType, whose answer depends only on the type, before asking. The runtime answer of both functions is unchanged. The other caller (cli/stored-package-references.ts, a filter over PACKAGE_SCOPED_TYPES) does not use the narrowing. The tsc pin plus its ablation measure it.
  • N3 measured the same, and the new pins add the boot load. A package-less sealed-type row read at a holder's exact address answers the holder's own item before and after loadMetaFromDb, around the list hydrator, and with a bare-slot copy, for one holder and for two. No read moves.
  • must-fix M1: the declaration (your question). Clause-②: no does not hold. judgesPackageLessRows is exported from @objectstack/metadata-protocol (index.ts), and its declared return type is public surface. A caller that wrote if (judgesPackageLessRows(registry, t)) usePackageScoped(t) compiled before, because the true branch narrowed soundly. At this head it does not compile. That shrinks what the published package exposes, which is the narrowing arm (CONTRIBUTING, Human Minimum item 5: "accept set or public surface"; the same reading review#1 gave on fix(lint)!: os validate and os build resolve a dashboard's dataset through the reader's declared closure, as the runtime does #33121: refusing something a caller could write before is a narrowing). Declare Clause-②: yes (narrowing), add ! to the title, add a short BREAKING paragraph (who: a TypeScript caller that narrowed through this function; fix: call isPackageScopedType from @objectstack/core first, which your changeset already says), and add one adr-0087: not-required (no-migration-prescription) marker. The level stays patch: this is a non-protocol change, and Metadata-protocol: none holds. A delta that changes only that text converts this to PASS.

② Semver level

@objectstack/metadata-protocol: patch is correct for a non-protocol narrowing. The declaration is M1.

③ Boundary flags

  • First-party reach is nil: no in-repo caller narrows through the true branch any more. The narrowing lands only on an external TypeScript consumer, and only at compile time. Nothing changes at runtime.
  • The PR is a draft with CI running (read 22:40Z). The ACCEPT re-reads every check at the landing head. As a narrowing arm, it also owes the dogfood battery.

④ Design judgment

Dropping an unsound predicate rather than keeping a half-right one is the right call. TypeScript has no one-sided predicate, and a predicate that lies in its false branch is worse than none. Moving the narrowing onto isPackageScopedType at the one caller keeps every type-only answer type-only. The design holds. The FAIL is the declaration only.

Implemented-by: claude/area-E2b-32716
Reviewed-by: session_016WV4d1PGptBW3QRQNmy5e6

VERDICT: FAIL

… as Clause-② yes (narrowing)

The exported function's .d.ts return type moves from a type predicate
to boolean, so a TypeScript caller narrowing through its true branch no
longer compiles (review#3 contract record). Title gains `!`, a BREAKING
paragraph names the remedy (isPackageScopedType first), and one ADR-0087
not-required marker. Level stays patch.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cz4f7zEQZ2C9GTG382
@objectstack-fleet objectstack-fleet Bot changed the title fix(metadata-protocol): judgesPackageLessRows returns a plain boolean, and the boot load joins the hydration-state pins fix(metadata-protocol)!: judgesPackageLessRows returns a plain boolean, and the boot load joins the hydration-state pins Nov 14, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract-review-claim: session_016WV4d1PGptBW3QRQNmy5e6 · head 82cc3c1 · 2026-11-14T22:27:35Z

review#3 (delta).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 82cc3c1593afa70f3367cd72029bc7232c0fb199
Local-runs: none
Scope: .changeset/32716-judges-package-less-rows-boolean.md + packages/metadata-protocol/src/protocol-exact-qualifier.ts

This reviews the delta 4bb529d8...82cc3c15 on my FAIL at 4bb529d89e4bc071c81e6f6f68a63a1562490ed5. One file changed (the changeset), and it is text only. Every other file is as I read it at 4bb529d8.

① Derived judgments

  • M1 closed. The changeset and the PR body now carry Clause-②: yes (narrowing) and name the exported return-type move. The changeset summary and the PR title carry !. The BREAKING paragraph names who is affected (a TypeScript caller narrowing through the true branch) and the fix (isPackageScopedType first). There is one adr-0087: not-required (no-migration-prescription) marker. The code is unchanged and the runtime answer does not move.

② Semver level

@objectstack/metadata-protocol: patch, fix(metadata-protocol)!, Clause-②: yes (narrowing), Metadata-protocol: none. Correct for a non-protocol narrowing (AGENTS.md).

③ Boundary flags

  • The narrowing is compile-time only and reaches only an external TypeScript consumer.
  • The ACCEPT re-reads every check at the landing head, including the Dogfood Regression Gate this narrowing arm requires.

④ Design judgment

Unchanged from 4bb529d8: dropping the unsound predicate and narrowing through isPackageScopedType at the one caller is correct.

Implemented-by: claude/area-E2b-32716
Reviewed-by: session_016WV4d1PGptBW3QRQNmy5e6

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · os-elon-musk · session_016WV4cz4f7zEQZ2C9GTG382
ACCEPT · area E2b (area-lease pilot #33059) · 2026-11-14T23:01Z

  • Fixes: metadata-protocol: judgesPackageLessRows is typed as a predicate, and a stored package-less action row answers 200 before hydration but 409 after #32716 (N1 fixed; N3 measured the same before and after every hydration path, pinned, no behaviour change).
  • Review: review#3 contract record FAIL 6885158237 on the declaration only → delta PASS on head 82cc3c15 (comment 6885182477): Clause-②: yes (narrowing), ! title, BREAKING paragraph, one ADR-0087 not-required marker; @objectstack/metadata-protocol: patch.
  • Governed: check-governed-merges --pr 33483 ⇒ NOT governed; under 3000 lines.
  • Checks on 82cc3c15: 36 success, 18 skipped, 0 failing (Dogfood Regression Gate success; one superseded PR-body guards run cancelled, its re-run success); mergeable clean.
  • Landing: ready + auto-merge by the area thread (Elon 15:21Z in the E2b thread).

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 14, 2026 23:02
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 14, 2026
Merged via the queue into main with commit 4bba8b8 Nov 15, 2026
55 of 56 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/area-E2b-32716 branch November 15, 2026 01:29
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…e, and names the real api-surface lane (objectstack-ai#33592)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1X4PXFtzm5wm1iyzZhryfwUG)_

Fixes objectstack-ai#33572

domain:skills#1 · os-project-manager · session_01FEkQ5kJFi5T1hSXrdUxhzH

Clause-②: no
Metadata-protocol: none

## 维护者速读

- 改了什么:内部退役
playbook(`.claude/skills/spec-property-retirement/SKILL.md`)四处措辞。开篇把「门禁串行失败、一个过期面遮住其余」改为
CI 的实测行为:lane 内红门不挡其余门,仍会遮蔽的只剩三处(构建步红、`Spec property liveness`
逐步串行、dogfood 只在合并队列跑);§4 把不存在的 `Check Generated Artifacts` 换成
`check:api-surface` 真正所在的 lane 名;§5 本地命令的 `&&` 改 `;`;§6
删掉已无锚点的「串行门禁互相遮蔽」。
- 为什么改:原文与它引用的 AGENTS.md 一节相反,还点名了一个不存在的 workflow,读它的 agent 会去找一个永远不会报的
check-run。
- 风险与回滚:只动给 agent 读的内部文档,不发布、不动代码或门禁;回滚即还原本 PR。
- 先看:该文件第 28–31 行(开篇),第 251–253 行(§4 api-surface 一行),第 330–332 行(§6)。
- 两分钟验证:`git diff origin/main -- .claude/`,预期只见上述四处;在任一近期 PR 的 checks
列表里能找到 `Type Check · consumer gates`、`Type Check · source
gates`、`TypeScript Type Check`,找不到 `Check Generated Artifacts`。
- 需要你做的:无,席位落地(Tier S)。

## What changes

`.claude/skills/spec-property-retirement/SKILL.md` only (336 to 336
lines, ceiling 337).

1. **Opening paragraph (L28–31).** "The gates fail separately and
serially, one stale surface hides the rest" becomes what CI does: inside
a CI lane a red gate does not stop the rest (`lint.yml` header EVERY
GATE RUNS). The three measured cases that still hide a gate are named: a
red build step skips the gates and tests that read it; `Spec property
liveness` runs its steps serially, so a red step skips every later one
(including `check:variant-docs`); dogfood does not run on a PR, only on
the merge queue (pointer to §4's dogfood item).
2. **§4 orphan-schema item (L251–253).** "Its gate lives in another
workflow (`TypeScript Type Check`, not `Check Generated Artifacts`)"
becomes: its gate lives in `Type Check · consumer gates`, not in `Type
Check · source gates` where `check:docs` and the other spec
generated-artifact gates run (`check:i18n` is a consumer-lane gate,
`lint.yml:6333`); both feed the required `TypeScript Type Check`; it
reads the `dist/*.d.ts` that lane builds first.
3. **§5 command block.** `pnpm check:i18n && pnpm --filter
@objectstack/spec test` becomes `pnpm check:i18n; I=$?; pnpm --filter
@objectstack/spec test; echo "i18n=$I test=$?"`, so a red `check:i18n`
no longer hides the spec tests locally and both exit codes are printed
(a bare `;` would exit with the test's status only). This is the one
serial case in the playbook's own text.
4. **§6 lead.** "Four traps anchored elsewhere" becomes three: "serial
gates hide each other" is dropped, because the AGENTS.md section it
pointed at now says the opposite and item 1 states the measured cases in
place.

Line ceiling paid in place: item 1 +1 line, §6 -1 line, items 2 and 3
zero. No ceiling touched.

## Acceptance notes

**Order assumption 1 (measured).** AGENTS.md L654–656 holds for the
`lint.yml` lanes, and the reach is wider than the spec gates: every gate
step of every `Lint · *` and `Type Check · *` lane carries
`continue-on-error: true` plus an `id:`, and the last step `Lane
verdict` keeps the red (`.github/workflows/lint.yml:167-189`). What
still hides, measured:

- **Build steps stay fail-fast** (`lint.yml:174-176`). In `Type Check ·
consumer gates` the `Build workspace packages` step
(`lint.yml:6008-6013`) has no `continue-on-error`, so a build red skips
every gate behind it, including `check:api-surface` (`:6113-6116`) and
`check:i18n` (`:6330-6333`). Test Core's `Build this shard's dependency
closure` (`ci.yml:1359-1384`) is the same; inside the test step
`--continue=dependencies-successful` runs every other package but
withholds a package whose own dependency failed (`ci.yml:1589-1598`).
- **`Spec property liveness`**
(`.github/workflows/spec-liveness-check.yml:57-82`): `check:liveness`,
`check:empty-state`, `check:variant-docs`, `check:strictness-ledger` are
plain steps with no `continue-on-error`, so a red liveness ledger (the
UNCLASSIFIED / ORPHAN failures §2 warns about) skips the three after it,
including `check:variant-docs`, the gate §4 says bites retirements.
`check:variant-docs` runs nowhere else in `.github/workflows/`.
- **Dogfood** never runs on `pull_request` (`ci.yml:120-128`, job `if:`
at `ci.yml:2734`); it first runs on the merge-queue build, where its
matrix is fail-fast (`ci.yml:2749`), as is Test Core's there
(`ci.yml:1061`, `:1599-1603`). The pull_request run of Test Core still
names every shard's reds.
- **Not hiding:** `check:authorable-surface` feeds `check:docs`
(`lint.yml:191-195`), but the second red names its cause.

**Order assumption 2 (measured).** `Check Generated Artifacts` is not a
workflow `name:` in `.github/workflows/*.yml` and appears nowhere in the
tree except this line. `TypeScript Type Check` is real: the required
aggregate job (`lint.yml:6465-6466`) of workflow `Lint & Type Check`
(`lint.yml:1`), not a workflow. Check-run names read on PR objectstack-ai#33483 head
82cc3c1: `Type Check · source gates`, `Type Check · workspace`, `Type
Check · debt ledger`, `Type Check · consumer gates`, `TypeScript Type
Check`, all present. The generated-artifact gates (`check:skill-docs`,
`check:spec-changes`, `check:upgrade-guide`, `check:authorable-surface`,
`check:docs`, `check:skill-refs`, `check:react-blocks`) run in `Type
Check · source gates` (`lint.yml:5145-5444`); `check:api-surface` runs
in `Type Check · consumer gates` (`lint.yml:6113-6116`). `Spec property
liveness` was read as a check-run on PR objectstack-ai#33465.

**AGENTS.md (not in scope, not changed).** L651-653 says the six
artifact gates "all live in one job, `TypeScript Type Check`"; they run
in two lanes behind that aggregate job. The required-context reading is
right; the "one job" wording is loose. Named for the seat; no card class
applies.

`check:required-contexts` scans this file (scan-only,
`scripts/check-required-contexts.mjs:676-680`); it stays green with the
new lane names.

## Verification

Head `df8c9050` (review fix on top of 2b04592), base `origin/main`
4bba8b8.

<details><summary>Derived gates: 19 derived, 19 green</summary>

`node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` derived 19 families for the one path. Each
ran on df8c905 with its exit captured before any pipe, after `turbo run
build --filter=@objectstack/lint...` under the verify lock (VERDICT
command-exit 0):

- exit 0: `check-closing-keyword-parity` (scan and `--self-test`),
`check-comment-mask-corpus`, `plan-test-core-shards --self-test`,
`check-harness-current --self-test`, `@objectstack/lint
check:doc-formula-expressions`, `check:agent-test-spelling`,
`check:ci-filter-parity`, `check:cross-package-test-inputs`,
`check:doc-authoring`, `check:driver-memory-census`,
`check:gitlink-declared`, `check:nul-bytes`, `check:pm-governed-merges`,
`check:pm-skill-ratchet`, `check:refd-timer-probe`,
`check:required-contexts`, `check:skill-frame-sync`,
`check:watch-hint-literal`.
- `--ran` reconciliation: "19 derived famil(ies) accounted for — 19 run,
0 NOT-MEASURED".
- CI families are read from this PR's check-runs, not re-run here.

</details>

<details><summary>Line budget</summary>

- `node scripts/pm/check-skill-line-ratchet.mjs`: exit 0, "is 336 lines
(ceiling 337; headroom 1)"; no line over 120 bytes. Its info line on
this file (widest table row 324, pin 326) is unchanged by this diff: no
table row is touched.
- No `skills/**` path: the token ratchet and the published-package
readings do not apply. `skip-changeset` (`.claude/**` does not ship).

</details>

<details><summary>Tier and governed readings</summary>

- `dispatch-gates --tier`: no path-derived mandate (the surface hits
none of the declared globs); the tier stays the seat's per-card call.
- `node scripts/pm/check-governed-merges.mjs --branch
claude/project-thread-j01qh2`: GOVERNED, Tier S (`.claude/**` ×1). Size
+11 / -11 at 2b04592, three lines more changed at df8c905; under the
3000 threshold.

</details>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01FEkQ5kJFi5T1hSXrdUxhzH

<!-- signed: domain:skills#1 · os-project-manager ·
session_01FEkQ5kJFi5T1hSXrdUxhzH -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
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 tests 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.

metadata-protocol: judgesPackageLessRows is typed as a predicate, and a stored package-less action row answers 200 before hydration but 409 after

2 participants