fn account_line_for(
inst: &AgentInstance,
def: Option<&AgentDefinition>,
defs: &[AgentDefinition],
links_by_agent: &HashMap<&str, Vec<&AgentIdentityLink>>,
account_names: &HashMap<&str, &str>,
degraded_lookups: Degraded,
) -> AccountLineExpand description
The agent’s own account links, falling back to its template’s. A launch-only agent can hold a link of its
own (the FK targets db_agents since Phase 3c, #3088), but nothing writes one there yet: the only binding UI
targets a template or user agent’s own definition id. Until a launch-scoped binding path exists, dropping the
fallback would make a launched agent’s identity disappear (retire it with Phase 3d).