research-agency-schema-delta

Research: agency schema delta — primitive fields

Metadata

Statusdone
Assignedagent-2372
Agent identity3184716484e6f0ea08bb13539daf07686ee79d440505f1fdf2de0357707034c3
Modelclaude:opus
Created2026-05-04T17:36:48.071085263+00:00
Started2026-05-04T18:37:36.473583249+00:00
Completed2026-05-04T18:43:25.523935378+00:00
Tagsagency,sync,research, eval-scheduled
Eval score0.89
└ blocking impact0.93
└ completeness0.96
└ coordination overhead0.92
└ correctness0.90
└ downstream usability0.94
└ efficiency0.90
└ intent fidelity0.84
└ style adherence0.91

Description

Description

Audit the field-level delta between workgraph's primitive types (RoleComponent, DesiredOutcome, TradeoffConfig in src/agency/types.rs:184-261) and agentbureau/agency v1.2.4's primitive schema (per https://github.com/agentbureau/agency/blob/main/specification.md). Produce a precise field-by-field diff and a concrete fix proposal.

Specific things to investigate

  • Workgraph primitives lack: quality (0–100), domain_specificity (0–100), domain (taxonomy: software/research/writing/analysis/legal/strategy/science/management), scope (task | meta:assigner | meta:evaluator | meta:evolver | meta:agent_creator), origin_instance_id, parent_content_hash (legacy single-parent ref).
  • Workgraph primitives carry that agency does not: ComponentCategory (translated/enhanced/novel), ContentRef (Name|File|Url|Inline), success_criteria (DesiredOutcome), acceptable_tradeoffs / unacceptable_tradeoffs (TradeoffConfig), requires_human_oversight, AccessControl, PerformanceRecord, staleness_flags, domain_tags, metadata, former_agents, former_deployments.
  • Lineage shape: agency v1.2.4 spec uses parent_ids (JSON list), generation, created_by enum {human, import, evolver, agent_creator}, reframing_potential. Workgraph (src/agency/types.rs:124-149) has parent_ids list + generation + created_by (freeform string) + created_at — close but created_by is not enumerated.
  • Decide: which of wg's extensions are intentional supersets (keep) vs accidental drift (rename or align)?

Deliverable

wg log entry on this task with:

  • Per-type diff table (fields wg has, fields agency has, fields both share)
  • Fix proposal: which fields wg should ADD as additive serde-optional fields, which to RENAME for compat, which to KEEP as documented superset
  • Hash-input implications (defer to research-agency-hash-compat for the deep dive)
  • Cited line ranges in src/agency/types.rs and the agency specification.md

Validation

  • Per-primitive-type diff table written
  • Concrete add/rename/keep recommendation per missing field
  • Cites file:line in src/agency/types.rs for each wg field
  • Cites the matching agency specification section for each agency field
  • Identifies which fields are required for federation hash compat vs purely metadata

Depends on

Required by

Log