Map a runner result to an audit_response insert row. Mirrors the legacy v2
mapping (see runQuestionsWithImmediateSave) but for the new Citation
({quote, documentId, fileName, page}) and ResultDocument ({id, title})
shapes, and folds the evidence trail into reason[].
Not wired to a writer yet; delivered for the future persistence/migration path.
Pure mappers from the deep audit-question runner's public result (
AgentQuestionResult) onto (a) anaudit_responsepersistence row and (b) theLegacyAuditRunResponseViewModelthe review UI renders.Kept free of
server-cli-onlyand any runtime import of the runner so the review UI can import it in the browser (exposed via@repo/ai-agents/mappers). All non-type imports resolve to client-safe modules.