Repository navigation
Add SOP_MODE=observe, a dry run for the barrier - #762
Merged
Merged
Conversation
With SOP_MODE=observe a step that would be blocked runs anyway. The result says executed with would_have_blocked and the reason, the decision log and metrics record it as observed, and the server warns on stderr at startup. Off by default, and any value other than observe or enforce is refused. Thanks, Gerard
Gemini PR ReviewReviewed commit:
This result blocks merge. Push a fix and comment |
Gemini PR ReviewReviewed commit:
|
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.
Adds an opt-in dry run for the barrier, for trying a runbook on real agent traffic before enforcing it.
With SOP_MODE=observe, a step that would be blocked runs anyway. The result has executed true, would_have_blocked with the missing state, and a hint that nothing is being blocked. The decision log and joltrin_steps_total record it as observed, and the server warns on stderr at startup.
It is off by default. Any value other than observe or enforce is refused at startup. Enforcing mode is unchanged and has a test for it.
Not covered: validate_step still reports unsafe in observe mode, and the A2A server ignores the mode. In observe mode the check and commit are two lock steps, so parallel calls on one trace_id can interleave. That is harmless when nothing is enforced.
Tested: go test on tools, cmd and verify, plus the real binary in default, observe and invalid modes.
Thanks,
Gerard