PROD-318 feat(hooks): started-stage CONSTRAIN adapter seam - #11
Open
salamisandwich77 wants to merge 12 commits into
Open
PROD-318 feat(hooks): started-stage CONSTRAIN adapter seam#11salamisandwich77 wants to merge 12 commits into
salamisandwich77 wants to merge 12 commits into
Conversation
salamisandwich77
changed the base branch from
main
to
feat/PROD-250-sandbox-core-contract
August 26, 2026 07:54
salamisandwich77
marked this pull request as ready for review
August 26, 2026 07:55
The dispatcher already built ExecutionMetadata with egress_decisions, violation_count, and violation_categories, and the span mapper read them, but the dataclass never declared the fields. Every sandbox execution path reached ExecutionMetadata(...) with unexpected keyword arguments and raised TypeError, so the egress span attributes could never be produced. Add the three fields with safe defaults and thread the evidence type through.
The retry_plan field was renamed to patch, and a later commit adapted the parsing test to that vocabulary. The stale test asserted a field that no longer exists; the patch_parsing test covers the current wire shape.
salamisandwich77
force-pushed
the
feat/PROD-318-behavioral-constrain
branch
from
August 27, 2026 17:03
0d0f918 to
44db804
Compare
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.
Adapter hooks for behavioral CONSTRAIN.
Tests: 642 passed.