feat: policy-gated action loop v0 — intervention fixtures and enhanced checker#285
Open
mdheller wants to merge 1 commit into
Open
feat: policy-gated action loop v0 — intervention fixtures and enhanced checker#285mdheller wants to merge 1 commit into
mdheller wants to merge 1 commit into
Conversation
…d checker (#162) Adds valid.blocked-intervention.json: blocked action loop with trace_status=blocked and outcome result=blocked, demonstrating intervention record emitted when policy blocks a high-risk action. Adds valid.modified-action.json: modified action loop with trace_status=modified and outcome result=modified, demonstrating intervention record emitted when policy constrains scope of a moderate-risk action. Updates check_bounded_action_loop.py: - Validates all valid.*.json fixtures (not just one) - Enforces trace_status and outcome result must match (runtime trace always consistent) - Enforces intervention outcomes (blocked/modified/escalated) require audit_ref - Preserves existing recorded-trace-requires-low-risk constraint All 4 runtime rules now verified: no action without policy decision, every action emits trace, intervention recorded for blocked/modified, trait drift is observational only. Closes #162
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
valid.blocked-intervention.json: bounded action loop where policy blocks arisk_class=highemit_audit_packetaction; demonstrates intervention record emitted when policy blocks, withtrace_status=blockedandresult=blockedandaudit_refpresentvalid.modified-action.json: bounded action loop where policy modifies scope of arisk_class=moderateaction; demonstrates intervention record withtrace_status=modifiedandresult=modifiedwithtrait_drift_metric(observational only)check_bounded_action_loop.py:valid.*.jsonfixtures (was previously hardcoded to one)trace_statusandoutcome.resultmust match (runtime trace always consistent)blocked/modified/escalated) requireaudit_refrecorded trace requires low risk in v0constraintAll 4 v0 runtime rules now verified: no action without policy decision, every action emits trace, intervention recorded for blocked/modified, trait drift observational only.
Closes #162
Test plan
make validate-bounded-action-looppassesvalid.blocked-intervention.jsonvalidates successfullyvalid.modified-action.jsonvalidates successfully