Files
seaweedfs/seaweed-block/scripts/run-phase87-failback-docs-alignment-gate.sh
T
pingqiuandClaude Opus 5.5 63dcb49a54 docs: delete outdated docs, simplify the rest, and split the design reference with diagrams
- Delete the stale roadmap and eight wiki planning pages (git history keeps
  them); move the only unique content (Phase 166-170 write-path experiment
  results) into docs/releases/nvme-tcp-supported-lab.md.
- Simplify the remaining user docs; duplicated non-claim lists link to
  docs/kubernetes-status.md; lab host names and local paths are removed.
- Split docs/design/block-design.md into core, agent-workspace-design.md and
  kubernetes-block-design.md; add four SVG diagrams of the on-disk and remote
  structures and new mermaid diagrams.
- mkdocs.yml nav and README links follow the new layout; the two gate
  scripts drop the one check each that read a deleted file.

Docs only; no product code changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 16:16:02 -08:00

48 lines
2.2 KiB
Bash

#!/usr/bin/env bash
set -euo pipefail
PRODUCT_ROOT="${1:-$(pwd)}"
ARTIFACT_DIR="${SW_BLOCK_ARTIFACT_DIR:-${PRODUCT_ROOT}/results/phase87-failback-docs-alignment-gate}"
SUMMARY="${ARTIFACT_DIR}/phase87-failback-docs-alignment-summary.txt"
mkdir -p "${ARTIFACT_DIR}"
: >"${SUMMARY}"
write_summary() {
echo "$*" | tee -a "${SUMMARY}" >/dev/null
}
require_text() {
local name="$1"
local file="$2"
local pattern="$3"
local found="false"
if grep -Fq -- "${pattern}" "${PRODUCT_ROOT}/${file}"; then
found="true"
fi
write_summary "${name}=${found}"
if [ "${found}" != "true" ]; then
echo "missing ${name}: ${file}: ${pattern}" >&2
return 1
fi
}
write_summary "phase87_failback_docs_alignment_status=running"
require_text "readme_names_source_gated_failback" "README.md" "Returned-replica failback runtime | Source-gated"
require_text "readme_names_no_automatic_failback" "README.md" "automatic deployed failback"
require_text "readme_names_release_smoke_requirement" "README.md" "requires a future release smoke"
require_text "wiki_deep_dive_exists" "docs/wiki/deep-dives/returned-replica-failback.md" "# Returned Replica Failback Runtime"
require_text "wiki_names_terminal_evidence" "docs/wiki/deep-dives/returned-replica-failback.md" "authorityEpochAdvanced=true"
require_text "wiki_names_code_entry_points" "docs/wiki/deep-dives/returned-replica-failback.md" "core/ops/failback_executor_controller.go"
require_text "wiki_names_current_limits" "docs/wiki/deep-dives/returned-replica-failback.md" "automatic deployed Kubernetes failback"
require_text "wiki_index_links_failback" "docs/wiki/index.md" "deep-dives/returned-replica-failback.md"
require_text "product_roadmap_names_phase86" "internal/docs/product-roadmap.md" "Phases 74-86 add"
require_text "product_roadmap_names_opt_in" "internal/docs/product-roadmap.md" "opt-in/source-gated failback"
require_text "product_roadmap_defers_automatic" "internal/docs/product-roadmap.md" "automatic deployed failback"
write_summary "failback_runtime_public_claim_aligned=true"
write_summary "automatic_failback_not_claimed=true"
write_summary "frontend_publication_after_failback_not_claimed=true"
write_summary "phase87_failback_docs_alignment_status=ok"