refactor: consolidate Debian official evidence registry#138
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe Debian official evidence catalog is refactored into typed specifications and generated records. Tests now validate the exact registry keys, record metadata, and Debian artifact targeting. ChangesDebian evidence registry
Estimated code review effort: 2 (Simple) | ~15 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|



Summary
Consolidate the Debian official-source evidence registry.
This is a behavior-preserving refactor. It does not add new official evidence records, does not promote new mappings, and does not change generated evidence semantics.
What changed
Replaced repeated literal Debian official evidence dictionaries with:
DebianOfficialEvidenceSpecDEBIAN_OFFICIAL_EVIDENCE_SPECS_debian_official_evidence_entry()OFFICIAL_DISTRO_EVIDENCE_BY_POLICYCentralized common official evidence fields:
official-distro-metadataverified-official-sourcedistro-package-indexpackage-name-and-executableexternal_verification_required_for_new_mappings = falserelease_blocking = falseblocker_reason = NoneBehavior preserved
Exactly six generated Debian evidence records remain
verified-official-source:deb/yamllintdeb/shellcheckdeb/clang-tidydeb/cppcheckdeb/clang-formatdeb/checkstyleNo Docker helper record is promoted.
No non-Debian mapping is promoted.
Registry contract
The official evidence registry is still keyed only by Debian package-manager policy keys:
Tests now assert this exact registry key set and assert that no non-Debian official override exists.
Scope controls
This PR does not:
OS_PACKAGE_NAMESVerifier behavior
The existing verifier and promotion-gate behavior are preserved.
Existing negative tamper tests continue to pass.
Validation
Passed locally / by agent report:
Observed results:
Safety:
Next work
A follow-up PR can add a generic official-evidence drift snapshot/report helper before promoting additional distro families.
Summary by CodeRabbit
Refactor
Tests