impl-agency-integration

Impl: agency integration — wire all area-fixes together

Metadata

Statusdone
Assignedagent-2440
Agent identityf51439356729d112a6c404803d88015d5b44832c6c584c62b96732b63c2b0c7e
Modelcodex:gpt-5.5
Created2026-05-04T17:44:44.732550031+00:00
Started2026-05-04T20:34:24.600718109+00:00
Completed2026-05-04T20:56:33.255332990+00:00
Tagsagency,sync,impl,integration, eval-scheduled
Eval score0.80
└ blocking impact0.80
└ completeness0.80
└ coordination overhead0.80
└ correctness0.85
└ downstream usability0.85
└ efficiency0.85
└ intent fidelity0.79
└ style adherence0.80

Description

Description

With all four area-impls merged and peer-reviewed, wire them into a coherent end-to-end pipeline matching agentbureau/agency v1.2.4's shape. This task is the integrator — it does the cross-cutting glue work that no single area-impl owns.

Likely scope

  • Update wg agency init to seed primitives that already populate the new fields (quality, domain_specificity, domain, scope, origin_instance_id) instead of leaving them empty.
  • Update wg agency stats and wg agency scan outputs to surface the new fields.
  • Confirm the agency_bridge.rs HTTP client posts in the agency-v1.2.4-compatible format end-to-end (dimensional_scores, primitive_ids match agent's composition).
  • Add WG_AGENCY_COMPAT_VERSION = "1.2.4" constant + record it in import-manifest.yaml for federation handshake.
  • Update CLAUDE.md note about agency tasks to reference the new compat surface.
  • Reconcile any leftover field-name asymmetries discovered during integration testing.

File scope

  • src/agency/mod.rs (compat-version constant)
  • src/commands/agency_init.rs
  • src/commands/agency_scan.rs
  • src/commands/agency_stats.rs
  • src/agency/agency_bridge.rs (only field-mapping fixes — main HTTP plumbing already exists)
  • import-manifest schema bump
  • CLAUDE.md (one-line agency-compat note)

Validation

  • Failing test written first: test_agency_init_seeds_v1_2_4_compatible_primitives
  • wg agency init in a fresh tmpdir produces primitives that round-trip through agency CSV import (per wg agency export --format agency-csv)
  • cargo build + cargo test pass with no regressions
  • Live smoke: end-to-end wg agency init && wg agency export --format agency-csv against an agency starter.csv shape
  • CLAUDE.md updated with one sentence on the v1.2.4 compat surface

Depends on

Required by

Log