optimize status-reporter: d5 — unproducible token field replaced by /plugin-check deferral; dead ROADMAP.md row rewritten for post-ADR-013 gsd layout

This commit is contained in:
Bastien Chanot
2026-08-26 19:35:46 +02:00
parent e9c6bf52fa
commit a3f1624b15
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -1,6 +1,6 @@
--- ---
name: status-reporter name: status-reporter
description: Read-only project-status engine — dispatched by /status. Collects plugins, token budget, git state, build/tests, GSD milestone into one snapshot. description: Read-only project-status engine — dispatched by /status. Collects plugin roster (cost audit deferred to /plugin-check), git state, build/tests, GSD milestone into one snapshot.
tools: Read, Bash, Glob, Grep tools: Read, Bash, Glob, Grep
model: haiku model: haiku
--- ---
@@ -23,8 +23,8 @@ cat ~/.claude/lib/../version.txt 2>/dev/null || echo "unknown" # lib symlink re
command -v rtk &>/dev/null && echo "rtk: installed" || echo "rtk: missing" command -v rtk &>/dev/null && echo "rtk: installed" || echo "rtk: missing"
command -v gsd &>/dev/null && gsd --version 2>/dev/null | head -1 || echo "gsd: not installed" command -v gsd &>/dev/null && gsd --version 2>/dev/null | head -1 || echo "gsd: not installed"
# Token estimate (passive) # Passive token cost: NOT computed here — no mechanical source exists.
# (approximate from known plugin costs) # The cost model lives in plugin-advisor; the report points to /plugin-check.
``` ```
Check `~/.claude/plugins/cache` for active marketplace plugins. Check `~/.claude/plugins/cache` for active marketplace plugins.
@@ -134,7 +134,7 @@ PROJECT STATUS
CONFIG CONFIG
Version : v<N> Version : v<N>
Plugins ON: <list> (~<X>t passive) Plugins ON: <list> (<N> active — passive-cost audit: /plugin-check)
GSD v2 : installed / not installed GSD v2 : installed / not installed
PROJECT PROJECT
@@ -174,7 +174,7 @@ The report is best-effort: a single failing data source must not abort the whole
|---|---| |---|---|
| Permission denied on `git` (sandbox/CI without `.git` access) | Mark `Branch: N/A (permission denied)`, `Uncommitted: N/A`, `RECENT COMMITS: N/A`. Continue to PROJECT/GSD sections. | | Permission denied on `git` (sandbox/CI without `.git` access) | Mark `Branch: N/A (permission denied)`, `Uncommitted: N/A`, `RECENT COMMITS: N/A`. Continue to PROJECT/GSD sections. |
| Permission denied on `~/.claude/plugins/cache` or `~/.claude.json` | Mark `Plugins ON: unknown (cannot read cache)`. Continue. | | Permission denied on `~/.claude/plugins/cache` or `~/.claude.json` | Mark `Plugins ON: unknown (cannot read cache)`. Continue. |
| `.gsd/ROADMAP.md` exists but unparseable (malformed checkboxes, encoding issue) | Mark `Progress: N/A (ROADMAP.md unreadable)`, do NOT abort the section — still print `Status: initialized` and `Milestone: N/A`. | | gsd CLI snapshot fails or `.gsd/` state unreadable (`gsd.db`, `STATE.md`, per-milestone `<ID>-ROADMAP.md` — post-ADR-013 layout) | Mark `Progress: N/A (gsd state unreadable)`, do NOT abort the section — still print `Status: initialized` and `Milestone: N/A`. |
| `package.json` / `pyproject.toml` parse error | Mark `Tests: N/A (manifest parse error)`. Continue. | | `package.json` / `pyproject.toml` parse error | Mark `Tests: N/A (manifest parse error)`. Continue. |
| `python3` not available in PATH | Skip the python parsing fallbacks; rely on log files + bash-only checks. Mark Tests as `unknown` if no log found. | | `python3` not available in PATH | Skip the python parsing fallbacks; rely on log files + bash-only checks. Mark Tests as `unknown` if no log found. |
| All sections fail | Print a minimal envelope with each section showing `N/A (data source unavailable)` and a one-line `DIAGNOSTIC: <which sources failed>` footer. Exit code 0 (status reporter never blocks). | | All sections fail | Print a minimal envelope with each section showing `N/A (data source unavailable)` and a one-line `DIAGNOSTIC: <which sources failed>` footer. Exit code 0 (status reporter never blocks). |
+1 -1
View File
@@ -1,6 +1,6 @@
--- ---
name: status name: status
description: 'Consolidated project snapshot — plugins, token cost, git state, recent commits, GSD v2 milestone progress. Read-only. Run at session start or after a break. Open-work reconciliation (stale TODO vs real git) → /reconcile. Triggers: "status", "sitrep", "where are we", "project state", "after break".' description: 'Consolidated project snapshot — plugins (passive-cost audit → /plugin-check), git state, recent commits, GSD v2 milestone progress. Read-only. Run at session start or after a break. Open-work reconciliation (stale TODO vs real git) → /reconcile. Triggers: "status", "sitrep", "where are we", "project state", "after break".'
argument-hint: (no arguments needed) argument-hint: (no arguments needed)
allowed-tools: Read, Bash, Glob, Grep, Agent allowed-tools: Read, Bash, Glob, Grep, Agent
--- ---