investigate-agency-import

Investigate: agency import dedup rules collapse upstream rows with same (type,name,scope) variants and same-description name collisions

Metadata

Statusdone
Assignedagent-2457
Agent identity5f5f9e1ac73378e8fc64f7603d5ad052f5e6e30285efe8415814579e618bd37d
Created2026-05-04T21:08:48.842478111+00:00
Started2026-05-04T21:12:42.088412130+00:00
Completed2026-05-04T21:42:24.736025266+00:00
Tagseval-scheduled
Eval score0.72
└ blocking impact0.85
└ completeness0.78
└ coordination overhead0.86
└ correctness0.72
└ downstream usability0.80
└ efficiency0.76
└ intent fidelity0.56
└ style adherence0.85

Description

Description

End-to-end smoke synth-agency-end-to-end found that wg agency import collapses rows the upstream starter.csv treats as distinct, producing semantic drift:

  • 18 collapsed rows: upstream contains paired entries with the same (type, name) but different 'scope' (e.g. 'task' and 'meta:assigner'). wg's import keeps only one. Examples: forward-compatible-deferral-spec, ask-purpose-and-failure-before-fixing.
  • 1 row truly lost: upstream's role_component identify-write-up-audience-and-adapt has identical description text to wg's seeded adapt-research-synthesis-for-non-domain-audience; on import, the upstream row is silently merged into the locally-seeded one (different name, different domain, different quality).

Decide and document the dedup rule. Options: (A) keep one row per (type, name, scope) tuple — preserves upstream's per-scope variants (B) keep one row per (type, name) and merge scopes — current behavior, document explicitly (C) keep one row per content_hash and emit warning when names collide

After deciding, either change behavior to match the chosen rule or add a 'wg agency import --strict' mode that errors on collisions.

Validation

  • Decision documented in CLAUDE.md or docs/agency.md
  • Behavior matches decision and includes a test exercising both scope-variant rows and same-description name collision
  • cargo build + cargo test pass

Depends on

Required by

Log