chore(freeze): snapshot demo state before Plan-07 hardening work

Freeze current submission/demo baseline:
- casan-next-plans/: full task-level plan set (Plan 00 index + 02/04/06/07/08/09/12, QA, slide deck)
- optimize-docs/video-steps/: per-vector scene breakdown (commands/screen-text/script) + start-tmux
- run-all.sh / scorecard.sh / map-live.sh: REAL=1 live-battery wiring
- regenerated evidence + audit/telemetry logs from live REAL=1 run
- submission README + video recording guide updates
- dry-run pipeline logs for 001-okr-web-app

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
thanhnv
2026-07-03 22:03:44 +09:00
co-authored by Claude Opus 4.8
parent fabd5f8783
commit fbcef967e5
182 changed files with 3865 additions and 341 deletions
+19 -5
View File
@@ -8,7 +8,8 @@
# Dùng: bash map-live.sh [STEP_FILE] (mặc định /tmp/casan_step)
# ============================================================================
STEP_FILE="${1:-${CASAN_STEP_FILE:-/tmp/casan_step}}"
MODE_FILE="$STEP_FILE.mode" # run-all.sh ghi 'REAL' vào đây khi REAL=1
MODE_FILE="$STEP_FILE.mode" # run-all.sh ghi 'REAL' vào đây khi REAL=1
TOK_FILE="$STEP_FILE.tokens" # run-all.sh ghi 'model=N|telem=N' khi chốt
ESC=$'\e'
HOME_="${ESC}[H"; CLR="${ESC}[2J"; EOL="${ESC}[K"; EOS="${ESC}[J"
@@ -19,7 +20,7 @@ HLON="${ESC}[103m${ESC}[30m" # nền vàng sáng, chữ đen (khung nhấp
# Thứ tự tuyến tính để biết bước nào trước/sau (dùng cho ✓ và ·)
# PIPELINE (lát cắt STEP1 thật) chỉ xuất hiện ở REAL=1, nằm ngay sau battery D.
ORDER=(A1 A2 A3 A4 A5 A6 A7 A8 B1 B2 B3 B4 B5 D1 D2 D3 D4 D5 PIPELINE CHAIN)
ORDER=(A1 A2 A3 A4 A5 A6 A7 A8 A9 B1 B2 B3 B4 B5 B6 B7 B8 D1 D2 D3 D4 D5 D6 PIPELINE CHAIN SCORECARD)
# Hàng hiển thị: "H||<tiêu đề nhóm>" hoặc "S|<id>|<nhãn>"
DISPLAY=(
@@ -32,22 +33,29 @@ DISPLAY=(
"S|A6|A6 secret in input"
"S|A7|A7 PII / credit card"
"S|A8|A8 red-team recall"
"S|A9|A9 secret ở đầu ra"
"H||⭐ H5 · GOVERNANCE"
"S|B1|B1 audit tamper 🔥"
"S|B2|B2 chain re-forge"
"S|B3|B3 secret commit"
"S|B4|B4 no-bypass"
"S|B5|B5 tool-audit SoD"
"S|B6|B6 tự-duyệt bị chặn 🔥"
"S|B7|B7 least-privilege"
"S|B8|B8 rate-limit deploy"
"H||⭐ H6 · AGENTOPS"
"S|D1|D1 cost-spike 3× 🔥"
"S|D2|D2 negative control"
"S|D3|D3 drift detect"
"S|D4|D4 telemetry thật"
"S|D5|D5 hallucination"
"S|D5|D5 hallucination scan"
"S|D6|D6 hallucination rate"
"H||🏭 PIPELINE THẬT (REAL=1)"
"S|PIPELINE|STEP1 okr.srs qua harness"
"H||🔥 CROSS-LAYER"
"S|CHAIN|CHAIN · 4 lớp MAESTRO"
"H||🏁 KẾT QUẢ"
"S|SCORECARD|Chấm điểm H4·H5·H6"
)
idx_of() { local t="$1" i; for i in "${!ORDER[@]}"; do [ "${ORDER[$i]}" = "$t" ] && { echo "$i"; return; }; done; echo -1; }
@@ -55,7 +63,7 @@ idx_of() { local t="$1" i; for i in "${!ORDER[@]}"; do [ "${ORDER[$i]}" = "$t" ]
draw() {
local cur="$1" blink="$2"
local curIdx; curIdx="$(idx_of "$cur")"
case "$cur" in SCORECARD|DONE) curIdx=${#ORDER[@]};; INTRO|"") curIdx=-1;; esac
case "$cur" in DONE) curIdx=${#ORDER[@]};; INTRO|"") curIdx=-1;; esac
local is_real=0; [ -f "$MODE_FILE" ] && is_real=1
local out="${HOME_}"
@@ -89,9 +97,15 @@ draw() {
done
out+="${EOL}"$'\n'
if [ "$cur" = "DONE" ] || [ "$cur" = "SCORECARD" ]; then
if [ "$cur" = "DONE" ]; then
out+="${B}${GRN} ✔ HOÀN TẤT — PASS${RST}${EOL}"$'\n'
fi
# Tổng token đo được trong phiên (H6 cost per run) — run-all ghi khi chốt.
if [ -f "$TOK_FILE" ]; then
IFS='|' read -r _telem _model < "$TOK_FILE" 2>/dev/null
_telem="${_telem#telem=}"; _model="${_model#model=}"
out+="${B}${CYN} 💰 token: telem=${_telem:-?} · model=${_model:-0}${RST}${EOL}"$'\n'
fi
out+="${DIM} OWASP·MAESTRO·ATLAS·NIST·ISO42001${RST}${EOS}"
printf '%s' "$out"
}