Files
acdl/scripts/verify_phase06.sh
T
Jon Chery e044a2de0d phase: 6, status: plan-as-execute, persona: lead-developer, task: T-6.1..T-6.4
---ci---
project: acdl
phase: 6
milestone: v1.1
status: plan-as-execute
persona: lead-developer
tasks: [T-6.1, T-6.2, T-6.3, T-6.4]
---/ci---

Archive the v1.0 demo under demo/ (D-037) and reorient the repo to the
real platform. Wave 1 of the Phase 06 plan.

- T-6.1: git mv modules/, scripts/, evidence-ui/, contracts/,
  contracts-repo/, .gitea/ -> demo/; mv ACDL_DEMO.md + runner-data/ -> demo/
- T-6.2: scaffold new v1.1 top-level dirs (platform/, schemas/, adapters/,
  terraform/, modules-ir/) with .gitkeep
- T-6.3: create top-level scripts/verify_phase06.sh (v1.1 verify scripts
  live at top-level, NOT demo/scripts/ which holds the v1.0 demo verify
  scripts)
- T-6.4: rewrite README.md to reflect the real platform (vision +
  architecture links, new layout, status v1.1 active); add runner-data/
  to .gitignore

All moves via git mv (history preserved). Repo root now contains only
README.md, demo/, docs/, .ciagent/, and the new empty v1.1 dirs.
2026-07-21 18:27:21 +00:00

44 lines
2.0 KiB
Bash
Executable File

#!/usr/bin/env bash
# scripts/verify_phase06.sh - Phase 06 archive regression + layout check.
# Lives at TOP-LEVEL scripts/ (v1.1 verify scripts), NOT demo/scripts/.
set -u
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT"
fail() { echo "FAIL: $*" >&2; exit 1; }
ok() { echo "ok: $*"; }
# --- Check 1: demo/ contains the full v1.0 demo tree ---
for d in demo/modules demo/scripts demo/evidence-ui demo/contracts \
demo/contracts-repo demo/.gitea/workflows; do
[ -d "$d" ] || fail "missing $d"
done
[ -f demo/ACDL_DEMO.md ] || fail "missing demo/ACDL_DEMO.md"
[ -f demo/scripts/run_demo.sh ] || fail "missing demo/scripts/run_demo.sh"
ok "demo/ contains the full v1.0 demo"
# --- Check 2: regression - the archived demo still runs from demo/ ---
out=$(ACDL_GITEA_TOKEN= bash demo/scripts/run_demo.sh --no-upload 2>&1); rc=$?
[ "$rc" -eq 0 ] || { echo "$out" >&2; fail "demo/scripts/run_demo.sh --no-upload exited $rc"; }
ok "demo/scripts/run_demo.sh --no-upload exits 0"
# --- Check 3: new top-level dirs exist and are scaffolded ---
for d in platform schemas adapters terraform modules-ir; do
[ -d "$d" ] || fail "missing new top-level dir $d"
[ -f "$d/.gitkeep" ] || fail "missing $d/.gitkeep"
done
ok "new top-level dirs exist: platform/ schemas/ adapters/ terraform/ modules-ir/"
# --- Check 4: no stray v1.0 dirs left at repo root ---
for stray in modules evidence-ui contracts contracts-repo ACDL_DEMO.md; do
[ -e "$stray" ] && fail "stray $stray left at repo root (should be under demo/)"
done
[ -e ".gitea" ] && fail "stray .gitea/ left at repo root (moved to demo/.gitea/)"
ok "no stray v1.0 dirs at repo root"
# --- Check 5: README reflects the real platform ---
grep -q "Agentic Cloud Delivery Platform" README.md || fail "README missing platform name"
grep -q "demo/" README.md || fail "README does not reference the archived demo/"
grep -qi "vision\|architecture" README.md || fail "README missing vision/architecture links"
ok "README reflects the real platform (name + demo/ ref + vision/arch links)"
echo "Phase 06: ALL CHECKS PASS"