feat/fresh-commit-basis #70

Merged
xavier merged 2 commits from feat/fresh-commit-basis into dev 2026-11-20 19:38:49 +01:00
Owner
No description provided.
The commit-basis pin for ft6eyx: five new storeconformance clauses
under tx/ — the both-land family (distinct-fact interference landing
between staging and commit must leave both facts whole: the production
put+receipt shape, the comments wave, and an agent+version pair for
the non-items buckets) and the boundary-sweep family (a sub-fact
landed under a deleting/recodeing code is swept or moved with live
bytes, never orphaned). Existing interference dialect on distinct
identifiers, no new scenarios.

Red on the unmodified engine, demonstrated before the fix lands:
boltstore fails tx/both-land-distinct-facts (competitor's item and
receipt deleted by the concurrent commit), tx/both-land-distinct-
comments, tx/both-land-agent-and-version and tx/boundary-sweep-recode
(the competitor's sub-fact deleted instead of moved); filestore green
by construction (flock-serialized whole transactions, staged ops
touching only their own paths); httpstore-over-server green on the
old engine — the wire harness's Interfere completes a full competitor
round-trip before the main Tx commits, so the wire's per-request
engine Tx snapshots post-interference and the sequential harness
interleave cannot reach the engine-level race (the concurrent wave is
wire-distinct-key-pin's shape, task 2). tx/boundary-sweep-delete is
green on the old engine by accident of the bug itself — the whole-
bucket merge's collateral deletion sweeps the competitor's sub-fact;
it bites against the overlay-only-without-boundary-intents hazard
state, demonstrated against the intermediate in the fix commit.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
fresh-commit-basis: commit against the write transaction's fresh view
All checks were successful
/ secrets-scan (gitleaks 8.28.0, all refs, redacted) (pull_request) Successful in 7s
/ test (linux/amd64, full suite) (pull_request) Successful in 1m32s
/ alias (re-point latest, main pushes only) (pull_request) Has been skipped
/ build windows/amd64 (pull_request) Successful in 43s
/ build darwin/arm64 (pull_request) Successful in 46s
/ build darwin/amd64 (pull_request) Successful in 48s
/ build linux/amd64 (pull_request) Successful in 50s
/ build linux/arm64 (pull_request) Successful in 43s
/ build windows/arm64 (pull_request) Successful in 51s
/ release (six binaries + checksums.txt, tag pushes only) (pull_request) Has been skipped
/ image (the release container, tag pushes only) (pull_request) Has been skipped
cc1a23b2fb
The engine fix for ft6eyx's root cause (docs/architecture/components/
boltstore.md, Transactions; the architect's ruling in
docs/plans/v0.11.1.md): the commit basis is the write transaction's
fresh view, never the open-time snapshot.

apply() is rewritten to overlay-only per-key application of this
transaction's own staged entries; finalBucket() and the whole-bucket
merge walk are deleted — a concurrent commit on a distinct fact
survives by construction, a same-key race stays the guards' typed
arbitration (NO guard changes).

The prefix stage paths (stagePrefixDelete/stagePrefixMove) record
boundary intents — hard delete and recode carry no keys: the intent
enumerates its code boundary from the write transaction at commit.
The stage-time enumeration survives for the view alone (read-your-
writes), its entries marked snapshot-derived so they never land.
Delete sweeps every live key under the code — a competitor's sub-fact
committed post-snapshot is swept, not orphaned. Recode moves every
live key under the old code carrying its LIVE bytes — the stale-bytes
trap (a competitor's post-snapshot edit reverting inside the move)
cannot happen; keys the transaction's own view had deleted are swept,
never resurrected at the target; targets the transaction's own staged
entries cover (a sub-fact staged after the move, Recode's rewritten
fact) land from those entries.

Order inside the write transaction: guards, then boundary intents,
then per-key entries — a sub-fact staged after the prefix op survives
the sweep, last-write-wins inside the Tx as outside it.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
xavier deleted branch feat/fresh-commit-basis 2026-11-20 19:38:49 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
assistant/skuld!70
No description provided.