Skip to content

Gate connector changes on executable contracts and tested release artifacts - #4

Open
K-3-LT wants to merge 2 commits into
mainfrom
codex/verification-gates
Open

K-3-LT wants to merge 2 commits into
mainfrom
codex/verification-gates

Conversation

@K-3-LT

@K-3-LT K-3-LT commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Change

Run the same verifier locally and in CI. Ruff checks bug-prone Python patterns and stale suppressions. Mypy checks runtime modules and the typed provider/gateway configuration. Import Linter enforces the layer order, and a distribution test checks Python imports, runtime dependencies and upstream notices.

Build the sdist, install its wheel in a disposable environment, exercise CLI initialization and profile readback, then run the fixture suite against that installation. CI archives those same two artifacts by commit and run attempt. The release handoff uses a passing run on protected main. Checkout, Python setup and artifact upload use SHA-pinned Node 24 actions.

Add a finite TLA+ model for interrupted native configuration writes and a filesystem regression for the journal-to-file interval. The model assumes serialized operations on one client path. Concurrent writers, crashes during disconnect and storage durability are outside its scope.

Verification

  • Linux, Python 3.14.4, python scripts/verify.py --tlc-jar /path/to/tla2tools.jar. Ruff, mypy and import layers passed. The installed wheel initialized a disposable profile and loaded the expected default provider. Unittest discovered 55 tests, with 50 passing and five skipped by the fixture-only run.
  • TLC 2.19 checked all 46 distinct reachable model states. Temporarily removing recovery of the previous image produced a counterexample. A wrong port type and an upward import were also rejected in separate temporary checkouts.
  • The packaged tests exercised loopback HTTP, fixture provider responses, native configuration edits and restoration. The existing CI Magpie job separately runs the real pinned program against the fixture. Live provider/model and desktop client acceptance were outside this change.

The final CI run passed all nine jobs for head 936fe3c, including Python 3.11/3.14 on Linux, macOS and Windows and the separate Magpie checks. The tested sdist and wheel are available for review.

@K-3-LT
K-3-LT requested a review from aikevan as a code owner November 18, 2026 10:16
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