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
rest/OCC: postgres 驱动下乐观锁必现假冲突 409 —— normaliseVersionToken 对 Date 做 String() 丢毫秒后与 ISO 字符串严格比较 #13382
bugSomething isn't workingdomain:engineRetired 2026-10-22, alias of domain:server (engine surface); in-flight cards keep it until they landpriority:p1High: required for production / M2
{
"error": "Record os_tianshun_ehr_project/kAE91j_gPi7CscPW was modified by another user (current version Sun Aug 30 2026 18:19:25 GMT+0800 (China Standard Time), expected 2026-08-30T10:19:25.947Z)",
"code": "CONCURRENT_UPDATE",
"currentVersion": "Sun Aug 30 2026 18:19:25 GMT+0800 (China Standard Time)"
}
normaliseVersionToken(v) 对版本令牌做 String(v)。postgres 驱动返回的 updated_at 是 JS Date,String(Date) 产出 "Sun Aug 30 2026 18:19:25 GMT+0800 (China Standard Time)" —— 毫秒被丢弃、格式随进程时区漂移;
assertVersionOf() 拿它与客户端回传的 ISO 字符串做严格字符串比较currentVersion !== expected → 同一瞬间恒不等 → ConcurrentUpdateError。
sqlite 驱动把 updated_at 以 ISO 字符串存取,两边字符串恰好相同,所以 dev 从不复现——这是个只在 Date 型驱动(至少 postgres)上暴露的驱动相关缺陷。
违反的契约
assertVersionOf 自己的 docblock:"When the caller passes a non-empty expectedVersion token (typically the updated_at value they read), a mismatch throws"——按此契约,客户端原样回传它读到的 updated_at 必须判为匹配。现实现对 Date 型驱动必判不匹配。
建议修法(仅供参考)
两边令牌先尝试 Date.parse,可解析则按时间值(epoch ms)比较,不可解析再退回字符串比较;或 normaliseVersionToken 对 Date 实例统一转 ISO。
Independently re-confirmed on a live multi-node ObjectOS EE deployment (framework 502ff8b5, Postgres 16) during a full platform-checklist run. Two agents reproduced it from their own fixtures: a guarded PATCH /api/v1/data/<obj>/<id> with If-Match set to the read-served updated_at (ISO 2026-08-30T09:49:05.698Z) returns 409 CONCURRENT_UPDATE on an uncontested version, and the only accepted token is the 409 body's currentVersion in Date.toString() form (Sun Aug 30 2026 09:49:05 GMT+0000 (Coordinated Universal Time)); an unguarded PATCH falls through to last-write-wins. Source confirmed at normaliseVersionToken (protocol.ts:9744, String() with no Date→ISO canonicalization) — memory-driver pins keep ISO strings so they stay green, which is why it only surfaces against a real Postgres deployment. Not re-filing; recording the live corroboration here.
Worktree: ../objectstack-13382-occ-token (per-task, off origin/main = 70fe54891e)
File surface: packages/metadata-protocol/src/protocol.ts + its test siblings. ⛔ Not packages/rest — see the anchoring note below.
Clause ② (contract review): FIRES. No packages/spec/src/** path, but this changes when a guarded PATCH is ACCEPTED versus REJECTED with 409 — that is contract accept/reject behaviour, squarely on the content limb. Review at CONTRACT_REVIEW_TIER before the PR is flipped ready. Budget for it.
⚠️ Read the card body on the web, NOT through the API
The issue body comes back truncated through this channel — it cuts off mid-repro at 1. `GET /api/v1/data/. That is the known payload-channel hazard (#13385 · #13373 · #13387). ⛔ Do not treat the truncated text as the whole card. Open the issue page and read the full reproduction before you plan anything.
Cross-seat / anchoring, checked not assumed
Triage re-anchored this by measurement: the landing point is packages/metadata-protocol, not the @objectstack/rest / @objectstack/driver-sql the card's prose names. I confirmed there is no domain:metadata seat among the 13 open pm:seat posts, so no cross-seat declaration is owed on protocol.ts for this claim.
⚠️The two comments disagree on where the function is — the live-corroboration comment says protocol.ts:9744, triage says the definition is at :1378 with call sites at :9979 / :9982. Both were measured at different times on a moving file. ⛔ Trust neither: locate it yourself on 70fe54891e and say what you found.
Dispatch order — three zones
Zone 1 is not re-adjudicable. Zone 2 is a PM assumption you are asked to try to FALSIFY. Zone 3 is discardable.
Zone 1 — RULINGS (the first four are triage's, carried verbatim)
R4. Answer the input-domain question by ENUMERATION, not by listing the cases you happen to think of. Derive the set from what the drivers actually return, and give the normalised representation for each. A fix that handles Date and string but is silent on the third case is not finished.
R5. ⛔ A green sqlite run is not evidence here — it is the camouflage. If this container cannot run a real Postgres, say so plainly and describe what you could and could not measure. ⛔ Do NOT substitute a sqlite pass and call the card verified; an honest "not measured on the driver that matters" is worth more than a false green. (CI runs Temporal Conformance (live PG + MySQL), so a real Postgres exists in CI even if not locally.)
R6. No test may be skipped, disabled, quarantined, allow-listed, deleted or re-baselined. In particular ⛔ do not relax an existing OCC pin to accommodate the new normalisation — if a pin genuinely encodes the old broken comparison, that is a finding to report, not a line to edit.
R7. Worktree-first. ⛔ Never git stash — refs/stash lives in the common .git, shared across every worktree.
Zone 2 — PM MECHANISM ASSUMPTION (measure it; falsification is a good outcome)
The PM's reading is that this is one defect with one root — a comparison between two representations of the same instant — and therefore that normalising both sides at the single normaliseVersionToken seam fixes every caller at once.
Try to falsify it. Specifically: is normaliseVersionToken the only place a version token is compared or emitted? The corroboration comment reports that the 409 body's currentVersion is served in Date.toString() form and that that string is the only token the server will accept — which means the broken representation is not merely compared internally, it is published to clients. If some client or test has already adapted to the broken form, a normalisation fix changes what the wire accepts, and that is a wider blast radius than a one-seam repair. Measure it and report.
Zone 3 — SUGGESTED ROUTE (discard freely)
⭐ The card's sharpest evidence is that current and expected in the error are the same instant (18:19:25+08:00 == 10:19:25Z). A regression test that asserts "two spellings of one instant do not conflict" pins the property rather than the spelling, and would survive a future representation change.
The GMT+0800 in the error suggests a local-time formatter somewhere. Worth checking whether the same formatter feeds anything else user-visible.
STOP conditions
The blast radius turns out to be wire-visible (clients depending on the Date.toString() token) ⇒ report before changing what the endpoint accepts; that is a compatibility decision, not a bug fix.
You cannot run Postgres ⇒ report that plainly; ⛔ do not proceed to a sqlite-only verification and present it as done.
{
"issue": 13382,
"status": "done",
"branch": "claude/issue-13382-occ-version-token-normalisation",
"pr": "https://github.com/objectstack-ai/objectstack/pull/13569",
"premise_still_valid": true,
"summary": "The card's mechanism premise held exactly, and was reproduced end to end on a REAL PostgreSQL 16 provisioned in this container: normaliseVersionToken did String(v) on both sides of the OCC comparison, so a Postgres record's Date-typed updated_at became 'Mon Aug 31 2026 09:05:04 GMT+0800 (China Standard Time)' (milliseconds dropped, process zone baked in) and never equalled the '2026-08-31T01:05:04.454Z' the client echoed back from its own GET. Only the card's PACKAGE attribution was wrong (it names rest / driver-sql), which triage had already re-anchored; the definition is at protocol.ts:1378 as triage said, the call sites had moved to :10012 / :10015 (neither comment's numbers were current), and there is a FOURTH site neither comment named: assertVersionMatch at :10037, the guarded-DELETE door. Fix: both tokens are normalised to ONE representation before comparison (a canonical absolute instant, never consulting the process TZ), falling back to the verbatim token when either side is not an instant; and the 409 now publishes that canonical instant instead of String(updated_at). Both limbs were required -- see the Zone 2 answer. Landed as 2 commits, a changeset, and a 20-test regression suite; draft PR 13569, gate family green at 4295e8de82.",
"clause_2_reading": "FIRES -- I concur with the PM and do not revise upward. It changes when a guarded PATCH/DELETE is accepted versus rejected with 409, and it changes a published wire field (the 409's currentVersion), i.e. contract accept/reject behaviour on the content limb. No packages/spec/src path, no new authorable surface. Two mitigating facts for the reviewer, offered as argument and not as a downgrade: on BOTH limbs this moves the implementation toward an already-documented contract (content/docs/api/wire-format.mdx documents currentVersion as an ISO-8601 UTC timestamp), and the accept side is provably monotone-widening -- no token accepted today becomes refused. Review at CONTRACT_REVIEW_TIER before the PR is flipped ready; it is left draft.",
"input_domain_enumerated": [
{
"case": "JS Date",
"produced_by": "driver-sql on Postgres (MEASURED live, PostgreSQL 16) and on MySQL (withUtcSession sets mysql2 timezone 'Z'; the driver keeps timestamptz / DATETIME(3) as Date deliberately -- withPostgresCalendarDayAsText states this in as many words); driver-mongodb (stamps new Date(), BSON round-trips it)",
"normalised_to": "value.toISOString() -- canonical ISO-8601 UTC, e.g. 2026-08-30T10:19:25.947Z"
},
{
"case": "string, already canonical ISO-8601 UTC with milliseconds",
"produced_by": "driver-memory (MEASURED), driver-sql on SQLite (MEASURED), and its driver-turso / driver-sqlite-wasm siblings (same TEXT round-trip)",
"normalised_to": "the same instant, re-derived through Date -- byte-identical to today for this case"
},
{
"case": "number, epoch milliseconds",
"produced_by": "a pre-canonical or hand-migrated SQLite updated_at column. MEASURED REACHABLE, not assumed: the driver's legacy-datetime repair is keyed on declared Field.datetime columns and datetimeFields[table] is EMPTY for the engine-injected audit columns, so an INTEGER updated_at passes through unrepaired -- engine.findOne returned the number 1756602000123",
"normalised_to": "new Date(ms).toISOString()"
},
{
"case": "null / undefined (or no updated_at column at all)",
"produced_by": "timestamps disabled on the object",
"normalised_to": "null -- no check runs, unchanged opt-out semantics"
},
{
"case": "anything else -- an opaque version a host stamps into the column",
"produced_by": "the parameter type is unknown, so this is the residual case rather than a driver observation",
"normalised_to": "the trimmed, RFC-7232-unquoted token, compared VERBATIM exactly as before -- deliberately not guessed at"
},
{
"case": "expected side only: a zone-LESS date-time string such as '2026-08-30 18:19:25.947'",
"produced_by": "a client or a legacy fixture",
"normalised_to": "left OPAQUE on purpose and compared verbatim. Date.parse reads a zone-less date-time as LOCAL time, which would make the OCC verdict depend on TZ -- the one thing the triage ruling forbids. Only strings carrying an explicit Z or a numeric offset are read as instants. Pinned by its own test."
}
],
"postgres_control": "YES -- run on a real PostgreSQL 16. psql and the full postgres server are installed in this container, so a dedicated cluster was initdb'd and started on port 54382 (my own, torn down afterwards; no shared cluster touched). The defect was reproduced end to end through the real ObjectQL engine and ObjectStackProtocolImplementation, byte-for-byte matching the card's production report including the GMT+0800 and the same-instant pair. After the fix the same harness reports ACCEPTED on Postgres under TZ=Asia/Shanghai (the card's zone), TZ=America/New_York (CI's) and TZ=UTC, plus 7 controls on Postgres AND SQLite: uncontested-ISO ACCEPTED, RFC-7232-quoted ACCEPTED, a token after a REAL racing write REFUSED 409, that 409's currentVersion echoed back ACCEPTED, a pre-fix String(updated_at) token ACCEPTED (no regression), a token 1 ms away REFUSED, an opaque token REFUSED. SQLite is shown beside Postgres as the control that stays green either way -- never as the evidence. NOT MEASURED: MySQL and MongoDB (no server available here); their Date-returning behaviour is derived from source, and CI's Temporal Conformance job covers live MySQL.",
"zone_2_blast_radius": "PARTIALLY FALSIFIED, in a way that changed the fix. Confirmed: normaliseVersionToken IS the only place a record-data version token is compared or emitted. The repo has three other version lanes and none can carry this defect -- metadata items compare a sha256 content hash (parentVersion / ADR-0008), cluster KV compares a monotonic bigint, metadata HTTP caching uses a content ETag; packages/rest only forwards the token and passes currentVersion through unread. FALSIFIED: 'one seam, one behaviour'. The seam has TWO limbs and the broken representation was not merely compared internally, it was PUBLISHED. A comparison-only repair would have left the 409 serving a Date.toString() whose milliseconds are already gone -- a token that can never match the record it names -- turning a false conflict into an UNRESOLVABLE one on the exact path (objectui InlineEditSaveBar and occSave re-key their retry to conflict.currentVersion) that is today the only way Postgres users can save at all. Both limbs are fixed. STOP condition NOT triggered, and this was measured rather than argued: (a) wire-format.mdx already documents currentVersion as ISO-8601 UTC, so the emission change moves TOWARD the documented contract; (b) the pinned objectui sibling treats the token as an opaque echo and only formats it for display -- nothing there constructs or parses the Date.toString() spelling; (c) no test in either repo pins that spelling (every fixture is ISO or deliberately opaque); (d) the ACCEPT side is provably monotone-widening -- when either token is not an instant the verbatim comparison still runs, so every pair that matched before still matches, INCLUDING a client mid-upgrade still echoing a pre-fix 409's Date.toString() token. That last one is measured on live Postgres (control 5) and pinned by a test, which is what dissolves the compatibility question rather than deferring it.",
"tests": "NEW: packages/metadata-protocol/src/protocol.occ-version-token-instant.test.ts, 20 tests, ALL PASS -- 'Test Files 1 passed (1) / Tests 20 passed (20)'. Pins the PROPERTY not the spelling: a table of spelling pairs each naming ONE instant, a three-zone sweep carrying a NON-VACUITY control that asserts the zones really do move String(Date) (three distinct spellings required, or the sweep proves nothing), millisecond-resolution conflicts, the published token round-tripping, and the widening guarantee. R6 HELD -- no test skipped, disabled, quarantined, allow-listed, deleted or re-baselined: the diff touches NO existing test file, and none of the existing OCC pins encoded the broken comparison (every fixture was ISO-on-both-sides, which is exactly why they were green through the whole outage). They pass unmodified: objectql protocol-data.test.ts + engine-update-by-id-payload-id.test.ts = 128 passed; rest rest.test.ts + rest-server-query-multiplicity.test.ts + rest-unclassified-fault-status.test.ts = 278 passed; whole metadata-protocol suite = 2037 passed, 10 skipped, 0 failed. ABLATION on the COMMITTED implementation at e1a731beed: canonicalVersionInstant neutralised so every token reports 'not an instant', which reduces the seam to the old verbatim compare. Mutation PROVED ON DISK by grep of BOTH the injected marker (count 1) and the deleted anchor text (count 0), and by the blob hash moving 9204c8fc -> a7444d89. Result: 10 of 20 FAIL, vitest exit 1 -- and the 10 that stay GREEN are precisely those encoding pre-fix behaviour that must not change (the SQLite ISO-on-both-sides row, the opaque tokens, the empty-token opt-out), which is the correct split rather than a uniformly coupled suite. NO REBUILD LEG, and that is a measurement not an omission: the suite reaches the subject through a RELATIVE source import inside its own package, so dist is not in the resolution path -- proven by the mutation reddening it with no build at all. RESTORE under trap ... EXIT INT TERM with an absolute REPO_ROOT from git rev-parse --show-toplevel, proved by whole-tree git status --porcelain EMPTY, git diff HEAD empty, git hash-object back to 9204c8fc (== the HEAD blob), marker count 0 and anchor text count 1. GATES: whole derived family re-run AT THE FINAL COMMIT 4295e8de82 via node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack (43 commands) -- 41 GREEN. The 2 non-green are PREREQUISITE NOT MET (exit 3), i.e. NOT MEASURED and not a red, each quoting its own verdict line: check-test-completeness 'PREREQUISITE NOT MET -- this gate grades a saved turbo run test log, and no log was named', and check-half-states 'PREREQUISITE NOT MET -- the token in the environment is not a valid GitHub credential'. Also at 4295e8de82: whole-repo pnpm lint (eslint . --no-inline-config) EXIT 0 in 61s -- the FULL sweep, not a narrowed run, so no narrowing claim is being made; pnpm check:type-check-debt 'OK -- 29 ledger entr(ies) re-measured in 213.7s, 1542 raw tsc error(s) total, none above its recorded number'; check-nul-bytes 'OK (scanned 7522 text file(s) ... no raw ASCII control bytes)' plus a manual control-character grep over the four changed files (no matches). One gate needed action and it was the prescribed one, NOT a relaxation: check:engine-double-contract RETAINED the new suite's fake engine and printed 'New pinned coverage is GOOD ... run --write and commit'; --write added 3 rows, lost 0, and the gate then reads 'OK -- 719 pinned'. All exit codes captured with redirect-then-capture, never through a pipe.",
"mcp_calls": "3 -- issue_write (file the finding), create_pull_request, add_issue_comment (this report). Every read went through the zero-config channel: unauthenticated REST answered HTTP 200 for the repo, the issue and its comments, so no MCP read was spent. Two channel notes for the PM below.",
"channel_notes": "1) The dispatch warned the card body comes back TRUNCATED through the API. It does NOT through unauthenticated REST: GET /repos/objectstack-ai/objectstack/issues/13382 returned HTTP 200 with the complete 2173-character body, ending at the 'Part of steedos-labs/...' line. The truncation is an MCP-channel artifact, not an API-wide one -- worth knowing, because the cheap channel is the one that works. 2) REST /search/issues answers 403 unauthenticated here, so the duplicate check for the finding used a narrow REST list (open issues labelled 'finding', 43 rows) plus a local keyword grep; one keyword hit, unrelated. No wide-table scan and no MCP search.",
"open_questions": [],
"out_of_scope_findings": [
"filed as #13567: no live-Postgres coverage of the record-data OCC seam -- the Temporal Conformance (live PG + MySQL) job runs only pnpm --filter @objectstack/driver-sql test, and @objectstack/metadata-protocol has no driver dependency and must not grow one, so the driver shape that broke this is only ever a hand-made fixture. Labelled 'finding', unassigned, three options costed with a recommendation (a driver-side characterisation pin in driver-sql, which lands inside the job that already exists)."
]
}
{
"issue": 13382,
"status": "done",
"round": "patch round 1 — CI red + contract-review finding, one validated push",
"branch": "claude/issue-13382-occ-version-token-normalisation",
"pr": "https://github.com/objectstack-ai/objectstack/pull/13569",
"head": "14c197f87e (was 4295e8de82)",
"premise_still_valid": true,
"summary": "Two items, both reproduced BEFORE fixing and shown passing after, folded into one fast-forward push (no force). (1) check-system-context-census line rot: the OCC diff pushed row 21's anchor in content/docs/permissions/system-context.mdx down. Verified a PURE SHIFT myself rather than taking it on trust, because the gate treats shift and population change differently -- byte-identical statement across the move (sha256 db885f75...), isSystem occurrence count 9 on both trees, and the new line is the first statement of stripReadonlyForInsert, which is what row 21 describes. Repaired with the gate's own --fix. #13490's false refusal did NOT reproduce. (2) The contract-review finding is real and mine: If-Match with an empty entity-tag flipped ACCEPT to 409. Took the conservative remedy as instructed -- re-apply the emptiness test AFTER the quote strip, byte-identical to 70fe54891e -- and did not touch the underlying contract question. Nothing re-baselined, nothing exempted, nothing widened.",
"item_1_census_line_rot": "REPRODUCED first: node scripts/check-system-context-census.mjs exit 1, the same two errors CI printed (site-without-a-row at :1566, anchor-is-not-a-read-site at :1451). Note for the board: the pnpm alias named in the dispatch, check:doc-anchors, is a DIFFERENT gate (fragment links) and was green throughout -- the failing script has no pnpm alias and CI invokes it directly as node scripts/check-system-context-census.mjs. --fix rewrote exactly one anchor and the gate then read 'OK -- 109 elevation read sites in 20 packages across 45 files, all anchored; 145 anchors resolve, 27 declared non-read'. The diff is one line number on row 21; no prose touched. IT SHIFTED A SECOND TIME: the item-2 remedy added ten lines above the same function, moving the read 1566 -> 1576. Caught only because the gate union was re-run at the FINAL commit rather than at the commit where the first repair landed -- the same pure-shift checks were redone (byte-identical, count still 9) and the second re-anchor is folded into the same commit.",
"item_2_empty_entity_tag": "CONFIRMED as characterised, mechanism and all. Pre-fix normaliseVersionToken returned the bare string, so the empty entity-tag became the falsy '' after the quote strip and every caller short-circuited into 'no token supplied'. The wrapper object is always truthy, so the check began running and '' mismatched verbatim -> 409. REPRODUCED as a test before touching the implementation: three new cases went RED on the unfixed tree (the PATCH door, the DELETE door -- assertVersionMatch tests truthiness at its own call site and can regress independently -- and the corpus sweep). Remedy: `if (!token) return null;` re-applied inside the quote-strip branch. Deliberately NOT `!token.trim()`: pre-fix, a quoted blank stripped to a truthy three-space token and the check RAN, so trimming there would have installed a second new opt-out -- a widening I was not asked for and did not make. The remedy is byte-equivalent to 70fe54891e for every input.",
"beyond_the_brief": "One addition beyond 'the remedy + its pin', flagged deliberately rather than slipped in. I also added a DIFFERENTIAL SWEEP: 8 stored shapes x 15 client tokens, each pair judged against the pre-fix comparison reproduced verbatim in the test file, failing on any pair accepted before and refused now. Reason: the strictly-widening claim was prose in four places and read as true to three separate readers while one token had already flipped -- prose is what failed here, so the claim now has a check. It cost no new verification surface (same file, same package, same gate family) and it EARNED ITS PLACE IMMEDIATELY: run against the unfixed tree it reports exactly the five empty-entity-tag pairs and nothing else, which is how the review finding is known to be the WHOLE regression rather than one instance of a class. If you would rather the PR carried only the two items, say so and I will drop it in one commit.",
"validation": "Reproduce-then-fix on both items, then at the FINAL commit 14c197f87e: the full derived gate family, which the content/docs edit grew from 43 to 64 commands -- 62 GREEN, and the only 2 non-green are the same PREREQUISITE NOT MET (exit 3) pair as before (check-test-completeness needs a saved turbo test log; check-half-states needs a real GitHub credential), i.e. NOT MEASURED and not a red. Also: node scripts/check-system-context-census.mjs --self-test and the gate itself both exit 0; pnpm check:doc-anchors OK (283 fragment links); pnpm check:doc-authoring OK; node scripts/check-doc-frontmatter.mjs OK (404 docs pages + 3 blog); pnpm --filter @objectstack/metadata-protocol test = 2040 passed, 10 skipped, 0 failed; whole-repo pnpm lint (eslint . --no-inline-config) exit 0; pnpm check:type-check-debt 'OK -- 29 ledger entr(ies) re-measured in 213.3s ... none above its recorded number'; check-nul-bytes OK plus a manual control-character grep over the three changed files. ABLATION re-run on the new committed implementation at 14c197f87e (the old run's hashes are now stale, so the PR body carries the new ones): marker present 1 / anchor text 0, blob 6a08f324 -> ddd2081b, 11 of 23 fail, restore proved by empty whole-tree porcelain, empty git diff HEAD and the blob hash back to 6a08f324. The sweep fails under ablation on its own NON-VACUITY assertion ('the corpus must contain at least one pair this change newly accepts'), which is the honest reason -- the mutation removes the repair, so the accept set stops growing. Push was a plain fast-forward; origin was an ancestor of HEAD, no force. All exit codes captured before any pipe.",
"mcp_calls": "2 this round (update_pull_request, add_issue_comment); 5 across the whole card. Every read again via unauthenticated REST, which answers HTTP 200 for the PR and the issue.",
"channel_note": "MEASURED, and it CONTRADICTS the recorded behaviour worth correcting in AGENTS.md: the guidance says a PATCH edit normalises the session-URL footer DOWN to bare and that bare then survives. On this edit the trailing separator and footer were removed ENTIRELY -- read back through REST, the body now ends at the last paragraph with no footer of either form. The prescribed mitigation held: the session URL was written into body PROSE (the Patch round section) before the edit, so durable attribution survived. I have NOT re-appended a footer, per the no-re-append rule.",
"open_questions": [],
"out_of_scope_findings": [
"filed as #13567 (previous round): no live-Postgres coverage of the record-data OCC seam.",
"not filed by me, per instruction: whether an empty If-Match entity-tag should be able to disable OCC at all. The coordinator is filing it; this PR preserves the existing behaviour and decides nothing."
]
}
bugSomething isn't workingdomain:engineRetired 2026-10-22, alias of domain:server (engine surface); in-flight cards keep it until they landpriority:p1High: required for production / M2
Activity
baozhoutao commentedon Aug 30, 2026
Independently re-confirmed on a live multi-node ObjectOS EE deployment (framework
502ff8b5, Postgres 16) during a full platform-checklist run. Two agents reproduced it from their own fixtures: a guardedPATCH /api/v1/data/<obj>/<id>withIf-Matchset to the read-servedupdated_at(ISO2026-08-30T09:49:05.698Z) returns409 CONCURRENT_UPDATEon an uncontested version, and the only accepted token is the 409 body'scurrentVersioninDate.toString()form (Sun Aug 30 2026 09:49:05 GMT+0000 (Coordinated Universal Time)); an unguarded PATCH falls through to last-write-wins. Source confirmed atnormaliseVersionToken(protocol.ts:9744,String()with no Date→ISO canonicalization) — memory-driver pins keep ISO strings so they stay green, which is why it only surfaces against a real Postgres deployment. Not re-filing; recording the live corroboration here.QA-source: #13404 · records-forms.concurrent-edit-conflict · clause 0
Generated by Claude Code
claude commentedon Aug 31, 2026
分诊定级 · 首次定级 ·
bug· p1 ·domain:engine·pm:queuep1:postgres 上每一次保存都 409,而 sqlite 无感
Console 记录编辑弹窗恒 409
CONCURRENT_UPDATE,即便该记录从未被人碰过。⇒ 在生产默认驱动上,乐观锁把正常写入全部拒掉。这不是边缘形状,是主路径。⭐ 卡自己给出了最有说服力的一行证据:报错里的
current与expected是同一瞬间(18:19:25+08:00==10:19:25Z)—— 一个冲突检测器把同一个时刻判成了冲突。而 sqlite 开发环境完全无感,所以它活了下来。⚠️ 这条本身值得记:一个只在生产驱动上出现的缺陷,开发环境的绿色是它的保护色。
域锚定(本轮实测,⛔ 不按卡面包名猜)
卡写
@objectstack/rest/@objectstack/driver-sql。实测:⇒ 落点是
packages/metadata-protocol,按车道表归domain:engine(与 #13216 上 engine 席位给出的落点表同锚)。⛔ 不是packages/rest。⛔ 范围与必答
String()换成toISOString()」就收工 —— 必答项:normaliseVersionToken的输入域有哪几种(pg 回Date、sqlite 回字符串、驱动可能回 number),用枚举回答,并对每一种给出归一后的表示;GMT+0800说明某处走了本地时区格式化。归一必须落在绝对时刻上,⛔ 不得依赖TZ。Generated by Claude Code
zhuangjianguo commentedon Aug 31, 2026
Claimed — dispatch R11
domain:enginelane PM ·session_01F3jdziLbAPGeceVNmSox5Lclaude/issue-13382-occ-version-token-normalisation../objectstack-13382-occ-token(per-task, offorigin/main=70fe54891e)packages/metadata-protocol/src/protocol.ts+ its test siblings. ⛔ Notpackages/rest— see the anchoring note below.packages/spec/src/**path, but this changes when a guarded PATCH is ACCEPTED versus REJECTED with 409 — that is contract accept/reject behaviour, squarely on the content limb. Review atCONTRACT_REVIEW_TIERbefore the PR is flipped ready. Budget for it.The issue body comes back truncated through this channel — it cuts off mid-repro at
1. `GET /api/v1/data/. That is the known payload-channel hazard (#13385 · #13373 · #13387). ⛔ Do not treat the truncated text as the whole card. Open the issue page and read the full reproduction before you plan anything.Cross-seat / anchoring, checked not assumed
Triage re-anchored this by measurement: the landing point is
packages/metadata-protocol, not the@objectstack/rest/@objectstack/driver-sqlthe card's prose names. I confirmed there is nodomain:metadataseat among the 13 openpm:seatposts, so no cross-seat declaration is owed onprotocol.tsfor this claim.protocol.ts:9744, triage says the definition is at:1378with call sites at:9979/:9982. Both were measured at different times on a moving file. ⛔ Trust neither: locate it yourself on70fe54891eand say what you found.Dispatch order — three zones
Zone 1 is not re-adjudicable. Zone 2 is a PM assumption you are asked to try to FALSIFY. Zone 3 is discardable.
Zone 1 — RULINGS (the first four are triage's, carried verbatim)
R4. Answer the input-domain question by ENUMERATION, not by listing the cases you happen to think of. Derive the set from what the drivers actually return, and give the normalised representation for each. A fix that handles
Dateand string but is silent on the third case is not finished.R5. ⛔ A green sqlite run is not evidence here — it is the camouflage. If this container cannot run a real Postgres, say so plainly and describe what you could and could not measure. ⛔ Do NOT substitute a sqlite pass and call the card verified; an honest "not measured on the driver that matters" is worth more than a false green. (CI runs
Temporal Conformance (live PG + MySQL), so a real Postgres exists in CI even if not locally.)R6. No test may be skipped, disabled, quarantined, allow-listed, deleted or re-baselined. In particular ⛔ do not relax an existing OCC pin to accommodate the new normalisation — if a pin genuinely encodes the old broken comparison, that is a finding to report, not a line to edit.
R7. Worktree-first. ⛔ Never
git stash—refs/stashlives in the common.git, shared across every worktree.Zone 2 — PM MECHANISM ASSUMPTION (measure it; falsification is a good outcome)
The PM's reading is that this is one defect with one root — a comparison between two representations of the same instant — and therefore that normalising both sides at the single
normaliseVersionTokenseam fixes every caller at once.Try to falsify it. Specifically: is
normaliseVersionTokenthe only place a version token is compared or emitted? The corroboration comment reports that the 409 body'scurrentVersionis served inDate.toString()form and that that string is the only token the server will accept — which means the broken representation is not merely compared internally, it is published to clients. If some client or test has already adapted to the broken form, a normalisation fix changes what the wire accepts, and that is a wider blast radius than a one-seam repair. Measure it and report.Zone 3 — SUGGESTED ROUTE (discard freely)
currentandexpectedin the error are the same instant (18:19:25+08:00==10:19:25Z). A regression test that asserts "two spellings of one instant do not conflict" pins the property rather than the spelling, and would survive a future representation change.GMT+0800in the error suggests a local-time formatter somewhere. Worth checking whether the same formatter feeds anything else user-visible.STOP conditions
Date.toString()token) ⇒ report before changing what the endpoint accepts; that is a compatibility decision, not a bug fix.Generated by Claude Code
fix(metadata-protocol): compare OCC version tokens as instants, not s…
chore: record the new OCC engine double in the pinned ledger (#13382)
zhuangjianguo commentedon Aug 31, 2026
os-dev-report
{ "issue": 13382, "status": "done", "branch": "claude/issue-13382-occ-version-token-normalisation", "pr": "https://github.com/objectstack-ai/objectstack/pull/13569", "premise_still_valid": true, "summary": "The card's mechanism premise held exactly, and was reproduced end to end on a REAL PostgreSQL 16 provisioned in this container: normaliseVersionToken did String(v) on both sides of the OCC comparison, so a Postgres record's Date-typed updated_at became 'Mon Aug 31 2026 09:05:04 GMT+0800 (China Standard Time)' (milliseconds dropped, process zone baked in) and never equalled the '2026-08-31T01:05:04.454Z' the client echoed back from its own GET. Only the card's PACKAGE attribution was wrong (it names rest / driver-sql), which triage had already re-anchored; the definition is at protocol.ts:1378 as triage said, the call sites had moved to :10012 / :10015 (neither comment's numbers were current), and there is a FOURTH site neither comment named: assertVersionMatch at :10037, the guarded-DELETE door. Fix: both tokens are normalised to ONE representation before comparison (a canonical absolute instant, never consulting the process TZ), falling back to the verbatim token when either side is not an instant; and the 409 now publishes that canonical instant instead of String(updated_at). Both limbs were required -- see the Zone 2 answer. Landed as 2 commits, a changeset, and a 20-test regression suite; draft PR 13569, gate family green at 4295e8de82.", "clause_2_reading": "FIRES -- I concur with the PM and do not revise upward. It changes when a guarded PATCH/DELETE is accepted versus rejected with 409, and it changes a published wire field (the 409's currentVersion), i.e. contract accept/reject behaviour on the content limb. No packages/spec/src path, no new authorable surface. Two mitigating facts for the reviewer, offered as argument and not as a downgrade: on BOTH limbs this moves the implementation toward an already-documented contract (content/docs/api/wire-format.mdx documents currentVersion as an ISO-8601 UTC timestamp), and the accept side is provably monotone-widening -- no token accepted today becomes refused. Review at CONTRACT_REVIEW_TIER before the PR is flipped ready; it is left draft.", "input_domain_enumerated": [ { "case": "JS Date", "produced_by": "driver-sql on Postgres (MEASURED live, PostgreSQL 16) and on MySQL (withUtcSession sets mysql2 timezone 'Z'; the driver keeps timestamptz / DATETIME(3) as Date deliberately -- withPostgresCalendarDayAsText states this in as many words); driver-mongodb (stamps new Date(), BSON round-trips it)", "normalised_to": "value.toISOString() -- canonical ISO-8601 UTC, e.g. 2026-08-30T10:19:25.947Z" }, { "case": "string, already canonical ISO-8601 UTC with milliseconds", "produced_by": "driver-memory (MEASURED), driver-sql on SQLite (MEASURED), and its driver-turso / driver-sqlite-wasm siblings (same TEXT round-trip)", "normalised_to": "the same instant, re-derived through Date -- byte-identical to today for this case" }, { "case": "number, epoch milliseconds", "produced_by": "a pre-canonical or hand-migrated SQLite updated_at column. MEASURED REACHABLE, not assumed: the driver's legacy-datetime repair is keyed on declared Field.datetime columns and datetimeFields[table] is EMPTY for the engine-injected audit columns, so an INTEGER updated_at passes through unrepaired -- engine.findOne returned the number 1756602000123", "normalised_to": "new Date(ms).toISOString()" }, { "case": "null / undefined (or no updated_at column at all)", "produced_by": "timestamps disabled on the object", "normalised_to": "null -- no check runs, unchanged opt-out semantics" }, { "case": "anything else -- an opaque version a host stamps into the column", "produced_by": "the parameter type is unknown, so this is the residual case rather than a driver observation", "normalised_to": "the trimmed, RFC-7232-unquoted token, compared VERBATIM exactly as before -- deliberately not guessed at" }, { "case": "expected side only: a zone-LESS date-time string such as '2026-08-30 18:19:25.947'", "produced_by": "a client or a legacy fixture", "normalised_to": "left OPAQUE on purpose and compared verbatim. Date.parse reads a zone-less date-time as LOCAL time, which would make the OCC verdict depend on TZ -- the one thing the triage ruling forbids. Only strings carrying an explicit Z or a numeric offset are read as instants. Pinned by its own test." } ], "postgres_control": "YES -- run on a real PostgreSQL 16. psql and the full postgres server are installed in this container, so a dedicated cluster was initdb'd and started on port 54382 (my own, torn down afterwards; no shared cluster touched). The defect was reproduced end to end through the real ObjectQL engine and ObjectStackProtocolImplementation, byte-for-byte matching the card's production report including the GMT+0800 and the same-instant pair. After the fix the same harness reports ACCEPTED on Postgres under TZ=Asia/Shanghai (the card's zone), TZ=America/New_York (CI's) and TZ=UTC, plus 7 controls on Postgres AND SQLite: uncontested-ISO ACCEPTED, RFC-7232-quoted ACCEPTED, a token after a REAL racing write REFUSED 409, that 409's currentVersion echoed back ACCEPTED, a pre-fix String(updated_at) token ACCEPTED (no regression), a token 1 ms away REFUSED, an opaque token REFUSED. SQLite is shown beside Postgres as the control that stays green either way -- never as the evidence. NOT MEASURED: MySQL and MongoDB (no server available here); their Date-returning behaviour is derived from source, and CI's Temporal Conformance job covers live MySQL.", "zone_2_blast_radius": "PARTIALLY FALSIFIED, in a way that changed the fix. Confirmed: normaliseVersionToken IS the only place a record-data version token is compared or emitted. The repo has three other version lanes and none can carry this defect -- metadata items compare a sha256 content hash (parentVersion / ADR-0008), cluster KV compares a monotonic bigint, metadata HTTP caching uses a content ETag; packages/rest only forwards the token and passes currentVersion through unread. FALSIFIED: 'one seam, one behaviour'. The seam has TWO limbs and the broken representation was not merely compared internally, it was PUBLISHED. A comparison-only repair would have left the 409 serving a Date.toString() whose milliseconds are already gone -- a token that can never match the record it names -- turning a false conflict into an UNRESOLVABLE one on the exact path (objectui InlineEditSaveBar and occSave re-key their retry to conflict.currentVersion) that is today the only way Postgres users can save at all. Both limbs are fixed. STOP condition NOT triggered, and this was measured rather than argued: (a) wire-format.mdx already documents currentVersion as ISO-8601 UTC, so the emission change moves TOWARD the documented contract; (b) the pinned objectui sibling treats the token as an opaque echo and only formats it for display -- nothing there constructs or parses the Date.toString() spelling; (c) no test in either repo pins that spelling (every fixture is ISO or deliberately opaque); (d) the ACCEPT side is provably monotone-widening -- when either token is not an instant the verbatim comparison still runs, so every pair that matched before still matches, INCLUDING a client mid-upgrade still echoing a pre-fix 409's Date.toString() token. That last one is measured on live Postgres (control 5) and pinned by a test, which is what dissolves the compatibility question rather than deferring it.", "tests": "NEW: packages/metadata-protocol/src/protocol.occ-version-token-instant.test.ts, 20 tests, ALL PASS -- 'Test Files 1 passed (1) / Tests 20 passed (20)'. Pins the PROPERTY not the spelling: a table of spelling pairs each naming ONE instant, a three-zone sweep carrying a NON-VACUITY control that asserts the zones really do move String(Date) (three distinct spellings required, or the sweep proves nothing), millisecond-resolution conflicts, the published token round-tripping, and the widening guarantee. R6 HELD -- no test skipped, disabled, quarantined, allow-listed, deleted or re-baselined: the diff touches NO existing test file, and none of the existing OCC pins encoded the broken comparison (every fixture was ISO-on-both-sides, which is exactly why they were green through the whole outage). They pass unmodified: objectql protocol-data.test.ts + engine-update-by-id-payload-id.test.ts = 128 passed; rest rest.test.ts + rest-server-query-multiplicity.test.ts + rest-unclassified-fault-status.test.ts = 278 passed; whole metadata-protocol suite = 2037 passed, 10 skipped, 0 failed. ABLATION on the COMMITTED implementation at e1a731beed: canonicalVersionInstant neutralised so every token reports 'not an instant', which reduces the seam to the old verbatim compare. Mutation PROVED ON DISK by grep of BOTH the injected marker (count 1) and the deleted anchor text (count 0), and by the blob hash moving 9204c8fc -> a7444d89. Result: 10 of 20 FAIL, vitest exit 1 -- and the 10 that stay GREEN are precisely those encoding pre-fix behaviour that must not change (the SQLite ISO-on-both-sides row, the opaque tokens, the empty-token opt-out), which is the correct split rather than a uniformly coupled suite. NO REBUILD LEG, and that is a measurement not an omission: the suite reaches the subject through a RELATIVE source import inside its own package, so dist is not in the resolution path -- proven by the mutation reddening it with no build at all. RESTORE under trap ... EXIT INT TERM with an absolute REPO_ROOT from git rev-parse --show-toplevel, proved by whole-tree git status --porcelain EMPTY, git diff HEAD empty, git hash-object back to 9204c8fc (== the HEAD blob), marker count 0 and anchor text count 1. GATES: whole derived family re-run AT THE FINAL COMMIT 4295e8de82 via node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack (43 commands) -- 41 GREEN. The 2 non-green are PREREQUISITE NOT MET (exit 3), i.e. NOT MEASURED and not a red, each quoting its own verdict line: check-test-completeness 'PREREQUISITE NOT MET -- this gate grades a saved turbo run test log, and no log was named', and check-half-states 'PREREQUISITE NOT MET -- the token in the environment is not a valid GitHub credential'. Also at 4295e8de82: whole-repo pnpm lint (eslint . --no-inline-config) EXIT 0 in 61s -- the FULL sweep, not a narrowed run, so no narrowing claim is being made; pnpm check:type-check-debt 'OK -- 29 ledger entr(ies) re-measured in 213.7s, 1542 raw tsc error(s) total, none above its recorded number'; check-nul-bytes 'OK (scanned 7522 text file(s) ... no raw ASCII control bytes)' plus a manual control-character grep over the four changed files (no matches). One gate needed action and it was the prescribed one, NOT a relaxation: check:engine-double-contract RETAINED the new suite's fake engine and printed 'New pinned coverage is GOOD ... run --write and commit'; --write added 3 rows, lost 0, and the gate then reads 'OK -- 719 pinned'. All exit codes captured with redirect-then-capture, never through a pipe.", "mcp_calls": "3 -- issue_write (file the finding), create_pull_request, add_issue_comment (this report). Every read went through the zero-config channel: unauthenticated REST answered HTTP 200 for the repo, the issue and its comments, so no MCP read was spent. Two channel notes for the PM below.", "channel_notes": "1) The dispatch warned the card body comes back TRUNCATED through the API. It does NOT through unauthenticated REST: GET /repos/objectstack-ai/objectstack/issues/13382 returned HTTP 200 with the complete 2173-character body, ending at the 'Part of steedos-labs/...' line. The truncation is an MCP-channel artifact, not an API-wide one -- worth knowing, because the cheap channel is the one that works. 2) REST /search/issues answers 403 unauthenticated here, so the duplicate check for the finding used a narrow REST list (open issues labelled 'finding', 43 rows) plus a local keyword grep; one keyword hit, unrelated. No wide-table scan and no MCP search.", "open_questions": [], "out_of_scope_findings": [ "filed as #13567: no live-Postgres coverage of the record-data OCC seam -- the Temporal Conformance (live PG + MySQL) job runs only pnpm --filter @objectstack/driver-sql test, and @objectstack/metadata-protocol has no driver dependency and must not grow one, so the driver shape that broke this is only ever a hand-made fixture. Labelled 'finding', unassigned, three options costed with a recommendation (a driver-side characterisation pin in driver-sql, which lands inside the job that already exists)." ] }Generated by Claude Code
Generated by Claude Code
docs(permissions): re-anchor the isSystem census row onto the shifted…
fix(metadata-protocol): keep an empty If-Match entity-tag opting OUT …
zhuangjianguo commentedon Aug 31, 2026
os-dev-report
{ "issue": 13382, "status": "done", "round": "patch round 1 — CI red + contract-review finding, one validated push", "branch": "claude/issue-13382-occ-version-token-normalisation", "pr": "https://github.com/objectstack-ai/objectstack/pull/13569", "head": "14c197f87e (was 4295e8de82)", "premise_still_valid": true, "summary": "Two items, both reproduced BEFORE fixing and shown passing after, folded into one fast-forward push (no force). (1) check-system-context-census line rot: the OCC diff pushed row 21's anchor in content/docs/permissions/system-context.mdx down. Verified a PURE SHIFT myself rather than taking it on trust, because the gate treats shift and population change differently -- byte-identical statement across the move (sha256 db885f75...), isSystem occurrence count 9 on both trees, and the new line is the first statement of stripReadonlyForInsert, which is what row 21 describes. Repaired with the gate's own --fix. #13490's false refusal did NOT reproduce. (2) The contract-review finding is real and mine: If-Match with an empty entity-tag flipped ACCEPT to 409. Took the conservative remedy as instructed -- re-apply the emptiness test AFTER the quote strip, byte-identical to 70fe54891e -- and did not touch the underlying contract question. Nothing re-baselined, nothing exempted, nothing widened.", "item_1_census_line_rot": "REPRODUCED first: node scripts/check-system-context-census.mjs exit 1, the same two errors CI printed (site-without-a-row at :1566, anchor-is-not-a-read-site at :1451). Note for the board: the pnpm alias named in the dispatch, check:doc-anchors, is a DIFFERENT gate (fragment links) and was green throughout -- the failing script has no pnpm alias and CI invokes it directly as node scripts/check-system-context-census.mjs. --fix rewrote exactly one anchor and the gate then read 'OK -- 109 elevation read sites in 20 packages across 45 files, all anchored; 145 anchors resolve, 27 declared non-read'. The diff is one line number on row 21; no prose touched. IT SHIFTED A SECOND TIME: the item-2 remedy added ten lines above the same function, moving the read 1566 -> 1576. Caught only because the gate union was re-run at the FINAL commit rather than at the commit where the first repair landed -- the same pure-shift checks were redone (byte-identical, count still 9) and the second re-anchor is folded into the same commit.", "item_2_empty_entity_tag": "CONFIRMED as characterised, mechanism and all. Pre-fix normaliseVersionToken returned the bare string, so the empty entity-tag became the falsy '' after the quote strip and every caller short-circuited into 'no token supplied'. The wrapper object is always truthy, so the check began running and '' mismatched verbatim -> 409. REPRODUCED as a test before touching the implementation: three new cases went RED on the unfixed tree (the PATCH door, the DELETE door -- assertVersionMatch tests truthiness at its own call site and can regress independently -- and the corpus sweep). Remedy: `if (!token) return null;` re-applied inside the quote-strip branch. Deliberately NOT `!token.trim()`: pre-fix, a quoted blank stripped to a truthy three-space token and the check RAN, so trimming there would have installed a second new opt-out -- a widening I was not asked for and did not make. The remedy is byte-equivalent to 70fe54891e for every input.", "beyond_the_brief": "One addition beyond 'the remedy + its pin', flagged deliberately rather than slipped in. I also added a DIFFERENTIAL SWEEP: 8 stored shapes x 15 client tokens, each pair judged against the pre-fix comparison reproduced verbatim in the test file, failing on any pair accepted before and refused now. Reason: the strictly-widening claim was prose in four places and read as true to three separate readers while one token had already flipped -- prose is what failed here, so the claim now has a check. It cost no new verification surface (same file, same package, same gate family) and it EARNED ITS PLACE IMMEDIATELY: run against the unfixed tree it reports exactly the five empty-entity-tag pairs and nothing else, which is how the review finding is known to be the WHOLE regression rather than one instance of a class. If you would rather the PR carried only the two items, say so and I will drop it in one commit.", "validation": "Reproduce-then-fix on both items, then at the FINAL commit 14c197f87e: the full derived gate family, which the content/docs edit grew from 43 to 64 commands -- 62 GREEN, and the only 2 non-green are the same PREREQUISITE NOT MET (exit 3) pair as before (check-test-completeness needs a saved turbo test log; check-half-states needs a real GitHub credential), i.e. NOT MEASURED and not a red. Also: node scripts/check-system-context-census.mjs --self-test and the gate itself both exit 0; pnpm check:doc-anchors OK (283 fragment links); pnpm check:doc-authoring OK; node scripts/check-doc-frontmatter.mjs OK (404 docs pages + 3 blog); pnpm --filter @objectstack/metadata-protocol test = 2040 passed, 10 skipped, 0 failed; whole-repo pnpm lint (eslint . --no-inline-config) exit 0; pnpm check:type-check-debt 'OK -- 29 ledger entr(ies) re-measured in 213.3s ... none above its recorded number'; check-nul-bytes OK plus a manual control-character grep over the three changed files. ABLATION re-run on the new committed implementation at 14c197f87e (the old run's hashes are now stale, so the PR body carries the new ones): marker present 1 / anchor text 0, blob 6a08f324 -> ddd2081b, 11 of 23 fail, restore proved by empty whole-tree porcelain, empty git diff HEAD and the blob hash back to 6a08f324. The sweep fails under ablation on its own NON-VACUITY assertion ('the corpus must contain at least one pair this change newly accepts'), which is the honest reason -- the mutation removes the repair, so the accept set stops growing. Push was a plain fast-forward; origin was an ancestor of HEAD, no force. All exit codes captured before any pipe.", "mcp_calls": "2 this round (update_pull_request, add_issue_comment); 5 across the whole card. Every read again via unauthenticated REST, which answers HTTP 200 for the PR and the issue.", "channel_note": "MEASURED, and it CONTRADICTS the recorded behaviour worth correcting in AGENTS.md: the guidance says a PATCH edit normalises the session-URL footer DOWN to bare and that bare then survives. On this edit the trailing separator and footer were removed ENTIRELY -- read back through REST, the body now ends at the last paragraph with no footer of either form. The prescribed mitigation held: the session URL was written into body PROSE (the Patch round section) before the edit, so durable attribution survived. I have NOT re-appended a footer, per the no-re-append rule.", "open_questions": [], "out_of_scope_findings": [ "filed as #13567 (previous round): no live-Postgres coverage of the record-data OCC seam.", "not filed by me, per instruction: whether an empty If-Match entity-tag should be able to disable OCC at all. The coordinator is filing it; this PR preserves the existing behaviour and decides nothing." ] }Generated by Claude Code
Generated by Claude Code
fix(metadata-protocol): order the ADR-0067 commit timeline by instant…
fix(metadata-protocol): compare OCC version tokens as instants, not s…
fix(metadata-protocol): order the ADR-0067 commit timeline by instant…