Three root causes for env-profile learnings never being saved:
1. Bare `gstack-learnings-log` / `gstack-learnings-search` without full path —
binary not on PATH in all environments. Fixed: use ~/.claude/skills/gstack/bin/
2. Phase 0j used angle-bracket template placeholders (<FULL INVENTORY...>) that
the model treated as examples rather than fill-in-the-blank instructions.
Fixed: explicit YOUR_ACTUAL_INVENTORY_HERE with format example and rules.
3. Model burned all turns retrying Phase 0-pre learnings search (empty output
from gstack-learnings-search was ambiguous). Fixed: use Grep tool instead
of Bash, single call with explicit "do not retry" instruction.
Also: added Phase 0 turn budget (≤5 tool calls) and $B quoting fix (line 232).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Read-only evidence-gathering complement to /investigate. Overcomes the
model's bias towards action by enforcing evidence gates at each phase.
Produces a diagnostic report with certainty scores — no code changes.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>