mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-08 09:07:18 +00:00
Add BlockService replica-side rebuild routing API that bridges transport/host layer to BlockVol session surface: StartReplicaRebuildSession(path, config) ApplyReplicaRebuildWALEntry(path, sessionID, entry) ApplyReplicaRebuildBaseBlock(path, sessionID, lba, data) MarkReplicaRebuildBaseComplete(path, sessionID, totalBlocks) TryCompleteReplicaRebuildSession(path, sessionID) CancelReplicaRebuildSession(path, sessionID, reason) ReplicaRebuildSession(path) → snapshot Each method does one thing: validate → WithVolume → delegate to BlockVol. No wire decoding, no protocol decisions, no state invention. Transport wiring (sessionControl/walData/sessionData handlers) is the next step. 2 focused tests: skeleton routes correctly, stale session ID rejected. Updated v2-rebuild-mvp-session-protocol.md with server skeleton section. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
V2 Design
This directory now keeps the current design and process entrypoints for the active V2 line.
Historical planning/review documents were moved to ../docs/archive/design/ to keep this directory smaller and easier to navigate.
Read First
v2-protocol-truths.mdv2-capability-map.mdv2-pure-runtime-rf1-bootstrap.mdv2-volumev2-single-node-mvp.mdv2-proof-and-retest-pyramid.mdv2-protocol-claim-and-evidence.mdv2-two-loop-protocol.mdv2-automata-ownership-map.mdv2-loop1-surface-draft.mdv2-product-completion-overview.mdv2-phase-development-plan.mdv2-semantic-methodology.zh.mdv2-protocol-closure-map.zh.mdv2-algorithm-overview.mdv2-algorithm-overview.zh.mdv2-detailed-algorithm.zh.md
Active Process / Workflow
protocol-development-process.mdagent_dev_process.md
Engine implementation (code maintainers)
v2-engine-maintainer-tutorial.md— how to readsw-block/engine/replication, where to add rules, host wiring checklist
Active Supporting Design
v2-acceptance-criteria.mdv2-open-questions.mdv2_scenarios.mdv2-scenario-sources-from-v1.mdv1-v15-v2-comparison.mdv2-reuse-replacement-boundary.mdwal-replication-v2.mdwal-replication-v2-state-machine.mdwal-replication-v2-orchestrator.mdwal-v2-tiny-prototype.mdwal-v1-to-v2-mapping.mdv2-dist-fsm.md
Historical / Archived
See ../docs/archive/design/README.md for archived:
- old roadmaps
- first-slice planning docs
- passed readiness/slicing reviews
- phase-specific design maps for closed phases
Execution Note
- active development tracking lives under
../.private/phase/ - current phase contract and slice packages live there rather than in this directory
The original project-level copies under learn/projects/sw-block/design/ remain as shared references for now.