Skip to content

docs: add normative silent-mode audit contract paragraph - #299

Merged
imran-siddique merged 1 commit into
mainfrom
fix/silent-mode-contract-v2
Jun 12, 2026
Merged

docs: add normative silent-mode audit contract paragraph#299
imran-siddique merged 1 commit into
mainfrom
fix/silent-mode-contract-v2

Conversation

@imran-siddique

Copy link
Copy Markdown
Member

Summary

  • Adds a dedicated ### Silent-mode audit contract paragraph to docs/configuration.md making the behavioral contract explicit in prose form.
  • The contract: PolicyEvaluator suppresses application-level log lines for denied calls but still returns would_have_denied=True. The proxy writes advisory_deny into the hash-chained audit log. The tamper-evident record is complete in silent mode; only operational logs are quiet.
  • enforcing is already the default in AttestationConfig (confirmed in src/cmcp_runtime/config.py line 44).
  • The contract is already tested in tests/unit/test_silent_mode_contract.py (landed in fix: restore the feature stack lost in the stacked-PR merge #294 via fix: restore the feature stack lost in the stacked-PR merge).

Closes #284.

Test plan

  • CI passes (the relevant tests already exist in test_silent_mode_contract.py).
  • Verify docs/configuration.md has the new ### Silent-mode audit contract section.
  • Verify AttestationConfig.enforcement_mode defaults to EnforcementMode.ENFORCING.

🤖 Generated with Claude Code

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
@imran-siddique
imran-siddique merged commit 6fc8f43 into main Jun 12, 2026
10 checks passed
@imran-siddique
imran-siddique deleted the fix/silent-mode-contract-v2 branch June 12, 2026 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document and test the silent-mode audit contract (chain records, logs stay quiet)

1 participant