Run refuses a second walker. A rewind moves a generation: a compare begun
before it does not move the walk position past the rewound chunk, and a
persist begun before it keeps the lower cursor. Rewind closes admission and
moves the walk position before writing the cursor, so a failed write leaves
the pass refusing and the next Run writes the lower cursor. Work counted
since the last persisted cursor lives on the pass, so a cancelled or failed
Run's count is kept by the next one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reds: a rewind whose cursor write fails leaves admission open; a second Run
walks beside the first and a rewind during a compare is overrun; work
counted but not persisted is lost on a cancel or a failed write. Also a
pause control for the rate limit and the refusal's text.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After the upgrade every local chunk's hash is unknown. The pass walks the
chunks with a cursor, persisted only after the pages of every chunk behind
it; a restart continues at the cursor; a rebuilt page moves the cursor back
to its first chunk, persisted. While it runs, a request that needs every
hash known is refused at once with in_progress and the pass's progress, and
a waiting request lifts the pass's pause. No caller yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
completeChunkRecord takes P from the store's synced position, not the
assigned one, and refuses while a write is assigned but not synced: the
completion runs at open, after recovery and before guest I/O.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
completeChunkRecord fences, reads the store's durable position after the
fence, and writes the header (G = that position) only when every page is
present, passes its check and is valid through exactly that position. The
loader refuses positions ahead of the recovered store: an unfinished record
must equal it, a complete record's G may not pass it, a page ahead of it is
damaged. Pages carry the segment's candidate count, the segment name its
published marks refer to, and the kernel table version (chunk-kernel/2).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Three reds on the production store: a header written over pages that miss
an old writer's acknowledged write after a half fence; an unfinished record
whose pages are ahead of the recovered store; a complete record whose header
position is ahead of it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An unfinished record is used only when every page is valid through the
store's last durable position after recovery; a page behind it missed
writes, for example ones an old version acknowledged between the pages and
the fence, and the upgrade builds the record again from the presence.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The record pages, their header, and a reader. The red: pages are written,
the fence is left half done, a writer that does not keep the pages
acknowledges a write, and the new version opens again with the store still
marked; the reader takes the pages that miss that write.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The swblock_format_v3_test tags never ran in CI. Five durable tests
install a BASE on a chunk store, which no production path does; they are
skipped by name until their rewrite, so every other tagged test gates.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The organization's shared hosted queue held train PRs 30 to 55 minutes
before their suites started, while the team's runners, which already
run the same suites on every push to main, were idle. Only train/*
branches of this repository select them; every other PR, forks
included, stays on GitHub-hosted machines.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every code and test citation in the ledger now names the file that holds
it, so a citation check reports no missing anchor:
- tests cited under another file: the test cell ends with "also in" and
the files that hold them;
- functions cited after another file move behind their own file;
- INV-AUTH-HOLDER-IDENTITY-001: callers named as if they were citations
are now plain words;
- INV-WAL-V3-BASE-RETIRE-GATE-001 is DORMANT: no production path installs
a BASE on a chunk store.
No statement changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The scope gate selected the real-filer suites only for chunk-store and
storage changes, but its second suite tests the durable provider: a PR
that changed only core/frontend/durable/ skipped it. The ledger anchor
check is the hardened script: a git failure or a ledger with no rows is
an error (exit 2), not a pass, and a path matches whole components only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>