Expose governance_scope/crypto_enforced in evidence, harden normalization, and include governance flags in run summary - #277
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
governance_scopeandcrypto_enforcedto the evidence contract schema inspec/evidence_contract.v1.jsonand included them in generated certificates intools/generate_certificate.py.src/sir_firewall/core.pyto recover additional base64 gate keywords and to decode boundedhex:markers and\xNNescape sequences while avoiding decoding arbitrary hex runs.governance_contextinvalidate_sirwith defaultgovernance_scopeandcrypto_enforcedfields and allowed pack identity to enrich that context.red_team_suite.pyto observegovernance_contextfromvalidate_sir, computesummary_flags, and includegovernance_scopeandcrypto_enforcedin the run summary JSON.docs/release-notes-2.2.mddescribing highlights and semantics changes.tests/test_normalization_hardening.pyandtests/test_pack_binding.pyto cover hex decoding, hex-escape decoding, base64 gating, and summary/certificate flag behavior, and updated imports/mocks to ensureload_domain_packis used consistently.Testing
pytest -qtargeting the changed modules, includingtests/test_normalization_hardening.pyandtests/test_pack_binding.py, and they passed.red_team_suiteproduces aproofs/run_summary.jsoncontainingflags,governance_scope, andcrypto_enforcedin test scenarios via the updated tests.Codex Task