Repository navigation
refactor(devtools): keep 12 quick gates and run them in parallel - #5650
Conversation
|
You have reached your Codex usage limits for security reviews. Please try again later. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cbeadbca2f
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
cbeadbc to
aec41aa
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: aec41aabd3
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e33ab52535
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4e552ddced
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1a25dd1fc6
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1489bdce83
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3a2f776f6d
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e453fb5d5b
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
04e8621 to
5467b93
Compare
The layering gate ran five AST censuses that each read, parsed and walked the whole package, some several times. A content-keyed parse and walk cache, binding-node prefilters for the three-pass string resolution and per-module prefilters cut it from ~97 s to ~25 s on the same host with byte-identical output. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_013Vn4qhKjhyaVBG4aPiqNW4
Rendering the merge base extracted and cold-imported the whole package on every run (~20 s). A commit cannot change, so its rendering is cached by commit, renderer and interpreter, and an unchanged package is compared against itself. Warm runs take ~1.5 s. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_013Vn4qhKjhyaVBG4aPiqNW4
Over 968 quick runs, eight gates caught at most one real defect each; they move to a periodic tier run by verify --periodic (nightly CI, a declared AgentCTL schedule) and verify --all. consumer-reachability, report-only and diff-based, becomes manual. Quick gates now run in parallel with ordered outcomes, locked receipt writes and interruption that stops live gates. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_013Vn4qhKjhyaVBG4aPiqNW4
…riants Keeps 12 quick gates and deletes ten: invariants already asserted by a live test (declaration-bindings, api-parity, schema-provider-identity) and checks with no costly regression to prevent (controlled-read, doc-commands, oracle-integrity, testmon-selection, test-packages, root-topology, population-coverage, consumer-reachability). With every kept gate inside the parallel quick run, the periodic tier, --periodic, its AgentCTL operation, the nightly CircleCI jobs and the report-only plumbing go too. Interrupted runs now join their gate workers before the verdict (Codex review). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_013Vn4qhKjhyaVBG4aPiqNW4
A gate that runs its checker as a child (the mypy gate runs mypy) left that child holding the output pipes after the wrapper was terminated, so the join waited for it. Gates now lead their own process groups and the group is signalled (Codex review). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_013Vn4qhKjhyaVBG4aPiqNW4
Checking the interruption and registering the gate process are now one step under the step lock, and queued gates are cancelled before the live-process snapshot, so no gate launched around an interruption runs to completion (Codex review). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_013Vn4qhKjhyaVBG4aPiqNW4
After the grace period the interruption kills whatever of a gate's process group survived, even when the leader exited on SIGTERM. The SQLite degradation census slices handler text from the same read its tree was parsed from (Codex review). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_013Vn4qhKjhyaVBG4aPiqNW4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_013Vn4qhKjhyaVBG4aPiqNW4
The declarations doctrine and the marker projection name the live bindings test, and the production-reachability fixture package, orphaned with its oracle, is deleted (Codex review). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_013Vn4qhKjhyaVBG4aPiqNW4
A second SIGINT or SIGTERM during interruption cleanup no longer escapes it; the handlers are restored once the gates are stopped and joined (Codex review). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_013Vn4qhKjhyaVBG4aPiqNW4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_013Vn4qhKjhyaVBG4aPiqNW4
Master's mypy configuration rejects reaching stdlib modules through devtools.verify's namespace, which failed the quick gate after rebase. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_013Vn4qhKjhyaVBG4aPiqNW4
5467b93 to
c8c794f
Compare
Summary
devtools verify --quickkeeps 12 gates, down from 23. They now run side by side, so the gate costs roughly its slowest step. Each gate that remains guards an invariant nothing else checks, where a regression would be costly.devtools verify api-paritystays as a command.lab-policiesjob. Its only check, timestamp-doctrine, is in the quick gate.Gate.blockingand the report-only plumbing, now that no report-only gate remains.Problem
Solution
devtools/gate.py: the kept table. Its docstring states the rule: hosted CI runs no pytest, so a live-tested invariant stays a gate only when a regression that merges unnoticed is expensive to undo. That covers committed privacy leaks and durable DDL.devtools/verify.py:VerifyRunstep bookkeeping is thread-safe.verification_interrupted.devtools/ast_cache.py: content-keyed parse and walk cache for the layering censuses..cache/verify/schema-state. CircleCI saves it.polylogue/core/schema_subjects.py, which is IN the derived schema-identity closure. This PR therefore moves the derived schema identity and must land before a rebuild starts.Verification
devtools testover 21 affected files (devtools, parity, declarations, provider identity, surface boundary, maintenance declarations):355 passed.devtools verify --quickon the pre-rebase tree: PASSED. The host was at load average about 16, and mypy waited 172 s on the shared mypy lock; perf(devtools): check mypy on per-checkout caches seeded from siblings #5653 removes that lock wait. The 12 other gates finished within 40 s.devtools render all --check: nothing out of sync.Residuals
pytest-json-reportinpyproject.tomlis now unused. Removing it would change the lockfile and environment, so it is left for a separate change.tests/unit/devtools/test_derived_sweep_census.py::test_render_declaration_round_tripsfails on master too: the declaration has fallen behinddaemon_ingest.py.🤖 Generated with Claude Code
https://claude.ai/code/session_013Vn4qhKjhyaVBG4aPiqNW4