docs: add normative silent-mode audit contract paragraph - #299
Merged
Conversation
Adds a dedicated paragraph explicitly stating the silent-mode behavioral contract: PolicyEvaluator suppresses application-level log lines but still returns would_have_denied=True, and the proxy writes advisory_deny entries into the hash-chained audit log. Auditable evidence is preserved in silent mode; only operational logs are quiet. The contract is already enforced and tested in tests/unit/test_silent_mode_contract.py (landed in #294). Closes #284
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.
Summary
### Silent-mode audit contractparagraph todocs/configuration.mdmaking the behavioral contract explicit in prose form.PolicyEvaluatorsuppresses application-level log lines for denied calls but still returnswould_have_denied=True. The proxy writesadvisory_denyinto the hash-chained audit log. The tamper-evident record is complete in silent mode; only operational logs are quiet.enforcingis already the default inAttestationConfig(confirmed insrc/cmcp_runtime/config.pyline 44).tests/unit/test_silent_mode_contract.py(landed in fix: restore the feature stack lost in the stacked-PR merge #294 viafix: restore the feature stack lost in the stacked-PR merge).Closes #284.
Test plan
test_silent_mode_contract.py).docs/configuration.mdhas the new### Silent-mode audit contractsection.AttestationConfig.enforcement_modedefaults toEnforcementMode.ENFORCING.🤖 Generated with Claude Code