docs(adr): propose ADR-0034 signed scan evidence records and pre-tool-use verification gate
Proposes ADR-0034 (Status: proposed), following up on the discussion in #3111 and @imran-siddique's request there for an ADR before any implementation PR.
What it covers (scoped per that request — AGT-side only):
- A scanner-agnostic scan evidence record: RFC 8785 (JCS) canonicalization, content-addressed
tool_definition_digest, Ed25519 signature with embeddedcnf.jwk— the ADR-0032 signed-JSON pattern, composing ADR-0001/0007/0030 rather than introducing new primitives. - Key distribution/revocation via ADR-0007 JWKS federation + mandatory expiry; policy-pinnable keys for offline/air-gapped use.
- Policy surface:
requireSignedScanEvidence(default false),minimumToolEvidenceGrade(A–F, same order semantics asminimumPromptDefenseGrade, derived policy-side from severity counts per ADR-0004),trustedScanEvidenceIssuers. - PreToolUse verification flow: digest match (drift ⇒ treated as no evidence), signature/window verification, grade gate; fail-closed per ADR-0013; every outcome audited with the record's
record_digest. - Non-vendor emission: opt-in flag on the existing scanners; any scanner that can produce severity counts over a content-addressed subject can emit the format.
What does not change: default behavior everywhere; no new crypto primitives (per scripts/ci/no-custom-crypto.sh the implementation would reuse SDK identity APIs); no changes to prompt-defense behavior.
Happy to iterate on any section — schema field names, the grade-derivation rule, and the seam where verification code should live are all flagged as open to maintainer preference.
Refs #3111.
Welcome to the Agent Governance Toolkit! Thanks for your first pull request. Please ensure tests pass, code follows style (ruff check), and you have signed the CLA. See our Contributing Guide.
AI-generated review output. Treat it as untrusted analysis and verify before acting. Welcome, and thank you for your detailed contribution to the project! You did a great job clearly outlining the ADR's scope and its alignment with existing patterns and standards. For guidance on contributing, please refer to CONTRIBUTING.md. Let us know if you have any questions!🤖 AI Agent: contributor-guide — Actionable Items:
Actionable Items:
AI-generated review output. Treat it as untrusted analysis and verify before acting. Documentation is in sync.🤖 AI Agent: docs-sync-checker — Docs Sync
Docs Sync
AI-generated review output. Treat it as untrusted analysis and verify before acting. Test coverage looks good. No gaps identified.🤖 AI Agent: test-generator — View details
AI-generated review output. Treat it as untrusted analysis and verify before acting. No breaking changes detected.🤖 AI Agent: breaking-change-detector — API Compatibility
API Compatibility
AI-generated review output. Treat it as untrusted analysis and verify before acting. No security issues found.🤖 AI Agent: security-scanner — View details
AI-generated review output. Treat it as untrusted analysis and verify before acting. TL;DR: 0 blockers, 1 warning. Proposal introduces a robust, verifiable evidence mechanism but requires careful implementation to avoid performance and trust issues. Action items: None, as no blockers were identified. Warnings:🤖 AI Agent: code-reviewer — View details
#
Sev
Issue
Where
1
Warn
Potential performance impact from JWKS resolution in PreToolUse flow
ADR-0034: Key distribution and PreToolUse verification flow sections
#
Warning
Resolution
1
JWKS resolution during PreToolUse could introduce latency if cache is cold or unavailable.
Fine as follow-up PRs: Ensure robust caching and fallback mechanisms.
🟡 Contributor Check: MEDIUM
| Check | Result |
|---|---|
| Profile | MEDIUM |
| Credential | LOW |
| Overall | MEDIUM |
Automated check by AGT Contributor Check.
PR Review Summary
| Check | Status | Details |
|---|---|---|
| 🔍 Code Review | ⚠️ Missing | No current-run comment |
| 🛡️ Security Scan | ⚠️ Missing | No current-run comment |
| 🔄 Breaking Changes | ⚠️ Missing | No current-run comment |
| 📝 Docs Sync | ⚠️ Missing | No current-run comment |
| 🧪 Test Coverage | ⚠️ Missing | No current-run comment |
Verdict: ⚠️ AI review incomplete; ready for human review
AI review comments are untrusted advisory output. The summary reports workflow-generated completion status only, not model-authored pass/fail claims.
@microsoft-github-policy-service agree
@MohammadHaroonAbuomar — all four points addressed in 4c2dffa:
- Renumbered 0033 → 0034 (file, H1, PR title) — #3121/#3134 both carry
0033-decisionassure-governance-learning-loop.md, so taking the next-free number now rather than racing them. docs/adr/index.md: row added to the Proposed table (Security / Supply chain).- §5: added the storage/discovery line — records resolve from a policy-configured
scanEvidencePathslist (local dirs and/or HTTPS URLs), keyed bytool_name, remote lookups cached byrecord_digest. - Consequences: added the JWKS-budget line — the hot path meets the ADR-0004 budget only with a warm JWKS cache (ADR-0007 TTL semantics); implementations SHOULD resolve issuer JWKS at session start so
PreToolUseis digest-compare + signature-verify with no network dependency.
CLA is green as of yesterday evening (signed after your review was submitted).
@MohammadHaroonAbuomar — friendly ping when you have a moment. All four review items are addressed in 4c2dffa: renumbered 0033→0034 (the #3121/#3134 collision), added the docs/adr/index.md Proposed-table row, and added the §5 storage/discovery line plus the Consequences JWKS-warm-cache / ADR-0004-budget note. CLA is green. Happy to make any further adjustments — just let me know if anything else is needed to move this forward.
The content-addressed envelope following ADR-0032's signed-JSON pattern, with the grade derived policy-side rather than self-declared, is the right design. Tool-definition digest mismatch failing as "no evidence" (fail-safe by construction) is especially clean.
One implementation reference that may be useful: Nobulex produces the same shape for agent action receipts. Our action_ref = SHA-256(JCS({agent_id, action_type, scope, timestamp_ms})) is content-addressed, Ed25519 signed, and the scoring function (trust score derived from verified receipts) never self-reports a grade. The grade is computed by the verifier from the receipt corpus, not declared by the producer.
The property that maps directly to your "requireSignedScanEvidence defaulting to false": in our model, absence of a receipt is treated as absence of evidence (scored as -15 for a missing outcome after an ALLOW admission), not as implicit success. Same principle, different layer.
If the ADR wants a cross-reference to an independent implementation of content-addressed signed evidence following the same JCS + Ed25519 pattern, the Nobulex action_ref formula is normative implementation guidance in OWASP AST09 (PRs #35/#38 merged by Ken Huang) and exercises the same construction.
pip install nobulex for the SDK. The IETF conformance driver (4/4 vectors pass) is at tests/conformance/acta-signed-receipts/.
@imran-siddique — thank you for the careful review. Good catch on the description prose; I've updated it to 0034 to match the file. Everything from both review passes is addressed and the PR is in a clean state whenever the team is ready to take it forward. Happy to open the implementation PR as a follow-up once the ADR lands, scoped exactly to the design here.
@imran-siddique @MohammadHaroonAbuomar — this PR currently shows mergeable but is held by the changes-requested review from Jul 8. It's since been approved, so if the earlier concerns are resolved, could one of you re-review or dismiss that review so it can land? Happy to address anything still outstanding — thanks both for the time.
@imran-siddique — following up on my note from last week. This PR is still blocked solely by the Jul 8 changes-requested review from @MohammadHaroonAbuomar, which hasn't been revisited since your Jul 15 approval. All four of the original review points were addressed in 4c2dffa. As maintainer, would you be able to dismiss the stale review so this can land? Happy to address anything still outstanding, or open a fresh PR if you'd prefer that. Thanks again for the time.