Skip to content

feat(lint): an approval's closed-state gap is refused at every authoring door, through the first request's one judge (ADR-0162 item 7, slice N45) - #38562

Merged
os-zhuang merged 6 commits into
claude/o5-data-approvals-trunkfrom
claude/project-thread-fkdrk9
Nov 29, 2026
Merged

os-zhuang merged 6 commits into
claude/o5-data-approvals-trunkfrom
claude/project-thread-fkdrk9

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

Part of #37766

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

Ruling-ref: 7253749311 (option D, 「D 统一校验,各入口都拒绝」)

维护者速读

  • 审批在关闭状态字段上配不全时,现在在每个编写入口都直接报错:写文件的项目在 os validate / os build / os lint 时报错;设计器、REST /meta 和 MCP 在正式保存、草稿转发布、恢复和整包发布时(草稿保存不拦)以 INVALID_METADATA(422,入口已有的错误码)拒绝,并逐条说明缺什么(11 种语言)。
  • 只有一条规则(validateApprovalClosedStates,放在共享的编写期规则表里),只有一份判定(移到 @objectstack/metadata-core),开审批时的检查调用的是同一份代码,所以作者看到的和开审批时看到的是同一个结论;两份句子目录由测试逐条保持一致。
  • 开审批时的拒绝仍是规则;编写期拒绝是加上去的,不替代它。编写入口看不到的(不在视野里的子流程、插件自带的节点类型、宿主有没有作业服务)不在编写期拒,开审批时照样拒。注记里哪些是您的原话、哪些是分析带来的、哪些是席位的提议,分开标明,提议可随合并接受或划掉。
  • ADR-0162 加了一条日期注记(D5 下方),需要您亲手合并(Tier H)。ADR-0094 不改。

What changes

  • One judge, moved. packages/metadata-core/src/approval-opening.ts (new) holds the judge slice B put in the approvals plugin, unchanged in verdict, with two drivers over one walk (approvalFlowWalk): judgeApprovalOpening awaits each flow it reads (the first request), and judgeApprovalOpeningSync judges a stack in hand (the rule; a read that answers a promise counts as unreadable). The plugin's approval-opening-check.ts re-exports it under the names it exported before. metadata-core depends on spec only, as flow-cycle.ts ("the ONE judge") does; plugin-approvals and lint already depend on metadata-core, so no dependency edge is added.

  • One rule. packages/lint/src/validate-approval-closed-states.ts (new), finding approval-closed-state-gap at error, a member of the reference-integrity suite with runtimeTypes: ['flow', 'object'] and subjects: ['flows'], the shape validateReadonlyFlowWrites has. Each flow of the stack is judged as an approval's root on the object its run can be started on, read off the definition as the first request reads it off the run: the start node's objectName where the flow declares one, and only where it declares none, each record start input's object ([Decision] flows and records: may a flow start input declare a record reference (A), and does a non-system create stop choosing the new record's id (C)? #29425); its callees are read from the same stack; a gap reached from several roots is reported once. Its developer sentence is the first request's en sentence for the gap, and its user sentence (validate-approval-closed-states.user-text.ts) is the first request's catalog sentence in all 11 platform locales.

  • ADR-0162: one dated note under D5 and an Amended pointer on the status line, prepared for the maintainer's hand and worded by an at-tier pen (CONTRACT_REVIEW_TIER). It quotes the ruling and the option's line verbatim, reads line 242 ("reported … early notice"), Execution item 7, the Points bullet at 432 ("is not made at publish") and the Alternatives entry on publish with the ruling, leaves each as written, and marks apart what the ruling record carried from the analysis and what the seat proposes.

  • The approvals guide (content/docs/automation/approvals.mdx, on o5-data's ask after the guide landed on the trunk at 97f9f1f23): a subsection after the refused opening, "Refused where the approval is authored", naming the three commands, the publish door, what is left to the first request.

Proposals for the points the ruling left open

  • Rule name and code: validateApprovalClosedStates, finding approval-closed-state-gap, refused at the door as INVALID_METADATA (422), the code every reference-integrity refusal already leaves under.
  • Where the judge lives: @objectstack/metadata-core, beside flow-cycle.ts. Not in lint (plugin-approvals has lint as a devDependency only) and no new edge.
  • What the CLI can judge: every condition the first request judges except three, each pinned by a test: a call to a flow the stack does not hold (unreadable_flow dropped; lint: a second batch of publish-time checks for metadata that saves and does not work — the ones only the hosted build check makes today #35143's gate owns a call to a flow the deployment does not hold); a node type the spec does not ship, which counts as one that does not pause (only FLOW_PAUSE_CAPABLE_NODE_TYPES are judged; the first request reads the engine's descriptors); the host's job service (no_job_service is never raised).
  • What the door sees on an object write: the written package's live flows as judged subjects (subjects: ['flows'], the runtime gate's subject pass), and the differential charges the write only with what it adds, so a gap the stored universe already holds is not charged to an unrelated object write.
  • The note's wording: in the diff (e5760397c).

Dispositions from the ruling record

  • S1 falls away: no new protocol member (addAuthoringGate is not added).
  • S3 confirmed by a batch test: publishPackageDrafts with the closing object and the repaired flow as drafts of one package passes; the closing object alone is refused. The door's pending declarations already carry the batch; no protocol change.
  • S4 falls away: the refusal leaves under INVALID_METADATA (422), which the door already lists. The ledger row built for the old shape is not pushed.

Readings

  • A flow write holds the written flow alone in the door's snapshot (path flows[0]). A gap that shows only across the written flow and a flow it calls, or one that calls it, is refused by the CLI over the whole stack and at the first request, not at that write.
  • A package publish: each draft is judged against the batch's objects; a live flow the batch redrafts leaves the object write's subjects (objectWriteFlowSubjects) and is judged as its draft at its own write. So declaring closedStates and repairing the flow in one publish passes, and declaring it without the repair is refused.
  • A draft save is not refused; its promotion is (the shared gate runs at promotion).
  • A flow that declares no object (no start object, no record input), started by an action or by name, is judged with no object for the run's record at authoring and on the run's record at the first request. A record input beside a declared start object is not read as the run's object (contract review S1, fixed at f6110c777).
  • An application where no object declares closedStates reads nothing, at authoring and at the first request alike. No shipped object declares it, so the rule finds nothing over the shipped corpus.
  • Metadata-protocol: none: the rule reads only closedStates, which the trunk adds and no released version accepts, so nothing publishable today is refused. The ruling record's release rule: the release that first publishes the key carries this refusal.

Face and tier

node scripts/pm/dispatch-gates.mjs --tier over the diff: docs/adr/** ⇒ contract tier (CONTRACT_REVIEW_TIER), no one-line exit; the ADR note is Tier H and lands by the maintainer's hand. Clause-②: yes (widening): metadata-core and lint gain exports. packages/lint/** sits inside #35143's claim (seat 6); node scripts/pm/overlap-check.mjs --base=origin/claude/o5-data-approvals-trunk at c0021e910: clean against the trunk and the three open PRs that share a file (#38550, #38497, #38241).

Verification

  • packages/metadata-core/src/approval-opening.test.ts (3): the two drivers agree; a promise in the sync driver is unreadable; the walk asks each callee once, with its caller.
  • packages/lint/src/validate-approval-closed-states.test.ts (14): each field condition, the pause, another field, a subflow judged through its caller, a record start input, one report for many roots, a clean approval; what is not refused (an unheld callee, a plugin node type, the host, no declaration, an object not in the stack, another closing field); the user sentence in en and zh-Hans.
  • packages/lint/src/runtime-gate.approval-closed-states.test.ts (8): through runRuntimeAuthoringRules, flow writes refused and let through, object writes refused and not charged for a stored gap, and a package publish's two halves (the object write without the redrafted flow, the flow at its own write).
  • packages/plugins/plugin-approvals/src/approval-closed-states-sentences.test.ts (11): the rule's sentence equals the first request's for each of the 9 gap kinds, in each locale. Reverse-verified: one changed word in the lint catalog turns its locale red.
  • packages/plugins/plugin-approvals/src/approval-closed-states-37766.integration.test.ts (6, real kernel): an active flow save refused (INVALID_METADATA, 422), a clean one saved, a draft saved and its promotion refused, a closing object save refused, the package publish passing with the repaired flow and refused without it.
  • Suites at the head before the trunk merge: lint 9980 tests (one member-surface pin updated, re-run green), plugin-approvals 2112, metadata-core 1124; after merging the trunk's lead fix, the approvals opening and integration files re-run green.
  • Trunk 97f9f1f23 (the guide and Approval status mirror: a write that does not land, a run that ends between two steps, and a decision whose run cannot resume must not leave a document closed on an unfinished approval (ADR-0162 item 8) #37767 piece 3) merged in at 2a8d0a7d6; the approvals opening, closed-state and outcome-when-over files re-run green (105 tests). check:doc-anchors, check:doc-authoring, check:docs-transcript-drift: OK.
  • tsc --noEmit on the three packages, eslint on the changed files, check:doc-anchors, check:test-source-alias, check:error-status-conformance, check-changeset-no-major, check-adr-0087-registration: OK.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FEkQ5nzgcVrZ8Neqqd1AFi

…door, through the first request's one judge

The judge of ADR-0162 D5's opening conditions moves from the approvals
plugin to @objectstack/metadata-core (approval-opening.ts), with an
awaiting driver for the first request and a synchronous one over a stack
in hand. The plugin re-exports it; its verdict is unchanged.

A new reference-integrity member, validateApprovalClosedStates
(approval-closed-state-gap, error), asks the same judge on each flow of a
stack, so os validate, build and lint refuse the gap, and the runtime
publish door refuses it (INVALID_METADATA) on a flow write and, with the
written package's live flows as subjects, on an object write. A flow the
stack does not hold, a node type the spec does not ship, the host's job
service and an object without closedStates are not refused there; the
first request still judges them. Sentences in 11 locales.

ADR-0162 gains one dated note under D5 for the maintainer's hand.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5nzgcVrZ8Neqqd1AFi
@github-actions github-actions Bot added size/xl 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 29, 2026
@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 3 package(s): @objectstack/lint, @objectstack/metadata-core, @objectstack/plugin-approvals, touching 88 documentable anchor(s). ⚠️ 2 changed file(s) yielded no anchor (packages/lint/src/index.ts, packages/metadata-core/src/index.ts), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

22 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json 97f9f1f236d67647b8521f0bdd500d430afbe063.

⛔ 8 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 2 changed file(s) yielded no anchor (packages/lint/src/index.ts, packages/metadata-core/src/index.ts) — pages documenting those are invisible to this run
  • 25 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 253 client-bound route-ledger rows — the other 184 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 184: 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; 125 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 — 13 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 97f9f1f236d67647b8521f0bdd500d430afbe063 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from ff63329bef3f172553255c62d2c69cd386d41ba1 — the merge of head f6110c77780cd4cb3de7ea977e23340010a0a942 into base 97f9f1f236d67647b8521f0bdd500d430afbe063, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older claude/o5-data-approvals-trunk 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 ff63329bef3f172553255c62d2c69cd386d41ba1 && git checkout ff63329bef3f172553255c62d2c69cd386d41ba1
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 97f9f1f236d67647b8521f0bdd500d430afbe063 f6110c77780cd4cb3de7ea977e23340010a0a942 && git checkout -B drift-repro 97f9f1f236d67647b8521f0bdd500d430afbe063 && git merge --no-ff f6110c77780cd4cb3de7ea977e23340010a0a942

node scripts/docs-audit/affected-docs.mjs --json 97f9f1f236d67647b8521f0bdd500d430afbe063

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

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 97f9f1f236d67647b8521f0bdd500d430afbe063 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet objectstack-fleet Bot changed the title feat(lint): an approval's closed-state gap is refused at every authoring door, through the first request's one judge (ADR-0162 item 7, slice D) feat(lint): an approval's closed-state gap is refused at every authoring door, through the first request's one judge (ADR-0162 item 7, slice N45) Nov 29, 2026
…d the two gap catalogs equal

The note now splits what the maintainer ruled from what the analysis
carried and what the seat proposes, quotes the option's line in full and
reads each of the four passages it touches. The rule's header, its
changeset and the door test's batch case now say what the door does in a
package publish: a redrafted flow leaves the object write's subjects and
is judged at its own write. A gap that shows only across two flows is
refused by the CLI and at the first request, not at a single flow write.

A plugin-approvals test holds the authoring rule's sentences equal to the
first request's, gap kind by gap kind, in all 11 locales.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5nzgcVrZ8Neqqd1AFi
…-state gap is refused at authoring

A subsection after the refused opening: os validate, build and lint fail
with approval-closed-state-gap, and Studio, REST /meta and MCP refuse the
save or publish with INVALID_METADATA, in the same words as the opening.
It names what is left to the first request: a flow not in view, a node
type a plugin adds, and the host's job service.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5nzgcVrZ8Neqqd1AFi

Contract-review-claim: session_01FEkQ5nzgcVrZ8Neqqd1AFi · head 2a8d0a7 · 2026-11-29T11:02Z

The card thread starts an isolated contract-review sub-agent at CONTRACT_REVIEW_TIER on this head (face rules: docs/adr/0162-…, plus the files in this diff that implement it). The record and its brief land here for the seat to adopt.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5kjJ6Qm1z2mRox4ZbB

席位核对 — ACCEPT · L1-b · area o5-data · Head-sha 2a8d0a7d6b113e8d4c4b4eadcb85f3389ebe8f5b · 2026-11-29T11:05Z

L1 of PR #38562 (#37766 N45, Ruling-ref 7253749311, option D). I read the net diff from the trunk claude/o5-data-approvals-trunk at merge-base 97f9f1f236d67647b8521f0bdd500d430afbe063: 20 files, +1733/−637.

What is owed. A governed docs/adr/** path is touched, so this is contract tier. The isolated L2 at CONTRACT_REVIEW_TIER runs on this head from the card thread; I did not start one. The PR is Tier H: after the L2 PASS, the seat hands it off, and the maintainer lands the ADR-0162 note himself, as the ruling says.

Checklist (l1-face --pr 38562 at 2a8d0a7: 2 flags, read below)

  • Shape flag (trunk base): expected for a trunk slice. Part of #37766, no closing keyword.
  • All-checks flag: the PR-body guards run that reads cancelled was superseded by a run of the same guard on this head that concluded success. The real tally is 63 success, 10 expected skip, 0 failed, 0 pending, mergeable_state clean.
  • Changesets: three, all at patch: @objectstack/lint (widening), @objectstack/metadata-core (widening), @objectstack/plugin-approvals (Clause-②: no, refactor). I read each sentence against the code.
  • Metadata-protocol: none holds. closedStates is not in origin/main's object.zod.ts, and slice A is not an ancestor of main. So no released version, and no prerelease, accepts an object the rule could refuse. This matches the ruling's release rule, and it is why no (narrowing) arm is owed.
  • Dependency edges: no new edge. packages/lint and plugin-approvals already depend on @objectstack/metadata-core.

My readings, at this head

  • The move is the same judge. I compared the old approval-opening-check.ts with the new approval-opening.ts, comments aside. The only changes are these:

    • The walk becomes a generator (approvalFlowWalk) that yields each callee read.
    • Two drivers sit over it: the async one awaits, and the sync one counts a promise as unreadable.
    • calleeFlow may answer sync.
    • allNodes is exported.

    Every condition, the cap, and canPause are unchanged. The plugin file is now a re-export under its old names. approval-opening.test.ts pins that the two drivers agree.

  • The rule. validateApprovalClosedStates judges each flow as a root, on each start object (a start.objectName or a record input), through judgeApprovalOpeningSync. It drops unreadable_flow and no_job_service (NOT_AT_AUTHORING), counts only FLOW_PAUSE_CAPABLE_NODE_TYPES as pausing, reads nothing where no object declares the key, and reports a gap reached from many roots once. Its sentences are the first request's, and approval-closed-states-sentences.test.ts holds the 9 gap kinds equal in 11 locales, reverse-verified.

  • The doors.

    • It is registered in REFERENCE_INTEGRITY_RULES with runtimeTypes: ['flow', 'object'] and subjects: ['flows'], the shape of validateReadonlyFlowWrites. So the CLI's three commands and the runtime gate's differential (an object write is charged only with gaps it adds) both reach it without any new seam.
    • The membership pins are updated in both suites.
    • The real-kernel integration covers: an active save refused with 422, a draft saved and then its promotion refused, an object save refused, and the package publish passing with the repaired flow and refused without it. The runtime-gate file pins the same cases at the gate.
  • The ruling's open points. The proposals each name their choice: the name and code, the judge in metadata-core, what the CLI cannot judge, and the object-write subjects. S1, S3 and S4 are disposed as the ruling record foresaw.

  • The ADR note. It quotes the option and its line verbatim. It reads the four passages (line 242, Execution item 7, the Points bullet, Alternatives) and leaves each as written. It marks which points the ruling record carried from the analysis and which are the seat's.

  • The guide subsection matches the rule and the doors sentence by sentence, including "a draft save is not refused; its promotion is". It also names the three things left to the first request.

For the seat's hand-off (no edit owed here)

  • The runtime door and plugin node types. The ruling record lists "a plugin's node type waits for the runtime door and the first request" as the analysis's reading under "Not ruled". The build makes the runtime door count a plugin's type as non-pausing too: the gate's sealed vocabulary carries type names, not supportsPause. So such a pause is left to the first request alone. This is disclosed only in the ADR note's seat bullet ("the runtime door included … handed none of the engine's descriptors"). When the seat brings the note to the maintainer, point at this line as a place where the build differs from the analysis he was shown, so that he can strike it.

Nothing else is owed from L1. Next come the same-head L2 PASS, then the seat's Tier H hand-off. The maintainer lands the ADR note, and the slice reaches the trunk with --no-ff.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5nzgcVrZ8Neqqd1AFi

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 2a8d0a7d6b113e8d4c4b4eadcb85f3389ebe8f5b
Local-runs: none
Scope: docs/adr/0162-an-object-declares-its-closed-states-the-record-and-its-lines-are-closed-to-change.md + packages/lint/src/validate-approval-closed-states.ts, packages/lint/src/validate-approval-closed-states.user-text.ts, packages/lint/src/reference-integrity-suite.ts, packages/lint/src/finding-user-text.ts, packages/lint/src/index.ts, packages/metadata-core/src/approval-opening.ts, packages/metadata-core/src/index.ts, packages/plugins/plugin-approvals/src/approval-opening-check.ts
Security-touching: no

① Derived judgments

Gate verdicts, read off the check-runs on this head: 73 runs, 62 success, 10 skipped, 1 cancelled, 0 failure. The cancelled run is PR-body guards; a later run of the same name succeeded, so its verdict is success. The successes include Lint & Repo Gates, TypeScript Type Check, Test Core (the aggregate and its 12 shards), Build Core, Check Changeset, Governed Surface Queue Guard, Spec property liveness, Build Docs and Dogfood Regression Gate.

What the diff changes in what is accepted and what is published:

  1. Authoring from files. os validate, os build and os lint now fail a stack that holds an approval with a D5 gap, at error. Narrowing in form, but it reaches no released input: the rule returns nothing unless an object declares closedStates, and that key is unreleased (its own changeset is pending on the same trunk with Metadata-protocol: added). Right, on the release condition in ②.
  2. Runtime publish door. A flow or object write is refused with INVALID_METADATA (422) for a gap it adds. No new error code, no route, no protocol member: no file under packages/metadata-protocol/** is in the diff, and the refusal follows from the suite registration alone (runtimeTypes: ['flow', 'object'], subjects: ['flows']). A draft save stays ungated. Right.
  3. A new finding id, approval-closed-state-gap, with user sentences in the 11 platform locales. Right, a widening.
  4. Exports of @objectstack/lint: validateApprovalClosedStates, approvalRootObjectsOf, APPROVAL_CLOSED_STATE_GAP, and the type ApprovalClosedStateFinding. Declared as a widening: right. approvalRootObjectsOf is the function S1 questions, and its meaning is public once released.
  5. Exports of @objectstack/metadata-core, through export *: 11 types and the functions closedValuesOf, approvalFlowWalk, judgeApprovalOpening, judgeApprovalOpeningSync, allNodes. Declared as a widening: right, except allNodes (Nit A).
  6. @objectstack/plugin-approvals: public surface unchanged. approval-opening-check.ts is not in the package entry and now re-exports the moved judge. The no on its changeset is right.
  7. The first request's verdict: unchanged. Against the base module, the moved module differs in header prose, in the callee read (it may now answer a promise), in the walk (lifted into a generator with two drivers), and in allNodes (now exported). No condition changed. Right.

② Semver level

Three patch changesets, one per package whose source moved: lint (yes (widening), protocol none), metadata-core (yes (widening), none), plugin-approvals (no, none). The PR body's two declaration lines agree with them, and Check Changeset is green on the head. Patch is the level the repository's rule gives a none protocol line.

One condition holds none in place: the refusal ships in the release that first publishes closedStates. Shipped after that release, the same rule reads narrowed. The ruling record's release rule and the note's "Released with the key" bullet both say so, and the trunk carries the key and the rule together.

③ Boundary flags

No os-dev-report for this PR is on the card. The flags answered are the proposals in claim 7253838387 and in the PR body, each against the tree.

  • Rule name, id, severity, door code: as proposed, and as the tree has them. Accepted.
  • The judge's home: packages/metadata-core, beside flow-cycle.ts. No package.json is in the diff; lint and plugin-approvals already depend on metadata-core. Accepted.
  • What the files door judges: three exclusions, each pinned in validate-approval-closed-states.test.ts: a callee the stack does not hold, a node type the spec does not ship, the host's job service. Accepted; S1 names a class the list leaves out.
  • Object-write subjects and the differential: the registration has the shape validateReadonlyFlowWrites has, and the finding's fingerprint is stable for a stored gap, so an unrelated object write is not charged. Pinned by the runtime-gate test and the integration test. Accepted.
  • The note's wording: judged in ④.

The ruling record's carried lines, which bind the build unless the review or the maintainer's approval changes them:

  • First request stays the rule; one copy of the judge; addAuthoringGate not added; released with the key: all four held.
  • "Facts only a running deployment holds are handed to the rule by the runtime gate": not built. The runtime door hands the rule neither the engine's node descriptors nor the job-service fact; at every door the rule reads the spec's pausing list and takes the host as running the reconciler. The note says so. This review accepts the departure: it only under-refuses, and the first request still reads the descriptors. It stays one of the seat's proposals for the maintainer to accept or strike with the note. If the hand-off is built later it narrows the authoring accept set, so it belongs before the key's first release.
  • "Each door pins in a test what it cannot read": held for the three classes above. The restore arm is not pinned for this rule in this diff; it rests on the gate call the restore path shares.

The three findings of the review of closed PR #38527 that the ruling record disposes: the protocol member is not added (confirmed, no protocol file in the diff); the batch reading is confirmed by the two package-publish integration tests; the refusal leaves under a code the door already gives (confirmed).

Open questions on the card belong to other PRs and are not answered here: two in 7251445681 (PR #38485) and one in 7253794078 (PR #38546).

SQL push-down: the diff adds no query, no id materialisation and no in-app join. The rule reads a stack in memory, and the runtime door reads the snapshots it already gathers.

Security: no changed hunk teaches permission, sharing, credential, token or authentication behaviour. The hunks add an authoring-time configuration check and its sentences.

For the seat, none of it a finding on a scope file:

  • The ADR path is Tier H and the maintainer's words reserve the amendment to him: 「您批一条决策记录修订」. The note's second half is addressed to him to accept or strike. This record lifts nothing, whatever its security line reads.
  • The PR body names a model family in two places ("What changes", the ADR bullet; "Face and tier"). AGENTS.md keeps model identifiers out of a PR body. A body edit moves no head.
  • The PR is a draft, and packages/lint/** sits inside lint: a second batch of publish-time checks for metadata that saves and does not work — the ones only the hosted build check makes today #35143's claim, as claim 7253838387 records. Ordering is the seat's.
  • The remainder is the lane seat's ACCEPT at TIER_DEFAULT: seven test files, three changesets and the guide subsection in content/docs/automation/approvals.mdx.

④ Design judgment

The ADR note and the status-line sentence (the hit).

  • Add-only: the file gains the note (lines 244 to 264) and one sentence at the end of the status line. Nothing else is rewritten.
  • The maintainer's option 「D 统一校验,各入口都拒绝」 and the line under it are verbatim against ruling record 7253749311.
  • The four passages the note reads (lines 242, 416, 454, 596 at the head) are quoted exactly, are left as written, and are the only passages of the record that say reported, early notice, or not made at publish.
  • The note keeps apart the maintainer's words, the lines carried from the analysis, and the seat's proposals, as the ruling record lists them. ADR-0094 is not in the diff.
  • "The rule" bullet agrees with the tree: id, severity, member of REFERENCE_INTEGRITY_RULES, one entry of AUTHORING_RULES.
  • "The runtime publish door" bullet agrees with the tree and with the gate's call sites at save, promotion and restore (read outside the diff).
  • "One judge" agrees with the tree: both drivers run approvalFlowWalk and one judging function. Its closing clause, "on what both can read, an author and a first request get the same verdict", does not hold in the case below.

S1 (should-fix) — the rule reads a record input's object as the object of the run's record, and the first request does not.

approvalRootObjectsOf (validate-approval-closed-states.ts, lines 110 to 120) returns the start node's objectName and the object of every record start input (variables[].objectName with isInput, line 118). The rule then judges the flow as an approval's root on each (lines 150 to 151).

A run's object is a fact of how it was started, not of its variables:

  • the trigger door sets it from the request (packages/runtime/src/domains/automation.ts, line 234);
  • the action door sets the action's object (packages/runtime/src/action-execution.ts, near line 2993);
  • the first request judges with rootObject: rootRun.object ?? null (packages/plugins/plugin-approvals/src/approval-service.ts, line 5864).

No door reads a variable's objectName to set it; that key admits a record id as an input (#29425).

Two consequences, traced by reading:

  • Over-refusal. A flow starts on invoice and also declares a record input of purchase_order. purchase_order closes on approval_status; the flow's two steps mirror onto a field of that name, with a wait between them. The rule reports pause_between_steps naming purchase_order, and every authoring door refuses the flow. The first request, on an invoice record, asks nothing and opens. For that finding the rule's hint ("The approval's first request refuses the same approval.") is false, and so is the note's "same verdict" clause. The note's own description, "on each object it declares for the record it starts on", does not say an input's object is read as one.
  • Under-reach. A flow that declares no object in its definition, started by an action or by name on a record, is read on no object. No authoring door asks the conditions on its record. The note's list of what a door does not judge names four classes and not this one. The guide subsection carries the same list.

Grade: should-fix, not must-fix. No shipped flow declares a record start input, no shipped object declares closedStates, the key is unreleased, and the first request stays the rule. It needs settling before the key's release, since afterwards it is a wrong refusal of valid metadata at publish, and approvalRootObjectsOf is a public export.

The fix is the seat's choice, and either form moves the head:

  • read the start node's object alone where it declares one, and fall back to record inputs only where it declares none; or
  • keep the inference, and say in the note, the rule header and the hint that an input's object is read as a possible root.

In both, the note lists the flow that declares no object among what a door does not judge.

The implementing files.

  • validate-approval-closed-states.ts: agrees with the note except S1. unreadable_flow and no_job_service are dropped (line 83), the spec's pausing list stands in for the engine's descriptors (line 142), the host is taken as running the reconciler (line 143). A gap reached from several roots is reported once.
  • validate-approval-closed-states.user-text.ts and finding-user-text.ts: nine kinds in 11 locales, held equal to the plugin's catalog by the sentences test. Agrees.
  • reference-integrity-suite.ts: the registration is as the note states it. Agrees.
  • approval-opening.ts: the judge moved with no condition changed. At the first request an unknown node type still counts as pausing; in the sync driver a read that answers a promise counts as unreadable. Agrees.
  • approval-opening-check.ts: a re-export. Its two consumers in the plugin import the names they imported before. Agrees.
  • packages/lint/src/index.ts, packages/metadata-core/src/index.ts: export what ① lists.

Nits. None affects correctness or the contract. Nit A can ride the S1 fix head; the others are follow-ups or accepted deviations.

  • Nit A: allNodes becomes a root export of @objectstack/metadata-core and a new re-export of the plugin module, under a generic name and with no consumer outside the module. Removing it after release is a breaking change.
  • Nit B: closedValuesOf now exists twice, byte for byte: public in metadata-core, internal in packages/objectql/src/closed-state-values.ts. objectql depends on metadata-core and could import the one copy.
  • Nit C: the en sentences exist three times (the rule's MESSAGE, the rule's catalog, the plugin's catalog). The two catalogs are pinned equal for every kind and locale. MESSAGE is pinned to the catalog for pause_between_steps only; the other eight are equal today by reading.
  • Nit D: packages/lint/src/rule-explanations.ts has no os explain entry for the new id, though claim 7253838387 listed the rule explanations. Entries are optional by that module's own contract.

No must-fix. One should-fix, S1, is open on this head. Its fix earns a delta review, and the delta record closes it by id.

This record was rendered by an isolated sub-agent that the card thread (session_01FEkQ5nzgcVrZ8Neqqd1AFi) started for this review. It drafted neither this diff nor the ADR note, and it was fed only the brief's inputs: card #37766 with every comment, this PR's body, file list and net diff against 97f9f1f236, and the check-runs on the head.

Implemented-by: claude/project-thread-fkdrk9
Reviewed-by: session_01FEkQ5nzgcVrZ8Neqqd1AFi (isolated contract-review sub-agent)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5nzgcVrZ8Neqqd1AFi

The brief the isolated contract-review sub-agent was handed for record 7255121575, verbatim, for the seat to read before it adopts the record:

Brief

Contract review brief — PR #38562 @ 2a8d0a7d6b113e8d4c4b4eadcb85f3389ebe8f5b (card #37766)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template — with a PASS or FAIL verdict, and RETURN it as your final report (the card thread posts it on the PR with your transcript as tier evidence; you make no GitHub write).

Inputs — these and nothing else:
· card #37766: its body and EVERY comment (rulings and earlier records included)
· PR #38562: its body, its file list, and the net diff against its base claude/o5-data-approvals-trunk (97f9f1f236) at 2a8d0a7d6b113e8d4c4b4eadcb85f3389ebe8f5b
· the check-runs on 2a8d0a7d6b113e8d4c4b4eadcb85f3389ebe8f5b: 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: docs/adr/0162-an-object-declares-its-closed-states-the-record-and-its-lines-are-closed-to-change.md (the one dated note under D5 and the status-line Amended sentence);
the implementing files in this diff, at least: packages/lint/src/validate-approval-closed-states.ts, packages/lint/src/validate-approval-closed-states.user-text.ts, packages/lint/src/reference-integrity-suite.ts, packages/metadata-core/src/approval-opening.ts, packages/plugins/plugin-approvals/src/approval-opening-check.ts. The Clause-②: yes (widening) declaration (new exports of @objectstack/metadata-core and @objectstack/lint) is in scope too;
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 — if a hits path is under skills/** or ui/skills/** and 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.

Rule change — if a hits path is under .claude/**: the PR body declares Rule-change: and you verify it against the diff.
Write Rule-change-verified: none ONLY when no changed hunk alters what an agent may do without the maintainer
(merge, bypass a check, change repository settings), what gets done and in what order (grading, dispatch, scope), or
what must go to him (decisions, maintainer actions); process steps, scripts, wording, slimming and file moves are not rule
changes. Write ruled ONLY when every such hunk copies the ruling the PR body quotes on its Ruling-ref: line — check the
copy against the quoted words, do not re-rule it. Otherwise yes: the pull request then waits for the maintainer.

⛔ 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/98b97fe0-1d71-5765-93e6-b5f728112098/scratchpad/pr-38562/ 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.

…equest reads the run's

The first request judges on the object its root run was started on, and
no door sets that from a variable. The rule now reads the start node's
object where a flow declares one, and a record input's object only where
it declares none; a record input beside a start object is no longer read
as a root. A flow that declares neither is left to the first request,
and the ADR-0162 note, the rule's header and hint, and the approvals
guide say so. allNodes is no longer exported from metadata-core.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · zhuangjianguo · session_01QsR2jSyQBDMyRnrrWKy7WS

Contract-review-claim: session_01QsR2jSyQBDMyRnrrWKy7WS · head f6110c7 · 2026-11-29T12:15Z

Delta review at CONTRACT_REVIEW_TIER of the move from 2a8d0a7d6b (record 7255121575, PASS with S1 open) to this head, in seat 1's review thread R1. The session that rendered 7255121575 cannot be reached (its account is out of tokens; seat 1 continues seat 5's claims on the maintainer's word of 2026-11-29T11:57Z), so this session reads the delta.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · zhuangjianguo · session_01QsR2jSyQBDMyRnrrWKy7WS

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: f6110c77780cd4cb3de7ea977e23340010a0a942
Local-runs: none
Scope: docs/adr/0162-an-object-declares-its-closed-states-the-record-and-its-lines-are-closed-to-change.md + packages/lint/src/validate-approval-closed-states.ts, packages/lint/src/validate-approval-closed-states.user-text.ts, packages/lint/src/reference-integrity-suite.ts, packages/lint/src/finding-user-text.ts, packages/lint/src/index.ts, packages/metadata-core/src/approval-opening.ts, packages/metadata-core/src/index.ts, packages/plugins/plugin-approvals/src/approval-opening-check.ts
Security-touching: no

Delta review, 2026-11-29T12:17Z. Record 7255121575 reviewed 2a8d0a7d6b whole and passed it with S1 open and four nits. This record reads the one commit since, f6110c7778 (7 files, +45/−16), against that record, the card with every comment, the PR body, and the check-runs on this head. The session that rendered 7255121575 cannot be reached, so the delta is read by this session at the same tier; it drafted neither the diff nor the note. Of the scope files, the delta touches the ADR note, validate-approval-closed-states.ts, approval-opening.ts and approval-opening-check.ts; the other five are byte-identical to the head 7255121575 reviewed, and its reading of them stands.

① Derived judgments

Gate verdicts, read off the check-runs on this head: 73 runs, 63 success, 10 skipped, 0 failure, 0 pending. Every skipped name is in the base branch's roster (check-expected-skips.mjs --pr 38562, run from a checkout pinned to the trunk's tip 97f9f1f236: OK). The successes include Lint & Repo Gates, TypeScript Type Check, Test Core and its 12 shards, Build Core, Check Changeset, Governed Surface Queue Guard, Spec property liveness, Build Docs and Dogfood Regression Gate.

What the delta changes in what is accepted and what is published, against 2a8d0a7d6b:

  1. The rule refuses less. approvalRootObjectsOf returns the start node's object where the flow declares one, and reads record start inputs only where it declares none. A flow that starts on one object and takes a record of another as an input is no longer judged as an approval of the input's object. Nothing is refused at this head that was let through at the last one. Right: it is the reading the first request makes (rootObject: rootRun.object ?? null, approval-service.ts line 5864).
  2. allNodes leaves the public surface. It is module-private in approval-opening.ts again and gone from the plugin module's re-export. At the base 97f9f1f236 it was a private function of the plugin module, and neither spelling is on main, so no released name is withdrawn. No file outside approval-opening.ts names it. Right.
  3. The finding's hint now ends "The approval's first request judges the same conditions on the record its run is started on." It no longer promises the first request refuses the same approval. Right.
  4. No error code, route, protocol member, dependency edge or locale sentence moved. The door code, the suite registration and the eleven-locale catalog are untouched.

② Semver level

The three changesets keep their level (patch) and their declaration lines, and the PR body's two lines agree with them. The metadata-core changeset no longer lists allNodes among the exports, which is what the tree now exports. The lint changeset's export list (validateApprovalClosedStates, approvalRootObjectsOf, APPROVAL_CLOSED_STATE_GAP, ApprovalClosedStateFinding) is unchanged and still exact. Check Changeset is green on the head. The condition that holds Metadata-protocol: none in place is unchanged: the refusal ships in the release that first publishes closedStates.

③ Boundary flags

  • No os-dev-report names this head; the card's newest comment is 7254100647, and none is newer than record 7255121575's reading. The flags answered there stand.
  • The departure 7255121575 accepted, that the runtime door hands the rule neither the engine's node descriptors nor the job-service fact, is unchanged in the delta. It stays one of the seat's proposals in the note for the maintainer to accept or strike.
  • The PR body no longer names a model family: both places now carry the tier's constant name.
  • SQL push-down: the delta adds no query, no id materialisation and no in-app join.
  • Security: no changed hunk teaches permission, sharing, credential, token or authentication behaviour.
  • The ADR path is Tier H and the maintainer's words reserve the amendment to him. This record lifts nothing.

④ Design judgment

S1: closed. The fix is the first of the two forms 7255121575 offered, with the disclosure of the second for the fallback.

  • The code: approvalRootObjectsOf returns after the start nodes where one declares an object (validate-approval-closed-states.ts, line 128), so a record input beside a start object is never a root. The over-refusal traced in 7255121575 (a flow on invoice with a purchase_order input) is pinned as not refused by the new test "reads a record input as a root only where the flow declares no start object", which also pins approvalRootObjectsOf to ['invoice']. The earlier test for a flow whose only declaration is a record input still holds the fallback.
  • The under-reach: a flow that declares no object is judged on no object (pinned by the second new test), and it is now named where 7255121575 asked: the note's first sub-point of "What an authoring door does not judge", the rule's header, and the guide's list.
  • The note's "One judge" bullet no longer says an author and a first request get the same verdict. It says the conditions are written once and that the two verdicts can differ, and points at the last bullet for where. That bullet now says what the rule reads in place of a run's object, cites approvalRootObjectsOf, and says a flow that declares only record inputs can be started on a record of another object, on which the first request judges. Each sentence agrees with the tree at this head.
  • The note stays add-only apart from the status-line sentence 7255121575 already read; the delta rewrites two bullets inside the note itself and adds one sub-point. The maintainer's words and the four passages are untouched by the delta.

Nit A: closed (allNodes is private again; ① item 2).

What the delta leaves, none of it graded above a nit:

  • Nit E: two module headers still carry the sentence the note dropped. validate-approval-closed-states.ts lines 15 to 16 say "the author and the first request read the same verdict and the same sentences", and approval-opening-check.ts says one copy of the judge "is what keeps the two from disagreeing". Both are file comments, not exported docs, and the note and the hint now say the accurate thing. A comment fix can ride any later head.
  • Nit F, an accepted deviation the note states: in the fallback, a flow with no start object is judged on the object of each record input, "each read as a record the flow can be started on". Where such a flow is in fact started on a record of another object, an authoring door can refuse a gap the first request does not ask about. This is the residue of the form 7255121575 offered, it needs a flow with no start object, a record input of a closing object and a gap on it, and the note puts the reading in front of the maintainer to accept or strike.
  • Nits B, C and D of 7255121575 are untouched by the delta and stand as recorded there: follow-ups or accepted deviations, the seat's to place.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-fkdrk9
Reviewed-by: session_01QsR2jSyQBDMyRnrrWKy7WS

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · zhuangjianguo · session_01QsR2jSyQBDMyRnrrWKy7WS

维护者速读

  • 用户能看到什么变化:对象声明了「关闭状态」、审批又配在这个状态字段上而配不全时,作者在每个编写入口都会被直接拒绝并看到缺什么。写文件的项目在校验、构建和检查时报错;设计器、接口和 AI 在正式保存、草稿转正式、恢复和整包发布时被拒,草稿保存不拦。提交人发起审批时的拒绝照旧。
  • 为什么做:这是「审批开启时检查配置」那张卡里您 11 月 29 日选定的做法:统一校验,各入口都拒绝。作者在发布前就知道缺什么,不用等第一个提交人撞上。
  • 出错会怎样:受影响的只有给对象声明了关闭状态、又在它上面配审批的作者;判断过严时,他的保存或构建会被挡住。关闭状态这个配置项还没有对外发布,现有应用不受影响;撤回这次合并即可恢复原状。
  • 要你做什么:审阅并亲手合并这张 PR,其中有「对象声明关闭状态」那份决策记录的一条日期注记,属于受管面。契约复审通过记录是 7255705938,Head-sha f6110c77780cd4cb3de7ea977e23340010a0a942。

席位意见:建议合并。注记后半不是您的原话,是席位的提议,请随合并一并接受或划掉;其中两处和您当时看到的分析不同:插件自带的节点类型在线上发布入口也不算「会暂停」,只留给首次发起时拒绝;流程没有声明起始对象时,按它的记录型输入来判断,结论可能和首次发起时不一致。

席位核对 — ACCEPT · L1 · seat repo:objectstack#1, review thread R1 · Head-sha f6110c77780cd4cb3de7ea977e23340010a0a942 · 2026-11-29T12:20Z

Seat 1 continues seat 5's claim on #37766 (takeover claim 7255693079). The earlier ACCEPT 7254881015 read 2a8d0a7d6b whole; this record reads the one commit since (f6110c7778, 7 files, +45/−16) and re-reads the mechanical face at this head. The contract review of this head is 7255705938 (CONTRACT_REVIEW_TIER, PASS, S1 closed, no open grade), rendered in this thread's session.

  1. Shape. Draft, Part of #37766, no closing keyword bound to any card (l1-face --pr 38562: one flag, the base, which is the approvals trunk claude/o5-data-approvals-trunk and is right for a trunk slice). Clause-②: yes (widening) and Metadata-protocol: none on the body and on the three changesets; no Skills-docs: line is owed for kind none. The card keeps pm:dispatched and stays open after this PR: slices of Approvals: refuse an approval that cannot show itself on a closing field when it opens, and never write a closed value for an abandoned request (ADR-0162 item 7) #37766 remain.
  2. Premise, measured. The fix does what record 7255121575's S1 asked. I read approvalRootObjectsOf at this head against the first request's own reading (rootObject: rootRun.object ?? null): a record input beside a declared start object is no longer a root, and a flow that declares no object is judged on none. Two new tests pin both, and the earlier test of a flow whose only declaration is a record input still holds the fallback. allNodes is private again, and no file outside its module names it.
  3. Gates, as check-runs on this head. 63 success, 10 skipped, 0 failed, 0 pending; Lint & Repo Gates and TypeScript Type Check are success, as are Test Core (12 shards), Check Changeset, Governed Surface Queue Guard and Dogfood Regression Gate. All 10 skips are in the trunk's roster (check-expected-skips --pr 38562 from a checkout pinned to the trunk tip 97f9f1f236: OK). mergeable_state clean against the trunk.
  4. Prose faces, read sentence by sentence in the delta. The metadata-core changeset now lists "the helper and types they read (closedValuesOf, …)" without allNodes: true of the tree. The guide's new bullet ("a flow that declares no object … the first request judges on the record the run was started on") agrees with the rule and with the note. The lint and plugin-approvals changesets are unchanged and still true; the lint one does not mention the root-object reading and says nothing false about it.
  5. Accepted deviations, and where the rest goes. From the two contract reviews: nit B (closedValuesOf exists twice, in metadata-core and in objectql) is a follow-up, not filed by this thread, handed to the seat with this record; nit C (three copies of the en sentences) is dropped, the two catalogs are pinned equal and the third is equal by reading; nit D (no os explain entry) is dropped, entries are optional by that module's contract; nit E (two file-header comments still say "same verdict") can ride the next head that touches either file; nit F (the record-input fallback can refuse where the first request would not ask) is stated in the note and is the maintainer's to accept or strike.
  6. Landing. Tier H (check-governed-merges --pr 38562: docs/adr/** ×1, 2,399 changed lines). The seat does not flip it ready, queue it or merge it. The maintainer merges it into the trunk by hand; the ruling record reserves the ADR amendment to him. pm:awaiting-merge and the review request go out with this record.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · zhuangjianguo · session_01QsR2jSyQBDMyRnrrWKy7WS

Tier H approval request · 2026-11-29T12:21Z

This pull request carries one dated note on ADR-0162 (docs/adr/**, governed), so it lands by the maintainer's hand. The seat record is 7255748776 (its 维护者速读 first, then the ACCEPT at head f6110c77780cd4cb3de7ea977e23340010a0a942), and the contract review of the same head is 7255705938 (PASS, no open grade). The base is the approvals trunk claude/o5-data-approvals-trunk, not main. The seat does not flip it ready, queue it or merge it.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 29, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 29, 2026 12:22
@os-zhuang
os-zhuang merged commit 1b5824c into claude/o5-data-approvals-trunk Nov 29, 2026
77 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-fkdrk9 branch November 29, 2026 12:22
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 pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/xl 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.

3 participants