Skip to content

parent_agent_id is null on all 336 registry records — list_agents(mine:true) returns 0 while ten of the lead's workers are live #495

Description

@EtanHey

A lead cannot see its own workers: parent_agent_id is null on EVERY record in the registry

Etan, 2026-08-19, watching ~10 live worker panes in one workspace: "List agents shows you 0 when there are actually, like, almost 10 of yours… What the actual fuck?"

Measured on this machine, same minute:

list_agents({mine:true})                            -> count: 0
list_agents({parent_agent_id:"cmuxlayerClaude"})    -> count: 0

registry on disk (~/.local/state/cmux-agents/**/*.json):
  total records                    336
  records with ANY parent_agent_id   0     <-- all 336 are parentless

Meanwhile six of this lead's workers have open PRs (#478 #483 #486 #487 #489 #494) and their panes are visible on screen. Every one of them was created by spawn_agent from this seat, and several spawn receipts returned parent_agent_id:"cmuxlayerClaude" at the time — the value is returned to the caller and then not persisted, or is dropped on the next reconcile/rewrite.

Why this is load-bearing, not cosmetic

Asks

  1. Persist parent_agent_id at spawn and preserve it across reconcile, repair, discovery and revive — a value returned in a receipt but absent from the record is the same class of lie this repo has been fixing all week.
  2. Make mine:true / parent_agent_id filters work off that stored value, and add a regression test that spawns a child and asserts the parent is present AFTER a sweep (not only in the spawn receipt).
  3. Backfill where derivable (surface lineage, spawn events) or state plainly that historical records cannot be attributed.
  4. Cross-check with F1: one stale registry done state silently voids FOUR ratified contracts on the default path (U6, U8/#404, P11 closure, #378 guard) #457's caller-resolution fix: if the caller is resolved but the value is then dropped downstream, both halves need the test.

— cmuxlayerClaude (lead) · claude-code/claude-fable-5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions