Repository navigation
Description
✅ I checked the Altinity Stable Builds lifecycle table, and the Altinity Stable Build version I'm using is still supported.
Type of problem
Bug report — integrity. Split out of tracking issue #2031 (CAS-021, prev CAS-035). Static analysis of PR #2159 / cas-code-only-strip; not yet reproduced end-to-end.
Describe the situation
When a conditional object-store write (create-if-absent / If-Match overwrite) does not return a definite ACK, the CAS request controller guesses a definite outcome from a later GET/HEAD.
Two complementary lies:
- Content equality is treated as proof that this attempt committed. After 412, 500, timeout, or a lost 200,
putOverwriteControlled/putIfAbsentControlledMutableGET the key and, ifgot->bytes == bytes_s, returnCommittedwithgot->token— the current object's etag, which may belong to another writer. - A landed-then-timed-out write is reported as another writer's object. After the same ambiguity,
conditionalCreateControlled/slotOccupysee that the key exists and returnOccupiedwithunresolved_reason = NotUnresolved.
Content equality answers “is the durable value the value I intended?” It does not answer “did this client's conditional PUT succeed?” That second question is authorship. It is only recoverable from this PUT's 200+etag, or from a writer/attempt id embedded in the object. Blob freshness meta is generic {state, condemn_round, size} — no owner.
This issue:
- Erases compare-and-set exclusivity on mutable keys (
casMeta/putMetaIfAbsent) - Hands the loser the winner's etag, so a later
If-Matchcan splice the CAS chain - Lets GC treat a false
Committedas “I confirmed the condemn marker,” which licensesdeleteExactof the blob body - Lets a lost ACK of our own ref-log append be classified as foreign occupancy and fault the mount as impossible interference
The same codebase already does the correct thing for the server-root owner anchor: claimOwnerOrThrow rereads the object and accepts only if server_uuid == our_uuid.
How to reproduce the behavior
Environment
- Version: CAS as in PR [experimental] CAS (Content-addressed storage) over shared object storage for antalya-26.6 #2159 (
feature/antalya-26.6/CAS, audited oncas-code-only-stripat842f2b37b8f) - Build type: n/a (code-path finding; trigger is a lost ACK / 5xx / 412 on a conditional PUT)
Steps (logical)
The controller never distinguishes “PUT applied, ACK lost” from “PUT refused” from “PUT never applied.” Any of: dropped 200, HTTP 500/503, timeout after send, or a definite 412 followed by GET.
Direction A — false Committed (generic mutable key)
- Two writers issue
casMeta/putOverwriteControlledof identical bytes to one blob-meta key (GC condemn of{Condemned, round N, size S}is the realistic pair: two GC actors, or a retry). - Winner's If-Match succeeds. Loser's If-Match is 412, or either writer times out after the store applied the PUT.
- Loser (or the timed-out winner) GETs, sees matching bytes, returns
{Committed, got->token}.
Direction B — false Occupied (lost ACK of our own create)
- Writer does
putIfAbsent/slotOccupy/conditionalCreateControlled. Store applies it; ACK is lost. - Controller HEAD/GETs, key exists, returns
Occupiedand claims the outcome is not unresolved.
Expected behavior
An ambiguous conditional-write result stays Unresolved. Callers already have a wedge/retry for that (ref-log append). Do not return Committed. Do not return Occupied/Conflict. Do not adopt got->token as ours.
Ownership of a mutable key is only:
- the etag from this PUT's 200, or
- a writer-unique attempt id inside the payload (as
claimOwnerOrThrowalready checksserver_uuid)
Byte equality of generic content is not authorship.
Actual behavior
False Committed + stolen token
CasRequestControl.cpp putOverwriteControlled — any non-Done PUT, including definite 412, falls into GET; equal bytes → Committed with the GET's token:
else if (got && got->bytes == bytes_s)
{
...
return {CasOverwriteOutcome::Committed, got->token};
}Same shape in putIfAbsentControlledMutable. putIfAbsentControlled uses resolveByExactGet, which also maps equal bytes → Committed.
False Occupied
conditionalCreateControlled: after a thrown/non-Done attempt, head(key).exists → {Occupied, {}} with no token and no unresolved reason.
slotOccupy: GET exists → Kind::Occupied, unresolved_reason = NotUnresolved, occupant_bytes possibly our own.
Root cause analysis
classifyConditionalWriteResult correctly maps 500 / timeout / lost 200 to Unresolved (only malformed / entity-too-large / access-denied are DefiniteFailure). The bug is the resolution ladder after that: a later GET/HEAD of a shared key is treated as the PUT's result.
Blob meta has no owner id:
struct BlobMeta {
uint8_t version = 1;
MetaState state = MetaState::Clean; // clean | condemned
uint64_t condemn_round = 0;
uint64_t size = 0;
};casMeta / putMetaIfAbsent feed that encoding into the controller. Two processes that want the same {Condemned, N, S} write identical bytes, so the equality branch fires even on a definite 412.
Consequence chain (GC)
Gc::writeCondemnedMeta treats outcome == Committed as “this process won the condemn CAS”:
if (writeCondemnedMeta(*store, ref, condemn_round, size))
noteCondemnMarkerDurable(ref, token);That in-process set is later trusted without re-reading meta:
if (condemnMarkerConfirmedInProcess(entry.ref, entry.token))
return true;The blob is graduated to delete_pending and deleteExact(blobKey, token) runs.
A part writer uses the same controller to move meta the other way (writeResurrectMetaClean: casMeta(..., Clean)). Both sides can take Committed from equality of generic {Clean,…} / {Condemned,…}. GC's local confirmation can then delete a body a writer has already re-admitted.
Consequence chain (Occupied → mount fault)
Wedge resolution classifies slotOccupy's Occupied payload. Equal bytes → Ours (accidentally OK for unique ref-log keys). Anything else, including a decode failure, is Foreign → lane Faulted, mount fenced, CORRUPTED_DATA “impossible foreign interference.”
Blob create maps Occupied to PreconditionFailed and adopts the object as a peer's live incarnation (PartWriteTxn::uploadFromSource), including when the occupant is our own lost-ACK write.
What is not this bug
Content-addressed blob keys (key = hash of bytes): “occupied at blobs/<hash>” means those bytes exist; adopting them does not claim exclusive create. The defect is using that reasoning on mutable slots (blob meta, mount/owner, ref-log occupy) whose payload does not name the writer.
Additional context
Anchors (CA/ = src/Disks/DiskObjectStorage/MetadataStorages/ContentAddressed/)
CA/Backend/CasRequestControl.cpp:427-435,:498-506— equality →Committed+ stolen tokenCA/Backend/CasRequestControl.cpp:357-368,:543-562— existence →OccupiedCA/Backend/CasRequestControl.cpp:229-233—resolveByExactGetsame equality ruleCA/Backend/CasObjectStorageBackend.cpp:109-124—NoSuchKeymapped toPreconditionFailedCA/Pool/CasBlobMeta.cpp/Formats/CasBlobMetaFormat.h— generic meta, no ownerCA/Gc/CasGc.cppwriteCondemnedMeta/noteCondemnMarkerDurable/deleteExactCA/Pool/CasPartWriteTxn.cppwriteResurrectMetaClean,uploadFromSourceOccupied → adoptCA/Pool/CasRefLedger.cppclassifyRefLogOccupant, wedgeForeign→ Faulted- Contrast (correct):
CA/Pool/CasServerRoot.cppclaimOwnerOrThrowcomparesserver_uuid
Tracking
- CAS — consolidated static analysis audit findings (tracking) #2031 CAS-021 — resolution 🔴 still-present (carried from prev CAS-035); evidence now bidirectional
- Audit gist (2026-08-12): https://gist.github.com/alsugiliazova/6dce01834f93cdb7cdbb2fc70d1efc5f —
NEW-FINDINGS.mdCAS-021;reports/tier2.mdtier2-4 / tier2-5
Suggested fix direction
Leave ambiguous results Unresolved. Do not promote GET/HEAD to Committed/Occupied. Do not return a GET etag as ours. If a protocol needs “I won this slot,” put a writer-unique attempt id in the payload and only treat a 200 of this PUT as Committed.
Update (2026-08-14) — narrowed after design review
The original report and the follow-up comment mixed different object types that the protocol treats differently on purpose. That overstated CAS-021. This update is the corrected scope.
Filimonov’s split is the right frame:
- Blob bodies have no owner. There are only edges in the graph (
ref → manifest → blob). It does not matter who uploaded the bytes. Occupied atblobs/<hash>means those bytes exist; adopting them is the design, not a bug. - Refs and manifests have exactly one writer per
server_root_id, via the mount lease. The realistic race is this process against its own retry after a lost ACK, not two owners. Byte equality after GET on a lease-unique key (writer_epoch,seq/ManifestId) is “my attempt is durable.”Foreignis meant to be impossible and fail-closed.
The original “you must never infer authorship from content” is too wide here. Under a healthy mount lease, GET-after-ambiguity on those unique keys is a self-retry resolver, not an ownership oracle.
GC is not that writer. It does not take the mount lease. It takes a separate lease on gc/state (one leader per pool). That is a second actor, but it does not make blob bodies owned.
What the original report got wrong
| Claim in the original / comment | Reality |
|---|---|
Blob create Occupied → adopt is an integrity failure |
Not a bug. Hash key, no owner. |
Ref-log / manifest / snapshot Committed via byte equality after lost ACK |
By design under the mount lease (self-retry of a unique id). |
Wedge Occupied + equal bytes → Ours |
By design (same attempt). Foreign is the invariant alarm if the lease held. |
Two writers of opposite blob-meta (Clean vs Condemned) both “win” via equality |
Does not happen. Different payloads → Conflict → retry. |
| Stolen GET etag splices the CAS chain today | Loaded gun, not a current firing path. GC and resurrect check .outcome only and discard the token. |
| The six controller exits are six extra bugs | One API. Most callers are consistent with the design split above. |
The long consumer map in the first comment is still a useful inventory of call sites. It is not a list of distinct integrity holes.
What is still real (narrower)
1. The controller API names the wrong thing.
After a PUT that is not a clean Done, putOverwriteControlled / putIfAbsentControlledMutable / resolveByExactGet return Committed + the GET etag when bytes match — including on a definite 412. conditionalCreateControlled / slotOccupy return Occupied with unresolved_reason = NotUnresolved when the key exists.
classifyConditionalWriteResult already maps timeout / 500 / lost 200 to Unresolved. The GET/HEAD ladder then promotes that to a definite win/loss. For blob bodies and lease-unique refs that promotion is often the intended end state (“bytes I wanted are there” / “my unique slot is durable”). Returning Committed still means “this attempt won,” which is a lie when the PUT was 412 or never ACKed. That is API hygiene / a footgun, not proof of today’s data loss.
2. Blob meta is not a blob.
BlobMeta is {state, condemn_round, size} — a mutable flag between GC and writers, not content-addressed data and not covered by the mount lease.
- Two GCs writing the same
{Condemned, round N, size}: equality → both seeCommitted. That is the same fact aswriteCondemnedMeta’sif already Condemned return true. Idempotent. Who wrote the marker does not matter if the next delete re-reads meta. - GC vs INSERT write opposite payloads →
Conflict, not falseCommitted. - What can go stale: in-process
condemn_markers_confirmedis trusted without a meta re-read (confirm_condemned_marker). That is a GC confirmation shortcut, not “blobs have owners.”
3. Call sites that ignore the CAS result (survive a controller-only fix).
observeAndAdmitdiscardsputMetaIfAbsent(Clean). If GC already putCondemned, the writer can still adopt. That is “ignore the outcome,” adjacent to CAS — consolidated static analysis audit findings (tracking) #2031 CAS-002, not content-as-authorship.claimMount:putIfAbsent/putOverwrite!= Done→LiveDoubleStartwith no GET. Lost ACK of our mint can refuse the disk. Liveness, not blob ownership. When the slot already exists,claimMountdoes compareserver_uuid(correct).
4. Not this issue
- CAS-003 (CAS — consolidated static analysis audit findings (tracking) #2031): two GC leaders overlapping destructive phases (lease has no TTL; heartbeat
casPutresult discarded; blobdeleteExactnot revalidated). That is the serious “GC isn’t one” question. Separate from CAS-021. - CAS-011, CAS-068: different mechanisms.
- CAS: SYSTEM CAS GC RUN on a follower silently does nothing (acquired_lease=0) #2211:
SYSTEM CAS GC RUNon a follower silently no-ops. Operator UX, not this protocol.
Expected behavior (revised)
Do not treat blob-body Occupied or lease-unique self-retry as bugs.
Do not steal a live GC lease to “fix” this (see CAS-003).
Still worth doing:
- Stop returning
Committedon a definite 412 just because GET bytes match; that is “desired state present,” not “this attempt won.” Keep a distinct outcome or stayUnresolvedand let the caller re-read. - Do not return a GET etag as if it were this PUT’s token unless the PUT returned
Done. observeAndAdmitmust honorputMetaIfAbsent/casMeta(Conflict/ condemned).- Optionally:
claimMountshould GET and compareserver_uuidon non-Done, not assume another live server.
A stress test that only checks “who uploaded the blob” will confirm Filimonov and miss the remainder. The interesting test is GC vs concurrent INSERT on the same hash (condemn vs adopt/resurrect), with injected 412/timeout on the meta PUT — and, separately, CAS-003 (two GC actors).
Not reproduced end-to-end. Static / logical only.
Activity
alsugiliazova commentedon Aug 13, 2026
Follow-up: complete map of where ownership is misclassified and what each consumer then does. Same root cause as the issue body (ambiguous conditional PUT promoted to a definite win/loss). Not separate bugs — a controller-only fix that leaves results
Unresolvedand never returns a GET etag as ours addresses these, except the two call sites that bypass the controller (called out at the end).CA/=src/Disks/DiskObjectStorage/MetadataStorages/ContentAddressed/.Where the lie is
After a PUT that is not a clean
Done, these exits GET/HEAD and invent a definite outcome.CA/Backend/CasRequestControl.cppresolveByExactGet:229-233Committed+ GET etaggot->bytes == expectedputIfAbsentControlled:290-312resolveByExactGetputOverwriteControlled:424-438Committed+ GET etag, orConflictputIfAbsentControlledMutable:495-509conditionalCreateControlled:357-368Occupied, no tokenslotOccupy:557-562Occupied+ occupant bytes/token,unresolved_reason = NotUnresolvedBackend feeder:
CA/Backend/CasObjectStorageBackend.cpp:117-120finalizeConditionalWritemaps S3NoSuchKeytoPreconditionFailed. A missing key becomes “someone else owns this.”Second authorship test (not a 200 of this PUT):
CA/Pool/CasRefLedger.cppclassifyRefLogOccupant:120-128—occupant_bytes == expected_bytes→Ours, else decode → epoch seal orForeign.Content equality answers “is the durable value what I intended?” It does not answer “did this client's conditional PUT succeed?” Authorship is only the etag from this PUT's 200, or a writer/attempt id inside the object. Generic payloads (blob meta
{state, condemn_round, size}) have no owner.Consumers and side effects
1. Blob meta —
casMeta/putMetaIfAbsent(generic, no owner)CA/Pool/CasBlobMeta.cpp→putOverwriteControlled/putIfAbsentControlledMutable. Two writers of{Condemned, round N, size S}or{Clean, 0, size}write identical bytes, so the equality branch fires even on a definite 412.GC
CA/Gc/CasGc.cppwriteCondemnedMeta:89-98→scheduleCondemnMarkerWrite:357-358→noteCondemnMarkerDurable.Committed(blob, body-token)as a confirmed condemn marker. Laterconfirm_condemned_marker:1352-1353trusts that in-process set without re-reading meta. Blob is graduated todelete_pending.runRegularRound:613doesdeleteExact(blobKey, token)thendeleteConfirmedMeta. Blob body is deleted because this node believes it sealed the condemn. If a writer hascasMeta'd the same key back to Clean and admitted the blob into a part, that part names a blob GC is about to remove.Conflict/UnresolvedWriter
CA/Pool/CasPartWriteTxn.cppwriteResurrectMetaClean/writeFreshMetaClean:361-384.CommittedBlobDepRecordgoes into the part manifest; INSERT/merge succeeds.Conflict/UnresolvedthrowCasWriteRetryLater. No silent admit.observeAndAdmit:287-304—putMetaIfAbsent(Clean)return value discarded. Any controller outcome is ignored. The blob is adopted as a live dependency even if the Clean marker never landed, conflicted, or was a falseCommittedof someone else's Clean. A part can name a blob with missing/Condemned meta; GC is free to retire it. This caller bug survives a controller-only fix unless the result is checked.Stolen GET etag: GC/writer today only test
.outcome. The controller still handsgot->tokenback as ours; any laterIf-Matchwith it splices the CAS chain.2. Blob body create —
conditionalCreateControlled→uploadFromSourceCasPartWriteTxn.cpp:406-449. FalseOccupied(our PUT landed, ACK lost, HEAD exists) →PreconditionFailed, then:observeAndAdmit(treat as a peer's live blob).writeResurrectMetaClean).HeadMissAdopted.Side effects: we never take the “I created this” path (no PUT token,
BlobReuseAdoptinstead ofBlobPut). If GC condemned in the window:ABORTED/ resurrect instead of acknowledging our own create. Adoption uses the HEAD token, not the PUT etag we never got. For a hash key adopting the same bytes is not exclusive-create; it is still a false “not mine.” HonestUnresolvedhere isthrowCasWriteRetryLater(re-upload).3. Manifest create —
putIfAbsentControlled→stageManifestCasPartWriteTxn.cpp:550-573. Key unique perManifestId.CommittedviaresolveByExactGetmanifest_token, emitManifestPut, push id intostaged_manifests, laterprecommitAddpublishes a ref to it. Lost ACK of our bytes: we did create it (OK-ish). Identical encoding from another txn: both believe they staged the same identity. Different bytes:resolveByExactGetthrowsCORRUPTED_DATA— part write dies (fail closed).Unresolved4. Ref-log append —
putIfAbsentControlled→commitRefChunkCasRefLedger.cpp:2455-2720. Key unique(namespace, writer_epoch, seq).Committed(lost ACK, GET bytes match)committed_id,done = true), maybe snapshot. Callers think the append is durable and exclusive. Same bytes at a unique key is usually our retry (what we wanted). A peer with the same epoch writing the same encoding: both mounts install the same history.CORRUPTED_DATAfromresolveByExactGet(different bytes)Unresolved(GET failed / key absent)slotOccupy. Correct protocol — skipped whenever the controller already liedCommitted.On occupant classify after different bytes / unreadable GET:
SuccessorSealForeign/ unreadablereportImpossibleInterference(CasPool.cpp:972-990):ForeignInterferenceevent,tripMountLost, remount. Disk refuses all durable writes (mayMutate()false) until remount.5. Wedge resolution —
slotOccupyCasRefLedger.cpp:1639-1849. FalseOccupiedafter unknown PUT (including our lost ACK):Ours(bytes equal)Committedin (4).SuccessorSealForeign(including decode failure)6. Recovery epoch-seal —
slotOccupy(noOurscheck)CasRefLedger.cpp:772-822.Occupiedoccupant_bytes,apply_onethat txn as recovered history, publish recovered frontier, advance epoch/seq. Our lost-ACK seal: applying it is the right history. A straggler's different txn at that slot: we install their seal/append as this table's log, then checkpoint it. There is noOurscheck on this path. Decode throw: table stays unrecovered (fail closed).CreatedUnresolvedthrowCasWriteRetryLater; table not exposed. Honest.7. Snapshot put —
putIfAbsentControlledCasRefLedger.cpp:3009-3016tryPublishSnapshotAndAdvanceCheckpointOnceOnRuntime.CommittedpublishCkptContributionadvances_ckptto that snapshot id. GC may then delete older snapshots under that checkpoint. If we advanced on a peer's snapshot we did not write, in-memory tail can disagree with the durable snapshot, or we allow deletion of a snapshot we still need.Unresolved8. Decommission owner tombstone —
putOverwriteControlledCA/Tools/CasDecommission.cpp:338-350. Owner object does containserver_uuid+retired_at_ms.Committed(GET bytes == our tombstone)report.slot_removed = true. Operator is told the member is gone.Conflict(GET is a live owner or a different tombstone)UnresolvedBypasses the controller (same class, would survive a controller-only fix)
claimMount(CA/Pool/CasServerRoot.cpp:310-313,:336-337,:349-350):putIfAbsent/putOverwrite!= Done→LiveDoubleStart. No GET, no uuid compare on that failure. Lost ACK of our mint/refresh is reported as another live server. Side effect: disk refuses to mount (CasPool.cpp:453,:713). (When the slot already exists,claimMountdoes compareserver_uuid— that part is correct.)observeAndAdmitdiscardingputMetaIfAbsent— see (1). Even a correctConflict/Unresolvedis ignored.Related, already tracked elsewhere — do not split out:
CasPlainObjects::casPutObject— non-Doneis not success, but the next loopputOverwrites with a fresh HEAD token and our bytes (namespace files / mountpoint objects clobbered after an ambiguous create).putIfAbsentControlledswallows deterministic local failures asUnresolved(opposite direction).publishCkptcatch path (CasRefCkpt.cpp:229-230): after ambiguouscasPut, ifmerge(current, ours) == current→Published. That is “the merge already contains our contribution,” not “I won the CAS.” Safer; still not a 200.Side-effect summary
Committedon generic metaCommittedon generic metaCommitted(ignored)observeAndAdmitOccupiedon blob createuploadFromSourceCommittedon manifeststageManifestCommittedon ref-logcommitRefChunkOccupied+OursCommitted(unwedge)Occupied+ForeignOccupied+SuccessorSealOccupied(noOurscheck)Committedon snapshot_ckpt; enables GC of older snapshotsCommittedon owner tombstoneConflict/LiveDoubleStarton mount PUTclaimMountNoSuchKey→ 412Not this bug (correct pattern already in-tree)
Re-read the object and check an id in the payload:
claimOwnerOrThrow—server_uuid == our_uuidclaimMountwhen the slot already exists —existing.server_uuid != our_uuidPoolMeta::createOrValidateafter create Conflict — admit the winner's decoded meta, do not claim we mintedpool_idContent-addressed blob keys (key = hash of bytes): Occupied means those bytes exist. Adopting them is not exclusive-create. Using that same reasoning on blob meta, ref-log occupy, mount, owner, and snapshots is the bug.
A controller fix that stays
Unresolvedand never returns a GET etag as ours covers the table above exceptclaimMountandobserveAndAdmit's discarded result — those two must be changed at the call site.filimonov commentedon Aug 20, 2026
Thanks for this report — it is precise, and every code citation in it is accurate. We re-verified all six claimed controller behaviors against the current
cas-gc-rebuildhead (684161dcc03): the resolution ladder is byte-identical to what you audited (nothing touched it since), the equality→Committedarms, the token adoption, the reason-lessOccupied, and theNotUnresolvedlabel are all exactly as described, andclassifyConditionalWriteResultis indeed correct with the defect living strictly after it.However, when we traced each claimed consequence end-to-end on the current tree, none of them fires. The safety argument is distributed across several files, which is a documentation failure on our side (see "actions" below) — but it does hold:
GC deleting a re-admitted body (Direction A's consequence chain). Three independent guards sit between a false
Committedand a lost body:delete_pendingand the actual delete happen in different rounds (durablemarker_confirmedrow bit + round floor).CasBlobInDegree.cpp:423— "spec §5, third arm"): the entry is re-settled against the in-degree recomputed by the merge that just ran, andindeg > 0wins overdelete_pendingunconditionally, past the floor. A writer that re-admitted the blob emits an edge; the entry is spared (CASGCRetiredSparedByReref).deleteExact(blobKey, token), and resurrection mints a freshincarnation_tagon both arms precisely so the resurrected body's ETag differs from the condemned one (CasPartWriteTxn.cpp:741-747, with the verbatim-copy hazard called out at:710-716). A stale token's delete findsTokenMismatchand removes nothing; GC then drops its in-process confirmation and leaves the meta alone (CasGc.cpp:862-870)."False
Committed= I won the condemn CAS". The gate's actual predicate is weaker than authorship, deliberately:writeCondemnedMeta's contract is "durable Condemned evidence exists after the call" — and its line:137already returnstruefor a foreign already-Condemned marker by design. The equality-resolve GET literally observed the desiredCondemnedbytes at the key, which is exactly the predicate the gate consumes. Byte equality does not prove authorship, but authorship is not what this caller needs.The stolen token. The equality-resolved meta etag is consumed by nobody:
writeCondemnedMetareads only.outcome, and the token GC later uses fordeleteExactis the body token from its ownloadMeta, not the controller's return. So no laterIf-Matchcan splice through it today. (That this is only true by convention rather than by type is a fair criticism — see actions.)Direction B (own landed create reported as foreign). For the ref-log lane the occupant's raw bytes and token are returned and the caller adjudicates "mine" by byte equality (
classifyRefLogOccupant,CasRefLedger.cpp:2240) — which is sound there because the ref-log payload carries(writer_epoch, ref_sequence)identity, unlikeBlobMeta. A lost ACK of our own append classifies asOurs/Adopted, not foreign. Theon_impossible_interferencemount fault is reachable only for an occupant whose bytes were actually read and are neither ours nor a successor seal. ForconditionalCreateControlledthe keys are immutable and content-addressed: the key embeds the content hash, so any occupant is the intended content, and the caller's adopt path treats our own landed write identically to a twin writer's — the correct outcome for that key class. YourwriteResurrectMetaCleancase is benign for the same reason as the GC side: a falseCommittedthere means the meta already holds exactly theCleanrecord the writer wanted.One real residual your report led us to (thanks!): the in-process
condemn_markers_confirmednote, keyed(ref, token), short-circuitsconfirm_condemned_marker(CasGc.cpp:1885) without a re-read and is not invalidated when a writer legitimately moves the metaCondemned → Cleanwithout an intervening fold. A memoized confirmation can then graduate an entry whose durable meta says Clean. When this fires (a narrow race), the consequence is one spuriousdeleteExact— an S3 DELETE, which is free — that lands onTokenMismatch(the body is safe for reason 3 above) and self-heals (CasGc.cpp:862-870drops the confirmation and leaves the meta alone). We considered closing it with a meta re-read at graduation and decided against it: that would add a billable GET per graduating condemned entry on the common path to save free DELETEs in a rare race — the cure would cost more than the disease. We are accepting it as a documented residual; at most we will relabel the self-heal counter/log so it reads as "spared by token rotation" rather than an anomaly.Actions we are queueing from this issue:
Committed(it proves "the intended bytes are durable at this key", not "this attempt's write applied"), stop returning the observed occupant token on that arm, renameslotOccupy'sNotUnresolvedlabel, and put the trust-model documentation (what equality-resolution proves / does not prove, and the ownership-decidability table by key class — yourclaimOwnerOrThrowcontrast included) directly at the resolution ladder, so the argument you had to reconstruct across four files is readable in one place.TokenMismatchself-heal observability at the GC delete site (zero extra requests), folded into the same patch.Bottom line: confirmed as an API-truthfulness defect plus a narrow, self-healing GC observability wart (accepted residual); not reproducible as data loss, ownership erasure, or a mount fault on the current head. Keeping the ambiguous outcomes
Unresolvedacross the board — your "expected behavior" — would be strictly stronger than what we run today, but it re-opens the liveness question the equality-resolve was introduced to close (a retrying GC/writer that can never confirm its own landed marker), so we are taking the rename-plus-documentation route instead and relying on the payload-identity rule where authorship genuinely matters.ca: backlog — CAS-021 adjudication follow-ups (controller honesty pat…
docs(cas): groom BACKLOG/ref-protocol.md