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
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
# D3 — Drift-detect: hành vi output lệch bị cảnh báo
# cwd = thư mục gốc dự án. Offline OK.
printf 'line one\nline two\nline three\n' > /tmp/gold.txt
printf 'line one\nline two CHANGED\nline four\n' > /tmp/cand.txt
bash .specify/scripts/bash/drift-detect.sh /tmp/gold.txt /tmp/cand.txt /tmp/drift.json; echo "exit=$?"
# Kỳ vọng: DRIFT_WARN similarity=0.7692 length_delta=0.2414 (difflib thật)
@@ -0,0 +1,19 @@
# TEXT HIỂN THỊ — D3
## Title card
```
D3 · DRIFT DETECT (hành vi output lệch)
AgentOps · phát hiện model đổi hành vi
```
## Caption trong khi chạy
```
So 2 artifact: gold vs candidate (khác 1 dòng + đổi độ dài)
Đo bằng difflib THẬT
```
## Caption kết quả
```
✅ DRIFT_WARN similarity=0.7692 length_delta=0.2414
similarity ≠ 1.0 → phát hiện model đổi hành vi theo thời gian
```
@@ -0,0 +1,8 @@
# SCRIPT / MÔ TẢ — D3
**Kịch bản:** model có thể **đổi hành vi theo thời gian** (drift) — cùng input nhưng output khác dần. Ta so một artifact "gold" (chuẩn) với "candidate" (mới) khác nhau về nội dung lẫn độ dài.
**Control phát hiện thế nào:** `drift-detect.sh` dùng **difflib thật** tính `similarity=0.7692` (≠ 1.0) và `length_delta=0.2414` → `DRIFT_WARN`. Con số thật, không ước lượng.
**Text mô tả (phụ đề):**
> "So 2 artifact bằng difflib thật, similarity ≠ 1.0 → phát hiện model đổi hành vi theo thời gian."