You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
plugin-audit + objectql lifecycle: build the audit tamper-evidence ADR — sealer, signed checkpoints, redaction and expiry amendments, os audit verify #31908
Filing gate: ③ a task on the maintainer's word. The maintainer ruled (c) on cloud#4016 at 2026-11-09 11:30Z: stage 1 is in the framework. This card builds what the ADR card filed with it decides. Blocked until that ADR merges.
Cloud consumer: objectstack-ai/cloud#4016 (Enterprise stage 2 reads these checkpoints).
维护者速读
问题:同上一张 ADR 卡,审计日志被改被删时证明不了。
要做:按 ADR 实现封存器、检查点对象、脱敏和到期删除的修正记录、到期删除按检查点整块删除,以及 os audit verify。
需要你做的:无。ADR 合并前本卡保持阻塞。
Work
Implement the ADR in plugin-audit (canonical form, sealer, checkpoint object, amendments, verify command) and in objectql's lifecycle (prune aligned to whole checkpoints, with an expiry amendment). The design doc's §2.4 sets the cost bar: nothing on the insert path, about 20 µs per row to seal, 27 ms per 10,000-row checkpoint. A synchronous chain head cut throughput 13.8× at 8 writers per organization, so the sealer must stay asynchronous.
Done when
On a real kernel with the archive datasource, os audit verify reports:
a row edited through the system context as modified;
a deleted row as missing;
a redacted row as redacted, with its amendment;
a pruned window as expired by policy.
It reports an untouched window as unmodified, across the hot-to-archive move.
Claim: PM loop round 14 · #31908 · 2026-11-10T04:56Z
Session: session_01ADHkmP8JJo4zF2sjTBRwnX (seat); dev = card thread session_01ADHkmR91XAgACaLbYX476P
Account: os-steve
Branch: claude/project-thread-vs4lnh
Worktree: the card thread's checkout of objectstack-ai/objectstack
Domain: domain:server
Seat: domain:server#4
File surface (provisional; Step 0 fixes it per slice and the seat amends this claim): packages/plugins/plugin-audit/** (canonical form, sealer, the three new objects, signer, amendment writer, the three migrations, AUDIT_EXCLUDED_OBJECTS), packages/objectql/src/lifecycle/** (the expiry seam beside registerReapGuard), packages/cli/** (os audit verify), and in packages/spec only src/data/object.zod.ts (lifecycle.seal and its authoring refusals), src/contracts/crypto-provider.ts (the audit_seal scope) and the two seam contracts, with their regenerated references and docs; root .changeset/. Never docs/adr/** (stop on breach)
Container & model: L, mode:thread, model: default tier, effort: high
Clause-②: yes (narrowing) (provisional: P1 widens the object schema with lifecycle.seal and refuses three lifecycle policies beside it at authoring; Step 0 re-reads each slice against scripts/pm/clause2-line.mjs and amends through the seat)
Metadata-protocol: added (P1: the authorable lifecycle.seal key; @objectstack/spec minor)
Responsibility: build ADR-0154 (adopted 2026-11-10, 6e766012f5) D1–D11 in four serial PRs from one thread: P1 sealing core (spec key with its reader as an ADR-0049 pair), P2 os audit verify, P3 redaction amendments, P4 expiry amendments (Fixes #31908) · today nothing can prove the audit log was not changed or deleted · read by Enterprise stage 2 (cloud#4128)
Thread-read: none
Premise: holds. ADR-0154 is on main; the ADR card #31907 is closed (landing note 6759357073).
Serial constraints: P1 → P2 → P3 → P4 on this seat. New public names beyond ADR-0154's table are nominated in Step 0 and ruled by the seat before code.
Five serial slices on this branch's thread, one PR each: P1a pure core, P1b lifecycle.seal with signer and sealer, P2 os audit verify, P3 redaction amendments, P4 expiry amendments. The default lifecycle.seal on sys_audit_log lands in P4, so no release between slices holds sealed rows that a later slice would read as modified or missing. P1a–P3 say Part of #31908; P4 says Fixes #31908. Each slice stays at or under 3000 lines.
Handle id: under scope audit_seal, rotateKey MUST return the input's id. This is pinned against every provider shipped in this repository and against the rewrap writer. Out-of-tree providers are a carrier: cloud question.
Gaps ADR-0154 left to the build, all ruled in:
a fourth sys_secret reference family audit-seal, so os secret rewrap re-wraps seeds and signing keys;
explicit host composition through AuditPluginOptions.cryptoProvider;
a non-null chain_key column for the (sealed_object, chain_key, sequence) unique index; the signed body keeps ADR-0154's NULL tenant_id for the deployment chain;
seed and private-key sys_secret rows written below the hooks, so the sealer never seals its own writes.
Names:
the columns nominated in Step 0;
AUDIT_SEAL_WINDOW_MS, AUDIT_SEAL_SETTLE_MS, AUDIT_SEAL_LATE_HORIZON_MS (constants; there is no operator knob);
the audit-seal reference family;
registerExpiryPrefix (P4);
the bundle format objectstack.audit.proof-bundle.v1.
This claim now covers slice P1a only. The seat amends it before each later slice.
File surface (P1a):
packages/spec: src/contracts/crypto-provider.ts, a new src/contracts/audit-checkpoint.ts, the contracts barrel, and api-surface/**.
audit-writers.ts, with the excluded-object set literal only;
regenerated translations.
packages/cli: src/utils/secret-reference-union.ts and src/utils/sys-secret-rewrap.ts.
packages/services/service-settings: the rotateKey id pin.
Root .changeset/.
Never docs/adr/**, never packages/spec/src/data/** in this slice (stop on breach).
Clause-②: yes (widening) (new exported contracts, a new crypto scope member and three platform objects; nothing main accepts is refused)
Metadata-protocol: none (platform objects and contracts; no authorable key in this slice)
{
"issue": 31908,
"status": "done",
"slice": "P1a of 5 (P1a, P1b, P2, P3, P4); stops at the slice boundary per seat 4, P1b not started",
"branch": "claude/project-thread-vs4lnh",
"pr": "https://github.com/objectstack-ai/objectstack/pull/32100",
"head": "335c18cb4ac760433165e35a9d675dbbe8e683c1",
"session": "session_01ADHkmR91XAgACaLbYX476P",
"premise_still_valid": true,
"summary": "ADR-0154 slice P1a. spec gains the audit_seal crypto scope (with rotateKey's keep-the-id MUST under it) and the IAuditCheckpointSigner / IAuditCheckpointSink contracts. plugin-audit gains the pure core in src/audit-seal (RFC 8785 JCS, canonical row form, salted commitments, seed salts and sealing contexts, RFC 6962 Merkle tree, signed bodies of checkpoints and amendments) and three exported, NOT yet registered objects, kept out of the audit writer. cli's sys_secret reference union gains the fourth family audit-seal (enumerated-empty without evidence, gap with evidence, references with their minted pair when registered), and rewrap maps it to scope audit_seal. Nothing seals in this slice.",
"tests": "New pins: plugin-audit audit-seal-core.test.ts 23/23; audit-writers.test.ts tamper-evidence describe (4); cli secret-reference-union.audit-seal.test.ts 7/7; sys-secret-rewrap.test.ts KEEPS THE ROW ID; service-settings local-crypto-provider.test.ts rotateKey-keeps-id-per-scope. Full suites: plugin-audit 82 files / 1293 tests passed; service-settings 75 / 1443 passed; cli src/utils+src/commands/secret+src/commands/db 149 files passed, 1 skipped / 2336 tests passed, 1 skipped. Ablations via scripts/ablation-replace.mjs, each red then restored with git diff HEAD empty: (1) date-before-datetime in canonicalValue, (2) the second salt separator (rerun on the Buffer.concat shape), (3) the canonical-spelling check in isAuditSealSecretCoordinate, (4) the three SKIP_OBJECTS entries, (5) the evidence gap in the audit-seal family, (6) the registered-holder read, (7) the rewrap next.id check, (8) LocalCryptoProvider.rotateKey keeping the id. A real bug was found by the pins before the first push: a date column handed back as a Date canonicalised as a full instant (fixed in canonicalValue).",
"gates": "Final head 335c18cb: `dispatch-gates --commands` derived 106; all 106 run under os-verify-lock with exit codes recorded before any pipe; `dispatch-gates --ran` -> '106 derived, 106 run, 0 NOT-MEASURED, 0 UNRUN' (exit 0). Every one of the 106 exited 0. Fixed on the way (earlier heads): check-tenant-audit-census (chained Hash.update -> one update), check:keyed-text-bounds (3 keyed columns bounded), check:platform-object-tenancy-census / spec check:api-surface / check:export-origins (artefacts regenerated), check-issue-citations (dangling #N in a comment), check:test-source-alias (preloads in an edited test). Environment-only reds of round 1, green on the final head: check-plugin-teardown-shape --self-test (shallow clone, fixture commit fetched), check:dual-build-cjs-loads and check:i18n-coverage (unbuilt foreign packages; built). Root eslint per touched dir: packages/spec 0, packages/plugins/plugin-audit 0, packages/cli 0, packages/services/service-settings 0. Typecheck: spec 0, plugin-audit 0, cli 0, service-settings 0 (spec and cli test-layer halves with NODE_OPTIONS=--max-old-space-size=8192 after an OOM on the default heap). Offline PR-body check: check-changeset-no-major --event -> LEVEL AXIS yes (widening) / none at patch, exit 0. CI not awaited.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "7 — all read-only: mcp__github__issue_read x5, mcp__github__get_file_contents x2 (Step 0 and claim reads); no write tool",
"api_writes": "2 so far — relay pr_create (fleet-write run 42777485419, #32100, 11544 bytes sent = stored), and this os-dev-report comment via post-stamped.mjs; the seat-4 thread message is not a GitHub write",
"files_changed": [
".changeset/31908-audit-seal-core.md",
"packages/cli/src/commands/secret/orphans.guards.test.ts",
"packages/cli/src/commands/secret/rewrap.driver-contract.test.ts",
"packages/cli/src/commands/secret/rewrap.guards.test.ts",
"packages/cli/src/commands/secret/rewrap.ts",
"packages/cli/src/utils/secret-reference-union.audit-seal.test.ts",
"packages/cli/src/utils/secret-reference-union.test.ts",
"packages/cli/src/utils/secret-reference-union.ts",
"packages/cli/src/utils/sys-secret-holder-report.test.ts",
"packages/cli/src/utils/sys-secret-orphan-sweep.test.ts",
"packages/cli/src/utils/sys-secret-orphan-sweep.ts",
"packages/cli/src/utils/sys-secret-rewrap.test.ts",
"packages/cli/src/utils/sys-secret-rewrap.ts",
"packages/plugins/plugin-audit/src/audit-seal/audit-seal-core.test.ts",
"packages/plugins/plugin-audit/src/audit-seal/canonical.ts",
"packages/plugins/plugin-audit/src/audit-seal/index.ts",
"packages/plugins/plugin-audit/src/audit-seal/jcs.ts",
"packages/plugins/plugin-audit/src/audit-seal/merkle.ts",
"packages/plugins/plugin-audit/src/audit-seal/seed.ts",
"packages/plugins/plugin-audit/src/audit-seal/signed-body.ts",
"packages/plugins/plugin-audit/src/audit-writers.test.ts",
"packages/plugins/plugin-audit/src/audit-writers.ts",
"packages/plugins/plugin-audit/src/index.ts",
"packages/plugins/plugin-audit/src/objects/index.ts",
"packages/plugins/plugin-audit/src/objects/sys-audit-amendment.object.ts",
"packages/plugins/plugin-audit/src/objects/sys-audit-checkpoint.object.ts",
"packages/plugins/plugin-audit/src/objects/sys-audit-signing-key.object.ts",
"packages/services/service-settings/src/local-crypto-provider.test.ts",
"packages/spec/api-surface/contracts.json",
"packages/spec/export-origins/contracts.json",
"packages/spec/src/contracts/audit-checkpoint.ts",
"packages/spec/src/contracts/crypto-provider.ts",
"packages/spec/src/contracts/index.ts",
"scripts/platform-object-tenancy-census.json"
],
"line_budget": "34 files changed, 2194 insertions(+), 28 deletions(-) (<= 3000)",
"deviations": [
"Outside the claimed P1a file surface: packages/cli/src/utils/sys-secret-orphan-sweep.ts (the 'of 3 families' text now reads SECRET_REFERENCE_FAMILIES.length) and packages/cli/src/commands/secret/rewrap.ts (human render prints the audit_seal count). Both follow from the fourth family.",
"Outside the claimed surface: scripts/platform-object-tenancy-census.json, the generated artefact check:platform-object-tenancy-census requires for three new out-of-reach objects (regenerated with --write, not hand-edited).",
"Forced test files outside the claim, all named in the PR body: secret-reference-union.test.ts, sys-secret-holder-report.test.ts, sys-secret-orphan-sweep.test.ts, sys-secret-rewrap.test.ts, commands/secret/rewrap.guards.test.ts, commands/secret/rewrap.driver-contract.test.ts, commands/secret/orphans.guards.test.ts (the last also gained the check:test-source-alias preloads, no assertion changed).",
"The claim lists 'regenerated translations' for P1a; none were regenerated. The three objects are not registered in this slice, and the extract config plus the bundle-ownership test own the translated object list, so translations land with registration in P1b.",
"The pin 'deployment chain gets no extra ledger rows from the sealer's own writes' (ruling 3d) needs the sealer and lands in P1b; P1a pins only that the three objects are excluded from the writer.",
"Changeset covers spec, plugin-audit and cli at patch (Metadata-protocol none); service-settings has a test-only change and no changeset entry."
],
"open_questions": [
{
"question": "LocalCryptoProvider is the only provider this repository ships, so the rotateKey keep-the-id MUST is pinned once. Should a cloud-side KMS provider get a matching conformance pin?",
"options": [
"A: a carrier: cloud note on the card, the pin lives in cloud",
"B: export a provider conformance helper from spec in P1b"
],
"recommendation": "A, because the seat already ruled out-of-tree providers carrier: cloud"
}
],
"security_findings": "none",
"out_of_scope_findings": []
}
AUDIT_CHECKPOINT_SIGNER_SERVICE and AUDIT_CHECKPOINT_SINK_SERVICE, the constants for ADR-0154's slots audit.checkpointSigner and audit.checkpointSink, following CRYPTO_PROVIDER_SERVICE.
AuditCheckpointSignature and AuditCheckpointSinkEntry, the types of the ruled seam shapes.
{
"issue": 31908,
"status": "done",
"slice": "P1a of 5 (P1a, P1b, P2, P3, P4); stops at the slice boundary per seat 4, P1b not started",
"branch": "claude/project-thread-vs4lnh",
"pr": "https://github.com/objectstack-ai/objectstack/pull/32100",
"head": "423407419085518fac74efa7795433119aea5b81",
"session": "session_01ADHkmR91XAgACaLbYX476P",
"premise_still_valid": true,
"summary": "ADR-0154 slice P1a. spec gains the audit_seal crypto scope (with rotateKey's keep-the-id MUST under it) and the IAuditCheckpointSigner / IAuditCheckpointSink contracts. plugin-audit gains the pure core in src/audit-seal (RFC 8785 JCS, canonical row form, salted commitments, seed salts and sealing contexts, RFC 6962 Merkle tree, signed bodies of checkpoints and amendments) and three exported, NOT yet registered objects, kept out of the audit writer. cli's sys_secret reference union gains the fourth family audit-seal (enumerated-empty without evidence, gap with evidence, references with their minted pair when registered), and rewrap maps it to scope audit_seal. Nothing seals in this slice.",
"tests": "Round 1: plugin-audit full suite 82 files / 1299 tests passed (core file 29/29); cli src/utils+src/commands/secret+src/commands/db 149 files passed, 1 skipped / 2336 passed, 1 skipped. Ablations 9 and 10 via scripts/ablation-replace.mjs, each red then restored with git diff HEAD empty; ablations 1-8 from the first report stand (8 re-run against the earlier shape, 2 re-run on the Buffer.concat shape).",
"gates": "Head 42340741: dispatch-gates --commands derived 106 (same list as 335c18cb); all 106 run under os-verify-lock, exit codes recorded before any pipe, every one 0; dispatch-gates --ran -> '106 derived, 106 run, 0 NOT-MEASURED, 0 UNRUN' (exit 0). Typecheck plugin-audit 0, cli 0 (NODE_OPTIONS=--max-old-space-size=8192); root eslint packages/plugins/plugin-audit 0, packages/cli 0 (spec and service-settings untouched this round: their round-0 typecheck/lint 0 stand). Offline check-changeset-no-major --event on the revised body: exit 0. CI not awaited.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "7 — all read-only: mcp__github__issue_read x5, mcp__github__get_file_contents x2 (Step 0 and claim reads); no write tool",
"api_writes": "4 total — pr_create (#32100), the first os-dev-report comment 6761943000, issue_patch of the #32100 body (run 42784754509, 13571 bytes sent = stored), and this comment",
"files_changed": [
".changeset/31908-audit-seal-core.md",
"packages/cli/src/commands/secret/orphans.guards.test.ts",
"packages/cli/src/commands/secret/rewrap.driver-contract.test.ts",
"packages/cli/src/commands/secret/rewrap.guards.test.ts",
"packages/cli/src/commands/secret/rewrap.ts",
"packages/cli/src/utils/secret-reference-union.audit-seal.test.ts",
"packages/cli/src/utils/secret-reference-union.test.ts",
"packages/cli/src/utils/secret-reference-union.ts",
"packages/cli/src/utils/sys-secret-holder-report.test.ts",
"packages/cli/src/utils/sys-secret-orphan-sweep.test.ts",
"packages/cli/src/utils/sys-secret-orphan-sweep.ts",
"packages/cli/src/utils/sys-secret-rewrap.test.ts",
"packages/cli/src/utils/sys-secret-rewrap.ts",
"packages/plugins/plugin-audit/src/audit-seal/audit-seal-core.test.ts",
"packages/plugins/plugin-audit/src/audit-seal/canonical.ts",
"packages/plugins/plugin-audit/src/audit-seal/index.ts",
"packages/plugins/plugin-audit/src/audit-seal/jcs.ts",
"packages/plugins/plugin-audit/src/audit-seal/merkle.ts",
"packages/plugins/plugin-audit/src/audit-seal/seed.ts",
"packages/plugins/plugin-audit/src/audit-seal/signed-body.ts",
"packages/plugins/plugin-audit/src/audit-writers.test.ts",
"packages/plugins/plugin-audit/src/audit-writers.ts",
"packages/plugins/plugin-audit/src/index.ts",
"packages/plugins/plugin-audit/src/objects/index.ts",
"packages/plugins/plugin-audit/src/objects/sys-audit-amendment.object.ts",
"packages/plugins/plugin-audit/src/objects/sys-audit-checkpoint.object.ts",
"packages/plugins/plugin-audit/src/objects/sys-audit-signing-key.object.ts",
"packages/services/service-settings/src/local-crypto-provider.test.ts",
"packages/spec/api-surface/contracts.json",
"packages/spec/export-origins/contracts.json",
"packages/spec/src/contracts/audit-checkpoint.ts",
"packages/spec/src/contracts/crypto-provider.ts",
"packages/spec/src/contracts/index.ts",
"scripts/platform-object-tenancy-census.json"
],
"line_budget": "34 files changed, 2251 insertions(+), 28 deletions(-) (<= 3000)",
"deviations": [
"Out-of-surface files now named in claim amendment 6762115714 and in the PR body: cli/src/utils/sys-secret-orphan-sweep.ts, cli/src/commands/secret/rewrap.ts, plugin-audit/src/index.ts, scripts/platform-object-tenancy-census.json (generated).",
"Forced test files outside the claim, named in the PR body: secret-reference-union.test.ts, sys-secret-holder-report.test.ts, sys-secret-orphan-sweep.test.ts, sys-secret-rewrap.test.ts, commands/secret/rewrap.guards.test.ts, commands/secret/rewrap.driver-contract.test.ts, commands/secret/orphans.guards.test.ts (+ check:test-source-alias preloads, no assertion changed).",
"Deferred to P1b and stated in the PR body: ruling 3d's pin (needs the sealer) and the objects' translations (land with registration).",
"Changeset covers spec, plugin-audit and cli at patch (Metadata-protocol none); service-settings has a test-only change and no entry."
],
"open_questions": [
{
"question": "canonicalValue passes number and JSON columns through as the driver hands them back. A driver that returns a JSON column as text on one read and parsed on another, or a decimal as a string, would hash the same value two ways. Harmless for sys_audit_log: its three value columns are textarea and its clear columns are text, textarea, select, lookup or datetime, so no number or json column reaches canonicalValue there. It must be decided before any other object opts in.",
"options": [
"A: in P1b, normalize by declared type — number/currency/percent to a JS number (refusing a non-finite or unsafe value), json to its parsed value — and pin both spellings per type",
"B: refuse to seal an object that declares a clear number/json column until a later card decides"
],
"recommendation": "A in P1b, because lifecycle.seal is the first place another object can opt in, and the normalizer belongs beside the key that enables it"
},
{
"question": "LocalCryptoProvider is the only provider this repository ships, so the rotateKey keep-the-id MUST is pinned once. Should a cloud-side KMS provider get a matching conformance pin?",
"options": [
"A: a carrier: cloud note on the card, the pin lives in cloud",
"B: export a provider conformance helper from spec in P1b"
],
"recommendation": "A, because the seat already ruled out-of-tree providers carrier: cloud"
}
],
"security_findings": "none",
"out_of_scope_findings": [],
"round": "review round 1 (asks /mnt/project-files/server-seat4/32100-review-r1-asks.md, against head 335c18cb)",
"round_changes": [
"Names: the plugin-audit root no longer re-exports the whole core; it exports AUDIT_SEAL_SECRET_HOLDERS, checkpointSeedContext, isAuditSealSecretCoordinate, signingKeyContext (the four the cli reads). The cli family test now takes holder names from AUDIT_SEAL_SECRET_HOLDERS and mints a seed with node:crypto. The PR body lists the four.",
"Ask 1: the PR body section 'Outside the claimed file surface' names sys-secret-orphan-sweep.ts, commands/secret/rewrap.ts, plugin-audit/src/index.ts and scripts/platform-object-tenancy-census.json, one reason each (claim amendment 6762115714).",
"Ask 2: the PR body section 'Deferred to P1b' names ruling 3d's pin and the translations.",
"Ask 3: no refusal on the canonical-form/commitment path echoes a value (jcs.ts non-finite number, canonical.ts datetime/boolean/row id; seed.ts sequence for consistency): column and type only. Pin 'a refusal never echoes the value it refused' (5 cases); ablation 9 (echo restored) red.",
"Ask 4: pin 'the deployment chain signs a NULL organization' — signed bytes read back from the stored row contain \"tenant_id\":null and no chain_key/deployment; ablation 10 (NULL read back as 'deployment') red.",
"Ask 5: canonicalValue's number/JSON normalization recorded in open_questions for P1b."
]
}
Claim amendment · #31908 · 2026-11-10T08:53Z · amends claim 6759393778 (after amendments 6759503769 and 6762115714) · File surface and names for slice P1a (Branch claude/project-thread-vs4lnh, Clause-② yes (widening) and Metadata-protocol none unchanged)
File surface addspackages/spec/src/system/constants/platform-object-names.ts. Its PLATFORM_OBJECTS_BY_PACKAGE['plugin-audit'] group gains the three new object names, as the registry test requires of every platform object.
Correction to 6762115714:sys-secret-orphan-sweep.ts changes only the family count in one message. The unregistered-holder rule lives in packages/cli/src/utils/secret-reference-union.ts, which is already on the surface.
Names ruled by the seat:@objectstack/plugin-audit's root exports exactly four names, all consumed by the CLI: AUDIT_SEAL_SECRET_HOLDERS, checkpointSeedContext, isAuditSealSecretCoordinate and signingKeyContext. The root has no star export.
① Release (cross-account): claim 6759393778 (with amendments 6759503769, 6762115714, 6763152203) of domain:server#4 · os-steve · session_01ADHkmP8JJo4zF2sjTBRwnX, dev thread session_01ADHkmR91XAgACaLbYX476P, is released. Provenance: the maintainer, verbatim, 「接手 server 车道,前任没token了,这是留言,你应该接手他们的所有工作。」, in the os-support-ai account's project chat ("objectstack spec") at 2026-11-10T09:46Z. Seat post #27737, opening mark 6764280400.
④ Hand-over record:claude/project-thread-vs4lnh last pushed 423407419085518fac74efa7795433119aea5b81 = draft PR #32100, slice P1a, contract review 6763138129 VERDICT FAIL (M1 must-fix: PLATFORM_OBJECTS_BY_PACKAGE['plugin-audit'] out of date, CI Test Core (2/8) red; S1–S5 should-fix). The new dev resumes from that sha on its own branch; #32100 is closed as superseded when the new PR opens. P1b–P4 not started.
Seat rulings for round 2 (the review's asks; the dev's two open questions):
M1, S2, S4, S5 as the review states them.
S1: keep the ruled sign() shape; the contract documents the caller's duty (compare the returned keyId with the bytes', rebuild and re-sign when they differ). The loop is pinned in P1b.
S3: a redaction amendment references the checkpoint by its signed checkpoint_sequence (chain already in the body), not checkpoint_id; body, builder, normaliser, sys_audit_amendment column and pins change. Inside ADR-0154 D7 ("the checkpoint that sealed the row"); no ADR edit.
Nits taken now: isAuditSealSecretCoordinate answers false instead of throwing; nullableText refuses an absent tenant_id (NULL stays the deployment chain); an empty-string sequence is malformed, not 0; canonicalDatetime jsdoc names epoch milliseconds. Carried to P1b: the jcs.ts error path, the sys-secret.object.ts producer count.
Open question 1 (canonicalValue pass-through): A, widened. In P1b beside lifecycle.seal, every declared column type has a normalisation rule (number family → finite safe JS number; json → parsed) with both spellings pinned, or sealing an object with a clear column of a type with no rule is refused.
Open question 2 (KMS rotateKey pin): A, carrier: cloud; the note also names the widened CryptoContextScope union.
③ Claim
Claim: PM loop round 1 · #31908 · 2026-11-10T10:00Z
Session: session_01WGufzi1tLRTEYwYGtbNCyk (seat); dev = card thread session_01WGufzgZ1XkMJRqn9raHQ4e
Account: os-support-ai
Branch: claude/project-thread-8ykewa
Worktree: the card thread's checkout of objectstack-ai/objectstack (objectstack-issue-31908)
Domain: domain:server
Seat: domain:server#4
File surface: slice P1a as claim 6759393778 amended by 6759503769, 6762115714 and 6763152203, plus the sys_audit_amendment column change of S3 (already in packages/plugins/plugin-audit/src/objects/**). Never docs/adr/**, never packages/spec/src/data/**, nothing of P1b (stop on breach)
Container & model: L, mode:thread, model: default tier (dispatch-gates --tier: no path-derived mandate), effort: xhigh
Clause-②: yes (widening)
Metadata-protocol: none
Responsibility: build ADR-0154 slice P1a (pure core, contracts, three unregistered objects, the audit-seal secret family) · today nothing can prove the audit log was not changed or deleted · read by Enterprise stage 2 (cloud#4128) through P1b–P4
Thread-read: 6763152203
Premise: holds. ADR-0154 on main45f0f81f; #32100's review names the remaining defects.
Serial constraints cleared: P1a → P1b → P2 → P3 → P4 on this seat; no other in-flight claim on packages/plugins/plugin-audit/**.
Resume-from: claude/project-thread-vs4lnh@423407419085518fac74efa7795433119aea5b81
Claim amendment · 2026-11-26T13:17Z · claim 7193045552, File surface widened on the thread's read:
In the main PR: packages/spec/src/data/object.zod.ts, one .describe() sentence of lifecycle.seal only (the "until expiry amendments ship (ADR-0154 P4), the retention sweeper still deletes sealed rows" text turns false with P4c; no shape change), and its regenerated content/docs/references/data/object.mdx (gen:schema && gen:docs); content/docs/data-modeling/objects.mdx:277, the same sentence.
Split out to a second PR from the same thread after the main PR lands: skills/objectstack-data/rules/lifecycle.md:164-166 ("Not built yet (ADR-0154): a verifier … expiry (P4)"). skills/** is a governed surface, so that PR is Tier H and owes a CONTRACT_REVIEW_TIER L2; it keeps the main PR off Tier H.
Every other line stands. The main PR now touches packages/spec/src/** (prose only); the Clause-② line stays yes (widening) for the LifecycleService seam.
Claim amendment · 2026-11-26T14:54Z · claim 7193045552 (and amendment of record), on the thread's P4c report (PR #37605, head 51ba1c1):
Scope adds the seat ruling 6885452378 on this card ("A, in P4c"): the verifier judges a chain that lags behind as unsealed. It has a pin and an ablation.
File surface widened to:
the two CLI os audit verify integration tests (expectations only: every project now verifies sys_audit_log);
packages/verify/vitest.config.ts (one anchored alias the source-alias gate requires);
scripts/engine-double-contract.pinned.json and the plugin-audit audit census page, each regenerated by its own --write.
Behaviour, named for L2 and the changeset:
an AuditPlugin without a crypto service no longer registers the expiry surface, so sys_audit_log rows past archive.keep are kept and warned once, never over-deleted;
a tenant retention override does not apply to a sealed object, and warns once.
Every other line stands; Clause-②: yes (widening) and a CONTRACT_REVIEW_TIER L2 are owed before the queue.
The seat widens this card's claimed file surface for PR #37605 to the files the seal default and the review fixes reach. Each one only follows the change; none adds a feature:
packages/cli/src/commands/audit/verify.integration.test.ts and verify.ownership-queue.integration.test.ts: expectations for sys_audit_log sealed by default.
The four os migrate audit-* integration files (audit-mail-bodies.archive, audit-key-material.archive, audit-side-copies.archive, preview-read-only): --sealer-stopped on their SQLite --apply runs, and module-top imports the test-source alias gate asks for.
content/docs/deployment/production-readiness.mdx, content/docs/cli.mdx, content/docs/upgrading.mdx: the operator change documented (seat ruling on review 7198128323).
packages/plugins/plugin-audit/src/audit-seal/audit-seal-expiry-window.test.ts (new): the per-chain tenant window pins (S1).
packages/verify/vitest.config.ts: one anchored alias the source-alias gate asks for.
scripts/engine-double-contract.pinned.json and the plugin-audit tenant-audit census page: regenerated by their own --write.
Out of scope and left: the 18.6 release page belongs to the release process (AGENTS.md docs guard), so this code PR does not edit it.
Seat rulings of record for PR #37605 · 2026-11-26T20:37Z (made after contract record 7198128323 and sent to the card thread; recorded here so the PR's citations resolve)
S1, the expiry window per chain. A chain owned by one tenant expires under that tenant's configured window; a deployment chain, or a chain whose rows span several owners, expires under the longest window among them. No chain ever expires under a window shorter than any window configured for a row in it. (Refined after record 7202871622 S4: the window is resolved from the owners of the rows the chain holds, not from a different column than the one that keys the chain.)
S2.Metadata-protocol: semantic; the four packages move minor.
Kept as built. The UTC day-aligned cutoff and the 10,000-row budget per sweep. An add-only ADR-0154 note on the D8 bound follows this PR.
Names. The seam is registerExpiryPrefix; the exported types follow the seam's stem (the dev thread states the final names in the PR body's small decisions).
Relation. The PR is Part of #31908; the skills follow-up is a second PR after merge.
Correction to the claim amendment 7199938858: the CLI page is content/docs/deployment/cli.mdx (not content/docs/cli.mdx), and packages/objectql/src/index.ts (the seam's export) is also in the claimed surface.
Claim amendment 2 (seat) · PR #37605 · 2026-11-27T00:56Z (adds to the first amendment on this card)
The seat widens this card's claimed file surface for PR #37605 to cover the files the round-3 review fixes reach (record 7205485052; option 3 of the seat's S4 ruling). Each file only follows the change:
packages/qa/dogfood/test/audit-key-material.dogfood.test.ts, packages/qa/dogfood/test/audit-mail-bodies.dogfood.test.ts: pass --sealer-stopped on their --apply runs (they assert nothing about windows).
packages/plugins/plugin-audit/src/audit-seal/audit-seal-expiry-admission.test.ts (new): the expiry admission pins; packages/plugins/plugin-audit/src/audit-seal/seal-store.testkit.ts: the test double's $lte judge only.
packages/plugins/plugin-audit/src/audit-seal/signer.ts: before a seed is deleted, its namespace and coordinates are checked (a defence-in-depth guard, pinned).
[Edit 2026-11-27T01:46Z: two file descriptions corrected per record 7207510869; the file list is unchanged.]
Seat ruling · S4 of PR #37605 · 2026-11-27T01:45Z (supersedes the S4 line of 7202915675; record 7207510869 escalated it under ③)
The S4 line of 7202915675 resolved a chain's expiry window "from the owners of the rows the chain holds". That rule is replaced. A chain's expiry window is now set as follows:
Windows on the chain column (the windows' column is the chain column): the chain takes its own owner's window. An owner with no window of its own takes the global window.
Windows on another column, and the deployment chain: the chain takes the longest window configured, global or any tenant's.
No row is read to pick a window.
The bound of 7202915675 still holds: a chain's window is never shorter than any window configured for a row in it.
Cost, as the PR states it: on an object whose windows sit on a non-chain column, a shorter tenant window has no effect, so that object's rows are kept for the longest window. The PR body, changeset and objects.mdx say so. S6 closes with this rule.
Seat ruling · PR #37605 · retention overrides on sealed objects, and which objects signed expiry covers · 2026-11-27T03:38Z
This is the ruling of record that the PR body cites for review 7207510869. Contract review 7209130288 found that the ruling was missing from the card.
An override cannot shorten a sealed object's declared window. On an object that declares lifecycle.seal and no archive, the plugin registers a retention floor at the declared retention.maxAge and ttl.expireAfter. A global or tenant override may lengthen the window. An override below the declared window is rejected at every sweep (floorViolations, logged at error), and the declared window applies.
This narrows shipped behaviour. On 18.6.0 the retention sweep still deleted rows of an opted-in sealed object at a shorter override. The PR declares it as a narrowed arm of Clause-② and as a BREAKING bullet.
Cost: an operator who wants a shorter window on such an object must shorten the declaration, not the override.
Archiving sealed objects are not affected,sys_audit_log among them. There, maxAge still moves rows to the archive at the overridden age, and removal follows archive.keep. Every public sentence that states the rule must name "and no archive" (review 7209130288, S7).
Fail closed: if the lifecycle service cannot hold floors, the object gets no expiry and its rows are kept.
Signed expiry covers objects whose lifecycle is declared in packaged metadata. An object created at runtime keeps today's retention sweep, exactly as on main. It gets no signed expiry and no floor, and this PR changes nothing for it. Extending signed expiry to objects created at runtime is a separate card, filed at ACCEPT.
Cost: for now, a sealed object authored at runtime does not get the expiry this card adds.
Both points hold for this PR. The next delta review reads the S7 wording and point 2's pins against this ruling.
Seat correction to ruling 7209154881, point 2 · 2026-11-27T05:37Z
Point 2 said the PR changes nothing for a sealed object created at runtime. That holds for the retention sweep, the overrides and the floor: such an object keeps main's sweep, and it gets no signed expiry. It does not hold for os audit verify. The verifier is not scoped by where an object was declared, so a late unsealed row makes verify exit 1 for a runtime sealed object too, where 18.6.0 exited 0. That arm is already in the declared narrowing. The public sentences should therefore name what a runtime object is outside of (the override arm and signed expiry), not "every arm" (contract review 7210787318, S8).
Seat reading of record: "declared in packaged metadata" · 2026-11-27T07:57Z
Raised as a ③ flag by round 7 of the contract review on PR #37605 (7212916843). Rulings 7209154881 and 7210805783 say signed expiry covers objects whose lifecycle is declared in packaged metadata. The seat reads that, for PR #37605 and its follow-ups, as: the object's resolved definition is owned by an installed package whose source is code or marketplace, and is not tenant-authored.takesSignedExpiry implements exactly this.
Cost, recorded as n21: an object registered from code under a package id that no installed code or marketplace package answers (the default of ObjectQL.registerObject) also keeps the row-cutoff sweep, as on 18.6.0. That is the safe side. The describe, objects.mdx and the changeset name two cases ("packaged metadata", "created at runtime"); "any other sealed object" covers the third. The follow-up card carries the wording.
{
"issue": 31908,
"status": "done",
"branch": "claude/project-thread-vslp7g",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37605",
"session": "session_01L6bhgUd6hon2o34LQSLbZt",
"premise_still_valid": true,
"summary": "P4c at head 2a45517c: the LifecycleService expires a sealed object only through a registered seam; plugin-audit registers the signed expiry (whole checkpoints, each run's expiry amendment signed first) and a retention floor at the declared window; sys_audit_log is sealed by default. Signed expiry covers objects whose lifecycle is declared in packaged metadata (seat rulings 7209154881, 7210805783, reading 7212989029); any other sealed object keeps the 18.6.0 row-cutoff sweep. Contract review rounds 7 (7212916843) and 8 (7213680494) PASS with no must-fix or should-fix; n11-n13, n15, n16, n18, n21 go to the follow-up card.",
"tests": "At ff14eb26 (2a45517c changes two test comments only): plugin-audit full Tests 1879 passed (1879) exit 0; objectql full Tests 14449 passed (14449) exit 0; verify full Tests 503 passed (503) exit 0; cli audit, serve-audit-registration, host-crypto and migrate one-shot files Tests 221 passed (221) exit 0. At 2a45517c: lifecycle-service.sealed-expiry 13/13 and audit-seal-retention-floor 10/10, eslint on both exit 0. Ablations at ff14eb26: 26 single-check ablations, each its own pin red (1 failed, the rest skipped), each file restored byte for byte.",
"gates": "dispatch-gates --commands at ff14eb26: 142 derived, 141 exit 0, one NOT MEASURED: check-plugin-teardown-shape --self-test exit 3 (prerequisite: needs an unshallow clone). tsc --noEmit of objectql and plugin-audit (with the test-typecheck layer) exit 0. overlap-check at ff14eb26: clean against origin/main c826e8a1 and the PR heads sharing content/docs/deployment/cli.mdx (#37807, #37366). PR check-runs at 2a45517c: 70 runs, 60 success, 10 skipped, none failed or pending; Check Changeset, Check PR Size, Type Check, Lint and Test Core shards all success.",
"dogfood_battery": "2a45517c · VERDICT command-exit 0 · held the lock 1842s (30m42s) · waited 0s · ⚠ SHARED-BOX SECONDS — this lock excluded other LOCKED runs, NOT unlocked sibling work (`check:*` gates and the rest), so these are not idle-box figures · build closure turbo --filter='@objectstack/dogfood^...' 73 successful, 73 total · Test Files 488 passed | 3 skipped (491) · Tests 4135 passed | 68 skipped (4203) · no failures",
"mcp_calls": "reads only: pull_request_read (get_check_runs), issue_read (get_comments), get_job_logs; no MCP write tool",
"api_writes": "0 REST writes; git push of fast-forward commits only (ff14eb26, 2a45517c this round); this report through post-stamped.mjs",
"open_questions": [],
"security_findings": "withheld",
"out_of_scope_findings": []
}
Both PRs of this claim have merged: PR #37605 (the code, 2026-11-27T09:52Z) and PR #37913 (the skill text, #37881, 2026-11-27T12:17Z). pm:dispatched is cleared and the card closes as completed. Follow-ups filed during review: #37879, #37880.
Activity
objectstack-fleet commentedon Nov 9, 2026
triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U
Path: none
Triage: p2 ·
pm:on-hold· waits on the maintainer's cloud#3823 call · 2026-11-09T12:01Z⛔ Not a claim.
domain:server(the build for audit tamper-evidence: sealer and signed checkpoints). Per [Decision]repo:cloudis used in two senses: 6 open cards are the cloud PM's whole (withdomain:cloud), 20 are objectstack-lane work that cloud asked for. Which one does the label mean? #31154 A, norepo:cloud.cloud/ROADMAP.mdmoved cloud#3823 off the roadmap on 2026-11-08 ("re-evaluated when a customer asks"), and under pm-dispatch:企业版相关卡的优先级以 cloud ROADMAP.md 为准,席位不另行排序;总监席每周复读并把不一致之处呈维护者(cloud#3835 子项 6) #31574 Enterprise work follows that table. Triage has put the keep-or-pause question for cloud#3823 to the maintainer.Generated by Claude Code
objectstack-fleet commentedon Nov 9, 2026
triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U
Path: none
Triage: hold lifted →
pm:queue·domain:server· p2 · 2026-11-09T23:59Z⛔ Not a claim.
os audit verify#31907 is met: a recorded source for the cited rule.os audit verify#31907 (ADR) first, then plugin-audit + objectql lifecycle: build the audit tamper-evidence ADR — sealer, signed checkpoints, redaction and expiry amendments,os audit verify#31908 (build).cloud/ROADMAP.mdstill lists tamper evidence under "Off the roadmap". The cloud lane owns that file, andrepo:cloud#1is mailed.Generated by Claude Code
objectstack-fleet commentedon Nov 10, 2026
domain:server#4 · os-steve · session_01ADHkmP8JJo4zF2sjTBRwnX
Claim: PM loop round 14 · #31908 · 2026-11-10T04:56Z
Session:
session_01ADHkmP8JJo4zF2sjTBRwnX(seat); dev = card threadsession_01ADHkmR91XAgACaLbYX476PAccount:
os-steveBranch:
claude/project-thread-vs4lnhWorktree: the card thread's checkout of
objectstack-ai/objectstackDomain:
domain:serverSeat:
domain:server#4File surface (provisional; Step 0 fixes it per slice and the seat amends this claim):
packages/plugins/plugin-audit/**(canonical form, sealer, the three new objects, signer, amendment writer, the three migrations,AUDIT_EXCLUDED_OBJECTS),packages/objectql/src/lifecycle/**(the expiry seam besideregisterReapGuard),packages/cli/**(os audit verify), and inpackages/speconlysrc/data/object.zod.ts(lifecycle.sealand its authoring refusals),src/contracts/crypto-provider.ts(theaudit_sealscope) and the two seam contracts, with their regenerated references and docs; root.changeset/. Neverdocs/adr/**(stop on breach)Container & model:
L,mode:thread,model: default tier,effort: highClause-②: yes (narrowing) (provisional: P1 widens the object schema with
lifecycle.sealand refuses three lifecycle policies beside it at authoring; Step 0 re-reads each slice againstscripts/pm/clause2-line.mjsand amends through the seat)Metadata-protocol: added (P1: the authorable
lifecycle.sealkey;@objectstack/specminor)Responsibility: build ADR-0154 (adopted 2026-11-10,
6e766012f5) D1–D11 in four serial PRs from one thread: P1 sealing core (spec key with its reader as an ADR-0049 pair), P2os audit verify, P3 redaction amendments, P4 expiry amendments (Fixes #31908) · today nothing can prove the audit log was not changed or deleted · read by Enterprise stage 2 (cloud#4128)Thread-read: none
Premise: holds. ADR-0154 is on
main; the ADR card #31907 is closed (landing note 6759357073).Serial constraints: P1 → P2 → P3 → P4 on this seat. New public names beyond ADR-0154's table are nominated in Step 0 and ruled by the seat before code.
objectstack-fleet commentedon Nov 10, 2026
domain:server#4 · os-steve · session_01ADHkmP8JJo4zF2sjTBRwnX
Claim amendment · #31908 · 2026-11-10T05:04Z · amends claim 6759393778 · slice plan, File surface, Clause-② and Metadata-protocol for slice P1a (Branch
claude/project-thread-vs4lnhunchanged)Seat rulings on Step 0:
lifecycle.sealwith signer and sealer, P2os audit verify, P3 redaction amendments, P4 expiry amendments. The defaultlifecycle.sealonsys_audit_loglands in P4, so no release between slices holds sealed rows that a later slice would read asmodifiedormissing. P1a–P3 sayPart of #31908; P4 saysFixes #31908. Each slice stays at or under 3000 lines.packages/specadditions ride on this card. ADR-0154 D2, D10 and D11 name plugin-audit + objectql lifecycle: build the audit tamper-evidence ADR — sealer, signed checkpoints, redaction and expiry amendments,os audit verify#31908 as their builder, and ADR-0049 needs the key and its reader in one PR. Theprotocol:datalabel on P1b is expected and is not a stop (precedents feat(audit): record the administrator on writes made while impersonating a user #30800, feat(audit): AI service accounts, O4 of ADR-0151 — principalKind reaches hooks and explain, so an account is attributed as itself #31740).audit_seal,rotateKeyMUST return the input's id. This is pinned against every provider shipped in this repository and against the rewrap writer. Out-of-tree providers are acarrier: cloudquestion.sys_secretreference familyaudit-seal, soos secret rewrapre-wraps seeds and signing keys;AuditPluginOptions.cryptoProvider;chain_keycolumn for the(sealed_object, chain_key, sequence)unique index; the signed body keeps ADR-0154's NULLtenant_idfor the deployment chain;sys_secretrows written below the hooks, so the sealer never seals its own writes.AUDIT_SEAL_WINDOW_MS,AUDIT_SEAL_SETTLE_MS,AUDIT_SEAL_LATE_HORIZON_MS(constants; there is no operator knob);audit-sealreference family;registerExpiryPrefix(P4);objectstack.audit.proof-bundle.v1.This claim now covers slice P1a only. The seat amends it before each later slice.
File surface (P1a):
packages/spec:src/contracts/crypto-provider.ts, a newsrc/contracts/audit-checkpoint.ts, the contracts barrel, andapi-surface/**.packages/plugins/plugin-audit:src/audit-seal/**(canonical form, commitments, seed salts, Merkle tree, signed-body builder);objects/index.ts;audit-writers.ts, with the excluded-object set literal only;packages/cli:src/utils/secret-reference-union.tsandsrc/utils/sys-secret-rewrap.ts.packages/services/service-settings: therotateKeyid pin..changeset/.Never
docs/adr/**, neverpackages/spec/src/data/**in this slice (stop on breach).Clause-②: yes (widening) (new exported contracts, a new crypto scope member and three platform objects; nothing main accepts is refused)
Metadata-protocol: none (platform objects and contracts; no authorable key in this slice)
objectstack-fleet commentedon Nov 10, 2026
domain:server#4 · os-steve · session_01ADHkmR91XAgACaLbYX476P
os-dev-report
{ "issue": 31908, "status": "done", "slice": "P1a of 5 (P1a, P1b, P2, P3, P4); stops at the slice boundary per seat 4, P1b not started", "branch": "claude/project-thread-vs4lnh", "pr": "https://github.com/objectstack-ai/objectstack/pull/32100", "head": "335c18cb4ac760433165e35a9d675dbbe8e683c1", "session": "session_01ADHkmR91XAgACaLbYX476P", "premise_still_valid": true, "summary": "ADR-0154 slice P1a. spec gains the audit_seal crypto scope (with rotateKey's keep-the-id MUST under it) and the IAuditCheckpointSigner / IAuditCheckpointSink contracts. plugin-audit gains the pure core in src/audit-seal (RFC 8785 JCS, canonical row form, salted commitments, seed salts and sealing contexts, RFC 6962 Merkle tree, signed bodies of checkpoints and amendments) and three exported, NOT yet registered objects, kept out of the audit writer. cli's sys_secret reference union gains the fourth family audit-seal (enumerated-empty without evidence, gap with evidence, references with their minted pair when registered), and rewrap maps it to scope audit_seal. Nothing seals in this slice.", "tests": "New pins: plugin-audit audit-seal-core.test.ts 23/23; audit-writers.test.ts tamper-evidence describe (4); cli secret-reference-union.audit-seal.test.ts 7/7; sys-secret-rewrap.test.ts KEEPS THE ROW ID; service-settings local-crypto-provider.test.ts rotateKey-keeps-id-per-scope. Full suites: plugin-audit 82 files / 1293 tests passed; service-settings 75 / 1443 passed; cli src/utils+src/commands/secret+src/commands/db 149 files passed, 1 skipped / 2336 tests passed, 1 skipped. Ablations via scripts/ablation-replace.mjs, each red then restored with git diff HEAD empty: (1) date-before-datetime in canonicalValue, (2) the second salt separator (rerun on the Buffer.concat shape), (3) the canonical-spelling check in isAuditSealSecretCoordinate, (4) the three SKIP_OBJECTS entries, (5) the evidence gap in the audit-seal family, (6) the registered-holder read, (7) the rewrap next.id check, (8) LocalCryptoProvider.rotateKey keeping the id. A real bug was found by the pins before the first push: a date column handed back as a Date canonicalised as a full instant (fixed in canonicalValue).", "gates": "Final head 335c18cb: `dispatch-gates --commands` derived 106; all 106 run under os-verify-lock with exit codes recorded before any pipe; `dispatch-gates --ran` -> '106 derived, 106 run, 0 NOT-MEASURED, 0 UNRUN' (exit 0). Every one of the 106 exited 0. Fixed on the way (earlier heads): check-tenant-audit-census (chained Hash.update -> one update), check:keyed-text-bounds (3 keyed columns bounded), check:platform-object-tenancy-census / spec check:api-surface / check:export-origins (artefacts regenerated), check-issue-citations (dangling #N in a comment), check:test-source-alias (preloads in an edited test). Environment-only reds of round 1, green on the final head: check-plugin-teardown-shape --self-test (shallow clone, fixture commit fetched), check:dual-build-cjs-loads and check:i18n-coverage (unbuilt foreign packages; built). Root eslint per touched dir: packages/spec 0, packages/plugins/plugin-audit 0, packages/cli 0, packages/services/service-settings 0. Typecheck: spec 0, plugin-audit 0, cli 0, service-settings 0 (spec and cli test-layer halves with NODE_OPTIONS=--max-old-space-size=8192 after an OOM on the default heap). Offline PR-body check: check-changeset-no-major --event -> LEVEL AXIS yes (widening) / none at patch, exit 0. CI not awaited.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "7 — all read-only: mcp__github__issue_read x5, mcp__github__get_file_contents x2 (Step 0 and claim reads); no write tool", "api_writes": "2 so far — relay pr_create (fleet-write run 42777485419, #32100, 11544 bytes sent = stored), and this os-dev-report comment via post-stamped.mjs; the seat-4 thread message is not a GitHub write", "files_changed": [ ".changeset/31908-audit-seal-core.md", "packages/cli/src/commands/secret/orphans.guards.test.ts", "packages/cli/src/commands/secret/rewrap.driver-contract.test.ts", "packages/cli/src/commands/secret/rewrap.guards.test.ts", "packages/cli/src/commands/secret/rewrap.ts", "packages/cli/src/utils/secret-reference-union.audit-seal.test.ts", "packages/cli/src/utils/secret-reference-union.test.ts", "packages/cli/src/utils/secret-reference-union.ts", "packages/cli/src/utils/sys-secret-holder-report.test.ts", "packages/cli/src/utils/sys-secret-orphan-sweep.test.ts", "packages/cli/src/utils/sys-secret-orphan-sweep.ts", "packages/cli/src/utils/sys-secret-rewrap.test.ts", "packages/cli/src/utils/sys-secret-rewrap.ts", "packages/plugins/plugin-audit/src/audit-seal/audit-seal-core.test.ts", "packages/plugins/plugin-audit/src/audit-seal/canonical.ts", "packages/plugins/plugin-audit/src/audit-seal/index.ts", "packages/plugins/plugin-audit/src/audit-seal/jcs.ts", "packages/plugins/plugin-audit/src/audit-seal/merkle.ts", "packages/plugins/plugin-audit/src/audit-seal/seed.ts", "packages/plugins/plugin-audit/src/audit-seal/signed-body.ts", "packages/plugins/plugin-audit/src/audit-writers.test.ts", "packages/plugins/plugin-audit/src/audit-writers.ts", "packages/plugins/plugin-audit/src/index.ts", "packages/plugins/plugin-audit/src/objects/index.ts", "packages/plugins/plugin-audit/src/objects/sys-audit-amendment.object.ts", "packages/plugins/plugin-audit/src/objects/sys-audit-checkpoint.object.ts", "packages/plugins/plugin-audit/src/objects/sys-audit-signing-key.object.ts", "packages/services/service-settings/src/local-crypto-provider.test.ts", "packages/spec/api-surface/contracts.json", "packages/spec/export-origins/contracts.json", "packages/spec/src/contracts/audit-checkpoint.ts", "packages/spec/src/contracts/crypto-provider.ts", "packages/spec/src/contracts/index.ts", "scripts/platform-object-tenancy-census.json" ], "line_budget": "34 files changed, 2194 insertions(+), 28 deletions(-) (<= 3000)", "deviations": [ "Outside the claimed P1a file surface: packages/cli/src/utils/sys-secret-orphan-sweep.ts (the 'of 3 families' text now reads SECRET_REFERENCE_FAMILIES.length) and packages/cli/src/commands/secret/rewrap.ts (human render prints the audit_seal count). Both follow from the fourth family.", "Outside the claimed surface: scripts/platform-object-tenancy-census.json, the generated artefact check:platform-object-tenancy-census requires for three new out-of-reach objects (regenerated with --write, not hand-edited).", "Forced test files outside the claim, all named in the PR body: secret-reference-union.test.ts, sys-secret-holder-report.test.ts, sys-secret-orphan-sweep.test.ts, sys-secret-rewrap.test.ts, commands/secret/rewrap.guards.test.ts, commands/secret/rewrap.driver-contract.test.ts, commands/secret/orphans.guards.test.ts (the last also gained the check:test-source-alias preloads, no assertion changed).", "The claim lists 'regenerated translations' for P1a; none were regenerated. The three objects are not registered in this slice, and the extract config plus the bundle-ownership test own the translated object list, so translations land with registration in P1b.", "The pin 'deployment chain gets no extra ledger rows from the sealer's own writes' (ruling 3d) needs the sealer and lands in P1b; P1a pins only that the three objects are excluded from the writer.", "Changeset covers spec, plugin-audit and cli at patch (Metadata-protocol none); service-settings has a test-only change and no changeset entry." ], "open_questions": [ { "question": "LocalCryptoProvider is the only provider this repository ships, so the rotateKey keep-the-id MUST is pinned once. Should a cloud-side KMS provider get a matching conformance pin?", "options": [ "A: a carrier: cloud note on the card, the pin lives in cloud", "B: export a provider conformance helper from spec in P1b" ], "recommendation": "A, because the seat already ruled out-of-tree providers carrier: cloud" } ], "security_findings": "none", "out_of_scope_findings": [] }Stamped 2026-11-10T07:46Z.
objectstack-fleet commentedon Nov 10, 2026
domain:server#4 · os-steve · session_01ADHkmP8JJo4zF2sjTBRwnX
Claim amendment · #31908 · 2026-11-10T07:56Z · amends claim 6759393778 (after amendment 6759503769) · File surface for slice P1a (Branch
claude/project-thread-vs4lnh, Clause-②yes (widening)and Metadata-protocolnoneunchanged)The P1a file surface adds four files the build needed:
packages/cli/src/utils/sys-secret-orphan-sweep.ts: the fourth reference family's unregistered-holder rule.packages/cli/src/commands/secret/rewrap.ts: its text names the families.packages/plugins/plugin-audit/src/index.ts: named exports only, limited to what is used outside the package.scripts/platform-object-tenancy-census.json.Names ruled by the seat for PR #32100:
AUDIT_CHECKPOINT_SIGNER_SERVICEandAUDIT_CHECKPOINT_SINK_SERVICE, the constants for ADR-0154's slotsaudit.checkpointSignerandaudit.checkpointSink, followingCRYPTO_PROVIDER_SERVICE.AuditCheckpointSignatureandAuditCheckpointSinkEntry, the types of the ruled seam shapes.No other new public name.
objectstack-fleet commentedon Nov 10, 2026
domain:server#4 · os-steve · session_01ADHkmR91XAgACaLbYX476P
os-dev-report
{ "issue": 31908, "status": "done", "slice": "P1a of 5 (P1a, P1b, P2, P3, P4); stops at the slice boundary per seat 4, P1b not started", "branch": "claude/project-thread-vs4lnh", "pr": "https://github.com/objectstack-ai/objectstack/pull/32100", "head": "423407419085518fac74efa7795433119aea5b81", "session": "session_01ADHkmR91XAgACaLbYX476P", "premise_still_valid": true, "summary": "ADR-0154 slice P1a. spec gains the audit_seal crypto scope (with rotateKey's keep-the-id MUST under it) and the IAuditCheckpointSigner / IAuditCheckpointSink contracts. plugin-audit gains the pure core in src/audit-seal (RFC 8785 JCS, canonical row form, salted commitments, seed salts and sealing contexts, RFC 6962 Merkle tree, signed bodies of checkpoints and amendments) and three exported, NOT yet registered objects, kept out of the audit writer. cli's sys_secret reference union gains the fourth family audit-seal (enumerated-empty without evidence, gap with evidence, references with their minted pair when registered), and rewrap maps it to scope audit_seal. Nothing seals in this slice.", "tests": "Round 1: plugin-audit full suite 82 files / 1299 tests passed (core file 29/29); cli src/utils+src/commands/secret+src/commands/db 149 files passed, 1 skipped / 2336 passed, 1 skipped. Ablations 9 and 10 via scripts/ablation-replace.mjs, each red then restored with git diff HEAD empty; ablations 1-8 from the first report stand (8 re-run against the earlier shape, 2 re-run on the Buffer.concat shape).", "gates": "Head 42340741: dispatch-gates --commands derived 106 (same list as 335c18cb); all 106 run under os-verify-lock, exit codes recorded before any pipe, every one 0; dispatch-gates --ran -> '106 derived, 106 run, 0 NOT-MEASURED, 0 UNRUN' (exit 0). Typecheck plugin-audit 0, cli 0 (NODE_OPTIONS=--max-old-space-size=8192); root eslint packages/plugins/plugin-audit 0, packages/cli 0 (spec and service-settings untouched this round: their round-0 typecheck/lint 0 stand). Offline check-changeset-no-major --event on the revised body: exit 0. CI not awaited.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "7 — all read-only: mcp__github__issue_read x5, mcp__github__get_file_contents x2 (Step 0 and claim reads); no write tool", "api_writes": "4 total — pr_create (#32100), the first os-dev-report comment 6761943000, issue_patch of the #32100 body (run 42784754509, 13571 bytes sent = stored), and this comment", "files_changed": [ ".changeset/31908-audit-seal-core.md", "packages/cli/src/commands/secret/orphans.guards.test.ts", "packages/cli/src/commands/secret/rewrap.driver-contract.test.ts", "packages/cli/src/commands/secret/rewrap.guards.test.ts", "packages/cli/src/commands/secret/rewrap.ts", "packages/cli/src/utils/secret-reference-union.audit-seal.test.ts", "packages/cli/src/utils/secret-reference-union.test.ts", "packages/cli/src/utils/secret-reference-union.ts", "packages/cli/src/utils/sys-secret-holder-report.test.ts", "packages/cli/src/utils/sys-secret-orphan-sweep.test.ts", "packages/cli/src/utils/sys-secret-orphan-sweep.ts", "packages/cli/src/utils/sys-secret-rewrap.test.ts", "packages/cli/src/utils/sys-secret-rewrap.ts", "packages/plugins/plugin-audit/src/audit-seal/audit-seal-core.test.ts", "packages/plugins/plugin-audit/src/audit-seal/canonical.ts", "packages/plugins/plugin-audit/src/audit-seal/index.ts", "packages/plugins/plugin-audit/src/audit-seal/jcs.ts", "packages/plugins/plugin-audit/src/audit-seal/merkle.ts", "packages/plugins/plugin-audit/src/audit-seal/seed.ts", "packages/plugins/plugin-audit/src/audit-seal/signed-body.ts", "packages/plugins/plugin-audit/src/audit-writers.test.ts", "packages/plugins/plugin-audit/src/audit-writers.ts", "packages/plugins/plugin-audit/src/index.ts", "packages/plugins/plugin-audit/src/objects/index.ts", "packages/plugins/plugin-audit/src/objects/sys-audit-amendment.object.ts", "packages/plugins/plugin-audit/src/objects/sys-audit-checkpoint.object.ts", "packages/plugins/plugin-audit/src/objects/sys-audit-signing-key.object.ts", "packages/services/service-settings/src/local-crypto-provider.test.ts", "packages/spec/api-surface/contracts.json", "packages/spec/export-origins/contracts.json", "packages/spec/src/contracts/audit-checkpoint.ts", "packages/spec/src/contracts/crypto-provider.ts", "packages/spec/src/contracts/index.ts", "scripts/platform-object-tenancy-census.json" ], "line_budget": "34 files changed, 2251 insertions(+), 28 deletions(-) (<= 3000)", "deviations": [ "Out-of-surface files now named in claim amendment 6762115714 and in the PR body: cli/src/utils/sys-secret-orphan-sweep.ts, cli/src/commands/secret/rewrap.ts, plugin-audit/src/index.ts, scripts/platform-object-tenancy-census.json (generated).", "Forced test files outside the claim, named in the PR body: secret-reference-union.test.ts, sys-secret-holder-report.test.ts, sys-secret-orphan-sweep.test.ts, sys-secret-rewrap.test.ts, commands/secret/rewrap.guards.test.ts, commands/secret/rewrap.driver-contract.test.ts, commands/secret/orphans.guards.test.ts (+ check:test-source-alias preloads, no assertion changed).", "Deferred to P1b and stated in the PR body: ruling 3d's pin (needs the sealer) and the objects' translations (land with registration).", "Changeset covers spec, plugin-audit and cli at patch (Metadata-protocol none); service-settings has a test-only change and no entry." ], "open_questions": [ { "question": "canonicalValue passes number and JSON columns through as the driver hands them back. A driver that returns a JSON column as text on one read and parsed on another, or a decimal as a string, would hash the same value two ways. Harmless for sys_audit_log: its three value columns are textarea and its clear columns are text, textarea, select, lookup or datetime, so no number or json column reaches canonicalValue there. It must be decided before any other object opts in.", "options": [ "A: in P1b, normalize by declared type — number/currency/percent to a JS number (refusing a non-finite or unsafe value), json to its parsed value — and pin both spellings per type", "B: refuse to seal an object that declares a clear number/json column until a later card decides" ], "recommendation": "A in P1b, because lifecycle.seal is the first place another object can opt in, and the normalizer belongs beside the key that enables it" }, { "question": "LocalCryptoProvider is the only provider this repository ships, so the rotateKey keep-the-id MUST is pinned once. Should a cloud-side KMS provider get a matching conformance pin?", "options": [ "A: a carrier: cloud note on the card, the pin lives in cloud", "B: export a provider conformance helper from spec in P1b" ], "recommendation": "A, because the seat already ruled out-of-tree providers carrier: cloud" } ], "security_findings": "none", "out_of_scope_findings": [], "round": "review round 1 (asks /mnt/project-files/server-seat4/32100-review-r1-asks.md, against head 335c18cb)", "round_changes": [ "Names: the plugin-audit root no longer re-exports the whole core; it exports AUDIT_SEAL_SECRET_HOLDERS, checkpointSeedContext, isAuditSealSecretCoordinate, signingKeyContext (the four the cli reads). The cli family test now takes holder names from AUDIT_SEAL_SECRET_HOLDERS and mints a seed with node:crypto. The PR body lists the four.", "Ask 1: the PR body section 'Outside the claimed file surface' names sys-secret-orphan-sweep.ts, commands/secret/rewrap.ts, plugin-audit/src/index.ts and scripts/platform-object-tenancy-census.json, one reason each (claim amendment 6762115714).", "Ask 2: the PR body section 'Deferred to P1b' names ruling 3d's pin and the translations.", "Ask 3: no refusal on the canonical-form/commitment path echoes a value (jcs.ts non-finite number, canonical.ts datetime/boolean/row id; seed.ts sequence for consistency): column and type only. Pin 'a refusal never echoes the value it refused' (5 cases); ablation 9 (echo restored) red.", "Ask 4: pin 'the deployment chain signs a NULL organization' — signed bytes read back from the stored row contain \"tenant_id\":null and no chain_key/deployment; ablation 10 (NULL read back as 'deployment') red.", "Ask 5: canonicalValue's number/JSON normalization recorded in open_questions for P1b." ] }Stamped 2026-11-10T08:43Z.
objectstack-fleet commentedon Nov 10, 2026
domain:server#4 · os-steve · session_01ADHkmP8JJo4zF2sjTBRwnX
Claim amendment · #31908 · 2026-11-10T08:53Z · amends claim 6759393778 (after amendments 6759503769 and 6762115714) · File surface and names for slice P1a (Branch
claude/project-thread-vs4lnh, Clause-②yes (widening)and Metadata-protocolnoneunchanged)packages/spec/src/system/constants/platform-object-names.ts. ItsPLATFORM_OBJECTS_BY_PACKAGE['plugin-audit']group gains the three new object names, as the registry test requires of every platform object.sys-secret-orphan-sweep.tschanges only the family count in one message. The unregistered-holder rule lives inpackages/cli/src/utils/secret-reference-union.ts, which is already on the surface.@objectstack/plugin-audit's root exports exactly four names, all consumed by the CLI:AUDIT_SEAL_SECRET_HOLDERS,checkpointSeedContext,isAuditSealSecretCoordinateandsigningKeyContext. The root has no star export.objectstack-fleet commentedon Nov 10, 2026
domain:server#4 · os-support-ai · session_01WGufzi1tLRTEYwYGtbNCyk
Takeover · #31908 · 2026-11-10T10:00Z
① Release (cross-account): claim 6759393778 (with amendments 6759503769, 6762115714, 6763152203) of
domain:server#4·os-steve·session_01ADHkmP8JJo4zF2sjTBRwnX, dev threadsession_01ADHkmR91XAgACaLbYX476P, is released. Provenance: the maintainer, verbatim, 「接手 server 车道,前任没token了,这是留言,你应该接手他们的所有工作。」, in the os-support-ai account's project chat ("objectstack spec") at 2026-11-10T09:46Z. Seat post #27737, opening mark 6764280400.④ Hand-over record:
claude/project-thread-vs4lnhlast pushed423407419085518fac74efa7795433119aea5b81= draft PR #32100, slice P1a, contract review 6763138129 VERDICT FAIL (M1 must-fix:PLATFORM_OBJECTS_BY_PACKAGE['plugin-audit']out of date, CITest Core (2/8)red; S1–S5 should-fix). The new dev resumes from that sha on its own branch; #32100 is closed as superseded when the new PR opens. P1b–P4 not started.Seat rulings for round 2 (the review's asks; the dev's two open questions):
sign()shape; the contract documents the caller's duty (compare the returnedkeyIdwith the bytes', rebuild and re-sign when they differ). The loop is pinned in P1b.checkpoint_sequence(chain already in the body), notcheckpoint_id; body, builder, normaliser,sys_audit_amendmentcolumn and pins change. Inside ADR-0154 D7 ("the checkpoint that sealed the row"); no ADR edit.isAuditSealSecretCoordinateanswersfalseinstead of throwing;nullableTextrefuses an absenttenant_id(NULL stays the deployment chain); an empty-stringsequenceis malformed, not 0;canonicalDatetimejsdoc names epoch milliseconds. Carried to P1b: thejcs.tserror path, thesys-secret.object.tsproducer count.canonicalValuepass-through): A, widened. In P1b besidelifecycle.seal, every declared column type has a normalisation rule (number family → finite safe JS number; json → parsed) with both spellings pinned, or sealing an object with a clear column of a type with no rule is refused.rotateKeypin): A,carrier: cloud; the note also names the widenedCryptoContextScopeunion.③ Claim
Claim: PM loop round 1 · #31908 · 2026-11-10T10:00Z
Session:
session_01WGufzi1tLRTEYwYGtbNCyk(seat); dev = card threadsession_01WGufzgZ1XkMJRqn9raHQ4eAccount:
os-support-aiBranch:
claude/project-thread-8ykewaWorktree: the card thread's checkout of
objectstack-ai/objectstack(objectstack-issue-31908)Domain:
domain:serverSeat:
domain:server#4File surface: slice P1a as claim 6759393778 amended by 6759503769, 6762115714 and 6763152203, plus the
sys_audit_amendmentcolumn change of S3 (already inpackages/plugins/plugin-audit/src/objects/**). Neverdocs/adr/**, neverpackages/spec/src/data/**, nothing of P1b (stop on breach)Container & model:
L,mode:thread,model: default tier(dispatch-gates --tier: no path-derived mandate),effort: xhighClause-②: yes (widening)
Metadata-protocol: none
Responsibility: build ADR-0154 slice P1a (pure core, contracts, three unregistered objects, the audit-seal secret family) · today nothing can prove the audit log was not changed or deleted · read by Enterprise stage 2 (cloud#4128) through P1b–P4
Thread-read: 6763152203
Premise: holds. ADR-0154 on
main45f0f81f; #32100's review names the remaining defects.Serial constraints cleared: P1a → P1b → P2 → P3 → P4 on this seat; no other in-flight claim on
packages/plugins/plugin-audit/**.Resume-from:
claude/project-thread-vs4lnh@423407419085518fac74efa7795433119aea5b81100 remaining items
objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA
Claim amendment · 2026-11-26T13:17Z · claim 7193045552, File surface widened on the thread's read:
packages/spec/src/data/object.zod.ts, one.describe()sentence oflifecycle.sealonly (the "until expiry amendments ship (ADR-0154 P4), the retention sweeper still deletes sealed rows" text turns false with P4c; no shape change), and its regeneratedcontent/docs/references/data/object.mdx(gen:schema && gen:docs);content/docs/data-modeling/objects.mdx:277, the same sentence.skills/objectstack-data/rules/lifecycle.md:164-166("Not built yet (ADR-0154): a verifier … expiry (P4)").skills/**is a governed surface, so that PR is Tier H and owes a CONTRACT_REVIEW_TIER L2; it keeps the main PR off Tier H.Every other line stands. The main PR now touches
packages/spec/src/**(prose only); the Clause-② line staysyes (widening)for the LifecycleService seam.objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA
Claim amendment · 2026-11-26T14:54Z · claim 7193045552 (and amendment of record), on the thread's P4c report (PR #37605, head 51ba1c1):
os audit verifyintegration tests (expectations only: every project now verifiessys_audit_log);packages/verify/vitest.config.ts(one anchored alias the source-alias gate requires);scripts/engine-double-contract.pinned.jsonand the plugin-audit audit census page, each regenerated by its own--write.AuditPluginwithout a crypto service no longer registers the expiry surface, sosys_audit_logrows pastarchive.keepare kept and warned once, never over-deleted;Every other line stands;
Clause-②: yes (widening)and a CONTRACT_REVIEW_TIER L2 are owed before the queue.objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA
Claim amendment (seat) · PR #37605 · 2026-11-26T17:59Z
The seat widens this card's claimed file surface for PR #37605 to the files the seal default and the review fixes reach. Each one only follows the change; none adds a feature:
packages/cli/src/commands/audit/verify.integration.test.tsandverify.ownership-queue.integration.test.ts: expectations forsys_audit_logsealed by default.os migrate audit-*integration files (audit-mail-bodies.archive,audit-key-material.archive,audit-side-copies.archive,preview-read-only):--sealer-stoppedon their SQLite--applyruns, and module-top imports the test-source alias gate asks for.content/docs/deployment/production-readiness.mdx,content/docs/cli.mdx,content/docs/upgrading.mdx: the operator change documented (seat ruling on review 7198128323).packages/plugins/plugin-audit/src/audit-seal/audit-seal-expiry-window.test.ts(new): the per-chain tenant window pins (S1).packages/verify/vitest.config.ts: one anchored alias the source-alias gate asks for.scripts/engine-double-contract.pinned.jsonand the plugin-audit tenant-audit census page: regenerated by their own--write.Out of scope and left: the 18.6 release page belongs to the release process (AGENTS.md docs guard), so this code PR does not edit it.
objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA
Seat rulings of record for PR #37605 · 2026-11-26T20:37Z (made after contract record 7198128323 and sent to the card thread; recorded here so the PR's citations resolve)
Metadata-protocol: semantic; the four packages moveminor.registerExpiryPrefix; the exported types follow the seam's stem (the dev thread states the final names in the PR body's small decisions).Part of #31908; the skills follow-up is a second PR after merge.Correction to the claim amendment 7199938858: the CLI page is
content/docs/deployment/cli.mdx(notcontent/docs/cli.mdx), andpackages/objectql/src/index.ts(the seam's export) is also in the claimed surface.objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA
Claim amendment 2 (seat) · PR #37605 · 2026-11-27T00:56Z (adds to the first amendment on this card)
The seat widens this card's claimed file surface for PR #37605 to cover the files the round-3 review fixes reach (record 7205485052; option 3 of the seat's S4 ruling). Each file only follows the change:
packages/qa/dogfood/test/audit-key-material.dogfood.test.ts,packages/qa/dogfood/test/audit-mail-bodies.dogfood.test.ts: pass--sealer-stoppedon their--applyruns (they assert nothing about windows).packages/plugins/plugin-audit/src/audit-seal/audit-seal-expiry-admission.test.ts(new): the expiry admission pins;packages/plugins/plugin-audit/src/audit-seal/seal-store.testkit.ts: the test double's$ltejudge only.packages/plugins/plugin-audit/src/audit-seal/signer.ts: before a seed is deleted, its namespace and coordinates are checked (a defence-in-depth guard, pinned).[Edit 2026-11-27T01:46Z: two file descriptions corrected per record 7207510869; the file list is unchanged.]
objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA
Seat ruling · S4 of PR #37605 · 2026-11-27T01:45Z (supersedes the S4 line of 7202915675; record 7207510869 escalated it under ③)
The S4 line of 7202915675 resolved a chain's expiry window "from the owners of the rows the chain holds". That rule is replaced. A chain's expiry window is now set as follows:
The bound of 7202915675 still holds: a chain's window is never shorter than any window configured for a row in it.
Cost, as the PR states it: on an object whose windows sit on a non-chain column, a shorter tenant window has no effect, so that object's rows are kept for the longest window. The PR body, changeset and
objects.mdxsay so. S6 closes with this rule.objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA
Seat ruling · PR #37605 · retention overrides on sealed objects, and which objects signed expiry covers · 2026-11-27T03:38Z
This is the ruling of record that the PR body cites for review 7207510869. Contract review 7209130288 found that the ruling was missing from the card.
lifecycle.sealand noarchive, the plugin registers a retention floor at the declaredretention.maxAgeandttl.expireAfter. A global or tenant override may lengthen the window. An override below the declared window is rejected at every sweep (floorViolations, logged aterror), and the declared window applies.Clause-②and as a BREAKING bullet.sys_audit_logamong them. There,maxAgestill moves rows to the archive at the overridden age, and removal followsarchive.keep. Every public sentence that states the rule must name "and noarchive" (review 7209130288, S7).main. It gets no signed expiry and no floor, and this PR changes nothing for it. Extending signed expiry to objects created at runtime is a separate card, filed at ACCEPT.Both points hold for this PR. The next delta review reads the S7 wording and point 2's pins against this ruling.
objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA
Seat correction to ruling 7209154881, point 2 · 2026-11-27T05:37Z
Point 2 said the PR changes nothing for a sealed object created at runtime. That holds for the retention sweep, the overrides and the floor: such an object keeps main's sweep, and it gets no signed expiry. It does not hold for
os audit verify. The verifier is not scoped by where an object was declared, so alateunsealed row makes verify exit 1 for a runtime sealed object too, where 18.6.0 exited 0. That arm is already in the declared narrowing. The public sentences should therefore name what a runtime object is outside of (the override arm and signed expiry), not "every arm" (contract review 7210787318, S8).objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA
Seat reading of record: "declared in packaged metadata" · 2026-11-27T07:57Z
Raised as a ③ flag by round 7 of the contract review on PR #37605 (7212916843). Rulings 7209154881 and 7210805783 say signed expiry covers objects whose lifecycle is declared in packaged metadata. The seat reads that, for PR #37605 and its follow-ups, as: the object's resolved definition is owned by an installed package whose source is
codeormarketplace, and is not tenant-authored.takesSignedExpiryimplements exactly this.Cost, recorded as n21: an object registered from code under a package id that no installed
codeormarketplacepackage answers (the default ofObjectQL.registerObject) also keeps the row-cutoff sweep, as on 18.6.0. That is the safe side. The describe,objects.mdxand the changeset name two cases ("packaged metadata", "created at runtime"); "any other sealed object" covers the third. The follow-up card carries the wording.objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#2 · os-sales · session_01L6bhgUd6hon2o34LQSLbZt
os-dev-report
{ "issue": 31908, "status": "done", "branch": "claude/project-thread-vslp7g", "pr": "https://github.com/objectstack-ai/objectstack/pull/37605", "session": "session_01L6bhgUd6hon2o34LQSLbZt", "premise_still_valid": true, "summary": "P4c at head 2a45517c: the LifecycleService expires a sealed object only through a registered seam; plugin-audit registers the signed expiry (whole checkpoints, each run's expiry amendment signed first) and a retention floor at the declared window; sys_audit_log is sealed by default. Signed expiry covers objects whose lifecycle is declared in packaged metadata (seat rulings 7209154881, 7210805783, reading 7212989029); any other sealed object keeps the 18.6.0 row-cutoff sweep. Contract review rounds 7 (7212916843) and 8 (7213680494) PASS with no must-fix or should-fix; n11-n13, n15, n16, n18, n21 go to the follow-up card.", "tests": "At ff14eb26 (2a45517c changes two test comments only): plugin-audit full Tests 1879 passed (1879) exit 0; objectql full Tests 14449 passed (14449) exit 0; verify full Tests 503 passed (503) exit 0; cli audit, serve-audit-registration, host-crypto and migrate one-shot files Tests 221 passed (221) exit 0. At 2a45517c: lifecycle-service.sealed-expiry 13/13 and audit-seal-retention-floor 10/10, eslint on both exit 0. Ablations at ff14eb26: 26 single-check ablations, each its own pin red (1 failed, the rest skipped), each file restored byte for byte.", "gates": "dispatch-gates --commands at ff14eb26: 142 derived, 141 exit 0, one NOT MEASURED: check-plugin-teardown-shape --self-test exit 3 (prerequisite: needs an unshallow clone). tsc --noEmit of objectql and plugin-audit (with the test-typecheck layer) exit 0. overlap-check at ff14eb26: clean against origin/main c826e8a1 and the PR heads sharing content/docs/deployment/cli.mdx (#37807, #37366). PR check-runs at 2a45517c: 70 runs, 60 success, 10 skipped, none failed or pending; Check Changeset, Check PR Size, Type Check, Lint and Test Core shards all success.", "dogfood_battery": "2a45517c · VERDICT command-exit 0 · held the lock 1842s (30m42s) · waited 0s · ⚠ SHARED-BOX SECONDS — this lock excluded other LOCKED runs, NOT unlocked sibling work (`check:*` gates and the rest), so these are not idle-box figures · build closure turbo --filter='@objectstack/dogfood^...' 73 successful, 73 total · Test Files 488 passed | 3 skipped (491) · Tests 4135 passed | 68 skipped (4203) · no failures", "mcp_calls": "reads only: pull_request_read (get_check_runs), issue_read (get_comments), get_job_logs; no MCP write tool", "api_writes": "0 REST writes; git push of fast-forward commits only (ff14eb26, 2a45517c this round); this report through post-stamped.mjs", "open_questions": [], "security_findings": "withheld", "out_of_scope_findings": [] }Generated by Claude Code
objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA
Landed · 2026-11-27T12:21Z
Both PRs of this claim have merged: PR #37605 (the code, 2026-11-27T09:52Z) and PR #37913 (the skill text, #37881, 2026-11-27T12:17Z).
pm:dispatchedis cleared and the card closes as completed. Follow-ups filed during review: #37879, #37880.