Commit Graph
489 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 23c23b72aa status schema: durable volume, chunk and write profile field comments
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:35:28 -08:00
pingqiuandClaude Opus 5.5 671a5eebc8 status schema: NVMe/TCP and ublk counter comments
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:25:55 -08:00
pingqiuandClaude Opus 5.5 6fe5a9b17d status schema: replication peer, engine projection and chunk usage field comments
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:25:11 -08:00
pingqiuandClaude Opus 5.5 c669f13950 status schema: host and frontend status field comments
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:24:27 -08:00
pingqiu 8fb359c7a3 WIP status schema (O-OPS-2) 2026-11-20 23:21:08 -08:00
pingqiu adcc5a773c Merge branch 'p329' into train/20261121-7 2026-11-20 22:33:30 -08:00
pingqiu 3ae278e117 Merge branch 'p328' into train/20261121-7
# Conflicts:
#	docs/design/invariants.md
2026-11-20 22:33:26 -08:00
pingqiu c717f87a35 Merge branch 'p330' into train/20261121-7
# Conflicts:
#	docs/design/invariants.md
2026-11-20 22:32:57 -08:00
pingqiu 2646ee62a3 merge main into GC grace and rejected delete fixes 2026-11-20 22:28:17 -08:00
pingqiu 00372334d7 merge main into frozen detach validation classification 2026-11-20 22:27:05 -08:00
pingqiuandClaude Opus 5.5 6c45c50245 Merge origin/main 9da65c98 (Train 6) into feat/oss-independent-restore
Conflicts kept both sides: agent-workspace-design.md (restore diagram, then
attached-volume scheduling); invariants.md B.6 (the INV-MAINT-* rows, then the
INV-GC-REACHABLE-001 row with restore owner rooting). Part B summary recounted
from the tables: 131 rows, 112 ACTIVE, 17 STUB, 2 ARCHIVED, 116 new.
RestoreIndependence is now exhausted (breadth-first, complete graph): the spec
README row and the invariant rows drop the simulation tags.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 22:24:34 -08:00
pingqiu 461c471edf fix: restore final invalid_freeze_budget wire name 2026-11-20 20:52:22 -08:00
pingqiuandClaude Opus 5.5 dff8c712b3 restore: bound the synchronous walker tests, join the dropIntent worker, ledger rows
- Walker tests that call HydrateAll synchronously run under a ctLocalBound
  timeout, so a walker that never finishes fails instead of hanging.
- The dropIntent test releases and joins its worker at cleanup (an unbounded
  delete, the failing case, no longer leaks a goroutine).
- invariants.md: INV-RESTORE-PARENT-HOLD-001 is Go only (the model does not
  cover retention of an aborted target); new INV-CAT-INTENT-DROP-BOUNDED-001
  row and M6 transition for the bounded catalog intent delete.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 20:49:42 -08:00
pingqiu 7a118ff151 fix: use invalid_freeze_request and trace typed refusal invariant 2026-11-20 20:47:27 -08:00
pingqiu c190ec15d0 fix: distinguish pre-mutation frozen detach validation refusals 2026-11-20 20:43:05 -08:00
pingqiuandClaude Opus 5.5 f679f2a5fe docs: drop internal names and paths from comments and notes
Public text states what the code guarantees, not who asked for it or
where an internal note lives. Comments and docs only; no code change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 20:37:43 -08:00
pingqiuandClaude Opus 5.5 6d42d08b0f restore: public comments state guarantees only; walker test allows a deferral
Comments in the restore code, tests and spec header now say what the code
guarantees, without review or design-note references. The real-limiter walker
test no longer asserts zero deferrals: a permit is released asynchronously
(when its flight settles, then closed by the limiter), so the next admission
can find every fill slot still closing; it now requires the limiter's skips to
equal the walker's deferrals (flaked 4 of 90 runs on Linux before).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 20:36:33 -08:00
pingqiu b9c11477b7 fix: isolate permanent GC DELETE refusals without losing coverage 2026-11-20 20:35:19 -08:00
pingqiu a3a3bc0a23 test: expose permanent DELETE starving later GC bindings 2026-11-20 20:32:04 -08:00
pingqiu c2cac1159d docs: clarify GC pairwise clock assumption 2026-11-20 20:29:23 -08:00
pingqiu d075dc6011 fix: preserve GC grace across bounded clock skew 2026-11-20 20:27:22 -08:00
pingqiuandClaude Opus 5.5 a802e6db68 Merge #320 (forced-move CLI + lost-range readout) into train 6
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>
2026-11-20 20:25:15 -08:00
pingqiu e11b72d8db test: expose GC clock skew shortening grace 2026-11-20 20:24:27 -08:00
pingqiuandClaude Opus 5.5 88aea4c7ed restore: fold review of part A (fill permit, permit ownership, stale snapshot image, docs)
- HydrateAll admits each fill as a background fill permit with no cut payload
  (the real limiter refuses a payload for BackgroundFill, so no fill ever ran),
  and the permit now belongs to the flight: the walker queues the shared flight
  without becoming a waiter and a layer-owned goroutine releases the permit
  when the flight's I/O is over (new settled signal, closed by the worker after
  fillOnce or when an unrun flight is removed), also after an early return on
  cancel, revocation or close. The limiter's abort callback stops the walker.
  The flight lookup is factored into hydrationFlightLocked (shared with
  OnReadMissContext, no behaviour change there).
- CreateSnapshot on a restore volume also checks the supplied image: a cut
  saved before the marker that still names another volume's chunks is refused.
- dropIntent keeps outliving the caller's cancellation but is bounded by
  dropIntentTimeout (it had no deadline at all).
- Tests: the real hostlimit limiter (fill permits, payload 0, all released),
  permit held while a cancelled walker's Get is held, revocation, a witnessed
  pause for guests, cancel returning while the Get is held, bounded joins;
  stale pre-independence image refused; aborted first HEAD keeps the parent
  as fork_parent until the target is deleted; dropIntent bounded.
- Docs: invariants.md M4/M6 rows and INV-RESTORE-* rows, GC owner rooting
  recorded as load-bearing in INV-GC-REACHABLE-001; restore diagram in the
  workspace design; RestoreIndependence in docs/spec/README.md (simulation).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 20:23:53 -08:00
pingqiuandClaude Opus 5.5 d1c790f39e Merge origin/main into feat/forced-move-cli
Keep both sides' ledger rows; recount the summary (123 rows: 103 ACTIVE, 18 STUB, 2 ARCHIVED).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 20:16:20 -08:00
pingqiuandClaude Opus 5.5 3b58335be5 spec: RestoreIndependence model for independent restore (O-REC-2)
TLA+ model of the restore: claim, two-step fork, hydrate, bounded batch cuts
(upload own fids under an intent, one HEAD CAS per batch), marker after the last
foreign ref, claim drop; GC, source delete, snapshot retention and crashes with a
resume from remote facts at any point. Invariants NoGap, Independent,
NoForeignList, ClaimUntilHead_Inv (option 1: today's fork claim semantics),
LifecycleFree, StateRemote. cfgs: option-1 safe at three sizes, the stricter
claim-until-independent variant, two witnesses, and one red cfg per mutant
(each red at its expected invariant in simulation). Simulation only so far:
no violation in about 0.81M states per safe cfg (3 seeds x 60000 traces, depth
40); not exhausted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 20:11:14 -08:00
pingqiu 8e5a2cce7d Merge Train 5 preserving periodic cut guard and whole-cut deadline 2026-11-20 20:01:53 -08:00
pingqiu 947a186970 fix: bind maintenance to attached lineage and close review controls 2026-11-20 19:48:40 -08:00
pingqiu 8c91fa1d4f Merge main preserving both maintenance and admission model receipts 2026-11-20 19:43:44 -08:00
pingqiu cdcd8506e8 Merge #322 (explicit cut restarts the periodic timer) into train 5 2026-11-20 19:27:27 -08:00
pingqiu 5fb50607d9 fix: retain freeze reports and account for tail scan work 2026-11-20 19:16:48 -08:00
pingqiuandClaude Opus 5.5 efc01c045f durable: timer test cleanup consumes once; ledger row in Part B
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 19:01:16 -08:00
pingqiu 0430ff4a33 test: qualify frozen detach budget and fixed phase attribution 2026-11-20 19:00:58 -08:00
pingqiuandClaude Opus 5.5 093fbc26f8 workspace: an uncertain forced-move issue write is an unknown outcome
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>
2026-11-20 18:57:05 -08:00
pingqiuandClaude Opus 5.5 91a9356ea4 durable: witness the stale periodic decision and the restarted interval; ledger row
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 18:55:08 -08:00
pingqiuandClaude Opus 5.5 a879fff64b workspace: fold codex01 review of #320
- 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>
2026-11-20 18:37:48 -08:00
pingqiu 1ad83a4f5c fix(storage): compare only known pre-copy estimates 2026-11-20 18:10:25 -08:00
pingqiuandClaude Opus 5.5 c1af931b45 workspace: forced-move CLI and lost-range readout
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>
2026-11-20 18:04:23 -08:00
pingqiu b6a3f5840c fix(storage): allow available fresh fixed-cost observations 2026-11-20 17:50:38 -08:00
pingqiu b3734dc2cb fix(storage): admit bounded pre-copy plateaus and age fixed samples 2026-11-20 17:48:14 -08:00
pingqiu e04b2cf28e test(chunk): witness every scheduler stopper joining its worker 2026-11-20 17:25:19 -08:00
pingqiu 3deba72797 test(chunk): witness periodic no-op and foreign-fork protection 2026-11-20 17:20:00 -08:00
pingqiu 2928563c5a feat(chunk): schedule periodic HEAD capture and scoped maintenance 2026-11-20 17:15:23 -08:00
pingqiuandClaude Opus 5.5 a82c37e6ac Merge #314 (plain detach) into train 3
Docs-only conflicts with #311 resolved as a union: invariants.md keeps the
INV-CUT-PLAIN-DETACH-001 row and #311's INV-CUT-PRECOPY-001 row; spec README
keeps both the PrecopyFixedAdmission and PlainDetach sections.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 16:54:22 -08:00
pingqiu 33f6212e0b Merge main and retain bounded pre-copy admission controls 2026-11-20 16:16:17 -08:00
pingqiu a28f2b73b5 docs: restore pre-copy transition and place plain detach invariant 2026-11-20 16:13:44 -08:00
pingqiu ea38af0f9c test: isolate plain detach pre-copy bypass control 2026-11-20 16:04:25 -08:00
pingqiu 4f395e23f7 feat: allow idle frontend plain chunk detach 2026-11-20 16:02:38 -08:00
pingqiu 1bd28f7c53 test: witness disjoint pre-copy phase timing and record model results 2026-11-20 15:33:41 -08:00
pingqiu 345b4f685e test(storage): witness separate HEAD CAS and read-back timings 2026-11-20 14:37:00 -08:00