Skip to content

ci: enforce exact file-version boundaries - #8029

Draft
Xuanwo wants to merge 2 commits into
xuanwo/exact-version-stack-11-index-consumersfrom
xuanwo/exact-version-stack-12-boundary-gate
Draft

ci: enforce exact file-version boundaries#8029
Xuanwo wants to merge 2 commits into
xuanwo/exact-version-stack-11-index-consumersfrom
xuanwo/exact-version-stack-12-boundary-gate

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Part 12/12 of #7877. Depends on #8028.

This is the final independently reviewable step implementing the layout demonstrated in #7979.

This PR adds a CI boundary checker that prevents architectural drift after the refactor. It rejects persisted selectors, cross-layer selector ownership, version ordering, implicit exact/selector conversions, shared-runtime version dispatch, and unapproved file-version checks outside the declared boundaries.

The checker includes a self-test with positive and negative fixtures and runs in the Rust workflow. It guards the structure established by the preceding PRs without changing runtime behavior.

Validation:

  • python3 ci/check_file_version_boundaries.py --self-test
  • python3 ci/check_file_version_boundaries.py
  • python3 -m py_compile ci/check_file_version_boundaries.py
  • cargo clippy --all --tests --benches -- -D warnings

@github-actions github-actions Bot added A-ci CI / build workflows ci Github Action or Test issues labels Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ci CI / build workflows ci Github Action or Test issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant