feat(ai-security-context): add optional attempts to unresolved commits

Merged
MI
8h ago
+37-0

Adds an optional attempts field (non-negative integer) to the unresolved definition of the AI security context schema. It records how many times triage tried and failed to classify a commit: the agentic large-diff triage for an oversize commit, or the one-shot triage for any other commit. When the count reaches the cap, the hole stops retrying and retryable becomes false.

Strata already writes this field on unresolved holes. Because unresolved has additionalProperties: false, chainloop attestation add rejects such contexts with "additionalProperties 'attempts' not allowed". The field is optional, so the schema stays at security-context-0.1 and existing contexts remain valid. It mirrors the existing attempts field on survivor.

Refs: PFM-8486

AI disclosure: this change was produced with assistance from Claude Code.

šŸ¤– Generated with Claude Code