-
[OPIK-7345] [BE] feat: persist cipx git info and per-turn committed delta (#7528)
发布于
2026-07-21 13:51:13 +00:00 Persist the git context the cipx proxy already emits and the new per-turn
committed delta into cipx_trace_identities:- Group A: branch, head_sha (start), head_sha_end, dirty — the session repo
snapshot the proxy sends but the BE previously dropped, keeping only remote. - Group B: commits_in_trace and added/deleted file and line counts for the
turn's committed work (head_sha_start..HEAD), for the AI-spend
"content delivered" analysis.
Parse these from cipx.session.repository in TraceIdentityRow.from, extend the
batch insert (13 -> 22 positional binds per row tuple), and add migration
000105 with additive defaulted columns. Cover the new fields in
CostIntelligenceIngestionTest.Implements OPIK-7345: add GitHub info to Cost Intelligence traces.
下载附件
- Group A: branch, head_sha (start), head_sha_end, dirty — the session repo