Skip to content

Fix false-positive integration-readiness detection from Part F rationale wording#17

Merged
awrobel-gd merged 1 commit into
mainfrom
fix-contract-e2e
Jul 3, 2026
Merged

Fix false-positive integration-readiness detection from Part F rationale wording#17
awrobel-gd merged 1 commit into
mainfrom
fix-contract-e2e

Conversation

@awrobel-gd

@awrobel-gd awrobel-gd commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Summary

The contract validator and MCP precheck could misclassify a spec as INTEGRATION_TESTS_READY when Part F's Rationale text merely mentioned that token while explaining it did not apply, wrongly forcing the user to supply an e2e test plan for a LOCAL_ONLY spec.

Entrypoint

is_integration_tests_ready in backend/app/services/contract_validator.py and the identical _is_integration_tests_ready in mcp_server/services/run_generation_precheck.py now match the **Integration Readiness:** field specifically via a new _READINESS_FIELD regex, instead of scanning the whole Part F section for the token.

Details

Falls back to the old whole-section token scan only when the labeled field can't be found, so non-standard formatting stays lenient; regression tests were added in both test suites reproducing the real-world wording that triggered the bug.

@awrobel-gd awrobel-gd self-assigned this Jul 3, 2026
@awrobel-gd awrobel-gd changed the title Enhance integration tests readiness validation by introducing a new r… Fix false-positive integration-readiness detection from Part F rationale wording Jul 3, 2026
…egex for the "Integration Readiness" field. Update logic to prioritize declared readiness over rationale explanations in both contract and precheck services. Add corresponding unit tests to ensure correct behavior in edge cases.
@awrobel-gd awrobel-gd merged commit 399fe14 into main Jul 3, 2026
3 checks 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.

2 participants