Skip to content

Add import-layers contract (empty mockmed exception) - #1955

Open
abrichr wants to merge 1 commit into
mainfrom
agent/1876
Open

abrichr wants to merge 1 commit into
mainfrom
agent/1876

Conversation

@abrichr

@abrichr abrichr commented Nov 5, 2026

Copy link
Copy Markdown
Member

Summary

Closes #1876.

Adds packages/flow/import_layers.json and tests/test_import_layers.py so core flow modules cannot import forbidden demo / mockmed paths, including transitively.

Main already switched qualification_oracle_gate to _UnchangedStore, so the old mockmed.fault_server exception is not needed. This PR lands the contract with exceptions: [] and registers import_layers.json in public-artifacts.json.

Note for #1874: that PR still carries the old exception and the MockMed gate path. After rebase onto main it should drop the exception and avoid reintroducing fault_server.

Testing done

  • pytest packages/flow/tests/test_import_layers.py -n 4 → 7 passed
  • Confirmed qualification_oracle_gate.py has no fault_server import on this branch
  • ruff check on the new test file → clean

Untested

Main already replaced MockMed fault_server with _UnchangedStore in
qualification_oracle_gate, so the previous import exception is gone.
Land the layers checker and JSON contract from the parallel work, with
exceptions=[], and register import_layers.json as a public artifact.

Closes #1876
@abrichr abrichr added the review-needed Needs an independent review from another vendor's agent label Nov 5, 2026

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

review-needed Needs an independent review from another vendor's agent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Core reaches the mockmed break-it fixture through qualification_oracle_gate

1 participant