The only conflict is the ledger summary line in docs/design/invariants.md,
which #318 and #320 both recounted. Recounted from the merged Part B tables:
126 rows (107 ACTIVE, 17 STUB, 2 ARCHIVED; 15 kept, 111 new).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A forced move whose issuing authority write may have reached the store
but reported an error (memory left unissued), or any move on a volume
whose workspace persistence is already uncertain, now fails with the
typed authority.ErrWorkspaceOutcomeUncertain. MoveWorkspace answers it
as Internal (UNKNOWN outcome: restart, then rerun with the same request
id) and logs it as unknown, never as a refusal; admission refusals and
failures before the issue stay FailedPrecondition.
FileAuthorityStore gets a test-only after-rename fault hook
(SetPutAfterRenameFaultForTest) for the durable-write-then-error control.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- S1: a failure after a forced move is issued (binding reconciliation,
or a publisher error with the move already issued) is answered as
Internal naming the move ISSUED, never FailedPrecondition; the client
reports it as unknown with the same-request-id recovery; the issued
forced grant is logged before anything after the issue can fail.
- S2: the client binds the grant to the request (request, volume,
expected holder and epoch, target replica and host, higher epoch) and
the range to the grant (volume, request, epochs, old replica, HEAD
gen, frontier); lost-range answers must name the asked volume/request.
- S3: the exit-4 recovery command carries --master, shell-quoted.
- S4: HEAD time labelled "(publishing host clock as recorded in the
filer, 1 s resolution)".
- T1: master test registers cleanup as soon as the master starts.
- Ledger: INV-WS-LOST-RANGE-READOUT-001 statement and tests, M2 issue row.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sw-block ops workspace force-move (forced only, --confirm-forced
<volume>@<epoch>, --dry-run preview) and lost-range, over one shared
client package core/rpc/wsclient.
- WorkspaceGrant carries the stored lost range on issued forced grants
(also on replay), or lost_range_error when the record is missing or
fails its checks.
- New RPCs QueryWorkspaceLostRange (all stored ranges in issue order, or
one; DataLoss when unproven) and PreviewWorkspaceMove (read-only
forced admission; HEAD read only once admitted).
- The HEAD reader takes the HEAD entry's filer mtime from Last-Modified;
the lost range stores it beside the v1 ranges with its own checksum
(older binaries still verify the file; unknown when absent).
- The master logs every issued forced grant.
- Ledger: INV-WS-LOST-RANGE-READOUT-001, INV-WS-FORCED-CONFIRM-001; M2
forced and issue rows.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Discard a reservation reply that lost a race with a retirement; keep a
slot's fid while an upload to it is unresolved and read it back before
giving it up; send under the token's deadline; make a rejected token and
used-up replacements final through storage; count every reservation
attempt; validate key width, offset overflow and location.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>