diff --git a/seaweed-block/.gitignore b/seaweed-block/.gitignore index 9aea5270bd..08eb15459b 100644 --- a/seaweed-block/.gitignore +++ b/seaweed-block/.gitignore @@ -27,3 +27,6 @@ coverage.out # under internal/docs/qa-assignments or external shared artifacts, not here. /results/ /sw-testops.exe + +# MkDocs engineering wiki build output +/site/ diff --git a/seaweed-block/docs/wiki/code-map.md b/seaweed-block/docs/wiki/code-map.md new file mode 100644 index 0000000000..941084e00a --- /dev/null +++ b/seaweed-block/docs/wiki/code-map.md @@ -0,0 +1,65 @@ +# Code Map + +This page maps product responsibilities to code entry points. It is a guide for +developers; it is not a complete API reference. + +## Commands + +| Command | Responsibility | Key files | +|---|---|---| +| `sw-block` | operations CLI, report/dashboard/explain, operator-status, lifecycle-owner | `cmd/sw-block/main.go` | +| `blockmaster` | control-plane master and launcher coordination | `cmd/blockmaster/main.go`, `core/host/master/` | +| `blockvolume` | per-volume data-plane process, status endpoint, readiness publishing | `cmd/blockvolume/main.go`, `core/storage/` | +| `blockcsi` | Kubernetes CSI controller/node integration | `cmd/blockcsi/main.go`, `core/csi/` | + +## Core Packages + +| Package | Role | +|---|---| +| `core/ops` | ManagedVolume model, status projection, CRD writer, action evaluator, lifecycle-owner | +| `core/csi` | CSI CreateVolume/DeleteVolume, Kubernetes metadata registration, target staging | +| `core/storage` | WAL/store behavior and dirty-failure handling | +| `core/host/master` | blockmaster observation and volume coordination | +| `testops` | scenario descriptions and release gates | + +## Ownership Split + +The current operation layer uses three separate owners: + +| Owner | Can mutate | Must not mutate | +|---|---|---| +| CSI | `SwBlockVolume` identity/spec after successful `CreateVolume` | `.status`, finalizers | +| operator-status | `SwBlockCluster.status`, `SwBlockVolume.status`, Events | spec, finalizers, PVC/PV/workloads/storage | +| lifecycle-owner | `SwBlockVolume.metadata.finalizers` only | spec, status, labels, annotations, ownerReferences, PVC/PV/workloads/storage | + +This split is deliberate. It prevents a status bug from becoming a storage +mutation and prevents lifecycle ownership from becoming a broad operator. + +## Important Entry Points + +| Behavior | Entry point | +|---|---| +| Write operator CRD status | `core/ops/operator_status_controller.go` | +| Patch Kubernetes status | `core/ops/kubernetes_status_writer.go` | +| Evaluate safe actions | `core/ops/action_model.go` | +| Add/release protection finalizer | `core/ops/lifecycle_owner_controller.go` | +| Register `SwBlockVolume` from CSI | `core/csi/kubernetes_metadata.go` | +| Project delete-safety from cleanup evidence | `core/ops/observation_bundle.go` | +| Parse cleanup verifier output | `core/ops/cleanup_evidence.go` | + +## Development Rule + +Before adding a new lifecycle action, identify: + +```text +fact owner +judgment owner +action owner +admission/RBAC boundary +user-visible status +QA gate +failure bundle evidence +``` + +If any item is missing, the feature is not ready for product code. + diff --git a/seaweed-block/docs/wiki/developer-guide.md b/seaweed-block/docs/wiki/developer-guide.md new file mode 100644 index 0000000000..b13e1e0316 --- /dev/null +++ b/seaweed-block/docs/wiki/developer-guide.md @@ -0,0 +1,74 @@ +# Developer Guide + +The engineering wiki exists to reduce rediscovery. It should answer: + +```text +Why was this built? +What invariant does it protect? +Where is the code? +How is it tested? +What is still out of scope? +``` + +## Documentation Layers + +| Layer | Purpose | Source | +|---|---|---| +| README / quickstart | first user path and narrow claims | `README.md`, `docs/quickstart-kubernetes.md` | +| Release notes | exact user-visible claims and image boundary | `docs/releases/` | +| Wiki | developer navigation and explanation | `docs/wiki/` | +| Finished plans | phase completion and historical decisions | `internal/docs/finished-plans/` | +| Ref docs | contracts, audits, design notes | `internal/docs/ref/` | +| Protocol docs | invariants and control-model reviews | `internal/docs/protocol/` | +| QA sign-offs | evidence that a gate passed or failed | `internal/docs/qa-assignments/` | +| TestOps | executable scenario definitions | `testops/` | + +## Writing Rule + +Do not copy a finished plan into the wiki. Instead, write the explanation a new +developer needs and link to the source evidence. + +Good wiki content: + +- problem context, +- ownership boundary, +- state transition, +- package/function entry point, +- gate name that proves the behavior, +- explicit non-claim. + +Bad wiki content: + +- phase diary copied line-by-line, +- PM wording without code references, +- claims that are not backed by QA, +- TODO lists without an owner or phase. + +## Local Preview + +Install MkDocs Material and serve the site: + +```bash +pip install mkdocs-material +mkdocs serve +``` + +Open: + +```text +http://127.0.0.1:8000 +``` + +Docker alternative: + +```bash +docker run --rm -it -p 8000:8000 -v "$PWD:/docs" squidfunk/mkdocs-material +``` + +The site is static. It can be served internally with any static file server +after: + +```bash +mkdocs build +``` + diff --git a/seaweed-block/docs/wiki/index.md b/seaweed-block/docs/wiki/index.md new file mode 100644 index 0000000000..4acf99c7c5 --- /dev/null +++ b/seaweed-block/docs/wiki/index.md @@ -0,0 +1,65 @@ +# Seaweed Block Engineering Wiki + +This wiki is the engineering map for Seaweed Block development. It is not a +replacement for finished plans, QA sign-offs, or release notes. It is the entry +point that explains how those documents fit together. + +Seaweed Block has passed through more than forty phases. A single architecture +document cannot explain the accumulated product model. The useful structure is: + +```text +problem background +-> industry pattern +-> Seaweed Block implementation +-> state machine / invariant +-> code entry points +-> QA gates and failure evidence +-> current limits and next work +``` + +## How To Read This Wiki + +Start here: + +- [Developer Guide](developer-guide.md) - what belongs in the wiki and what + remains in source evidence. +- [Code Map](code-map.md) - main packages, commands, and responsibility + boundaries. +- [State Machines](state-machines.md) - the product states developers must not + violate. +- [Phase Map](phase-map.md) - how Phase 1 through Phase 44 connect. +- [QA and TestOps Map](testops-map.md) - which gates prove which claims. + +## Current Product Loop + +The current validated loop is: + +```text +Helm install +-> CSI CreateVolume +-> SwBlockVolume identity CR +-> lifecycle-owner protection finalizer +-> operator-status writes CRD status and Events +-> delete request +-> delete-safety hold on unsafe evidence +-> release on clean cleanup evidence +-> uninstall zero residue +``` + +This is a bounded operation-layer capability. It is not automatic cleanup, not a +production operator, and not rebuild/failback/backup/NVMe expansion. + +## Source Evidence + +The wiki links to these source areas: + +- `docs/` - public and user-facing docs. +- `internal/docs/finished-plans/` - phase-by-phase completion records. +- `internal/docs/ref/` - design references and product contracts. +- `internal/docs/protocol/` - control-model and invariant documents. +- `internal/docs/qa-assignments/` - gate assignments and QA sign-offs. +- `testops/` - scenario definitions and suite structure. + +When a wiki page conflicts with a finished plan or QA sign-off, the finished +plan or QA sign-off wins. + diff --git a/seaweed-block/docs/wiki/phase-map.md b/seaweed-block/docs/wiki/phase-map.md new file mode 100644 index 0000000000..b97ea8e218 --- /dev/null +++ b/seaweed-block/docs/wiki/phase-map.md @@ -0,0 +1,71 @@ +# Phase Map + +The phases form a product-learning sequence. They should not be read as a flat +changelog. + +## Phase Groups + +| Phases | Theme | Outcome | +|---|---|---| +| 1-8 | protocol readiness and beta hardening seed | early frontend/control-plane gates | +| 9-12 | light-use operations and product-owned blockvolume lifecycle | first user-facing operations loop | +| 13-18 | restart, placement, mounted failover, node loss | data-plane recovery semantics | +| 19-24 | observation, ManagedVolume model, dashboard | AI/cold-reader operations surfaces | +| 25-32 | Helm, multi-volume, restart persistence, status surfaces | productized Kubernetes alpha loop | +| 33-34 | failure hardening and test realism | live dirty-failure gates, no false Ready | +| 35-40 | Kubernetes-native read-only operator foundation | CRD status, Events, node evidence, action model, release hardening | +| 41-44 | bounded lifecycle owner | finalizer add/release, delete-safety hold/release, integrated close gate | + +## The Important Pivot + +The major pivot was from "model looks coherent" to "live product capability is +closed": + +```text +live fact +-> judgment +-> status/action +-> real Kubernetes API boundary +-> QA gate +-> failure evidence +``` + +This pivot explains why many later phases are operation-layer hardening rather +than new protocol features. Without this closure, rebuild, NVMe, backup, and +failback would add more states than the product can safely explain. + +## Current Closure + +Phase 44 closes this path: + +```text +install +-> first PVC +-> CSI-created SwBlockVolume CR +-> lifecycle-owner protection finalizer +-> operator-status status/Events +-> delete request +-> hold on unsafe evidence +-> release on clean evidence +-> zero residue +``` + +The remaining release step is artifact validation: publish matching immutable +images and rerun pinned-image smoke. + +## Next Feature Rule + +A new storage feature should not enter product scope unless it can answer: + +```text +Who owns the facts? +Who judges safety? +Who owns the action? +What admission/RBAC boundary confines it? +Where does the user see hold/release/progress/failure? +Which gate proves no false Ready=True? +``` + +Returned-replica rebuild/failback is the natural next major product capability +because it can reuse the operation-layer model built in Phases 35-44. + diff --git a/seaweed-block/docs/wiki/state-machines.md b/seaweed-block/docs/wiki/state-machines.md new file mode 100644 index 0000000000..e580090a4a --- /dev/null +++ b/seaweed-block/docs/wiki/state-machines.md @@ -0,0 +1,96 @@ +# State Machines + +Seaweed Block development should be driven by state machines and invariants, +not by isolated helper scripts. This page names the states developers must +preserve. + +## Managed Volume Readiness + +```text +Ready +Blocked +Recovering +Recovered +EvidenceStale +CleanupRequired +Unknown +``` + +Negative-first rule: + +```text +missing, stale, unreachable, corrupt, or contradictory evidence must not become +Ready=True +``` + +Typical mappings: + +| Evidence | Status | +|---|---| +| first volume verified | `Ready=True`, reason `first_volume_verified` | +| CSI image pull failure | `Ready=False`, `Blocked=True`, reason `csi_node_image_pull_failed` | +| status endpoint unreachable | `Ready=Unknown`, `EvidenceStale=True` | +| WAL integrity fault | not Ready; prefer reason `wal_integrity_fault` | +| cleanup residue | `CleanupRequired=True`, delete-safety rejected | + +## Node Readiness + +Node status combines Kubernetes facts and product prerequisites: + +| Fact | Expected projection | +|---|---| +| Kubernetes Ready false/unknown | `unknown/node_not_ready` | +| Scheduling disabled | `blocked/node_scheduling_disabled` | +| CSI driver not registered | `blocked/csi_driver_not_registered` | +| CSI node pod not ready | `blocked/csi_node_pod_not_ready` | +| CSI image missing | `blocked/image_missing_on_node` | +| iSCSI prereq missing | `blocked/iscsi_prereq_missing` | +| multipath prereq missing | `blocked/multipath_prereq_missing` | + +Root cause should win over symptoms. For example, node NotReady should not be +masked by CSI pod not ready. + +## Delete Safety + +Delete-safety is evidence-driven: + +```text +missing cleanup evidence -> unknown/requested -> hold finalizer +stale cleanup evidence -> unknown/requested -> hold finalizer +residue evidence -> rejected/blocked -> hold finalizer +clean fresh evidence -> allowed/releasable -> release protection finalizer +``` + +The lifecycle-owner never runs cleanup. It only consumes status already written +by operator-status. + +## Finalizer Lifecycle + +```text +SwBlockVolume created +-> lifecycle-owner adds protection finalizer +-> delete requested +-> hold while deleteSafety is missing/stale/rejected +-> release only when deleteSafety is allowed/releasable +-> remove only block.seaweedfs.com/swblockvolume-protection +-> preserve foreign finalizers +``` + +Admission policy confines lifecycle-owner main-object patches to this finalizer +shape. + +## Dirty-Failure Rule + +The SmartWAL corruption gate established the pattern: + +```text +detect corruption +-> fail closed in storage +-> block local readiness in blockvolume +-> require positive readiness before projection +-> never publish false Ready=True +``` + +This is the model for future dirty failures such as partial writes, stale +replicas, and returned-replica rebuild. + diff --git a/seaweed-block/docs/wiki/testops-map.md b/seaweed-block/docs/wiki/testops-map.md new file mode 100644 index 0000000000..8e88bea066 --- /dev/null +++ b/seaweed-block/docs/wiki/testops-map.md @@ -0,0 +1,68 @@ +# QA and TestOps Map + +Seaweed Block uses TestOps and QA sign-offs as product evidence, not just test +coverage. The important question is what each gate proves. + +## Test Realism Levels + +| Level | Meaning | Useful for | +|---|---|---| +| L0 self-proof | helper writes a value and test greps it | avoid for product claims | +| L1 replay | existing evidence is replayed through report/status logic | projection correctness | +| L2 live injection | real failure is induced and product observes it | status and recovery claims | +| L3 adversarial | live failure plus concurrency/timing/isolation | release-critical claims | + +Phase 34 moved dirty-failure testing away from self-proof and toward live +injection. + +## Scenario Families + +| Family | Examples | Claim area | +|---|---|---| +| Day-1 install | `helm-first-volume-via-sw-block-cli-chain.yaml` | Helm + first PVC | +| Multi-volume RF=3 | `helm-multi-volume-rf3-*.yaml` | identity isolation and HA gates | +| Restart persistence | `helm-*-restart-*.yaml` | authority and data persistence | +| Failure evidence | `status-endpoint-unreachable-*`, `helm-smartwal-corrupt-restart-chain.yaml` | no false Ready | +| Lifecycle owner | `lifecycle-owner-*.yaml` | admission/action/finalizer boundary | +| Cleanup | `cleanup-residue-chain.yaml` and cleanup verifier | zero-residue contract | +| Protocol | `iscsi-*`, `nvme-*` | frontend-specific gates | + +## Release Evidence + +Release claims should point to: + +- a finished plan in `internal/docs/finished-plans/`, +- one or more QA sign-offs in `internal/docs/qa-assignments/`, +- a release note in `docs/releases/`, +- if applicable, immutable image tags/digests. + +If a feature has only unit tests and no live or replay gate, call it an +implementation detail, not a product capability. + +## Current High-Value Gates + +| Gate | Why it matters | +|---|---| +| SmartWAL corruption restart | proves dirty evidence cannot become false Ready | +| live node/CSI evidence | prevents node and CSI blockers from being masked | +| status API conformance | catches CRD schema/RBAC bugs missed by mocks | +| lifecycle-owner admission | proves mutation boundary on a real Kubernetes API | +| delete lifecycle close | proves the operation-layer pieces compose end-to-end | + +## QA Writing Rule + +A QA sign-off should state: + +```text +what was run +which source commit/image +which evidence was observed +what would have failed the gate +blocking findings +non-blocking findings +residue result +``` + +This makes the sign-off useful months later when a developer needs to know why +a state transition or guard exists. + diff --git a/seaweed-block/internal/docs/current-plan.md b/seaweed-block/internal/docs/current-plan.md index c2bd8b162e..ed6b9683f7 100644 --- a/seaweed-block/internal/docs/current-plan.md +++ b/seaweed-block/internal/docs/current-plan.md @@ -1,237 +1,150 @@ -# Current Plan: Phase 44 - Delete Lifecycle Close Gate +# Current Plan: Phase 45 - Engineering Wiki And Knowledge Base -Status: closed on 2026-06-17. +Status: active. -Branch: `phase41-lifecycle-owner-foundation` +Branch: `phase45-engineering-wiki` -Previous phase: Phase 43 is closed in -`internal/docs/finished-plans/phase43_finishedplan_bounded_finalizer_lifecycle.md`. +Previous phase: Phase 44 is closed in +`internal/docs/finished-plans/phase44_finishedplan_delete_lifecycle_close_gate.md`. -## Product Goal +## Product / Engineering Goal -Validate the complete user-visible delete lifecycle as one product path: +Create an internal engineering wiki that explains Seaweed Block development at +developer depth: ```text -install -> first PVC -> SwBlockVolume protected -> delete requested -> -blocked/unknown evidence holds finalizer -> clean evidence releases finalizer -> -object deletion completes -> uninstall leaves zero residue +background +-> industry pattern +-> internal implementation structure +-> state machines and invariants +-> major code/function entry points +-> QA gates and failure evidence +-> current limits and next work ``` -Phase 43 proved add and release independently. Phase 44 proves the integrated -operation behaves as a coherent product capability across Kubernetes objects, -CRD status, Events, report/dashboard/explain surfaces, and cleanup. +This is not a marketing site and not a replacement for finished plans. It is a +navigation and explanation layer over the existing docs, plans, protocol notes, +and TestOps scenarios. ## Why This Is Next -The operation layer is only useful if separate pieces compose: +Seaweed Block has crossed more than forty phases. The hard problems are now +spread across: ```text -live object state + status evidence + action boundary + admitted mutation + -user-facing explanation + cleanup +docs/ +internal/docs/finished-plans/ +internal/docs/ref/ +internal/docs/protocol/ +internal/docs/qa-assignments/ +testops/ +cmd/ +core/ ``` -Phase 44 is the close gate before moving to a broader release or larger -features. It should not add rebuild, failback, backup, or NVMe scope. +New developers need a structured way to answer: + +```text +Why does this state exist? +Which code owns it? +Which invariant does it protect? +Which QA gate proves it? +What is explicitly out of scope? +``` + +Without this, future work like returned-replica rebuild, NVMe ANA parity, Docker +volume integration, and backup/restore will rediscover old decisions or repeat +old control-plane mistakes. ## Scope Contract | In | Out | |---|---| -| one first-volume user path | returned-replica rebuild | -| SwBlockVolume finalizer add and release | failback / repair | -| delete-safety hold/release status | automatic cleanup execution | -| CRD status/Event/report/dashboard agreement | PVC/PV/workload mutation | -| zero-residue uninstall verification | backup/snapshot/restore | -| multi-volume isolation smoke if cheap | NVMe ANA parity | +| MkDocs Material static wiki scaffold | custom wiki server | +| developer-facing docs under `docs/wiki/` | moving source evidence | +| code map and state-machine map | exhaustive API reference | +| Phase 1-44 phase map | rewriting every finished plan | +| QA/TestOps map | replacing QA sign-offs | +| local and internal-server preview instructions | public product website | -Allowed mutation: +## D1: Wiki Site Scaffold -```text -lifecycle-owner may patch only SwBlockVolume.metadata.finalizers. -operator-status remains status/events-only. -``` - -## D1: Release Artifact / Image Alignment - -Goal: ensure the shipped image and chart can actually run the lifecycle-owner. +Goal: make the wiki runnable as a static Markdown site. Acceptance: ```text -[x] candidate image includes sw-block ops lifecycle-owner -[x] chart renders lifecycleOwner.create=false by default -[x] lifecycleOwner.create=true installs Deployment/RBAC/VAP -[x] no chart flag/image skew +[x] `mkdocs.yml` exists +[x] wiki pages live under `docs/wiki/` +[x] local preview command is documented +[x] strict MkDocs build passes ``` -Fail if the chart references a subcommand or flag absent from the image. +## D2: Developer Navigation Layer -## D2: First PVC Creates Protected SwBlockVolume +Goal: give developers stable entry points. -Goal: a normal Day-1 PVC path creates an observable, protected -`SwBlockVolume`. - -Ownership boundary: +Acceptance: ```text -CSI controller creates/updates SwBlockVolume metadata/spec identity after -CreateVolume succeeds. operator-status writes only .status. lifecycle-owner -patches only metadata.finalizers. +[x] wiki index explains purpose and source-of-truth hierarchy +[x] developer guide defines what belongs in the wiki +[x] code map names commands, packages, and ownership split +[x] state-machine map names readiness, node, delete-safety, finalizer states +[x] phase map groups Phases 1-44 by product theme +[x] QA/TestOps map explains gate realism and scenario families +``` + +## D3: Deep-Dive Expansion Plan + +Goal: identify the first detailed wiki deep dives to write next. + +Acceptance: + +```text +[ ] operation-layer v0.5 deep dive outline +[ ] block engine / WAL dirty-failure deep dive outline +[ ] CSI + SwBlockVolume lifecycle deep dive outline +[ ] TestOps scenario authoring deep dive outline +[ ] returned-replica rebuild readiness deep dive outline +``` + +## D4: Publish / Serve Decision + +Goal: choose how the team serves the wiki internally. + +Recommended default: + +```text +MkDocs Material static site +git-backed markdown +served by local `mkdocs serve`, Docker, or a simple internal static server ``` Acceptance: ```text -[x] Helm install succeeds with operatorStatus + lifecycleOwner enabled -[x] first PVC writer/reader passes -[x] SwBlockVolume exists for the PVC -[x] lifecycle-owner adds exactly one protection finalizer -[x] operator-status writes Ready=True / first_volume_verified -[x] finalizer_added Event is bounded -``` - -## D3: Delete Request Holds On Unsafe Evidence - -Goal: a delete request cannot complete while evidence is unsafe. - -Acceptance: - -```text -[x] deleting SwBlockVolume with missing cleanup evidence remains Terminating -[x] blocked residue evidence remains Terminating -[x] stale cleanup evidence remains Terminating -[x] status.deleteSafety decision is unknown/rejected as appropriate -[x] Events explain the hold reason -[x] lifecycle-owner does not run cleanup -``` - -Fail if unsafe evidence releases the finalizer. - -Implementation note: - -```text -operator-status now lists live SwBlockVolume objects and projects deleteSafety -for objects with deletionTimestamp. Cleanup remains external evidence: pass the -verifier output with --cleanup-summary; operator-status reads it, never runs it. -``` - -## D4: Clean Evidence Releases And Deletion Completes - -Goal: clean, fresh evidence releases only the Seaweed Block finalizer. - -Acceptance: - -```text -[x] clean cleanup evidence sets decision=allowed state=releasable -[x] lifecycle-owner removes only block.seaweedfs.com/swblockvolume-protection -[x] foreign finalizers are preserved if present -[x] SwBlockVolume deletion completes after release -[x] finalizer_released Event is bounded -``` - -Fail if any non-finalizer field changes. - -## D5: Surface Agreement - -Goal: users see the same answer everywhere. - -Acceptance: - -```text -[x] kubectl get/describe SwBlockVolume status agrees with ops report -[x] operator-snapshot agrees with CRD status -[x] dashboard /operator-snapshot.json agrees -[x] ops explain names the same hold/release reason -[x] no false Ready=True appears in blocked/unknown delete states -``` - -## D6: Multi-Volume Isolation Smoke - -Goal: one deleting volume does not contaminate another volume. - -Scenario: - -```text -A deleting + blocked residue -> held -B deleting + clean evidence -> released -C normal ready volume -> remains ready, protected, no deleteSafety contamination -``` - -Acceptance: - -```text -[x] A held does not block B release -[x] B release does not remove A/C finalizer -[x] C remains Ready=True and protected -[x] Events/status use the correct volume identity -``` - -## D7: Close / Release Decision - -Phase 44 can close only if: - -```text -[x] D1-D6 PASS on a clean VAP-capable lab -[x] lifecycle-owner has no cleanup/PVC/PV/workload/storage mutation power -[x] operator-status remains status/events-only -[x] final cleanup verifier reports zero residue -[x] release notes and README claim only bounded SwBlockVolume finalizer - lifecycle, not automatic cleanup or broad lifecycle automation +[ ] local preview works on Windows/WSL +[ ] Docker preview command works or is documented +[ ] internal host target is chosen +[ ] generated `site/` is not committed ``` ## Current Progress -- Phase 44 finished plan: - `internal/docs/finished-plans/phase44_finishedplan_delete_lifecycle_close_gate.md`. -- v0.5 beta candidate release note: - `docs/releases/v0.5-beta-candidate.md`. -- D2 implementation landed in `e56b844`: normal CSI CreateVolume registers the - SwBlockVolume identity CR when operator-status or lifecycle-owner surfaces - are enabled. -- D2 QA PASS: - `internal/docs/qa-assignments/phase44-d2-integrated-swblockvolume-cr-qa-signoff.md`. -- D3/D4 implementation added in `8669d4a`: operator-status consumes live deleting - SwBlockVolume objects plus externally generated `cleanup-summary.txt` - evidence to publish deleteSafety hold/release status. It still does not patch - finalizers, run cleanup, or mutate PVC/PV/workloads/storage. -- D3/D4 QA PASS: - `internal/docs/qa-assignments/phase44-d3-d4-delete-lifecycle-close-gate-qa-signoff.md`. -- D3/D4 polish added after QA: report/explain/dashboard can consume - `--cleanup-summary` in live in-cluster mode, and operator-status skips a - disappeared SwBlockVolume CR instead of aborting the whole reconcile. -- D5/D6 QA PASS: - `internal/docs/qa-assignments/phase44-d5-d6-surface-isolation-close-qa-signoff.md`. -- D5/D6 polish added after QA: `ops explain volume --cleanup-summary` can now - explain a deleting SwBlockVolume even when the live inventory no longer - contains the managed volume. -- Local checks pass: - `go test ./core/csi ./cmd/blockcsi`, `go test ./core/ops ./cmd/sw-block`, - and `helm lint charts/seaweed-block`. -- D2 QA assignment prepared: - `internal/docs/qa-assignments/phase44-d2-integrated-swblockvolume-cr-qa.md`. -- D3/D4 QA assignment prepared: - `internal/docs/qa-assignments/phase44-d3-d4-delete-lifecycle-close-gate-qa.md`. -- Phase 43 already proved add and release as separate live gates. -- Phase 44 must prove the integrated path and release wording. - -## Prerequisites / Risks - -- Use a candidate image that includes `sw-block ops lifecycle-owner`. -- Use a candidate CSI image that includes `blockcsi --swblockvolume-cr-namespace`; - older CSI images will not support D2 integrated CR creation. -- Use a VAP-capable lab; Rancher Desktop without VAP is not sufficient. -- Be careful with deleting CRs that have finalizers; every failed gate must - include admin cleanup instructions. -- Do not paper over unsafe evidence by running cleanup inside lifecycle-owner. +- MkDocs scaffold added in `mkdocs.yml`. +- Initial wiki pages added under `docs/wiki/`. +- Strict build validated in a temporary Python environment: + `mkdocs build --strict --site-dir `. ## Next Step -Publish matching images from the final release commit and rerun the -release-candidate smoke: +Expand the wiki from navigation into detailed engineering chapters: ```text -claim bounded SwBlockVolume finalizer lifecycle only -claim evidence-driven hold/release, not automatic cleanup -publish both sw-block and sw-block-csi images together -rerun release-candidate smoke if image digests change +1. Operation layer v0.5: facts -> judgment -> action -> admission -> evidence. +2. Block engine and WAL failure semantics: why false Ready was possible and how + the gate forced a real fix. +3. CSI lifecycle: PVC -> CreateVolume -> SwBlockVolume CR -> status/finalizer. +4. TestOps authoring: avoid self-proof, prefer live/replay/adversarial gates. ``` diff --git a/seaweed-block/mkdocs.yml b/seaweed-block/mkdocs.yml new file mode 100644 index 0000000000..256d2772a6 --- /dev/null +++ b/seaweed-block/mkdocs.yml @@ -0,0 +1,37 @@ +site_name: Seaweed Block Engineering Wiki +site_description: Internal engineering knowledge base for Seaweed Block. +repo_url: https://github.com/seaweedfs/seaweed-block +docs_dir: docs +site_dir: site + +theme: + name: material + features: + - navigation.sections + - navigation.expand + - navigation.indexes + - search.suggest + - search.highlight + +plugins: + - search + +nav: + - Home: wiki/index.md + - Developer Guide: + - Wiki Structure: wiki/developer-guide.md + - Code Map: wiki/code-map.md + - State Machines: wiki/state-machines.md + - Phase Map: wiki/phase-map.md + - QA and TestOps Map: wiki/testops-map.md + - Product: + - Overview: overview.md + - User Capabilities: user-capabilities.md + - Roadmap: roadmap.md + - Releases: releases/README.md + - Architecture: + - Architecture: architecture.md + - Developer Architecture: developer-architecture.md + - Runtime State Machines: runtime-state-machines.md + - Operations v1: operations-v1.md + - Quickstart: quickstart-kubernetes.md