docs/status-schema.md is generated from the Go field comments (#341);
#338 rewrote the StageRounds comment group, so the composed train needs
the page regenerated (STATUS_SCHEMA_UPDATE=1). Docs only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The restore diagram's first state reads the parent (no claim, publish before
read time + deadline); the S10 model row is marked as the claim-era model.
The two post-GC checks go through chunksMismatch, which requires exactly the
expected indexes and every payload; a negative test shows a missing index is
caught.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The fork/restore versus snapshot delete model this change rests on, byte for
byte as checked (sha256 c9c7c7fa), with its 28 configurations: 11 safe
(exhausted, no error, 18,672 to 15.7 M states, including every boundary
G = D + E + P), 12 reds and 5 witnesses each on its expected property.
README rows; the invariant rows drop the simulation tag.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On pull_request_target, base.sha is the base recorded when the PR was last
synchronised, so a PR opened before the spec-trace scripts landed checked
out a tree without them and failed with 'No such file or directory'.
github.sha is the base branch tip at the event; the diff still uses the
merge base of the PR's base and head.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review fold. The check ran the tool with go run, which takes the .go
arguments as more source files, so in CI every DOCS PR touching Go would
have been refused; the self-test hid it by building the tool itself. The
check now builds the tool into a temporary directory, the self-test runs
that same path, and a build or tool failure exits 2 (the check did not
run) instead of reporting changed tokens. In a file that uses cgo every
comment counts (the grouped import ("C") form dropped the preamble).
The template says DOCS may still change contract text, with the reviewer
as the gate; the script header names the go:embed limit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review fold. The line-multiset comparison let reordered statements,
directive comments (//go:build, //go:linkname, the cgo preamble), a //
inside a string after a rune quote, a line inside a multi-line raw
string and spacing inside a string all pass as comment-only. A small Go
program (sametokens.go, go/scanner) now requires the old and new token
sequences of each changed non-test Go file to be identical, comments
dropped except directives and the cgo preamble; gofmt realignment passes
by construction. The workflow passes old/new blobs instead of a diff.
DOCS no longer covers docs/spec (the models); CI no longer covers
scripts/, which holds shipped install and deploy scripts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A PR that changes no behaviour names one of three kinds instead of
IMPL, FIX or CHANGE. TEST may touch only tests, testdata and test
helpers; CI only .github/ and scripts/; DOCS docs, tests and Go whose
hunks change only comments. For DOCS the workflow passes the diff of the
non-test Go files, and the check compares removed and added lines with
line comments (outside strings) and spacing dropped; every changed Go
file must appear in that diff. Ten self-test cases added.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A fork or restore no longer claims its parent snapshot, and neither
DeleteSnapshot nor retention reads a claim: a deadline-exceeded fork or a
failed restore can no longer make its parent (and so its volume) undeletable.
Safety now rests on time: a fork takes its deadline start before it reads the
parent, every attempt (a retry included) reads it again, and it publishes its
HEAD only before start + operation deadline; GC keeps a deleted attempt rooted
for its grace, and NewCollector now requires
grace >= operation deadline + clock skew + CAS apply bound (new GCConfig
field, default: the operation deadline). An unknown publish keeps the fork
intent, which roots the keys until the target is resolved.
Removed: claimForkParent/dropForkClaim/removeForkClaim (replaced by
readForkParent), the claim branch of markDeleting, liveClaims, claimedErr and
snapshot_claimed, retention's ForkHeld outcome and the fork_parent keep
(forkParentsNeeded). A claims xattr written by an older version is ignored.
Tests: three new tests (fork retry after delete re-reads the parent; delete
during a fork in flight; unknown publish keeps the keys while its intent
exists), each red on the base with snapshot_claimed; the construction check
with its boundary; claim-mechanics tests removed, the others rewritten to the
new rule. Docs: invariants.md M6 rows, INV-SNAP-DELETE-ANY-ORDER-001 (new),
INV-SNAP-EXPLICIT-DELETE-001 and INV-GC-GRACE-DEADLINE-001 restated,
INV-RESTORE-PARENT-HOLD-001 archived; workspace design section 6.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GitHub-hosted jobs in this org can queue for a long time; the test
workflow already sends same-repository PRs to the self-hosted runners and
forks to a hosted one. The spec-trace job does the same. It runs no PR
code on either.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>