Commit Graph
2212 Commits
Author SHA1 Message Date
pingqiu 677e0a50d4 fix(authority): report uncertain move outcomes before refusals 2026-11-21 06:43:27 -08:00
pingqiu f30d91fec5 test(authority): expose uncertain move refusal precedence 2026-11-21 06:38:49 -08:00
Ping Qiu 654b560170 Merge pull request #346 from seaweedfs/train/20261121-8
train 8: dead flag removal, ops start check, status schema, claim-free snapshot delete, frozen budget fields, periodic cut off by default
2026-11-21 05:06:44 -08:00
pingqiuandClaude Opus 5.5 2629004167 train 8: regenerate the status schema page after #338's comment change
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>
2026-11-21 04:06:11 -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 1af3fb197a Merge branch 'p344' into train/20261121-8 2026-11-21 03:23:31 -08:00
pingqiu 3c698833fe Merge branch 'p337' into train/20261121-8 2026-11-21 03:23:30 -08:00
pingqiu 1180c82379 Merge branch 'p341' 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
pingqiu 66e131b4e6 Merge branch 'p338' 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
pingqiu 461272afc4 fix(storage): retain frozen observation on drain refusal 2026-11-21 03:00:18 -08:00
pingqiu 06a8410099 storage: report the complete frozen estimate and refreeze quiesce slack 2026-11-21 02:44:51 -08:00
pingqiu e4ec43224f test(storage): require complete frozen admission quantities in candidate tail 2026-11-21 02:37:57 -08:00
pingqiuandClaude Opus 5.5 93298f9fa6 fold: restore diagram and model row without claims; post-GC checks name every expected chunk
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>
2026-11-21 02:08:31 -08:00
Ping Qiu fafafda577 Merge pull request #342 from seaweedfs/ci/spec-trace-docs-kinds
ci: spec-trace accepts DOCS, TEST and CI kinds, each checked against its files
2026-11-21 01:22:56 -08:00
pingqiuandClaude Opus 5.5 5bb512d0f0 spec: ForkDelete model and its configurations (exhausted)
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>
2026-11-21 01:22:15 -08:00
pingqiuandClaude Opus 5.5 c87f464e29 ci: spec-trace checks out the base branch tip, not the PR's recorded base
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>
2026-11-21 00:46:22 -08:00
pingqiuandClaude Opus 5.5 d11c418451 ci: build sametokens once and tell a failed check from differing tokens
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>
2026-11-21 00:25:13 -08:00
pingqiuandClaude Opus 5.5 46db22aa42 ci: kind DOCS compares Go tokens, not lines; CI covers .github/ only
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>
2026-11-21 00:16:40 -08:00
Ping Qiu c2ba8e69f4 Merge pull request #335 from seaweedfs/fix/precopy-resume-admission
durable: release the full admission queue when precopy resumes
2026-11-21 00:01:27 -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 1192866f2e volume: barrierOverBound comment describes the field only
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:57:56 -08:00
pingqiuandClaude Opus 5.5 49fdfc52b4 ci: spec-trace accepts DOCS, TEST and CI kinds, each checked against its files
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>
2026-11-20 23:56:34 -08:00
pingqiuandClaude Opus 5.5 9ab17cef81 status schema: every registered /status route is covered
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:37:22 -08:00
pingqiuandClaude Opus 5.5 746a50e44b status schema: storage and latency field comments; every status field documented
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:37:07 -08:00
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 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
pingqiu 4e15c42559 merge main while retaining FIFO admission and frozen validation invariants 2026-11-20 23:29:10 -08:00
pingqiu ad30b9f023 docs(invariants): shorten precopy statement and retain details in notes 2026-11-20 23:27:12 -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 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
pingqiuandClaude Opus 5.5 46a7f6ad77 storage, volume: BarrierBound and barrierOverBound documented as legacy-fixture only; production stages by the copy-on-write budget
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:21:28 -08:00
pingqiu 8fb359c7a3 WIP status schema (O-OPS-2) 2026-11-20 23:21:08 -08:00
Ping Qiu f460eea977 Merge pull request #334 from seaweedfs/ci/spec-trace-check
ci: spec-trace check on every PR description
2026-11-20 23:18:41 -08:00
pingqiuandClaude Opus 5.5 e3a06ab435 invariants: INV-WS-SINGLE-FILER-001 names the ops chunk enforcement and its test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:18:09 -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 f676da0424 docs: condense INV-SNAP-DELETE-ANY-ORDER-001 (statement <= 300 chars, detail in the notes)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:09:29 -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
pingqiu e8fe683a3e fix(durable): retry only precopy pause refusals and bound test handshakes 2026-11-20 23:04:30 -08:00
pingqiu 08c0afb1e9 test(durable): retain stale admission errors when a new pause starts 2026-11-20 23:03:38 -08:00
Ping Qiu ca2069ce25 Merge pull request #336 from seaweedfs/train/20261121-7
train 7: restore PR A, typed frozen refusal, GC clock skew, public-text cleanup
2026-11-20 23:01:57 -08:00
pingqiuandClaude Opus 5.5 acc1258015 chunkstore: snapshot delete in any order with forks (remove fork claims)
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>
2026-11-20 22:56:53 -08:00
pingqiuandClaude Opus 5.5 8e3e8d1bcb ci: spec-trace runs on the self-hosted runners for same-repository PRs
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>
2026-11-20 22:41:48 -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