pub fn agent_source() -> Option<String>Expand description
Resolve the agent-product identity (which AI agent tool drives this binary —
e.g. claude-code, codex, opencode, gemini-cli) from the INNATE_AGENT
env var. The caller (MCP config / hook / shell) injects it; the binary cannot
know it otherwise. Returns None when unset/blank so the agent column stays
NULL (backward compatible). This is orthogonal to the access channel recorded
in usage_trace.source / episodic_log.event_source (mcp/cli/hook/…).
Trimmed and length-capped; intentionally not enum-constrained.