Skip to content

Bind execution requests to the registered venue type#23

Open
heijiLee wants to merge 1 commit into
mainfrom
fix/router-venue-type-binding
Open

Bind execution requests to the registered venue type#23
heijiLee wants to merge 1 commit into
mainfrom
fix/router-venue-type-binding

Conversation

@heijiLee

@heijiLee heijiLee commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

ExecutionRouter validated the caller-supplied context.venueType against the decision's type mask but never against the venue's registered VenueConfig.venueType, so a caller could misreport the type and route through a disallowed-type venue. Adds a step-7a binding check (Errors.VenueTypeMismatch) after adapter resolution.

Closes the remaining medium finding from the PR #12 review.

  • Test: test_execute_revertsWhenVenueTypeMismatchesRegistry (mask set so only the new check can reject)
  • forge test --offline: 124 passed

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.

1 participant