Files
CASAN/optimize-docs/video-steps/H6-AgentOps/D1-cost-spike/script.md
T
thanhnvandClaude Opus 4.8 fbcef967e5 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>
2026-07-03 22:03:44 +09:00

13 lines
1021 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# SCRIPT / MÔ TẢ — D1 🔥 SHOWPIECE H6
**Kịch bản:** đây là **câu hỏi chốt của H6** — *"nếu một step đột nhiên tốn gấp 3 lần token, có ai biết không?"*. Ta nạp telemetry 4 step, trong đó step `plan` tốn **710 token** (~3× so với median 220).
**Control phát hiện thế nào:** `cost-spike-detect.sh` tính **median = 220**, ngưỡng = `3.0 × median = 660`. Step `plan=710 > 660` → `SPIKE`, `COST_SPIKE_DETECTED count=1`, **exit=2** → gate đỏ, có người biết ngay.
**Vai trò AI local:** logic này **deterministic** — chạy trên telemetry bất kỳ (ở đây là seed để chứng minh offline). Khi chạy pipeline thật, ornith:9b cấp token thật (xem D4).
**Text mô tả (phụ đề):**
> "Step tốn 3× token → gate đỏ, exit=2. Đúng câu hỏi chốt của H6 — và câu trả lời là CÓ, biết ngay."
**Lưu ý dựng:** SHOWPIECE — giữ chắc trong bản cuối, phóng to dòng `COST_SPIKE_DETECTED ... exit=2`.