Commit Graph
377 Commits
Author SHA1 Message Date
pingqiu bd1c8bdb1d Merge remote-tracking branch 'origin/main' into feat/host-urgent-pending
# Conflicts:
#	docs/design/invariants.md
2026-11-22 01:32:40 -08:00
pingqiu dd6fd3c2bb cli: clarify logical holder and sealed generation fields 2026-11-21 20:02:31 -08:00
pingqiu 87b92007dd test(cli): pin operator identity output order 2026-11-21 20:02:07 -08:00
pingqiu 96079684fb test(cli): exercise planned handoff against the real master RPCs 2026-11-21 19:53:40 -08:00
pingqiu a6190e59f6 docs(cli): document seal-before-revoke planned handoff workflow 2026-11-21 19:50:12 -08:00
pingqiu c5d9a99d34 fix(cli): validate presence and value of the seal declaration 2026-11-21 19:48:45 -08:00
pingqiu 25493cf7ae test(cli): reject a zero seal flag combined with unsealed revocation 2026-11-21 19:48:31 -08:00
pingqiu 7071b9af72 feat(cli): print existing workspace lease ACK and move facts 2026-11-21 19:48:12 -08:00
pingqiu f99538eb5d test(cli): specify the read-only workspace handoff view 2026-11-21 19:47:31 -08:00
pingqiu 4d5056090c test(cli): preserve exact existing HTTP error response bytes 2026-11-21 19:46:37 -08:00
pingqiu dacd9be6ff feat(cli): expose plain detach and print the sealed generation 2026-11-21 19:46:24 -08:00
pingqiu 0dde418dfd test(cli): specify plain detach request and seal readout 2026-11-21 19:45:52 -08:00
pingqiu a20e83872c feat(cli): encode clean authority moves without orchestration 2026-11-21 19:43:01 -08:00
pingqiu a1f524e625 test(cli): specify clean move encoding and grant binding 2026-11-21 19:42:14 -08:00
pingqiu b3e98de4a4 feat(cli): expose explicit workspace revocation over the existing RPC 2026-11-21 19:41:14 -08:00
pingqiu 2c681f3cfd test(cli): require an explicit seal choice before revocation 2026-11-21 19:40:31 -08:00
pingqiu fd7b4569d4 test(cli): specify explicit workspace revocation requests 2026-11-21 19:38:39 -08:00
pingqiuandClaude Opus 5.5 14f0d7401f hostlimit: background cuts wait while urgent work is pending; launch checks
- A pool file, urgent-pending, signals urgent work on the host. An
  urgent cut holds it shared for its lease, and HoldUrgentPending lets a
  caller hold it across a stop or a drain. A Normal admission probes it
  exclusively without waiting and, while it is held, is refused with
  ErrUrgentPending (an ErrSlotsHeld, so the timer waits instead of
  failing). Urgent admissions are unaffected.
- blockvolume checks --host-limit-dir before using it and refuses to
  start when it is missing or not a directory, under a temporary
  directory (/tmp, /var/tmp, /dev/shm, the process temp dir), on a
  network file system (NFS, CIFS, SMB2, FUSE on Linux), or already in
  use with different host-limit flags.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:26:46 -08:00
pingqiuandClaude Opus 5.5 8fe90ba66d blockvolume: the capture-interval floor is a package variable
Replace the build-tagged constant with durable.MinCaptureInterval
(default 5 minutes). The flag check and the flag help read it; a
program that builds blockvolume with a shorter floor sets it before
parsing flags. The OSS binary behaves as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:23:20 -08:00
pingqiuandClaude Opus 5.5 f8743e62a1 blockvolume: the capture-interval floor lives in a build-tagged file
The 5-minute --chunk-capture-interval floor moves to capture_floor.go,
built unless the swb_enterprise tag is set; a build with the tag supplies
its own minChunkCaptureInterval. The OSS build behaves as before: below
5m is refused (60 s now tested), and the refusal and the flag help name
the floor from the constant.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:14:57 -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
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 Fable 5.2 b846d82b53 test: a frozen detach request and the pre-copy detach flag must be refused
Red on this commit: a detach request with frozen set still reaches the
provider, and blockvolume still starts with --chunk-detach-precopy.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 09:04:51 -08:00
pingqiu 4d2603659c Merge remote-tracking branch 'pr/361' into train10 2026-11-21 08:49:15 -08:00
pingqiu 7daf5d9c5b Merge remote-tracking branch 'pr/347' 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
pingqiuandClaude Opus 5.5 0fd141b030 fold: restore create prints one JSON document on stdout; a refused start says the target exists
With --status-addr the create result goes to stderr, so stdout carries only
the driver status (one JSON document). A driver start refused after the create
(for example the target is not attached at that blockvolume yet) adds a line
saying the target was created and the --volume command that starts the
restore once it is attached.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 08:46:36 -08:00
pingqiuandClaude Opus 5.5 720fe00f23 sw-block: ops chunk restore creates the restore volume (--source --snapshot --target)
sw-block ops chunk restore --source --snapshot --target creates the target
from the snapshot with Catalog.Restore (idempotent by --request-id) and, with
--status-addr naming the blockvolume that serves the target, starts the
restore driver there in the same command and prints both results. Without
--status-addr it creates the target and prints the command that starts the
driver once the target is attached. --volume keeps driving an existing
restore. README lists both forms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 08:43:47 -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 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
pingqiuandClaude Opus 5.5 6070108c5c blockmaster: refuse a non-loopback control bind unless --insecure-external-bind
The gRPC control API (--listen) and the runtime HTTP API
(--frontend-publication-runtime-listen, when enabled) are unauthenticated, so
binding them to the node network is now an explicit choice: a non-loopback
address is refused at startup unless --insecure-external-bind is given. The
Helm chart and the shipped k8s manifests, which bind 0.0.0.0 with host
networking, pass the opt-in explicitly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 07:50:53 -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 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 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 ab3610608c blockvolume: scheduled snapshots (daily:7 by default), one COW cut each at a per-volume offset
A per-volume worker takes a named snapshot of class scheduled once per
period, through the same seal path as an explicit snapshot (resolve the
request, one urgent cut, record that cut's HEAD). A restoring volume
(chunks its HEAD names still absent) is skipped and counted; a failure
keeps the control endpoint's code and is retried with a backoff doubling
from 1m to 1h; status carries the schedule state and snapshot_overdue.
Retention keeps the newest N scheduled snapshots (N from the newest one's
swb.schedule.keep label) separately from other snapshots.
--chunk-snapshot-schedule=daily:N|weekly:N|off, default daily:7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 05:08:31 -08:00
pingqiu 58a47ba5f8 Merge branch 'p345' into train/20261121-8
# Conflicts:
#	cmd/blockvolume/chunk_remote_test.go
#	docs/design/agent-workspace-design.md
2026-11-21 03:23:48 -08:00
pingqiu 3c698833fe Merge branch 'p337' into train/20261121-8 2026-11-21 03:23:30 -08:00
pingqiu 66e0ed494d Merge branch 'p339' into train/20261121-8 2026-11-21 03:23:30 -08:00
pingqiuandClaude Opus 5.5 c329c57985 blockvolume: the periodic HEAD capture is off by default (opt-in, at least 5m when set)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 03:14:07 -08:00
pingqiuandClaude Opus 5.5 1ef1326866 sw-block: start-check comments describe the behaviour only
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:58:32 -08:00
pingqiuandClaude Opus 5.5 b846b3ada4 blockvolume: test comment describes the behaviour only
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:58:09 -08:00
pingqiuandClaude Opus 5.5 3166854cbe blockvolume: delete --chunk-dirty-threshold outright (pre-GA); a unit passing it fails at start
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:30:20 -08:00
pingqiuandClaude Opus 5.5 c5478a990f sw-block: the single-filer start check runs within the command's --timeout
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:27:09 -08:00
pingqiuandClaude Opus 5.5 8a886ff6da restore: driver, /chunk/restore and sw-block ops chunk restore (part B)
The driver walks (64 MiB/s, BackgroundFill), cuts bounded batches (64 chunks)
until no foreign ref is left, then writes RESTORE-INDEPENDENT
(M6.Restore Restoring>Hydrating>Owning>Owning>Independent). It decides only
from the target's VOLUME, HEAD and marker, so a rerun resumes from the remote
state and a deleted source is a normal state. POST /chunk/restore starts or
joins one background run per volume and returns its status; GET (or
statusOnly) reports it; sw-block ops chunk restore calls it. Docs: M6 restore
rows, INV-RESTORE-OWN-BATCH-001 and INV-RESTORE-DRIVER-001, the restore
quantities, the workspace design diagram.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:23:16 -08:00
pingqiu b86dcf547d Merge remote-tracking branch 'origin/main' into feat/chunk-verify
# Conflicts:
#	docs/design/invariants.md
2026-11-20 23:20:30 -08:00
pingqiuandClaude Fable 5.2 a4c0ccbdde chunkstore: verify: compute findings once, from chunk outcomes and the final view
The pass kept three kinds of state: a chunk (unseen, queued, settled with
one outcome, never re-checked), the HEAD view (replaced by each refresh)
and each selected snapshot's view. Settling a chunk records its outcome
and reports nothing. The pass closes on a read of HEAD and of the
snapshots' state that names no unseen key; that same read is the final
view. Findings are computed once, from the outcomes and the final view:
at most one per chunk key and class, under the first root that names the
key; a bad chunk that no root names is counted, not reported. A key the
pass saw named, then not named, then named again is reported. If the
closing rounds run out the result is incomplete, never clean.

This replaces the reporting done as reads settled and as refreshes
arrived, together with the late-reference list and the per-finding
rechecks.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-20 23:16:15 -08:00
pingqiuandClaude Opus 5.5 0ef32a75c7 sw-block: ops chunk commands that write chunk metadata run the single-filer start check (O-ENG-4)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:15:00 -08:00
pingqiuandClaude Opus 5.5 6687234a0d blockvolume: --chunk-dirty-threshold is deprecated and ignored (cuts stage by the copy-on-write budget); warn at start, removal after 2027-01-31
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:09:00 -08:00