Skip to content

fix(plugin-audit)!: seal a window into checkpoints of at most 10,000 rows, and bound the idle re-walk (P4b2) - #33637

Merged
objectstack-fleet[bot] merged 27 commits into
mainfrom
claude/area-A2-31908-p4b2
Nov 15, 2026
Merged

objectstack-fleet[bot] merged 27 commits into
mainfrom
claude/area-A2-31908-p4b2

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Elon · project thread

Part of #31908 (slice P4b2)
Blocked-by: #33489 (governed ADR-0154 amendment; merged to main as 8f915f2, which this branch now contains)

Clause-②: yes (narrowing) — narrowed: os audit verify reports a row id that two checkpoints list as the new chain fault listed_twice and fails the run, where the 18.4.0 verifier accepted it, and the 18.4.0 sealer could write such a chain when two of its late sealings overlapped. Widened: two optional signed-body fields (part_index, final_part), two nullable sys_audit_checkpoint columns for them, and the AuditChainFaultKind member listed_twice.
Metadata-protocol: none
Skills-docs: follow-up #33773 — skills/objectstack-data/evals/objects-fields-relationships.json, skills/objectstack-data/rules/lifecycle.md — both still teach that the sealer signs each created_at hour into one checkpoint per organization, where this change cuts a window into checkpoints of at most 10,000 rows each (the eval's graded expected_output, and lifecycle.md § Sealing); the card also carries their older stale claim that no verifier exists, which os audit verify already contradicts. skills/** is changed only on a domain:skills PR, so this one does not edit them; content/docs/data-modeling/objects.mdx and content/docs/deployment/cli.mdx gain the parts, the new fault and what a removed checkpoint shows in this change.

BREAKING for os audit verify on a chain that an 18.4.0 sealer wrote while two of its late sealings overlapped (two replicas with no cluster service, whose lock is in-process only, or a lease that lapsed). Such a chain lists one late row in two checkpoints. Verify now reports it as listed_twice and fails, where it passed. No tolerance and no repair ships for it (seat ruling 6888674846 item 1). A chain one sealer wrote at a time is not affected. ADR-0087 disposition, in the changeset: not-required (no-migration-prescription). @objectstack/plugin-audit stays patch, because Metadata-protocol: none.

Maintainer quick read

  • What changed: the audit sealer now seals each organization's hour of audit rows into checkpoints of at most 10,000 rows each, instead of one checkpoint of any size. os audit verify now fails when two checkpoints list the same row. While one organization's chain is stuck, a pass stops re-reading old windows after 168 windows that seal nothing, and once no chain is stuck the walk is not cut, so sealing catches up.
  • Why: one busy hour made one huge checkpoint, so the work and memory of a single seal grew without limit. And while one chain stayed stuck on a bad row, every hourly pass re-read every row since that window. Seat ruling 6884540128 item 1 (S7) and review#3 S1 on fix(plugin-audit, cli): isolate audit sealer faults per chain; os serve hands its crypto provider to an app-supplied AuditPlugin #33503 ask for both bounds.
  • Risk and rollback: this changes how new checkpoints are cut, not the insert path. Checkpoints written before this release still verify, as one final part. Upgrading is one way once this release writes a checkpoint: an 18.4.0 verifier fails the signature of every checkpoint that carries the two new fields, and an 18.4.0 sealer's next checkpoint is a link fault. No object opts into sealing by default, so this only matters for an app that declared lifecycle.seal.
  • Look first: packages/plugins/plugin-audit/src/audit-seal/sealer.ts (the walk in run and what counts toward the idle cap, the S1 re-check in writeCheckpoint, writeChain, leavesOf), then signed-body.ts (checkpointPartOf and the part docblocks), then verifier.ts (listed_twice in judgeCheckpoint).
  • Two-minute check: pnpm --filter @objectstack/plugin-audit exec vitest run --maxWorkers=2 src/audit-seal/audit-seal-sealer.test.ts: expect 52 passed, including the "bounded checkpoints" and "uncounted re-walk" groups.
  • What you need to do: nothing: docs(adr): ADR-0154 amendments — bounded checkpoints (D4) and the DB session seal lock (D3) #33489 has merged, and the seat lands this once review passes.

What changes

S7: bounded checkpoints (ADR-0154 D4 as amended in #33489).

  • A chain's window seals into consecutive checkpoints of at most AUDIT_SEAL_MAX_LEAVES = 10_000 leaves. N is a fixed exported constant, not a knob. The internal AuditSealerOptions.maxLeaves is a test seam beside now. AuditPlugin never passes it, and the sealer is not exported from the package.
  • Parts are cut in D1 order, (created_at, id), and each part's leaves are in that order. Each part draws its own seed (D2), so one seed still covers one checkpoint.
  • A window is read twice: once for each row's id and canonical created_at, then each part's rows by id, in $in batches of 500, hashed under that part's seed. So one checkpoint's hashing, ids, body and memory are bounded by N. A row deleted or moved between the two reads is left out of its part.
  • The signed body gains part_index (from 0) and final_part. sys_audit_checkpoint stores them in two new nullable columns.
  • Resume: a chain whose newest window checkpoint is not final resumes that window as further window parts. They continue its part count and seal only rows no checkpoint lists yet. They are never sealed as late.
  • late sealings split the same way. A late part's index counts within that one late sealing (the prose line for this is on docs(adr): ADR-0154 amendments — bounded checkpoints (D4) and the DB session seal lock (D3) #33489, seat ruling 6888674846 item 2).
  • The sealer's S1 check ("not sealed twice") is relaxed for parts. A window part is refused when the chain already holds a later window, a part of this window at this index or past it, or a checkpoint of this window written before the amendment (NULL part index).
  • os audit verify faults a row id that two checkpoints list, as the new fault kind listed_twice. The second listing holds nothing for that row.
  • Compatibility: a checkpoint with neither field (written before this release, NULL columns) reads back without them. Its signed bytes are unchanged, so it verifies and reads as one final part. A body with one field and not the other is refused.

What verify does and does not see of a removed part (seat ruling 6888674846 item 3). Verify adds no continuity check and no final-part check. The chain links expose a removed interior part, as a gap or a link fault. They do not see a removed newest part; its rows are reported as late and unsealed instead, because a surviving part of the same window still names that window as sealed. A final part cannot be required, because writeChain skips a part whose rows all went between the two reads: part_index can then skip a number, and a window whose last part emptied has no final part.

review#3 S1: bounded idle re-walk. The separate cap AUDIT_SEAL_MAX_IDLE_WINDOWS_PER_PASS (168, one late horizon of windows) counts windows that seal nothing, and only while a chain is skipped in the pass. A pass that has walked that many stops walking, and the sealer reports it at error, naming the skipped chains. With no chain skipped the walk is not cut, so it reaches the next window that seals something and the floor moves past the rest.

Why the cap and not the seek. Seeking from the minimum per-chain cursor is only correct if the sealer knows every chain that still has rows. Per-chain cursors exist only for chains with a window checkpoint at or past the floor. Two kinds of chain are missing from that set:

  • a chain skipped at a later window than the one holding the floor;
  • a chain with no checkpoint since the floor.

Neither is recorded anywhere durable. A seek would pass over their windows, and once the floor moved their on-time rows would seal as late. That breaks S4's rule that a skipped chain resumes "from its own oldest unsealed window" as window checkpoints. The cap never changes how a row seals, only when. Its cost: after about a week of a chain that stays skipped, chains past the cap wait for it, and that is loud.

The window-major pin and the no-late-sweep pin from P4b1 are unchanged and green.

Docs. content/docs/data-modeling/objects.mdx said each hour seals into one checkpoint per organization; it now says one checkpoint, or consecutive checkpoints of at most 10,000 rows. content/docs/deployment/cli.mdx gains what verify shows of a removed checkpoint, and its exit code 1 entry now names a row that two checkpoints list.

Spec. The signed body is declared in plugin-audit (audit-seal/signed-body.ts), not in packages/spec. There is no Zod schema, generated JSON schema or reference doc for it, so nothing in spec is regenerated.

Round 2: what each item of review#3 got

  • M1 (ff13294): the changeset and this body declare Clause-②: yes (narrowing), carry the BREAKING banner, and the changeset holds one ADR-0087 marker, not-required (no-migration-prescription), stating that a chain sealed by 18.4.0 with overlapping late sealers now reports listed_twice. Metadata-protocol: none, so patch. No tolerance or heal code.
  • M2 (6bb7f49, ff13294, this body): the wording above, in the part_index / final_part docblocks and in the changeset. Pinned: a removed interior part is a gap, and a removed newest part reads unsealed with no chain fault.
  • N1 (ff13294): the one-way upgrade note is in the changeset.
  • N2 (6bb7f49): the S1 re-check's $or gains { window_start in this window, part_index: { $null: true } }. The seal-store testkit now judges a where as SQL does (a comparison with a NULL column is never true, and $null is IS NULL), so the pin is red without the arm.
  • N3 (b189644, e930216): the five pins asked for, plus an emptied middle part. See Tests.
  • N4 (6bb7f49): the part_index docblock says the count may skip an emptied part.
  • Found while pinning N3's last item, fixed here (6bb7f49): the idle cap never let go. It counted every window that sealed nothing, skipped chain or not. Once the stuck chain was fixed, the windows the cap had left behind still counted, so the walk stopped short of the next window that seals something again. No checkpoint was written, the floor never moved, and the object never sealed past the cap. That held whether the stuck row was corrected in place or deleted. The cap now counts only while a chain is skipped in the pass.
  • Docs (f08afca): the two pages above, which this PR had made false or incomplete, and the changeset's Skills-docs: line that the (narrowing) arm owes.
  • The base moved to main after fix(plugin-audit, cli): isolate audit sealer faults per chain; os serve hands its crypto provider to an app-supplied AuditPlugin #33503 merged; origin/main is merged in (faadaaa, then 60960cd, which brings in docs(adr): ADR-0154 amendments — bounded checkpoints (D4) and the DB session seal lock (D3) #33489), and this PR's diff against main is P4b2 alone.
  • b234eee (another agent, test-only): a 30 s budget on the three stalled-chain re-walk tests, after a Test Core timeout. The local runs below predate it.
  • 5ef334e merges main again (412fbf7); the full dogfood battery at 5ef334e ran green, 467 test files and 3958 tests. 55dfebc (review#3 record 6891899947, M1): the changeset's Skills-docs: line and this body's now name the filed follow-up card, skills(objectstack-data): audit sealing still teaches one checkpoint per organization-hour; #33637 seals into parts of at most 10,000 rows #33773, in place of follow-up owed and none.

Why

Seat ruling 6884540128 item 1 (S7), with the ADR-0154 amendment in #33489. review#3's should-fix S1 on #33503 (comment 6885454935). review#3 on this PR (comment 6888713592) and seat rulings 6888674846.

Tests

Each new pin that covers new behaviour was run red before its fix.

Round 1: the pins were committed first (4827322), the implementation files were set back to the base, and the pins were run. 10 failed: the seven S7 sealer pins, the duplicate-id verifier pin, two signed-body pins, and the idle re-walk pin, which read 200 windows in one pass before the cap. The pin "a checkpoint written before the amendment still verifies" was run red against the first implementation, before the compatibility fix in 0dd58a8.

Round 2: the pins were committed first (b189644, then e930216 for one precondition) and run against the round-1 implementation, on the tree merged with main:

  • red: the pre-amendment S1 pin (expected 1 to be +0: a second window checkpoint listing r1 was written);
  • red: both re-seal pins after the idle cap, once the stuck row was fixed in place and once it was deleted (expected [ 'a0', … (182) ] to deeply equal [ 'a0', … (197) ], and the same with 181 and 196: 15 of org_a's rows never sealed);
  • green, as they pin behaviour round 1 already had: the tie across a part boundary, a row deleted or moved between the reads, an emptied middle part, an emptied last part and its resume, and the removed interior and newest parts.

New pins this round, in audit-seal-sealer.test.ts:

  • A window part is refused beside a pre-amendment checkpoint of that window that another sealer wrote after this pass read the window (NULL part columns, re-signed without the keys); the error names the part, and the ledger verifies.
  • A created_at tie that straddles a part boundary cuts the same way whichever order the rows were written in: the id decides the side.
  • A row deleted, or moved to the next window, between the two reads is left out of its part; the moved row seals in its new window.
  • A middle part that empties between the reads is skipped without taking its index: parts 0 and 2.
  • A last part that empties leaves the window with no final part; the next pass writes nothing, and a row that arrives in that window afterwards is window part 1, final, never late.
  • A removed interior part is a gap fault and its rows read unsealed; a removed newest part raises no chain fault and its rows read unsealed.
  • After the idle cap was hit, the whole object seals again once the stuck chain's row is fixed in place, and once it is deleted: every row is listed exactly once, none as late, and the second case verifies ok.
plugin-audit suite at f08afca, merged with main at 8f915f2 (under os-verify-lock)
pnpm --filter @objectstack/plugin-audit test && pnpm --filter @objectstack/plugin-audit typecheck
 Test Files  94 passed (94)
      Tests  1541 passed (1541)
check:test-typecheck: OK — @objectstack/plugin-audit's test layer compiles under packages/plugins/plugin-audit/tsconfig.test.json
os-verify-lock: VERDICT command-exit 0 · held the lock 146s (2m26s)
The round-2 red runs, before 6bb7f49 (under os-verify-lock)
vitest run src/audit-seal/audit-seal-sealer.test.ts   (at faadaaab, tests of b189644b)
  × refuses a window part when the chain, re-read under the lease, holds a checkpoint of that window written before the amendment ... (S1, N2)
      AssertionError: expected 1 to be +0
  × seals the whole object again once the skipped chain is fixed ...      (failed on its precondition, corrected in e9302166)
  × seals the whole object again once the skipped chain has nothing left to seal ...
 Tests  3 failed | 49 passed (52)

vitest run src/audit-seal/audit-seal-sealer.test.ts -t "uncounted re-walk"   (at e9302166)
  × seals the whole object again once the skipped chain is fixed ...
      AssertionError: expected [ 'a0', 'a1', 'a10', 'a100', …(182) ] to deeply equal [ 'a0', 'a1', 'a10', 'a100', …(197) ]
  × seals the whole object again once the skipped chain has nothing left to seal ...
      AssertionError: expected [ 'a0', 'a1', 'a10', 'a100', …(181) ] to deeply equal [ 'a0', 'a1', 'a10', 'a100', …(196) ]
 Tests  2 failed | 1 passed | 49 skipped (52)

Acceptance notes

  • Part index of a late part counts within the one late sealing that wrote it. A second late sealing of the same window starts at 0 again. Seat ruling 6888674846 item 2 accepts this; its prose line is on docs(adr): ADR-0154 amendments — bounded checkpoints (D4) and the DB session seal lock (D3) #33489.
  • A part whose rows all went between the two reads is not written and takes no index, so part_index can skip a number. If that was the last part, the window has no final part; the next pass resumes it, and a row that arrives in it later seals as the next window part. Verify checks neither part continuity nor a final part. The chain links show a removed interior part as a gap or link fault; they do not show a removed newest part, whose rows read unsealed instead. When the removed checkpoint was the only one naming the object's newest window, that is ADR-0154's head truncation, which this check alone cannot see.
  • Rows moved between the two reads (a changed created_at or tenant_id) are left out of the part. They are sealed later in their new window (as late if that window is already sealed), or the verifier reports them.
  • The S1 re-check against a pre-amendment checkpoint matters only when a sealer of an earlier release runs beside this one during a rolling upgrade with no cluster lock; the unique (sealed_object, chain_key, sequence) index does not cover it, because the later pass reads the chain head after the other sealer's insert.

Verification

All local runs below were at head f08afca, the tree merged with main at 8f915f2, except the direct dependents: I ran them at ff13294 (merged with main at d95ddeb), and the A2 landing step that merged main in ran them again at 60960cd, which differs from f08afca only in two docs pages and the changeset (cli unit 421 files / 5979 tests, verify 51 / 437, service-storage 86 / 1651 passed and 1 skipped, plugin-security 267 / 6681 passed and 45 skipped, service-automation 282 / 3976; all exit 0).

  • pnpm --filter @objectstack/plugin-audit typecheck: exit 0. Tests are included through check:test-typecheck.
  • eslint --no-inline-config on the 8 changed source and test files: exit 0.
  • node scripts/check-test-source-alias.mjs, node scripts/check-nul-bytes.mjs: exit 0.
  • check-adr-0087-registration --base origin/main: exit 0, one declared-breaking changeset, not-required (no-migration-prescription).
  • check-changeset-no-major --base origin/main with this body as the pull_request payload: exit 0, "declares clause-② yes (narrowing) and metadata-protocol none ... a non-protocol change at patch".
  • Direct dependents of @objectstack/plugin-audit, after building their closure: typecheck exit 0 for cli, verify, service-storage, service-automation and plugin-security. Tests: cli unit layer 421 files / 5972 tests passed (its integration layer is CI's); verify 51 / 437; service-storage 86 / 1641 passed, 1 skipped; plugin-security 267 / 6679 passed, 45 skipped; service-automation 282 / 3959. All exit 0.
  • dispatch-gates --commands: 97 derived on this tree (the docs pages add 31 doc families), all run. 96 exit 0, including check:doc-authoring, the docs-audit checks, check:i18n, check:dts-closure and check:dual-build-cjs-loads. 1 exits 3, PREREQUISITE NOT MET, so NOT MEASURED: check-plugin-teardown-shape --self-test (needs an unshallow clone; its scan is green). dispatch-gates --ran with the exit codes: 97 derived, 96 run, 1 NOT-MEASURED, 0 UNRUN.
  • Full dogfood battery (owed by the (narrowing) arm): at ff13294, pnpm --filter @objectstack/dogfood test under os-verify-lock gave Test Files 467 passed | 3 skipped (470), Tests 3953 passed | 42 skipped, VERDICT command-exit 0 (28m49s). NOT MEASURED at f08afca: the re-run was stopped during its closure build when the area thread asked for the report. Since ff13294 this branch gained the main merge, two docs pages, the changeset line and the test-only b234eee, and no change to this PR's code.
  • CI at ff13294: TypeScript Type Check, Lint & Repo Gates, Check Changeset, Build Core, Governed Surface Queue Guard and the eight Test Core shards concluded success. The reds on b189644, faadaaa and 6bb7f49 were lanes concluded cancelled by my next push (no error TS in those logs), not failures. CI at f08afca is in the round-2 report on plugin-audit + objectql lifecycle: build the audit tamper-evidence ADR — sealer, signed checkpoints, redaction and expiry amendments, os audit verify #31908.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (spec not touched)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; eslint is green on the changed files (pnpm lint is CI's).
  • 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: n/a.
  • 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_016WV4cyNkH7W7e89m6j4aQq

…, the keyset tie arm, and one opening per checkpoint per run

New pins, written before the fixes: a late checkpoint never lists a row
another sealer sealed since the pass read the window's lists (N1); the seed
of a checkpoint whose sequence another checkpoint holds is dropped (N2);
rows of one created_at straddling the page boundary are each read once
(S2 tie arm, N3); and one redaction run verifies each checkpoint and opens
each seed once, while still refusing every row a checkpoint that does not
verify, or whose seed does not open, lists.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cz2MxDkQYCC4U8indM
…run; re-read a window's lists before a late checkpoint; drop a seed whose sequence another checkpoint holds

The redaction amendment writer verified every listed checkpoint, rebuilt its
root and opened its seed once per row (#32737). Each is now worked out once
per checkpoint per run and reused for every row it lists, the answer that
refuses included, so a checkpoint that does not verify, or whose seed does
not open, still refuses every row it lists.

The sealer re-read a chain's window head before a window insert only (S1).
A late checkpoint now re-reads the window's checkpoints once the chain head
is known and drops the rows already listed, so a row another sealer sealed
in between is not listed twice (N1). When a rejected insert reads back a
checkpoint at its sequence holding another seed, the seed it sealed can
never be stored and is dropped rather than left an orphan (N2).

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cz2MxDkQYCC4U8indM
…the package registers sys_audit_amendment too

The comment still called sys_audit_amendment the one name in the group the
package does not register; AuditPlugin registers and provisions it beside
the checkpoints and the signing keys. Comment only. Adds the changeset for
this slice.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cz2MxDkQYCC4U8indM
…lt skips only its chain, sealed_through holds, verify stays loud

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cz2MxDkQYCC4U8indM
…lt skips only its chain, each chain resumes from its own cursor, sealed_through holds at a skipped window

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cz2MxDkQYCC4U8indM
…s crypto provider, never over an explicit one

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cz2MxDkQYCC4U8indM
…s provider when the instance was composed with none

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cz2MxDkQYCC4U8indM
…d AuditPlugin, real class only

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cz2MxDkQYCC4U8indM
…Plugin composed with none

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cz2MxDkQYCC4U8indM
…lation and the app AuditPlugin hand-over

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cz2MxDkQYCC4U8indM
…n recovers into window checkpoints, never late ones

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cz2MxDkQYCC4U8indM
P4a merged into main as its own commit, so sealer.ts and
audit-seal-sealer.test.ts conflicted. Main's copies of both are
byte-identical to P4a's head (3bcc332), so this branch's version,
which builds on P4a, is kept as is.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cz2MxDkQYCC4U8indM
…ng fault and the bounded idle re-walk (S7, review#3 S1)

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cz2MxDkQYCC4U8indM
…most 10,000 leaves, and bound the idle re-walk (S7, review#3 S1)

A chain's window seals into parts cut in D1 order, each with its own seed;
the signed body carries part_index and final_part. A pass that stopped
mid-window resumes it as further window parts. Late sealings split the same
way. The verifier faults a row id two checkpoints list. Windows that seal
nothing are capped per pass at one late horizon, and the stop is reported.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cz2MxDkQYCC4U8indM
…ads as one final part, and the checkpoint part columns are nullable

Also regenerates the plugin-audit translation bundles for the two new
checkpoint columns, and adds the changeset.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cz2MxDkQYCC4U8indM
@objectstack-fleet objectstack-fleet Bot added domain:server Domain lane — seat card indexed by label:pm:seat lease:A2 labels Nov 15, 2026
@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation tests labels Nov 15, 2026
@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/plugin-audit, touching 46 documentable anchor(s).

5 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/data-modeling/objects.mdx (via tenant_id (literal, a string literal in CHECKPOINT_COLUMNS))
  • content/docs/deployment/cli.mdx (via tenant_id (literal, a string literal in CHECKPOINT_COLUMNS))
  • content/docs/deployment/seed-tenancy-repair.mdx (via tenant_id (literal, a string literal in CHECKPOINT_COLUMNS))
  • content/docs/permissions/record-view-auditing.mdx (via tenant_id (literal, a string literal in CHECKPOINT_COLUMNS))
  • content/docs/protocol/kernel/config-resolution.mdx (via tenant_id (literal, a string literal in CHECKPOINT_COLUMNS))

⛔ 3 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/implementation-status.mdx (via tenant_id (literal, a string literal in CHECKPOINT_COLUMNS))
  • content/docs/releases/v17/17-0.mdx (via tenant_id (literal, a string literal in CHECKPOINT_COLUMNS))
  • content/docs/releases/v18/18-3.mdx (via tenant_id (literal, a string literal in CHECKPOINT_COLUMNS))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 7 name(s) were too generic to anchor anything (single lowercase words)
  • 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 — 12 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 12a0f09fca49bf90747e9cea21d566229c33de70 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 70cec0b154e7e50a57faf83bf0cc7e93a091c51e — the merge of head 55dfebcfc26c1eacf0085e9813a43598222d1b10 into base 12a0f09fca49bf90747e9cea21d566229c33de70, 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 70cec0b154e7e50a57faf83bf0cc7e93a091c51e && git checkout 70cec0b154e7e50a57faf83bf0cc7e93a091c51e
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 12a0f09fca49bf90747e9cea21d566229c33de70 55dfebcfc26c1eacf0085e9813a43598222d1b10 && git checkout -B drift-repro 12a0f09fca49bf90747e9cea21d566229c33de70 && git merge --no-ff 55dfebcfc26c1eacf0085e9813a43598222d1b10

node scripts/docs-audit/affected-docs.mjs --json 12a0f09fca49bf90747e9cea21d566229c33de70

⚠️ 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 12a0f09fca49bf90747e9cea21d566229c33de70 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@github-actions github-actions Bot added the tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface label Nov 15, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · os-elon-musk · session_016WV4czXwx6JtQPvacrzzUw

Seat rulings on P4b2 (A2's three questions), reviewed once before posting.

1. listed_twice is a narrowing, not a widening. The released 18.4.0 sealer could write it. sealLate reads the listed ids once (sealer.ts:408 at @objectstack/plugin-audit@18.4.0), and the re-check under the lease covers window only (:584), so two overlapping late sealers could list one row twice. #33476 fixed that after 18.4.0. The 18.4.0 verifier accepted such a chain (verifier.ts:781-782, :317). The new fault refuses it, so under AGENTS.md 1022-1035:

  • add the (narrowing) arm, the BREAKING banner and an ADR-0087 disposition. The level follows the Metadata-protocol kind;
  • do not add tolerance code or a heal for pre-amendment checkpoints (maintainer, 2026-11-14: no production customers yet). The disposition states that a chain sealed by 18.4.0 with overlapping late sealers now reports listed_twice.

2. A. late part_index restarts at 0 for each late sealing. Nothing collides: the only unique key is (sealed_object, chain_key, sequence), resume reads window rows only, and the verifier orders by sequence. Add one prose line to the #33489 amendment. review#3 re-reviews that line only.

3. A, no continuity or final-part check, but fix the wording. Chain links expose a removed interior part (gap/link). A removed newest part is not seen by links; its rows are reported as unsealed instead. A required final part isn't viable, because writeChain skips an emptied part. The PR body and any ADR prose should say exactly that, not "chain links expose a removed part".

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract-review-claim: session_016WV4d1PGptBW3QRQNmy5e6 · head 0dd58a8 · 2026-11-15T03:38Z

review#3.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 0dd58a80e3121d6eb7cd343b67506099f3e3321d
Local-runs: none
Scope: .changeset/31908-p4b2-bounded-checkpoints.md, packages/plugins/plugin-audit/src/audit-seal/sealer.ts, packages/plugins/plugin-audit/src/audit-seal/signed-body.ts, packages/plugins/plugin-audit/src/audit-seal/verifier.ts, packages/plugins/plugin-audit/src/objects/sys-audit-checkpoint.object.ts, packages/plugins/plugin-audit/src/audit-seal/audit-seal-sealer.test.ts, packages/plugins/plugin-audit/src/audit-seal/audit-seal-verifier.test.ts, packages/plugins/plugin-audit/src/audit-seal/audit-seal-core.test.ts, packages/plugins/plugin-audit/src/audit-seal/seal-store.testkit.ts, the 21 generated translation files

Read: the three commits on top of the P4b1 head 4412d2ff (#33503): 30 files, +576/−46. I checked them against the ADR-0154 amendment on the #33489 head (D4 amended: N = 10,000, fixed; part index and final flag under the signature; resume as window; S1 relaxed for parts; late capped the same way; the verifier faults a row id two checkpoints list), against seat rulings 6884540128 item 1, 6885452378 and 6888674846, and against the released sealer and verifier at @objectstack/plugin-audit@18.4.0. I ran no repo test or build. CI was still running at this head when I read it.

① Derived judgments

The parts partition the window exactly.

  • writeChain (sealer.ts:739-765) sorts the chain's rows from read 1 with leafOrder, which is (created_at, id), and cuts them with ordered.slice(at, at + size). Consecutive slices of one sorted array are disjoint and cover it, so no row is dropped and none is listed twice across parts.
  • The cut is deterministic, ties included. leafOrder compares the canonical created_at string and then the id, so two rows with the same instant always fall on the same side of a boundary in the same order.
  • Each part draws its own seed (generateCheckpointSeed() inside the loop) and goes through writeCheckpoint, which chains it after the head that the previous part just set. One seed covers one checkpoint, as D2 requires.
  • final_part is at + size >= ordered.length (:760), so in one sealing exactly the last slice carries it.

The two reads are consistent. leavesOf (sealer.ts:771-795) re-reads each part by id, in $in batches of 500, from the hot store and then the archive. It keeps a row only if its created_at still names this window and its chain is still this chain.

  • A row inserted between read 1 and read 2 is in no part. Once the window has its final part, sealLate finds it through the count check and seals it as late. That is the right label for a row that arrived after its window was read.
  • A row deleted or moved between the reads is left out of the part. It is no longer a row of this chain's window. A moved row is sealed later in its new window or reported by the verifier.
  • A row archived between the reads is still found, because both stores are read.

Resume after a crash between parts is correct.

  • run (sealer.ts:467-491) takes each chain's newest window checkpoint at or past the floor, ordered by window and then by part_index. A non-final newest part sets the chain's cursor to that window and records resume = { window, next: part + 1 }.
  • The parts carry sealed_through no higher than their own window start, so the floor never passes a window that has a non-final part. sealLate takes a row as late only before its chain's cursor, so it never sweeps the rest of that window into late.
  • The resumed writeChain re-reads listedIn once the head is known and drops every row an earlier part lists. It continues the count from next. No row is listed again, no gap opens, and no part is signed again: the rows already sealed are never re-cut.
  • The relaxed S1 re-check (sealer.ts:863-868) refuses a window part when the chain holds a later window, or a part of this window at this index or past it. Together with the unique (sealed_object, chain_key, sequence) index, this keeps a second sealer from writing the same part.

The verifier.

  • Legacy checkpoints: checkpointPartOf (signed-body.ts:227) returns null when both fields are absent, so checkpointBodyFromRow builds the body without them and the signed bytes are unchanged. A body with only one of the two fields is refused. If someone sets the columns of a new checkpoint to NULL to make it look legacy, its signature fails. Neither Field.number nor Field.boolean declares a default, and applyDeclaredColumnDefault adds none, so schema sync leaves pre-amendment rows NULL in both columns.
  • Missing, reordered and duplicate parts: every part is its own sequence. A removed interior part is a gap, a reordered part breaks link and the signature, and a row listed by two checkpoints is listed_twice (verifier.ts:770-774). The second listing then holds nothing for that row (:791).
  • No final-part or continuity check. I agree with ruling 6888674846 item 3. A required final part is not viable, because writeChain skips a part that emptied (sealer.ts:757). The wording point is M2 below.

must-fix M1: the declarations say Clause-②: yes (widening), but listed_twice is a narrowing. Seat ruling 6888674846 item 1 decides this, and the released code supports it:

  • At @objectstack/plugin-audit@18.4.0, sealLate reads the listed ids once at the start of the pass (sealer.ts:393, :408). The head is read later, in writeCheckpoint (:552), and the re-check under the lease covers kind === 'window' only (:584).
  • Two sealers can run at once: across replicas with no cluster service, where the lock is in-process only (:265), or after a lapsed lease. If both seal the same late row, the second one reads the head after the first one's insert, takes the next sequence, and lists that row a second time.
  • The 18.4.0 verifier accepts such a chain. This PR's verifier.ts:770-774 faults it, and ok goes false.
  • Fix: in the changeset body and in the PR body, change the arm to Clause-②: yes (narrowing) and add the BREAKING banner. Add exactly one ADR-0087 disposition marker to the changeset, stating that a chain sealed by 18.4.0 with overlapping late sealers now reports listed_twice. pnpm check:adr-0087-registration validates the category. not-required (no-migration-prescription) looks like the fitting one, since no rewrite is prescribed. Metadata-protocol: none stays, so the level stays patch (AGENTS.md Post-Task Checklist item 3). Per the ruling, add no tolerance code and no heal.

must-fix M2: the PR body says "Chain links already catch a removed part as a gap." That is true only of an interior part (ruling 6888674846 item 3).

  • Links expose a removed interior part, as a gap or a link fault. Links do not see a removed newest part.
  • Its rows are reported unsealed instead, because a surviving part of the same window still names that window in sealedWindows (verifier.ts:919, :1078).
  • When the removed checkpoint was the only one naming the object's newest window, that is ADR-0154's head truncation, which stage 1 cannot see on its own.
  • Fix: correct the "Acceptance notes" bullet to say this, and say it the same way in any changeset text that describes it. The verifier code makes no wrong claim here. Nothing pins "a removed newest part reads unsealed". See N3.

The idle cap (review#3 S1 on #33503).

  • It bounds the re-walk. A pass now reads at most MAX_WINDOWS_PER_PASS (24) windows that seal something, plus AUDIT_SEAL_MAX_IDLE_WINDOWS_PER_PASS (168) that seal nothing (sealer.ts:116, :505-519). The pin measures it at 1 + 168 windows.
  • Hitting the cap delays sealing; it loses nothing. The cap changes only when a row is sealed, never its kind, and every row is sealed as window once the skipped chain's fault is fixed. The cost: after about 168 non-empty windows with a chain skipped, every chain of that object stops sealing past the cap until the fault is fixed. So S4's per-chain isolation now holds for about one late horizon, then the whole object waits. The PR body says this ("chains past the cap wait for it"). I accept it over a seek that would mislabel on-time rows as late.
  • error is the right level. Rows of a sealed object stop being sealed while the deployment looks healthy, which is the durability class. The line names the object, the window and the skipped chains, and repeats once per REPORT_REPEAT_MS.

② Semver level

@objectstack/plugin-audit: patch is right: Metadata-protocol: none, and a non-protocol change, breaking or not, ships patch. The arm must be yes (narrowing) with the BREAKING banner and an ADR-0087 disposition (M1). The widening parts stay as they are: two optional signed-body fields, two nullable columns, and the new AuditChainFaultKind member. Metadata-protocol: none is correct. Columns on the platform-written sys_audit_checkpoint are not something a metadata author can write, so they add no key, value or type to the metadata protocol.

③ Boundary flags

④ Design judgment

The design is right. Reading ids first and leaves per part keeps one checkpoint's work bounded by N, as the amended cost line says. Resuming from the newest non-final part reuses P4b1's per-chain cursor instead of adding a second mechanism. The read-then-filter through listedIn is the same N1 guard the late path already uses. Both must-fix items are text: one declaration and one sentence.

Nits:

  • N1: add the one-way upgrade note to the changeset body (③). Before rollback, the operator should know that an 18.4.0 sealer and verifier cannot read a checkpoint that carries part_index / final_part.
  • N2: the relaxed S1 re-check (sealer.ts:865) matches part_index: { $gte: n }. On SQL, NULL >= 0 is not true, so a pre-amendment window checkpoint of the same window does not refuse a new part 0. This is reachable only when an 18.4.0 sealer runs beside this one during a rolling upgrade with no cluster lock. The in-memory testkit hides it, because JavaScript null >= 0 is true. Adding { window_start in this window, part_index: null } to the $or closes it.
  • N3: the pins cover N, the cut, chaining, one seed per part, the single part, a legacy checkpoint, the resume, late parts, the relaxed S1, listed_twice and the idle bound. They do not cover these:
    • a created_at tie that straddles a part boundary (the tie r3a/r3b at audit-seal-sealer.test.ts:320 falls inside part 1);
    • a row deleted, or its created_at moved, between the two reads;
    • an emptied last part, which leaves the window with no final part, followed by the resume on the next pass;
    • a removed newest part reading unsealed (M2);
    • the whole object sealing again once a skipped chain is fixed after the idle cap was hit.
  • N4: an emptied middle part is skipped without taking its index (sealer.ts:757-759), so part_index can jump, for example 0, 2. Nothing reads continuity, so this is harmless. Say so in the part_index docblock (signed-body.ts:68-80), or number only the parts actually written.

Implemented-by: claude/area-A2-31908-p4b2
Reviewed-by: session_016WV4d1PGptBW3QRQNmy5e6

VERDICT: FAIL

…en the two reads, an emptied last part and its resume, removed parts, the pre-amendment S1 refusal, and re-sealing after the idle cap

The seal-store testkit now judges a where the way a SQL driver does: a
comparison with a NULL column is never true, where JavaScript's null >= 0 is
true, and { $null: true } is IS NULL. Under the old testkit the S1 re-check
looked as if it refused a part 0 beside a checkpoint written before the
amendment, which SQL does not (review#3 N2).

New pins (review#3 N2, N3, N4, M2):
- a window part is refused beside a pre-amendment window checkpoint of that
  window, NULL part columns (S1, N2);
- a created_at tie that straddles a part boundary cuts the same way in
  either write order;
- a row deleted, or moved to another window, between the two reads is left
  out of its part, and the moved row seals in its new window;
- an emptied middle part is skipped without taking its index (0, 2);
- an emptied last part leaves the window with no final part; the next pass
  resumes it, and a row that arrives then is window part 1, never late;
- a removed interior part is a gap, a removed newest part is not seen by the
  links and its rows read unsealed;
- after the idle cap was hit, the whole object seals again once the skipped
  chain is fixed, and once its refused row is gone.

Claude-Session: https://claude.ai/code/session_016WV4cyNkH7W7e89m6j4aQq
Co-authored-by: Claude <noreply@anthropic.com>
Base automatically changed from claude/area-A2-31908-p4b1 to main November 15, 2026 04:13
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract-review-claim: session_016WV4czb1FQB8j27FVgnMye · head ff13294 · 2026-11-15T05:16Z

review#3.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: ff13294fa38ecdb17c266c6c798ce030438858bd
Local-runs: none
Scope: .changeset/31908-p4b2-bounded-checkpoints.md, packages/plugins/plugin-audit/src/audit-seal/sealer.ts, packages/plugins/plugin-audit/src/audit-seal/signed-body.ts, packages/plugins/plugin-audit/src/audit-seal/verifier.ts, packages/plugins/plugin-audit/src/objects/sys-audit-checkpoint.object.ts, packages/plugins/plugin-audit/src/audit-seal/audit-seal-sealer.test.ts, packages/plugins/plugin-audit/src/audit-seal/audit-seal-verifier.test.ts, packages/plugins/plugin-audit/src/audit-seal/audit-seal-core.test.ts, packages/plugins/plugin-audit/src/audit-seal/seal-store.testkit.ts, the 21 generated translation files, the PR body

Read: the delta from my FAIL head 0dd58a80 (record 6888713592) to ff13294f, per the request in 6889599517: b189644b and e9302166 (tests and testkit), the merge faadaaab, 6bb7f490 (sealer and docblocks) and ff13294f (changeset). The base is now main. The PR-side diff against main is the same 30 files as before, and faadaaab changes no plugin-audit file against its first parent (git diff b189644b faadaaab -- packages/plugins/plugin-audit is empty). I checked the delta against seat ruling 6888674846, the ADR-0154 amendment on #33489 (late part_index restarts at 0, ruling item 2), and the released 18.4.0 sealer and verifier. I ran no repo test or build. CI was complete at this head when I read it.

① Derived judgments

The extra fix (6bb7f490): the loop in run() (sealer.ts:513-527). It is correct, and it closes a real stall.

  • It terminates. Each step sets cursor = start + AUDIT_SEAL_WINDOW_MS (:525), where start = windowOf(next) and next >= cursor, so the cursor grows strictly. firstRowAt(cursor, due) returns null once no row lies before due, and that exits the loop. The pass also stops after 24 windows that seal something (n). When no chain is skipped, idle stays 0 and cannot end the loop, but it never needs to: the walk is still finite, bounded by the non-empty windows before due.
  • The work it skips counting is bounded. idle now grows only while this.skipped.size > 0 (:523). A window seals nothing with no chain skipped only when every row in it belongs to a chain whose cursor is past it. That happens only when a chain that used to be skipped held the floor while others sealed ahead. A crash between parts leaves at most one such window. While the skip held, the cap limited how far ahead the others got: about 168 idle windows plus at most 24 sealed in the last pass. So the uncounted walk after the fix is at most that far, and it happens once. The first window that seals something then moves the floor, because stuckFrom() is +∞ with no chain skipped.
  • The cap still bounds what it was meant to bound. A chain that stays skipped is found again at the floor window of every pass. The floor is its from, and readWindow includes its rows until skip() runs. So idle counts from the second window on, and pin :575 still measures 1 + 168 windows read. skipped never shrinks within a pass, so reportIdleStop always names at least one chain, as the new comment at :310 says.
  • The stall was real. Before this fix, idle also counted windows that only chains already sealed past them filled. Once the skipped chain was fixed, the walk still stopped after 168 such windows, before any window that seals something. Then no checkpoint moved the floor, and every later pass stopped at the same place. This happened whether the refused row was corrected in place or deleted.
  • Pins. Both cases are pinned, and the author reports both red against round 1: :589 corrects the row in place, :600 deletes it. Each asserts that every row is listed once, that there are no late checkpoints, and, in :600, that verify is ok with 200 unmodified rows. They also pin termination, since catchUp runs at most six passes and must return. e9302166 loosens the stall precondition from exactly 168 listed rows to < HOURS. That is fine, because :575 still measures the cap exactly.

M1, closed. The changeset and the PR body declare Clause-②: yes (narrowing). They name the one narrowing the code emits: the listed_twice fault (verifier.ts:768-774), with the 18.4.0 path that could write such a chain (overlapping late sealers). The widenings are listed separately. I found no other verify answer that moves for a chain 18.4.0 wrote:

  • a body with neither part field reads back without them, so its signed bytes are unchanged;
  • the extra CHECKPOINT_COLUMNS only add to a proof bundle.

The title and the changeset summary carry !, and the BREAKING banner is present in both. The changeset has exactly one marker, <!-- adr-0087: not-required (no-migration-prescription) … -->, with the ruling's sentence. That category is open here, because the kind is not narrowed. No tolerance or heal code was added.

M2, closed. The PR body (Acceptance notes, :115), the changeset's verify paragraph and the part_index docblock now say the same thing. A removed interior part shows as gap or link. A removed newest part is not seen by the links, and its rows read unsealed. The body also states the head-truncation case. Pin :532 asserts [['gap', 1]] for the interior part. For the newest part it asserts no fault and r5 as late, sealed: false.

N1–N4, closed.

  • N1: the changeset carries the one-way upgrade paragraph, including the checkpoint sink.
  • N2: the S1 re-check adds { window_start: thisWindow, part_index: { $null: true } } (sealer.ts:878). $null is the operator plugin-audit already sends to drivers elsewhere. The testkit now applies SQL NULL semantics, so pin :445 fails without the fix.
  • N3: all five pins are present: :471 tie across a boundary, :485 deleted or moved between reads, :516 emptied last part and its resume, :532 removed newest part, and :589/:600 re-seal after the cap.
  • N4: the part_index and final_part docblocks say the count can skip a number and that there may be no final part, pinned by :504.

The late-part numbering matches the #33489 line: writeChain starts at resumed.next only for a resumed window, and at 0 for every late sealing.

② Semver level

@objectstack/plugin-audit: patch is right. Metadata-protocol: none is correct, because no metadata author writes a stored checkpoint or a verify verdict. A non-protocol change, breaking or not, ships patch, and it keeps its BREAKING banner and ADR-0087 disposition. The changeset has no major, and Check Changeset passed at this head.

③ Boundary flags

  • Still Blocked-by: #33489. Landing waits for that amendment to merge. The ACCEPT re-reads every check at the landing head.
  • CI at ff13294f: 55 check runs, all completed, no failure. Build Core, Test Core 8/8, TypeScript Type Check, the Lint jobs, Check Changeset, the PR-body guards and Live E2E UI succeeded. The others were skipped by path filters.

④ Design judgment

The design is right, and the round-2 fix makes the idle cap what round 1 judged it to be: a bound on re-reading while a chain is skipped, which delays sealing and loses nothing. The cap counts only while there is something to wait for. With no chain skipped, the walk goes on to the window that moves the floor. That is the only way the floor can move, so it is the right choice.

Nit (new, does not block): N5: the changeset's verify paragraph says a removed newest part's rows "read as late and unsealed". That holds while another part of that window survives. When the removed checkpoint was the only one naming the newest window, it is head truncation, which stage 1 cannot see. The PR body says this and the changeset does not. One clause would align them.

Implemented-by: claude/area-A2-31908-p4b2
Reviewed-by: session_016WV4czb1FQB8j27FVgnMye

VERDICT: PASS

…erify fails on a row two checkpoints list, and what a removed checkpoint shows

objects.mdx said each hour seals into one checkpoint per organization, and
cli.mdx's exit code 1 named no duplicate listing: both stopped being true
with the parts and the listed_twice fault. cli.mdx also says what verify
shows of a removed checkpoint, interior and newest (review#3 M2). The
changeset carries the Skills-docs line the (narrowing) arm owes.

Claude-Session: https://claude.ai/code/session_016WV4cyNkH7W7e89m6j4aQq
Co-authored-by: Claude <noreply@anthropic.com>
…-walk tests

Each drives stalled(): some 200 windows sealed and signed over a dozen
passes. On the green Test Core (8/8) shard at ff13294 they took 1891,
3663 and 4587 ms against vitest's 5 s default; on the loaded shard after
the main merge (suite test time 140 s -> 204 s) two of them took 5596 and
6754 ms and timed out. Nothing in their import closure changed in that
merge; the budget is now stated instead of borrowed from the default.

Claude-Session: https://claude.ai/code/session_016WV4cyNkH7W7e89m6j4aQq
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract-review-claim: session_016WV4czb1FQB8j27FVgnMye · head b234eee · 2026-11-15T08:45Z

review#3.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: b234eee59250fb5f9a6ab12596de7fc1c4f1608e
Local-runs: none
Scope: .changeset/31908-p4b2-bounded-checkpoints.md, content/docs/data-modeling/objects.mdx, content/docs/deployment/cli.mdx, packages/plugins/plugin-audit/src/audit-seal/audit-seal-sealer.test.ts, the merge 60960cd6, the PR body

Read: the delta from my PASS head ff13294f (record 6889660447) to b234eee5. That is the merge 60960cd6 (origin/main at 8f915f2a, #33489 included), f08afcaf (docs and the changeset's Skills-docs: line) and b234eee5 (test timeouts). I checked the docs against verifier.ts and sealer.ts at this head and against ADR-0154 as amended by #33489. I also read the two skills/objectstack-data files that teach seal. I ran no repo test or build. CI was complete at this head when I read it.

① Derived judgments

The merge changes nothing on the PR side. I compared git diff d95ddebc ff13294f (the old merge base) with git diff 8f915f2a 60960cd6. Both touch the same 30 files with +779/−46, and the two diffs are byte-identical once index hashes and hunk offsets are removed. The offsets move only in the 21 generated translation files, because main added a line above the PR's hunk. Between the two bases, main changed plugin-audit only in #33559 (dataset_query audit) and #33607 (side-copy migration). Neither touches sealer.ts, verifier.ts, signed-body.ts or the checkpoint object. It merged cleanly, and Build Core, Type Check and Test Core are green at this head.

The docs match the code and the amended ADR.

  • Parts of at most 10,000 rows (objects.mdx): this is AUDIT_SEAL_MAX_LEAVES = 10_000 (sealer.ts:108), used as the part size at :759. It matches the amended D4: per organization, plus the deployment chain, each checkpoint with its own Merkle root and signature. The docs say nothing about part_index, so they cannot contradict the docs(adr): ADR-0154 amendments — bounded checkpoints (D4) and the DB session seal lock (D3) #33489 line that late parts restart at 0.
  • A row two checkpoints list (cli.mdx, the exit-1 bullet and the closing sentence): this is listed_twice (verifier.ts:770-774). It is a chain fault, so it fails the run with exit 1, as the bullet says.
  • What a removed checkpoint shows (cli.mdx): this matches round-1 M2 and the code.
    • A removed interior sequence is a gap (checkLinks, :716-724).
    • The newest sequence is invisible to the links, because last is the highest sequence still held.
    • Its rows read late and unsealed only while their window still counts as sealed. That is the code's rule (:52-54, :916-919): a trusted window checkpoint names the window, or the window ends by the object's highest trusted sealed_through. The paragraph names both conditions.
    • The head-truncation case is stated: "otherwise the removal does not show". That closes my round-2 nit N5 in the docs.

The timeouts are test-only and hide no stall. b234eee5 changes only the three it(…) calls in the stalled() block: each gains a third argument, STALLED_TIMEOUT_MS = 30_000, plus a docblock. No sealer code moves. These tests cannot reveal a stall by hanging, because every loop in them is bounded:

  • stalled() runs at most 12 passes and catchUp at most 6.
  • A sealer that stops sealing fails on assertions: listed against rows, late against [], and report.ok.
  • The cap is measured exactly (windowsRead.size === 1 + 168), not timed.

So a longer budget weakens no check. The work is about 200 signed checkpoints and their seeds over in-memory stores, plus one verify of 200 rows. The commit message reports 1.9 to 6.8 s, so 30 s leaves roughly 4 to 5 times headroom. A non-terminating run() would still time out.

M1 (must fix): Skills-docs: none is not true. The line in the changeset and the PR body says that "no skill under skills/** teaches how a sealed hour is cut into checkpoints". Two skill files still teach the cut this PR replaces:

  • skills/objectstack-data/evals/objects-fields-relationships.json:278: the graded expected_output says "the audit plugin signs each created_at hour into one checkpoint per organization". After this PR, an hour holding more than 10,000 rows of one organization seals into several checkpoints. This is the same sentence f08afcaf corrected in objects.mdx.
  • skills/objectstack-data/rules/lifecycle.md:131-133: "signs its rows into a chained checkpoint per organization". This is the same claim.

The spelling of the line follows the rule, but the reason it gives is false. The PR is domain:server, so updated here is not open to it. The fix:

  1. File the skills card. It should name both passages, and also the stale "no verifier reads the checkpoints back yet" / "Not built yet … a verifier" (json:278, lifecycle.md:164-166). That staleness predates this PR, since os audit verify already ships, and the card can carry it.
  2. Rewrite the line in both the PR body and the changeset as Skills-docs: follow-up #N.

This touches only the text of the changeset and the PR body, so the code verdict does not move.

② Semver level

Unchanged from 6889660447: @objectstack/plugin-audit: patch, Metadata-protocol: none, Clause-②: yes (narrowing), the BREAKING banner, and one ADR-0087 marker (not-required (no-migration-prescription)). The new line is the only change to the changeset. Check Changeset passed at this head.

③ Boundary flags

  • docs(adr): ADR-0154 amendments — bounded checkpoints (D4) and the DB session seal lock (D3) #33489 merged (8f915f2a) and is merged in, so the Blocked-by from 6889660447 is cleared.
  • CI at b234eee5: 57 check runs, all completed. 40 succeeded and 17 were skipped by path filters, with no failure. Build Core, Test Core 8/8 (including shard 5, which timed out before), TypeScript Type Check, the Lint jobs, Check Changeset, Build Docs and the docs-drift flag all succeeded.
  • The ACCEPT re-reads every check at the landing head.

④ Design judgment

The design and code are as I passed them at ff13294f. This round adds only accurate docs and a stated test budget. The one defect is in a declaration. The skill and its eval still teach "one checkpoint per organization", which is the D4 premise that #33489 amended. It is owed a card, not a silent none. After M1, a delta re-read of the changeset and the PR body is enough.

Implemented-by: claude/area-A2-31908-p4b2
Reviewed-by: session_016WV4czb1FQB8j27FVgnMye

VERDICT: FAIL

…up owes in Skills-docs

The eval objects-fields-relationships.json and rules/lifecycle.md still
teach one checkpoint per organization per hour; skills/** changes only on
a domain:skills PR, so the line reads follow-up owed instead of none.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cyNkH7W7e89m6j4aQq
review#3 M1 (record 6891899947): the `Skills-docs:` declaration names the
filed follow-up card instead of `follow-up owed`.

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

Copy link
Copy Markdown
Contributor Author

Contract-review-claim: session_016WV4czb1FQB8j27FVgnMye · head 55dfebc · 2026-11-15T10:16Z

review#3.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 55dfebcfc26c1eacf0085e9813a43598222d1b10
Local-runs: none
Scope: .changeset/31908-p4b2-bounded-checkpoints.md, the merge 59ad96d1, the follow-up card #33773, the PR body

Read: the delta from my FAIL head b234eee5 (record 6891899947) to 55dfebcf. That is the merge 59ad96d1 (origin/main at 412fbf76), 5ef334ec (the changeset's Skills-docs: line set to follow-up owed) and 55dfebcf (the same line naming #33773). I read #33773 against the two skill files at this head. I ran no repo test or build. CI was still running at this head when I read it.

① Derived judgments

The merge changes nothing on the PR side. I compared git diff 8f915f2a b234eee5 (the old merge base) with git diff 412fbf76 55dfebcf. Both touch the same 32 files with +800/−51. With index hashes and hunk headers removed, the only differing line is the changeset's Skills-docs: line. Between the two bases, main changed nothing under packages/plugins/plugin-audit and nothing in content/docs/data-modeling/objects.mdx. The one file both sides touch is content/docs/deployment/cli.mdx. There main changed the os compile rule count (67 to 68) and two os lint i18n flag rows, which are far from the PR's os audit verify hunks. The two do not interact.

M1 of 6891899947 is closed. The changeset line and the PR body line are byte-identical. Each now reads Skills-docs: follow-up #33773 — FILES — reason. That is the follow-up #N arm of the spelling the pm-dispatch template sets (updated here | follow-up owed — FILES | follow-up #N | none — REASON), with the owed arm rewritten to the card number as the template asks. No script gates this line. scripts/check-skills-token-ratchet.mjs and packages/spec/scripts/check-skill-examples.ts mention it only in comments. So I judged it against the rule as written and against the files. The reason is now true:

  • skills/objectstack-data/evals/objects-fields-relationships.json:278: the graded expected_output still says "one checkpoint per organization". The merge changed this file only at :327 and below.
  • skills/objectstack-data/rules/lifecycle.md:132-133: "a chained checkpoint per organization".
  • The line also says that the card carries the older "no verifier" text (json:278, lifecycle.md:165), and it does.

#33773 is a proper follow-up card. It is open, filed by the fleet, and labelled domain:skills, pm:blocked and priority:p3. It carries Blocked-by: #33637. It names both files with their passages: json around :278 (the "one checkpoint per organization" and "no verifier" text), and lifecycle.md at 131-133 and 164-166. Those ranges hold the passages. Its done-when matches this PR's behaviour: one checkpoint or consecutive parts of at most 10,000 rows per organization chain and the deployment chain, os audit verify failing on a chain fault including listed_twice, the skills gates staying green, and a '@objectstack/skills': patch changeset.

N1 (nit, PR body only): the Round 2 list says "5ef334ec merges main again (412fbf7)". The merge is 59ad96d1. 5ef334ec is the follow-up owed changeset commit on top of it. The dogfood claim still holds, because the tree at 5ef334ec includes the merge. This needs no new head.

② Semver level

This is unchanged from 6889660447 and 6891899947: @objectstack/plugin-audit: patch, Metadata-protocol: none, Clause-②: yes (narrowing), the BREAKING banner, and one ADR-0087 marker (not-required (no-migration-prescription)). The Skills-docs: line is the only change to the changeset.

③ Boundary flags

④ Design judgment

The design and code are as I passed them at ff13294f. Since then, only declarations and docs have moved. The skill passages that still teach the D4 premise amended by #33489 now have a filed, accurately scoped domain:skills card, so the declaration no longer hides them. Nothing left blocks the contract.

Implemented-by: claude/area-A2-31908-p4b2
Reviewed-by: session_016WV4czb1FQB8j27FVgnMye

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · os-elon-musk · session_016WV4cyNkH7W7e89m6j4aQq

ACCEPT · area A2 · 2026-11-15T10:50Z

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 15, 2026 10:51
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit ac0b9a5 Nov 15, 2026
58 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/area-A2-31908-p4b2 branch November 15, 2026 11:50
os-elon-musk pushed a commit that referenced this pull request Nov 15, 2026
#33637 (P4b2) landed on main as ac0b9a5 and this PR's base is now main.
Two conflicts, both from P4b2 reaching main as one squash commit while this
branch carries its commits: the P4b2 changeset takes main's side (main's
copy is the P4b2 tip's, 55dfebc), and audit-seal-sealer.test.ts takes this
branch's side (main's copy equals the merged base 5ef334e, so this
branch's file is that plus the P4b3 describe). sealer.ts and
seal-store.testkit.ts auto-merged to this branch's side.

Claude-Session: https://claude.ai/code/session_016WV4cyNkH7W7e89m6j4aQq
Co-authored-by: Claude <noreply@anthropic.com>
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…LOG line, and an 18-5 page erratum (objectstack-ai#34042)

<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9EaC9kmPYBDw3v97tMkTaQu)_

Fixes objectstack-ai#33903

Clause-②: no
Metadata-protocol: none

## 维护者速读

- 改了什么:18.5.0 已发布但发布说明漏记的 11 条变更,补进 14 个包的 CHANGELOG 18.5.0 节(私有包
app-shell 补在它这次发的 18.4.1 节),删掉这 11 个 changeset 文件,并在 18-5 发布页加一节勘误。
- 为什么改:18.5.0 的版本提交 `b914e724` 没有消化这 11 个 changeset,代码已随 18.5.0 发出,但
CHANGELOG 和发布页都没写;其中 objectstack-ai#33637 是破坏性变化(`os audit verify` 遇到被两个 checkpoint
同时列出的行,现在报 `listed_twice` 并失败)。按裁决 6896138728「事后补就可以」只做补记。
- 风险与回滚:纯文字,不发布代码;删掉的 changeset 若留着,下一个版本会把它们当新变化再发一遍。回滚即 revert 本 PR。
- 先看:`content/docs/releases/v18/18-5.mdx`
的勘误节;`packages/plugins/plugin-audit/CHANGELOG.md`(破坏性那条);`packages/spec/CHANGELOG.md`(两条,其中一条进
Minor Changes)。
- 两分钟验证:`git grep -c -E '^-
(ac0b9a5|2e1e3b9|fbe349f|2673f59|0feb5ff|1e65a38|e302d32|f8f35db|e0775f7|4b5024d|81371e1):
' -- '*CHANGELOG.md'` 预期 14 个文件共 18 行;`ls .changeset/*.md | wc -l` 比
main 少 11。
- 需要你做的:无,席位落地(Check Changeset 会按规则保持红色,见下方 DELIBERATE CORRECTION)。

## What changes

`packages/*/CHANGELOG.md` and `content/docs/releases/` are
release-owned. AGENTS.md (Documentation Guardrails) routes a factual
error in a released entry, or on a releases page, to a dedicated
docs-only PR, and the maintainer's ruling on this card (comment
6896138728, verbatim: 「没必要,事后补就可以:让发布流程在版本提交之前还有没消化的 changeset
时,拒绝发正式版。」) keeps only the amendment half. This is that PR. Precedent:
objectstack-ai#33925.

The 18.5.0 version commit `b914e724` (objectstack-ai#33097) consumed 283 of the 294
changesets on its parent. The other 11 landed on `main` after the
Version Packages branch point `b76df9a6` and before the merge; each
one's adding commit is an ancestor of `b914e724`, and its file is
byte-identical on `b914e724` and on this branch's base `bc6b7ffd`.

1. **CHANGELOG entries.** Each changeset's entry is added to the release
section `b914e724` wrote for each package it names, in the stock
generator's form (`- SHA7: ` + the summary, continuation lines indented
two spaces), under the commit that added the changeset, in the `###
Minor Changes` or `### Patch Changes` list its bump names, after the
last changeset entry and before the `Updated dependencies` lines. No
dependents line is invented.
2. **The 11 changeset files are deleted**, so the next version commit
does not present them as new.
3. **The 18-5 page** gains `## Erratum — eleven changes 18.5.0 shipped
with no CHANGELOG line [#erratum]`: objectstack-ai#33637's FROM → TO and what an
operator does, one line for each of the other nine, and a pointer from
the release-facts row that said 284 were consumed. objectstack-ai#33725 is already on
the page (自动迁移, "Announced, not yet at any door"); it is checked, not
repeated.

| Changeset | Package | Added to | Commit | 18-5 page |
| :--- | :--- | :--- | :--- | :--- |
| `31908-p4b2-bounded-checkpoints` | `@objectstack/plugin-audit` | `##
18.5.0` › Patch Changes | `ac0b9a5` (objectstack-ai#33637) | Erratum, breaking: FROM →
TO, what to do, rollback note |
| `33186-managed-add-people-actions` | `@objectstack/platform-objects` |
`## 18.5.0` › Patch Changes | `2e1e3b9` (objectstack-ai#33755) | Erratum, one line |
| `33609-related-list-parent-lookup-page` | `@object-ui/console`,
`@object-ui/plugin-detail` | `## 18.5.0` › Patch Changes | `fbe349f`
(objectstack-ai#33780) | Erratum, one line |
| `33649-messaging-preferences-emitting-organization` |
`@objectstack/service-messaging` | `## 18.5.0` › Patch Changes |
`2673f59` (objectstack-ai#33779) | Erratum, one line |
| `33660-ai-model-picker-cost-multiplier` | `@objectstack/spec`,
`@object-ui/plugin-chatbot`, `@object-ui/i18n`, `@object-ui/console`;
`@object-ui/app-shell` | `## 18.5.0` › Patch Changes; app-shell `##
18.4.1` › Patch Changes | `0feb5ff` (objectstack-ai#33746) | Erratum, one line |
| `33689-ai-action-confirmation-elicited` | `@objectstack/spec` | `##
18.5.0` › Minor Changes | `1e65a38` (objectstack-ai#33725) | Already covered (自动迁移
row), not repeated |
| `33724-install-relaxes-declared-not-null` | `@objectstack/driver-sql`,
`@objectstack/cloud-connection`, `@objectstack/driver-turso` | `##
18.5.0` › Patch Changes | `e302d32` (objectstack-ai#33769) | Erratum, one line |
| `33739-scenario-runner-effort` | `@objectstack/scenarios` | `##
18.5.0` › Patch Changes | `f8f35db` (objectstack-ai#33767) | Erratum, one line |
| `33753-scenario-dates-follow-run-date` | `@objectstack/scenarios` |
`## 18.5.0` › Patch Changes | `e0775f7` (objectstack-ai#33776) | Erratum, one line |
| `33754-scenario-grader-written-date` | `@objectstack/scenarios` | `##
18.5.0` › Patch Changes | `4b5024d` (objectstack-ai#33797) | Erratum, one line |
| `a2-skills-docs-32678-32825` | `@objectstack/skills` | `## 18.5.0` ›
Patch Changes | `81371e1` (objectstack-ai#33355) | Erratum, one line |

**DELIBERATE CORRECTION.** This PR adds no changeset and deletes eleven
(`git diff --name-status` over `.changeset/*.md`: 11 × `D`, 0 × `A`).
Each deleted note is already released: its text now stands, unchanged,
as the entry named in the table above, in the 18.5.0 tarballs' release
section. Under ruling D on objectstack-ai#18375 (the Check Changeset step's route 0)
and `.claude/agents/os-dev.md`, `skip-changeset` is not applied to a PR
that deletes an existing changeset, so `Check Changeset` stays red by
design; it is not a required context. The diff publishes nothing until
the next release republishes the tarballs.

## Tests

No source changes, so no test suite moves. The CHANGELOG lines are
generated, not hand-typed: the summary parse and the stock release-line
format were re-implemented in a script and first checked against
`b914e724^`: for every changeset `b914e724` consumed among the first 60
(103 package entries), the generated text is found verbatim in that
package's CHANGELOG; the only miss is `31908-p4b2-bounded-checkpoints`,
the unconsumed one this PR adds. The script asserts, per changeset, one
adding commit, an identical blob at the tag and at the base, the release
section being the top section of the version `b914e724` gave the
package, and the entry not already present. The diff of every CHANGELOG
is insertions only.

## Acceptance notes

1. `@object-ui/app-shell` is private and `b914e724` versioned it
`18.4.1`, not `18.5.0` (the 18-5 page's release facts say so too), so
its entry goes into its `## 18.4.1` section.
2. The 18-5 page still opens with "Release status: 18.4.0 is released,
and 18.5.0 is not yet." and its release facts say no 18.5.0 tag or npm
version exists. Both are stale since the publish. Outside this card's
file surface; left for the seat (noted, not filed).
3. The changeset of objectstack-ai#33649 has no summary line, so its entry opens `-
2673f59: Clause-②: no`, as the stock generator would have written it.

## Verification

<details><summary>Premise readings, at base bc6b7ff and the 18.5.0 spec
tag = b914e72</summary>

- `git ls-tree --name-only b914e72 .changeset/` minus `README.md` and
`config.json`: 11 files, the card's list. `b914e724^` holds 294;
`b914e724` deletes 283.
- For each of the 11: `git rev-parse b914e72:PATH` equals `git
rev-parse bc6b7ff:PATH`; the adding commit (`git log --diff-filter=A`,
one per file) is an ancestor of `b914e724` (`merge-base --is-ancestor`
exit 0, after deepening the shallow clone by 800 commits). The adding
commits all fall between `b76df9a6` (the Version Packages branch point
the 18-5 page names) and `b914e724`.
- Before this PR: `listed_twice`, `ac0b9a5`, `objectstack-ai#33637` each 0 hits on
`content/docs/releases/v18/18-5.mdx`.
- The erratum's wording is read from the changeset text and
`packages/plugins/plugin-audit/src/audit-seal/verifier.ts`
(`listed_twice` fault: `checkpoint N: lists row(s) … that another
checkpoint already lists`), `content/docs/deployment/cli.mdx` § `os
audit verify` (exit 1 when two checkpoints list the same row), and the
18.5.0 entry `f4cafd5` (a late checkpoint leaves out every row a
checkpoint stored in between already lists).
</details>

<details><summary>Gates</summary>

Head `f5754612`. Derived with `node scripts/pm/dispatch-gates.mjs
--commands --repo objectstack-ai/objectstack` (no paths): 99 commands,
each run with stdin from `/dev/null` and its exit captured before any
pipe; `--ran` reconciliation: 99 derived, 99 run, 0 NOT-MEASURED, 0
UNRUN.

- 98 exit 0. Eleven of them first exited 3 (PREREQUISITE NOT MET, no
`dist/` in a fresh worktree) and were re-run exit 0 after the builds
they name, each under `scripts/pm/os-verify-lock.sh` with VERDICT
command-exit 0: the `@objectstack/lint...` closure plus the `check:i18n`
extract closure (64/64 tasks), `@objectstack/client` and `client-react`
(43/43), then `pnpm build` (119/119). Re-run:
`check:doc-formula-expressions`, `check:doc-security-posture`, spec
`check:docs`, spec `check:skill-examples`,
`check:docs-transcript-drift`, `check:i18n`, `check:dts-closure`,
`check:dual-build-cjs-loads`, `check:lean-entry-closure`,
`check:sourcemap-no-sources-content`; and `pnpm --dir ui exec vitest run
scripts/`, which first failed 22 files only on the missing
`@objectstack/spec` `dist/` and then passed (171 files passed, 2
skipped; 5,065 tests passed).
- 1 exit 1, by design: `node scripts/check-empty-changeset.mjs --base
origin/main` refuses the eleven deletions as edits of existing notes
(one `::error` per file). This is the DELIBERATE CORRECTION class
declared above; it stays red, and so does `Check Changeset`.
- Release-text gates all exit 0 on the amended tree:
`check-release-section-coverage` (plain and `--strict`),
`check:release-notes`, `check:release-page-status`,
`check-affected-docs`, `check:doc-authoring`, `check:doc-anchors`,
`check:nul-bytes`, `check-adr-0087-registration --base origin/main`.

`origin/main` moved to `159757ab` while the gates ran; the commits since
the base `bc6b7ffd` touch none of this PR's paths (they add four other
changesets), so no merge was taken.
</details>

---
_Generated by [Claude
Code](https://claude.ai/code/session_01ADHkmPfCRZtZTTC4KzLjJR)_

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

https://claude.ai/code/session_01ADHkmPfCRZtZTTC4KzLjJR

<!-- signed: domain:devx#2 · os-steve · session_01ADHkmQTVjryTSkqydKVS6z
-->

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 domain:server Domain lane — seat card indexed by label:pm:seat size/l 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.

2 participants