docs(cmd): drop internal phase/gate prefixes from remaining cmd entry points

Tier 1 continuation: blockmaster, blockcsi, m01verify, sparrow main +
s5_bootstrap + s7_restart_smoke. Removes P14 / P15 / G5-5 / G15a phase
prefixes from package docs, --help flag descriptions, and exported
function godocs.

Substantive content kept (durable bootstrap contract, restart smoke
contract, byte-equal verifier semantics). No behavior change.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
pingqiuandClaude Opus 4.7 committed 2026-05-03 15:41:45 -07:00
1 parent d3f192e899
commit 57d339d2e7
6 files changed
+27 -31

No files matched your search

+4 -4
View File
@@ -1,7 +1,7 @@
// Command blockcsi is the V3 CSI daemon. G15a scope is static:
// it consumes already-published frontend target facts from
// blockmaster and mounts them through the node path; it does not
// create volumes or mint authority.
// Command blockcsi is the CSI daemon. Current scope is static: it
// consumes already-published frontend target facts from blockmaster
// and mounts them through the node path; it does not create volumes
// or mint authority.
package main
import (
+2 -4
View File
@@ -1,7 +1,5 @@
// Command blockmaster is the block master daemon — the P15 beta
// product host for P14 authority components + master-volume
// control RPC. See sw-block/design/v3-phase-15-t0-sketch.md
// §4.1 for the product-daemon contract.
// Command blockmaster is the block master daemon — the product
// host for authority components + master-volume control RPC.
package main
import (
+7 -7
View File
@@ -1,6 +1,6 @@
//go:build m01verify
// G5-5 hardware-test byte-equal verifier — built only under
// Hardware-test byte-equal verifier — built only under the
// `m01verify` build tag; never compiled into the production
// blockvolume binary.
//
@@ -8,17 +8,17 @@
//
// go build -tags m01verify -o m01verify ./cmd/blockvolume/
//
// Usage (inside iterate-m01-replicated-write.sh):
// Usage:
//
// m01verify --walstore /tmp/g5sm/replica-store/v1.walstore \
// --lba-start 0 --lba-count 256 --block-size 4096 \
// --expected-pattern <hex-byte> | --expected-file payload.bin
//
// Per architect REVISE binding round 51: opens the replica's
// walstore through `core/storage.OpenReadOnly` (NOT raw extent
// peek), invokes Read(lba) over the target LBA range, SHA-256-
// compares against the known primary write payload. Prints OK on
// equality, MISMATCH lba=N exp=... got=... + exit 1 on diff.
// Opens the replica's walstore through `core/storage.OpenReadOnly`
// (NOT raw extent peek), invokes Read(lba) over the target LBA
// range, SHA-256-compares against the known primary write payload.
// Prints OK on equality, MISMATCH lba=N exp=... got=... + exit 1
// on diff.
//
// Caller (script) MUST ensure the daemon owning the walstore is
// stopped or quiesced before invocation; OpenReadOnly opens the
+8 -8
View File
@@ -67,16 +67,16 @@ func parseFlags(args []string) (options, error) {
fs.BoolVar(&opts.json, "json", false, "emit machine-readable JSON output")
fs.IntVar(&opts.runs, "runs", 1, "repeat the validation path N times")
fs.StringVar(&opts.httpAddr, "http", "", "start read-only HTTP ops server on ADDR")
fs.BoolVar(&opts.calibrate, "calibrate", false, "run the Phase 06 calibration package")
fs.BoolVar(&opts.calibrate, "calibrate", false, "run the calibration package")
fs.BoolVar(&opts.persistDemo, "persist-demo", false, "run the single-node persistence demonstration")
fs.StringVar(&opts.persistDir, "persist-dir", "", "directory for --persist-demo backing file")
fs.StringVar(&opts.authorityStore, "authority-store", "", "directory for P14 S5 durable authority records")
fs.BoolVar(&opts.s5Bootstrap, "s5-bootstrap", false, "run the P14 S5 durable authority bootstrap (requires --authority-store)")
// --s7-restart-smoke is a test-only entry for the P14 S7 real-
// subprocess restart smoke. It is intentionally undocumented in
// operator tooling; the flag help string is terse so running
// sparrow with --help doesn't advertise it as a workflow.
fs.BoolVar(&opts.s7RestartSmoke, "s7-restart-smoke", false, "internal test-only: P14 S7 restart smoke (requires --authority-store)")
fs.StringVar(&opts.authorityStore, "authority-store", "", "directory for durable authority records")
fs.BoolVar(&opts.s5Bootstrap, "s5-bootstrap", false, "run the durable authority bootstrap (requires --authority-store)")
// --s7-restart-smoke is a test-only entry for the real-subprocess
// restart smoke. It is intentionally undocumented in operator
// tooling; the flag help string is terse so running sparrow with
// --help doesn't advertise it as a workflow.
fs.BoolVar(&opts.s7RestartSmoke, "s7-restart-smoke", false, "internal test-only: restart smoke (requires --authority-store)")
fs.SetOutput(ioDiscard{})
if err := fs.Parse(args); err != nil {
return options{}, err
+1 -2
View File
@@ -12,8 +12,7 @@ import (
)
// runS5Bootstrap is the live, non-test entrypoint exercising the
// P14 S5 durable authority bootstrap path. This is the minimum
// real call site that satisfies architect round-5:
// durable authority bootstrap path:
//
// 1. AcquireStoreLock — single-owner OS lock on the store dir
// 2. NewFileAuthorityStore — open file-per-volume backend
@@ -10,14 +10,13 @@ import (
"github.com/seaweedfs/seaweed-block/core/authority"
)
// runS7RestartSmoke is the narrow test-only entry that drives
// the P14 S7 real-subprocess restart smoke (§8.1 shape 2 of the
// S7 sketch). It is NOT advertised in --help and has no
// operator workflow; it exists only so the L2 process test can
// spawn a real `sparrow` binary twice against the same store
// runS7RestartSmoke is the narrow test-only entry that drives the
// real-subprocess restart smoke. It is NOT advertised in --help and
// has no operator workflow; it exists only so the L2 process test
// can spawn a real `sparrow` binary twice against the same store
// directory and assert on structured stdout.
//
// Contract (pinned by sketch §8.4):
// Contract:
//
// 1. Bootstrap against --authority-store (acquire lock, open
// file store, reload Publisher).