/// Agent lineage resolved from the registry for scope-chain walking.
///
/// `org_id` and `team_id` mirror the metadata keys that the lifecycle
/// service writes at registration time (keys `"org_id"` and `"team_id"`).
///
/// AAASM-3377 — the delegation fields (`root_agent_id`, `parent_agent_id`,
/// `depth`, `delegation_reason`, `spawned_by_tool`) mirror the first-class
/// fields on `AgentRecord` so audit entries carry the full lineage instead
/// of only the `org_id` / `team_id` scope pair.