feat(ai-security-context): add optional trace_checked mark to fix and introducing commits

Merged
MI
1d ago
+118-4

Adds an optional boolean trace_checked to the fingerprint (fix commit) and to the introducing-commit record (introduced_by[]) of the AI security context schema, and to the matching Go wire types.

The producer sets the mark when the AI coding session lookup of a commit gave a definite result (sessions found or no session found). A later scan can then skip that commit instead of looking it up again on every run. A denied or failed lookup leaves the mark unset, so the commit is tried again. Absent and false mean the same thing, so existing security contexts stay valid.

This is the upstream part of PFM-8487. The schema sets additionalProperties: false on both records, so the CLI must accept the field before the producer can emit it.

This PR was written with AI assistance (Claude Code).

šŸ¤– Generated with Claude Code