Repository navigation
docs(adr-0067): stale rollback claims follow the code: the in-memory driver rolls back, and revert runs per item - #33465
Conversation
…ack; revert is per item) Three code comments said the in-memory driver cannot roll back; it implements beginTransaction/rollback over a snapshot of its store. ADR-0067 TL;DR 3 and D3 called revertCommit and rollbackToPackageCommit atomic; neither opens a transaction across items. A dated amendment records what the doors do, marking the ruled sentences in place. Comments and ADR text only; no behaviour change. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5n1GK9KeZD8fhHUf49
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5n1GK9KeZD8fhHUf49
📓 Docs Drift CheckThis PR changes 3 package(s): 1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
What this run could not see
Coarse fallback — 175 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin b8979d5410acb2906dfb71c6180e7cc7ccdfaf94 && git checkout b8979d5410acb2906dfb71c6180e7cc7ccdfaf94
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 03dc62673e223d53dffb6b8fc619de9fbfc59dc4 461a0debbb4d56dcf2898b888098b474e3f8c40d && git checkout -B drift-repro 03dc62673e223d53dffb6b8fc619de9fbfc59dc4 && git merge --no-ff 461a0debbb4d56dcf2898b888098b474e3f8c40d
node scripts/docs-audit/affected-docs.mjs --json 03dc62673e223d53dffb6b8fc619de9fbfc59dc4
|
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Contract reviewServed-tier: Read, not reviewed: on main (d683e6f, merge base ba35dfd; none of the cited code moved between them, only six added lines in protocol.ts elsewhere) ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Implemented-by: VERDICT: PASS Adopted by the seat 2026-11-14T21:59Z · isolated sub-agent at CONTRACT_REVIEW_TIER · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z |
…with no isolation; patch changeset The ADR-0067 2026-11-14 amendment now says the revert commit record is best effort (recordPackageCommit returns no record on an unprovisioned or failed write, and the revert answers without revertCommitId), and reads rolled-back for the carve-out's audit rows. The three transaction docblocks add the in-memory driver's caveat: the rollback restores the whole store to its state at begin, with no isolation, and discards other callers' writes since then. The edited TSDoc ships in published d.ts, so one patch changeset covers spec, objectql and metadata-protocol. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5n1GK9KeZD8fhHUf49
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Contract reviewServed-tier: Delta review. The previous record (comment 6884842817) was a PASS on Read, not reviewed: on main ( Delta
① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
No must-fix and no should-fix. The two nits alone end the round. Implemented-by: VERDICT: PASS Adopted by the seat 2026-11-14T22:45Z · isolated sub-agent at CONTRACT_REVIEW_TIER · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z |
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb 维护者速读
席位核对Verdict: ACCEPT, held for the maintainer · head
|
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 43654334666 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Correction: contract-review tierThe contract-review record(s) 6884842817, 6885400346 on this PR say The seat re-runs the review at |
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Contract reviewServed-tier: At-tier re-review of the whole net diff against Read, not reviewed, on ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Holds: no ruled sentence is deleted (four modified lines, each keeps its original text as an exact prefix and appends a marker or a status entry, the form the 2026-11-12 amendment uses). Against the code: the walk is
The changed sentence holds against
Agrees with the code, sentence by sentence.
Agrees with the code. The no-rollback examples are right (a double with no
One must-fix (finding 1), two should-fix (findings 2 and 5), three nits. The fixes for 1 and 2 are prose in the ADR amendment this PR adds; they move the head and earn a delta review. Implemented-by: VERDICT: FAIL Adopted by the seat 2026-11-15T00:35Z · isolated sub-agent at CONTRACT_REVIEW_TIER (served model verified by the seat) · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z |
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb ACCEPT 6885400346-era hand-off withdrawn: the at-tier contract review 6886701800 on head |
…outcome, and the require docblock ADR-0067's 2026-11-14 amendment no longer says a fault after an item's row write reaches failed[]: the registry write-through, heal and projector catch and log, storage sync reports on advisories, and the item stays in reverted[]. It names the third outcome (an item with no prevVersion is skipped, which is every item a revert commit restored), so reverting a revert commit restores nothing today, and lists that and the post-write faults under what it does not decide. The spec EngineTransactionOptions.require docblock stops naming in-memory drivers among the no-transaction callers. Wording nits in the amendment and the ObjectQL.transaction docblock. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5n1GK9KeZD8fhHUf49
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Contract reviewServed-tier: Full at-tier review of the net diff against Read, not reviewed, at this head (none of these files is in the diff, so they are as on the merge base): ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
No ruled sentence is deleted: the four modified lines each keep their original text as an exact prefix and append a status entry or an italic marker, the form the 2026-11-12 amendment uses. The amendment, sentence by sentence against the code:
The amendment holds against its first consumer (
Holds against
The stale "in-memory drivers" example is gone and the replacement is true. This closes S2.
Agrees with the code.
Agrees with the code: OData declares PR body (prose face, not part of the head)
No must-fix and no should-fix. Four nits; 1 to 3 are in files of the head, so they are left as accepted deviations or a follow-up (a fix moves the head and this record no longer covers it); 4 is fixable on the PR body. Implemented-by: VERDICT: PASS Adopted by the seat 2026-11-15T01:38Z · isolated sub-agent at CONTRACT_REVIEW_TIER (served model verified by the seat) · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z |
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb 维护者速读
席位核对Verdict: ACCEPT, held for the maintainer · head
|
…e, and names the real api-surface lane (objectstack-ai#33592) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1X4PXFtzm5wm1iyzZhryfwUG)_ Fixes objectstack-ai#33572 domain:skills#1 · os-project-manager · session_01FEkQ5kJFi5T1hSXrdUxhzH Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:内部退役 playbook(`.claude/skills/spec-property-retirement/SKILL.md`)四处措辞。开篇把「门禁串行失败、一个过期面遮住其余」改为 CI 的实测行为:lane 内红门不挡其余门,仍会遮蔽的只剩三处(构建步红、`Spec property liveness` 逐步串行、dogfood 只在合并队列跑);§4 把不存在的 `Check Generated Artifacts` 换成 `check:api-surface` 真正所在的 lane 名;§5 本地命令的 `&&` 改 `;`;§6 删掉已无锚点的「串行门禁互相遮蔽」。 - 为什么改:原文与它引用的 AGENTS.md 一节相反,还点名了一个不存在的 workflow,读它的 agent 会去找一个永远不会报的 check-run。 - 风险与回滚:只动给 agent 读的内部文档,不发布、不动代码或门禁;回滚即还原本 PR。 - 先看:该文件第 28–31 行(开篇),第 251–253 行(§4 api-surface 一行),第 330–332 行(§6)。 - 两分钟验证:`git diff origin/main -- .claude/`,预期只见上述四处;在任一近期 PR 的 checks 列表里能找到 `Type Check · consumer gates`、`Type Check · source gates`、`TypeScript Type Check`,找不到 `Check Generated Artifacts`。 - 需要你做的:无,席位落地(Tier S)。 ## What changes `.claude/skills/spec-property-retirement/SKILL.md` only (336 to 336 lines, ceiling 337). 1. **Opening paragraph (L28–31).** "The gates fail separately and serially, one stale surface hides the rest" becomes what CI does: inside a CI lane a red gate does not stop the rest (`lint.yml` header EVERY GATE RUNS). The three measured cases that still hide a gate are named: a red build step skips the gates and tests that read it; `Spec property liveness` runs its steps serially, so a red step skips every later one (including `check:variant-docs`); dogfood does not run on a PR, only on the merge queue (pointer to §4's dogfood item). 2. **§4 orphan-schema item (L251–253).** "Its gate lives in another workflow (`TypeScript Type Check`, not `Check Generated Artifacts`)" becomes: its gate lives in `Type Check · consumer gates`, not in `Type Check · source gates` where `check:docs` and the other spec generated-artifact gates run (`check:i18n` is a consumer-lane gate, `lint.yml:6333`); both feed the required `TypeScript Type Check`; it reads the `dist/*.d.ts` that lane builds first. 3. **§5 command block.** `pnpm check:i18n && pnpm --filter @objectstack/spec test` becomes `pnpm check:i18n; I=$?; pnpm --filter @objectstack/spec test; echo "i18n=$I test=$?"`, so a red `check:i18n` no longer hides the spec tests locally and both exit codes are printed (a bare `;` would exit with the test's status only). This is the one serial case in the playbook's own text. 4. **§6 lead.** "Four traps anchored elsewhere" becomes three: "serial gates hide each other" is dropped, because the AGENTS.md section it pointed at now says the opposite and item 1 states the measured cases in place. Line ceiling paid in place: item 1 +1 line, §6 -1 line, items 2 and 3 zero. No ceiling touched. ## Acceptance notes **Order assumption 1 (measured).** AGENTS.md L654–656 holds for the `lint.yml` lanes, and the reach is wider than the spec gates: every gate step of every `Lint · *` and `Type Check · *` lane carries `continue-on-error: true` plus an `id:`, and the last step `Lane verdict` keeps the red (`.github/workflows/lint.yml:167-189`). What still hides, measured: - **Build steps stay fail-fast** (`lint.yml:174-176`). In `Type Check · consumer gates` the `Build workspace packages` step (`lint.yml:6008-6013`) has no `continue-on-error`, so a build red skips every gate behind it, including `check:api-surface` (`:6113-6116`) and `check:i18n` (`:6330-6333`). Test Core's `Build this shard's dependency closure` (`ci.yml:1359-1384`) is the same; inside the test step `--continue=dependencies-successful` runs every other package but withholds a package whose own dependency failed (`ci.yml:1589-1598`). - **`Spec property liveness`** (`.github/workflows/spec-liveness-check.yml:57-82`): `check:liveness`, `check:empty-state`, `check:variant-docs`, `check:strictness-ledger` are plain steps with no `continue-on-error`, so a red liveness ledger (the UNCLASSIFIED / ORPHAN failures §2 warns about) skips the three after it, including `check:variant-docs`, the gate §4 says bites retirements. `check:variant-docs` runs nowhere else in `.github/workflows/`. - **Dogfood** never runs on `pull_request` (`ci.yml:120-128`, job `if:` at `ci.yml:2734`); it first runs on the merge-queue build, where its matrix is fail-fast (`ci.yml:2749`), as is Test Core's there (`ci.yml:1061`, `:1599-1603`). The pull_request run of Test Core still names every shard's reds. - **Not hiding:** `check:authorable-surface` feeds `check:docs` (`lint.yml:191-195`), but the second red names its cause. **Order assumption 2 (measured).** `Check Generated Artifacts` is not a workflow `name:` in `.github/workflows/*.yml` and appears nowhere in the tree except this line. `TypeScript Type Check` is real: the required aggregate job (`lint.yml:6465-6466`) of workflow `Lint & Type Check` (`lint.yml:1`), not a workflow. Check-run names read on PR objectstack-ai#33483 head 82cc3c1: `Type Check · source gates`, `Type Check · workspace`, `Type Check · debt ledger`, `Type Check · consumer gates`, `TypeScript Type Check`, all present. The generated-artifact gates (`check:skill-docs`, `check:spec-changes`, `check:upgrade-guide`, `check:authorable-surface`, `check:docs`, `check:skill-refs`, `check:react-blocks`) run in `Type Check · source gates` (`lint.yml:5145-5444`); `check:api-surface` runs in `Type Check · consumer gates` (`lint.yml:6113-6116`). `Spec property liveness` was read as a check-run on PR objectstack-ai#33465. **AGENTS.md (not in scope, not changed).** L651-653 says the six artifact gates "all live in one job, `TypeScript Type Check`"; they run in two lanes behind that aggregate job. The required-context reading is right; the "one job" wording is loose. Named for the seat; no card class applies. `check:required-contexts` scans this file (scan-only, `scripts/check-required-contexts.mjs:676-680`); it stays green with the new lane names. ## Verification Head `df8c9050` (review fix on top of 2b04592), base `origin/main` 4bba8b8. <details><summary>Derived gates: 19 derived, 19 green</summary> `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derived 19 families for the one path. Each ran on df8c905 with its exit captured before any pipe, after `turbo run build --filter=@objectstack/lint...` under the verify lock (VERDICT command-exit 0): - exit 0: `check-closing-keyword-parity` (scan and `--self-test`), `check-comment-mask-corpus`, `plan-test-core-shards --self-test`, `check-harness-current --self-test`, `@objectstack/lint check:doc-formula-expressions`, `check:agent-test-spelling`, `check:ci-filter-parity`, `check:cross-package-test-inputs`, `check:doc-authoring`, `check:driver-memory-census`, `check:gitlink-declared`, `check:nul-bytes`, `check:pm-governed-merges`, `check:pm-skill-ratchet`, `check:refd-timer-probe`, `check:required-contexts`, `check:skill-frame-sync`, `check:watch-hint-literal`. - `--ran` reconciliation: "19 derived famil(ies) accounted for — 19 run, 0 NOT-MEASURED". - CI families are read from this PR's check-runs, not re-run here. </details> <details><summary>Line budget</summary> - `node scripts/pm/check-skill-line-ratchet.mjs`: exit 0, "is 336 lines (ceiling 337; headroom 1)"; no line over 120 bytes. Its info line on this file (widest table row 324, pin 326) is unchanged by this diff: no table row is touched. - No `skills/**` path: the token ratchet and the published-package readings do not apply. `skip-changeset` (`.claude/**` does not ship). </details> <details><summary>Tier and governed readings</summary> - `dispatch-gates --tier`: no path-derived mandate (the surface hits none of the declared globs); the tier stays the seat's per-card call. - `node scripts/pm/check-governed-merges.mjs --branch claude/project-thread-j01qh2`: GOVERNED, Tier S (`.claude/**` ×1). Size +11 / -11 at 2b04592, three lines more changed at df8c905; under the 3000 threshold. </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01FEkQ5kJFi5T1hSXrdUxhzH <!-- signed: domain:skills#1 · os-project-manager · session_01FEkQ5kJFi5T1hSXrdUxhzH --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Leehom · project thread
Fixes #32504
domain:skills#1 · os-project-manager · session_01FEkQ5n1GK9KeZD8fhHUf49
Clause-②: no
Metadata-protocol: none
维护者速读
beginTransaction/rollback);ADR-0067 新增 2026-11-14 修订节,写明revertCommit是逐项回退、返回reverted[]/failed[],rollbackToPackageCommit是逐个 commit 调revertCommit,两者都不开跨项事务;注册表同步等写后故障不进failed[];回退一个回退 commit 目前什么也恢复不了(列为待定)。原句保留,就地加注指向修订节。main上的代码相反:读注释的人会以为内存驱动上的测试没测到回滚;读 ADR 的人会以为一次失败的回退不会留下「回退了一半」的包。.d.ts发布,带一个三包 patch changeset;回滚即还原本 PR。docs/adr/0067-commit-history-and-rollback-for-ai-authoring.md文末「Amendment (2026-11-14, Stale rollback claims: three code comments say the in-memory driver cannot roll back, and ADR-0067 D3 calls revertCommit atomic #32504)」节,重点是「What this amendment does not decide」:是否把回退改成原子仍待你定,本 PR 不做。git diff origin/main...HEAD --stat,预期 6 个文件(含一个 changeset);git grep -n "in-memory driver in tests\|against in-memory drivers" packages/无命中。docs/adr/**):请批准或合并。What changes
Item 1 — the in-memory driver rolls back (comments only).
packages/drivers/driver-memory/src/memory-driver.tsimplementsbeginTransaction(copies every table and record into a snapshot) androllback(restores it), and declares notransactionsUnsupported, sodriverSupportsTransactionsandengineCanRollBackanswer yes for it. Five docblocks said otherwise:packages/spec/src/data/driver.zod.ts,driverSupportsTransactionsclause 1: the in-memory driver is no longer listed among drivers with nobeginTransaction; the clause says it implements one over a snapshot.packages/metadata-protocol/src/sys-metadata-repository.ts,SysMetadataEngine.transactiondocblock: "must not rely on rollback … against in-memory drivers" becomes "where the engine cannot roll back (engineCanRollBackanswers no …)".packages/metadata-protocol/src/sys-metadata-repository.ts,withTxndocblock (same file, same defect class, the docblock the card names): drops "in-memory drivers … get no rollback, which is acceptable because production always runs on a SQL driver with real ACID" — both halves are false onmain(the in-memory driver rolls back; remote Turso is SQL without rollback, per the ADR-0067 2026-11-12 amendment).packages/spec/src/contracts/objectql-engine.ts,EngineTransactionOptions.requiredocblock: the callers the no-transaction degrade suits are test doubles; "in-memory drivers" is dropped from that parenthesis (the driver implementsbeginTransaction).packages/objectql/src/engine.ts,ObjectQL.transactiondocblock: the no-rollback examples become a test double, remote Turso and OData; the in-memory driver runs the callback inside a transaction.SysMetadataEngine.transaction,withTxn,ObjectQL.transaction) carry the caveat the ADR-0067 2026-11-12 amendment records: the rollback restores the whole store to its state at begin, with no isolation, and also discards what other callers wrote since that begin (unsafe with concurrent writers).driver-memoryis reachable outside tests (os serve's storage driver), so the repository docblock must not read as permission to rely on it.Item 2 — ADR-0067 D3 (
docs/adr/0067-commit-history-and-rollback-for-ai-authoring.md). No ruled sentence is deleted or rewritten:· **Amended** (2026-11-14, #32504 — …)entry, in the form of the two before it.revertCommit,rollbackToPackageCommit): an italic*(Amended 2026-11-14: … — see the Amendment of that date at the end.)*marker appended in place, the form D2's caveat and the Costs line already use for the 2026-11-12 amendment.## Amendment (2026-11-14, #32504): what the two doors do onmain: a per-item walk in reverse apply order; each item's row and history write in the repository's per-itemwithTxn; no transaction across items; an item refused, or whose removal or restore throws, goes intofailed[]and the walk continues; a fault after the row write (registry write-through or heal, the projector, storage sync) does not reachfailed[]and the item stays inreverted[](one exception: anobject_extensionheal's store-read fault is rethrown); an item with noprevVersionis skipped, in neither list, which is every item a revert commit restored, so reverting a revert commit restores nothing today; the revert commit written fromreverted[]and best effort (recordPackageCommitcatches every error and returns no record; the revert then answers withoutrevertCommitIdand is on no package-commit timeline);successonly whenfailed[]is empty and something was reverted. Then the partly-reverted shape, and what the amendment does not decide: whether revert should become atomic; whether a revert commit should carry the versions it restored, and whether post-write faults should reachfailed[](both code questions); Decision-2 and the publish door unchanged.The
rollbackToPackageCommitbullet ("as one transaction") is the same stale claim one line below the card's sentence, and TL;DR 3 names both doors, so both are marked (os-dev bounded in-place fix: same defect class, same file, mechanical, same gate families).Acceptance notes
Every claim was read from the code on
origin/mainatba35dfd7:beginTransaction/rollbackover a snapshot; notransactionsUnsupportedpackages/drivers/driver-memory/src/memory-driver.ts(readonly supports = {},beginTransaction,rollback)packages/drivers/driver-turso/src/turso-driver.ts(transactionsUnsupported: this.transportMode === 'remote'),packages/drivers/driver-odata/src/odata-driver.tsrevertCommitopens no transactionpackages/metadata-protocol/src/protocol-package-commits.ts: zerotransaction/withTxnhits in the filetry/catchintofailed[]; commit fromreverted[];successProtocolPackageCommitsFacet.revertCommit(for (const it of [...items].reverse()),catch (e)pushingfailed,recordPackageCommit({ items: reverted.map(…) }),success: failed.length === 0 && reverted.length > 0)withTxnSysMetadataRepository.restoreVersionreturnsthis.put(…);putanddeleterun inthis.withTxnfailed[]applyRegistryWriteThrough(protocol-registry-hydration.ts) catches and warns, its result is not read;runMutationProjector(protocol-mutation-fan-out.ts) catches and returns{ success: false }, not read;ensureObjectStorage's refusal goes onadvisories. Soft-remove limb:restoreArtifactRegistryView's outercatchlogs ("the delete has committed and is not failed here"); itsobject_extensionbranch callsresyncStoredObjectExtensionsbefore thattry, which rethrows a store-read fault other than an unprovisioned tableprevVersionis skippedrestoreToVersionisnullunlessexistedBeforeand aprevVersion; the walk hasif (!it.existedBefore)andelse if (restoreToVersion !== null)and no other branch. A revert commit's plan isexistedBefore: r.action === 'restored', prevVersion: null;readRevertableCommitdoes not refuse arevertcommitrevertCommitper commit; failures collected, none stops itProtocolPackageCommitsFacet.rollbackToPackageCommit(for (const c of toRevert),step.failedfolded,catchfolded)protocol-package-commit-record.tsrecordPackageCommit(catch: unprovisioned table logs once atinfo, any other failure logs aterror, bothreturn null);revertCommitspreadsrevertCommitIdonly when a record came backmemory-driver.tsrollbackassignsthis.db = tx.snapshot, the snapshot taken at that transaction'sbeginTransactionprotocol.revert-stored-type-canonical.test.ts"reverts the neighbours of a refused item and reports the mix honestly"git grep -i -C2 "in-memory"over non-testpackages/**/*.ts, filtered foratomic|transaction|rollback|ACID, leaves only registry-mutation comments (not drivers) and the driver's own snapshot docblock, now thatobjectql-engine.tsis fixed (round 1's grep missed it: a one-line pattern did not reachatomicityon the line before;content/docs/releases/is release-owned and not touched). ADR-0067 D2's original caveat (L79) was already marked by docs(adr): ADR-0067 D2 says atomicity is a SQL-driver guarantee and "production is SQL", but remote Turso is SQL and cannot roll back #32480.revertCommit/rollbackToPackageCommitatomic (a behaviour change: a revert with one refused item would revert nothing). The amendment names it as open..changeset/32504-in-memory-rollback-docblocks.md,patchfor@objectstack/spec,@objectstack/objectql,@objectstack/metadata-protocol(TSDoc only;Clause-②: no,Metadata-protocol: none). The edited docblocks land in shippeddist/*.d.ts, and spec shipssrc/**/*.zod.tsitself (contract review 6884842817 ②). Theskip-changesetlabel is the seat's to remove.protocol.ts'srollbackToPackageCommitdocblock ("records its revert commit") has the same best-effort gap; named in the report for a follow-up (filed as docs(metadata-protocol): rollbackToPackageCommit docblock says each step records its revert commit; the record is best effort #33486).failed[]; it says what the code does (and the acceptance row above is corrected; round 1's row was wrong). S1 the skipped outcome is named, "cannot itself be reverted" now claims only the missing commit row, and D3's "itself revertible" is listed under "does not decide"; the D3revertCommitmarker adds "reverting a revert commit restores nothing today". S2objectql-engine.tsfixed in place, changeset prose extended. Nits: "reverse apply order", "no package-commit timeline", and inengine.tsthe rollback is now the subject of "restores". Beyond the review: theobject_extensionheal exception, read fromresyncStoredObjectExtensions. The amendment heading now reads "reports per item" (it said "names what it could not do", which the post-write and skipped outcomes make untrue).dispatch-gates --tierreads the MANDATORY contract-review tier fordocs/adr/**; this card thread ran at the claim's default model. The seat's in-seat contract review is the owed record (named deviation).check-governed-merges.mjs --branch claude/project-thread-0ky6fu— GOVERNED, 1 of 4 paths (docs/adr/**), landing tier H; 99 changed lines, under the 3000 threshold.Verification
Derived gates on head 461a0de (91 of 92 exit 0, 1 NOT MEASURED)
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderived 92 commands; each ran with its exit captured before any pipe, afterturbo run build --filter=@objectstack/metadata-protocol... --filter=@objectstack/lint... --filter=@objectstack/driver-memory... --filter=@objectstack/objectql...under the lock (VERDICT command-exit 0).--ran: "92 derived famil(ies) accounted for — 91 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)".pnpm check:dual-build-cjs-loads(exit 3, PREREQUISITE NOT MET: it loads every package's built entry points; no full build here). CI runs it.check:dts-closureandcheck:sourcemap-no-sources-contentexit 0 over the built packages only.@objectstack/spec,@objectstack/objectql, each VERDICT command-exit 0 (@objectstack/metadata-protocolis unchanged since 75c0229, where it was green). No package tests: comments, a changeset and ADR text only, no behaviour.Generated by Claude Code