Commit Graph
588 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 e2cc37cfd9 durable: the logged boundary is the backend's admission flip itself (recorded under mu), not a time before the call
StorageBackend records stopFlipAt under mu right after operational goes
false (setOperationalLocked and both TryStopIO flips); the detach logs it
as 'admission closed at' beside 'StopIO returned at'. Admission is
unchanged: an I/O whose gate ran before the flip is admitted and drained
by StopIO; every gate after it refuses (INV-STOP-FLIP-CUTOFF-001). The
stamp is taken after the store (errs toward a false alarm) and logged
only on a successful stop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:03:28 -08:00
pingqiuandClaude Opus 5.5 4d9883f101 docs(invariants): keep INV-WS-FREEZE-ACCOUNTING-001 within 300 characters too
Same as the previous commit: the 'not reachable' marker lives in the
note under the table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 15:00:05 -08:00
pingqiuandClaude Opus 5.5 cc4115741b docs(invariants): keep INV-CUT-PRECOPY-001 within 300 characters in the composed train
The 'not reachable in this release' marker added to its statement is
already stated in the note under the table; the length check added
in the same train rejects the longer statement.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 15:00:05 -08:00
pingqiu 9a1785efb9 Merge remote-tracking branch 'pr/368' into train11 2026-11-21 14:25:29 -08:00
pingqiu 68f5932ffc Merge remote-tracking branch 'pr/366' into train11
# Conflicts:
#	docs/design/invariants.md
2026-11-21 14:25:29 -08:00
pingqiu 0d3efefe18 Merge remote-tracking branch 'pr/364' into train11
# Conflicts:
#	docs/design/invariants.md
2026-11-21 14:25:08 -08:00
pingqiuandClaude Opus 5.5 ef1a70382a docs: recovery point and consistency first; control endpoint exposure; vacuum commands; verify exit codes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 14:13:54 -08:00
pingqiuandClaude Opus 5.5 261e5c4468 docs: snapshots, restore and getting space back for walstore-chunk volumes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 14:02:35 -08:00
pingqiuandClaude Fable 5.2 2bcb2dbf02 invcheck: the long-statement list cannot grow; one row keeps its comparison
The list's size is pinned by a constant and, where the base commit is at
hand, every listed row must have been listed there. The head-belt fence
row again says the re-read owner is compared with the publisher's own.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 11:32:27 -08:00
pingqiuandClaude Fable 5.2 aa9657f383 docs(invariants): one property per row, first batch; a length check
Ten over-long rows of the chunk cut, workspace and GC machines become
rows of one property each (statements at most 300 characters); clauses
that only repeated a Part A transition guard become pointers to it. The
invariant check gains a length test with a list of the rows still over
300 characters, which may only shrink. Two test comments lose a
reviewer reference.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 11:24:15 -08:00
pingqiuandClaude Fable 5.2 8b4d357d59 Merge main: rows recounted with the document check
Main's wording wins where it changed a row; the not-reachable marks, the
two new rows and the note are kept; the count is recomputed from the
tables and the document check passes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 10:32:47 -08:00
pingqiu 9e6692871d Merge remote-tracking branch 'origin/main' into test/plain-seal-reuses-uploads 2026-11-21 10:31:01 -08:00
pingqiu e60f9c2e88 docs: state the process lifetime limit of seal progress 2026-11-21 09:30:06 -08:00
pingqiuandClaude Fable 5.2 69b83d6e16 volume, blockvolume: refuse the frozen detach and the pre-copy detach flag
A detach request with frozen set is answered 409 frozen_detach_unsupported
before any provider call, and blockvolume refuses to start with
--chunk-detach-precopy. Nothing is deleted: both mechanisms become
unreachable in this release. The request fields stay so the strict
decoder keeps answering the typed refusal.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 09:04:51 -08:00
pingqiuandClaude Opus 5.5 8db62cb989 docs(invariants): recount the ledger line for the composed train
Each member stated the count for its own rows on main; together the
tables hold 163 rows (141 ACTIVE, 19 STUB, 3 ARCHIVED).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 08:49:32 -08:00
pingqiu 503ce05340 Merge remote-tracking branch 'pr/358' into train10
# Conflicts:
#	docs/spec/README.md
2026-11-21 08:49:04 -08:00
pingqiu 7daf5d9c5b Merge remote-tracking branch 'pr/347' into train10 2026-11-21 08:48:50 -08:00
pingqiu e0f1a909e7 Merge remote-tracking branch 'pr/356' into train10 2026-11-21 08:48:50 -08:00
pingqiu 6ba36965a2 Merge remote-tracking branch 'pr/357' into train10 2026-11-21 08:48:50 -08:00
pingqiu 60de0a4da8 Merge remote-tracking branch 'pr/354' into train10 2026-11-21 08:48:50 -08:00
pingqiuandClaude Opus 5.5 13000c1d13 docs: INV-SHARE-ACTIVATION-001 is enforced in sealSnapshot, shared by explicit and scheduled snapshots
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 08:46:10 -08:00
pingqiu 346e644c91 Merge remote-tracking branch 'origin/main' into fix/workspace-uncertain-precedence 2026-11-21 08:31:37 -08:00
pingqiuandClaude Opus 5.5 85b6e9c9a0 docs: resolve the merge's invariants.md hunks (left unresolved in the merge commit)
The Train 9 merge committed conflict markers in docs/design/invariants.md. Both
sides added a B.2 row after the same anchor: keep main's
INV-MASTER-JOURNAL-ISOLATION-001 and this PR's INV-SEC-CONTROL-BIND-001, and
recount the Part B summary from the tables (161 rows: 139 ACTIVE, 19 STUB,
3 ARCHIVED, 146 new).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 08:30:34 -08:00
pingqiu 860ea15ac3 Merge remote-tracking branch 'origin/main' into feat/scheduled-snapshots
# Conflicts:
#	core/host/volume/chunk_control.go
2026-11-21 08:30:09 -08:00
pingqiuandClaude Fable 5.2 5c14e42b42 Merge main: the check runs on the current document
Three stale test names it found are fixed (one rename, one test removed
with the retired engine and replaced by its neighbour, one name that
exists nowhere). The count check accepts the document's wording.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 08:30:03 -08:00
pingqiuandClaude Opus 5.5 b8d5b3bc13 Merge origin/main ee92613b (Train 9) into the external-bind refusal
Only conflict: the Part B summary line, recounted from the tables.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 08:29:50 -08:00
pingqiuandClaude Opus 5.5 84d43da3b5 Merge origin/main ee92613b (Train 9) into the gRPC link seam
Only conflict: the Part B summary line; recounted from the tables (161 rows:
139 ACTIVE, 19 STUB, 3 ARCHIVED, 146 new). Train 9 brought no new raw gRPC
site: the guard passes on the merged tree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 08:29:32 -08:00
pingqiu 5b8ddefeec Merge remote-tracking branch 'origin/main' into fix/offline-seal-caller-deadline
# Conflicts:
#	docs/design/invariants.md
2026-11-21 08:29:19 -08:00
pingqiu 889a85eab4 fix: require a bounded offline seal request and use M5 names 2026-11-21 08:28:29 -08:00
pingqiu 3588903f6f docs: condense offline seal transition statement 2026-11-21 08:16:22 -08:00
pingqiu d75c61cff5 feat: seal idle volumes under the caller deadline 2026-11-21 08:14:16 -08:00
pingqiuandClaude Opus 5.5 93f6008f13 docs: INV-SEC-CONTROL-BIND-001
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 07:51:11 -08:00
pingqiuandClaude Opus 5.5 5e4f2f3d45 storage, durable: cuts are ordered by an in-process CutSeq, never by wall stamps; the periodic decision skips once CutSeq moved
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 07:12:20 -08:00
pingqiu 746c5a1a8a fix: classify workspace caller end from request context 2026-11-21 07:05:29 -08:00
pingqiuandClaude Opus 5.5 41fffe6c5a durable: the periodic-cut timer and the scheduled-snapshot schedule run on in-process monotonic time; a restart starts a fresh schedule
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 07:01:26 -08:00
pingqiu 2cda71d4c3 docs(authority): map uncertain move reply precedence 2026-11-21 06:45:08 -08:00
pingqiu 677e0a50d4 fix(authority): report uncertain move outcomes before refusals 2026-11-21 06:43:27 -08:00
pingqiuandClaude Opus 5.5 7fff8f288e fold: injected failback dial through link.DialWith; AST guard covers raw client constructors and import aliases
- link.DialWith(target, opts...) builds a link with exactly the caller's
  options (no default credentials); the failback runtime uses it for injected
  options, so its prior semantics hold and no production file calls
  grpc.NewClient directly.
- The guard parses every non-test file and finds grpc.NewClient / Dial /
  DialContext / NewServer and insecure.NewCredentials under any import name
  (alias or dot import); a detector test proves each form is found and a
  link-only file is clean; routing failback back to grpc.NewClient fails the
  guard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 06:38:41 -08:00
pingqiuandClaude Opus 5.5 a600bb8e2b rpc/link: one dial helper and one server builder for every gRPC link
core/rpc/link builds every gRPC link: Dial is grpc.NewClient with plaintext
credentials exactly as before (caller options follow), NewServer runs the
caller's unary and stream interceptors in order (none by default). Every
production site now goes through it: nine dials to blockmaster, the two
SeaweedFS dials and both servers; the failback runtime keeps its injected
dial options unchanged. No behaviour change.

INV-SEC-ONE-SEAM-001: a guard test fails if a non-test file outside the
package creates insecure credentials or a raw gRPC server (red on the base: it
lists the 12 files with the 13 raw sites).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 06:24:58 -08:00
pingqiu f5f93b6b0b Merge remote-tracking branch 'pr/332' into trial9b
# Conflicts:
#	docs/design/invariants.md
2026-11-21 06:20:37 -08:00
pingqiu 13670b35cf Merge remote-tracking branch 'pr/324' into trial9b
# Conflicts:
#	docs/design/invariants.md
2026-11-21 06:20:28 -08:00
pingqiu c084b9ab5c Merge remote-tracking branch 'pr/350' into trial9b 2026-11-21 06:20:13 -08:00
pingqiu 6e2ca6b5b2 Merge remote-tracking branch 'pr/340' into trial9b
# Conflicts:
#	cmd/sw-block/chunk.go
#	docs/design/invariants.md
2026-11-21 06:20:10 -08:00
pingqiuandClaude Fable 5.2 161d34ed19 Merge main: rows re-checked after the claim removal
The fork row no longer names a claim: every attempt of a fork reads its
parent again. Rows main changed keep main's text; count recomputed from
the tables.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 05:49:14 -08:00
pingqiuandClaude Opus 5.5 dad0b347d3 storage: one free-space read per cut for staging and the window; a zero cap shows its cause (no_room_to_cut, free_space_unreadable) in stats and abort counts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 05:30:15 -08:00
pingqiuandClaude Opus 5.5 827cec9752 docs: restore the S11 ForkDelete row dropped in the merge (verbatim from main)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 05:20:09 -08:00
pingqiu c0a2bafda9 Merge remote-tracking branch 'origin/main' into feat/publish-settled-hook
# Conflicts:
#	core/frontend/chunkstore/catalog.go
#	core/frontend/chunkstore/gc.go
#	core/frontend/durable/provider.go
#	docs/design/invariants.md
2026-11-21 05:16:09 -08:00
pingqiuandClaude Fable 5.2 05edbbcb72 Merge main: verify joins the shared single-filer start check
The chunk commands' single-filer start check now comes from main; this
branch's own copy and its tests are removed. verify runs the check
inside its --timeout: against a split filer view it would report false
findings.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 05:15:50 -08:00
pingqiuandClaude Opus 5.5 d1038546a1 Merge origin/main 654b5601 (Train 8) into restore part B; docs reconciled to no-claim
Train 8 carries the fork-claim removal; the three docs conflicts resolve to
the no-claim union: the claim-free Fork, Retention and diagram text with this
part's Hydrating/Owning rows and steps; INV-RESTORE-PARENT-HOLD-001 archived;
both B.6 notes; the S10 row is the no-claim model, S11 ForkDelete kept.
Ledger recounted from the tables: 138 rows, 118 ACTIVE, 17 STUB, 3 ARCHIVED,
123 new.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 05:13:03 -08:00
pingqiuandClaude Opus 5.5 64c717f8b3 storage: each cut's COW spill cap is min(the configured cap, half the free space minus 1 GiB)
The free space of the side file's filesystem (--durable-root, statfs on
Linux) is read at each cut, for the staging bound and when the copy
window opens; a read error counts as no free space. At the cap the cut
aborts (cow_capacity) and the guest write completes. Adds Part E.
Quantities to the ledger with this row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 05:09:38 -08:00