计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
pdca-watch【效率与协作】Live PDCA dashboard ticking every 30s — reads pdca-status.json + token-ledger.ndjson tail, renders fixed-width panel via CC /loop. Triggers: pdca watch, live dashboard, watch progress
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: pdca-watch classification: workflow classification-reason: Live PDCA dashboard tied to bkit's state machine + token ledger deprecation-risk: none effort: low description: | Live PDCA dashboard ticking every 30s — reads pdca-status.json + token-ledger.ndjson tail, renders fixed-width panel via CC /loop. Triggers: pdca watch, live dashboard, watch progress argument-hint: "[feature]" user-invocable: true allowed-tools:
v2.1.11 Sprint β FR-β4. Wraps
lib/dashboard/watch.jsover CC's/loop(v2.1.71+). Read-only — only consumes state files; never writes. Falls back to a single render when/loopis unsupported (E-β4-01).
| Argument | Description | Example |
|---|---|---|
| (none) | Auto-resolve active feature from pdca-status.primaryFeature | /pdca-watch |
<feature> | Watch a specific feature by name | /pdca-watch bkit-v2111-integrated-enhancement |
<feature> is provided, use it verbatim..bkit/state/pdca-status.json → primaryFeature, then
activeFeatures[0] as fallback."No active PDCA feature. Start one with /pdca pm <feature>" and exit./loop)For each tick, lib/dashboard/watch.js#renderTick produces a panel with:
Watch <feature> — tick N (HH:MM:SS)
─────────────────────────────────────────────────────────────
Phase: <phase> Match: <%> Iter: <n / 5>
Tokens: <in> in / <out> out · samples <N>
Est cost: lt;USD>
─────────────────────────────────────────────────────────────
Data sources:
pdca-status.features[<feature>]token-ledger.ndjsonphase === 'completed' or phase === 'archived'/loop Support| CC Version | Behavior |
|---|---|
| ≥ 2.1.71 | Native /loop 30s ticker |
| < 2.1.71 | E-β4-01: single render + warning, no loop |
| Unknown | Same as < 2.1.71 (fail-safe) |
The check is performed via watch.checkLoopSupport({ ccVersion }) —
caller passes the resolved CC version from lib/infra/cc-version-checker.
.bkit/state/pdca-status.json and .bkit/runtime/token-ledger.ndjson.MAX_TAIL_LINES = 200 regardless of caller input —
defends against pathological NDJSON growth.| Module | Function | Usage |
|---|---|---|
lib/dashboard/watch.js | resolveFeature() | Auto-detect when no arg |
lib/dashboard/watch.js | renderTick() | One frame per tick |
lib/dashboard/watch.js | tailLedger() | NDJSON tail (≤200) |
lib/dashboard/watch.js | checkLoopSupport() | CC version gate |
lib/infra/cc-version-checker.js | getCurrent() | Version source |
# Auto-detect active feature
/pdca-watch
# Watch a specific feature
/pdca-watch bkit-v2111-integrated-enhancement
/pdca status — single snapshot (no loop)/control trust — trust score informs auto-escalation/pdca-fast-track — Daniel-mode auto-approve checkpointsARGUMENTS: