Skip to content

test(governance): cover multi-plan sync dispatch - #1943

Open
sangilish wants to merge 1 commit into
adcontextprotocol:mainfrom
sangilish:test/governance-1852-regressions
Open

sangilish wants to merge 1 commit into
adcontextprotocol:mainfrom
sangilish:test/governance-1852-regressions

Conversation

@sangilish

Copy link
Copy Markdown
Contributor

Summary

  • Assert that the default public MCP server keeps two as-supplied plans in request order so each parsed plan can be paired with the hash of its original input.
  • Assert that a schema-invalid second plan returns VALIDATION_ERROR at /plans/1/human_review_required before invoking the handler. This is request schema validation, not an assertion about business-level partial outcomes.

Test-only follow-up to #1852 and #1934. Reuses the existing plan-hash test suite rather than duplicating the packaged vectors.

Verification

  • 64 focused tests passed against the updated checkout, including existing MCP and A2A transport cases.
  • 21 companion regression tests passed against the PyPI adcp==9.7.1 wheel.
  • Black, Ruff and git diff --check passed.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T08:20:34.128308Z 0997389 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Approve

Approve — test-only PR with no findings.

This PR adds 47 lines to tests/test_plan_hash.py (follow-up to #1852/#1934), introducing two meaningful MCP-transport tests for multi-plan sync_plans: one asserts raw plans survive in request order with per-plan hashes (guarded by expected[0]!=expected[1], zip(strict=True), and params==sent), the other asserts a null human_review_required on plans[1] is rejected with VALIDATION_ERROR before the handler runs (handler.seen=={}). Both are non-tautological; uses the correct test(governance): prefix. No public-surface, wire-shape, or generated-code change.

Decision table walkthrough:

  • Row 1 (critical/high): no findings — skip.
  • Row 2 (gated_paths): false — skip.
  • Row 3/4/5 (high_risk): false — skip.
  • Row 6 (sticky): no prior decision — skip.
  • Row 7 (no-auto-approve team): no match — skip.
  • Row 8 (≥3 medium): zero medium findings — skip.
  • Row 9: approve.

Note: review_decision is REVIEW_REQUIRED, but gated_paths is false, so row 2 does not fire and approval is permitted.

This branch has not been deployed

No deployments
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