Skip to content

fix(devtools): keep flake recovery from laundering a broken run - #4595

Merged
Sinity merged 2 commits into
masterfrom
fix/codex-reviews-devtools
Sep 3, 2026
Merged

Sinity merged 2 commits into
masterfrom
fix/codex-reviews-devtools

Conversation

@Sinity

@Sinity Sinity commented Sep 3, 2026

Copy link
Copy Markdown
Owner

Devtools half of the unaddressed-Codex-review sweep (26 findings verified against current master, 41 tests). Sibling PRs: #4580, #4582, #4583, #4587, #4594.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YGi8wLWGR2HYBh8p8fXFXz

@Sinity
Sinity enabled auto-merge (squash) September 3, 2026 07:01
@coderabbitai

coderabbitai Bot commented Sep 3, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Team

Run ID: c179afb4-d4e0-4fcf-b625-d4edc636cce8


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-03T07:53:27.582467Z 29c9139 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 93a17125d1

ℹ️ 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".

Comment thread devtools/schema_promote.py Resolved
Comment thread devtools/run_tests.py Resolved
Sinity and others added 2 commits September 3, 2026 09:43
An accepted flake rewrote the step's verdict but not all of its evidence,
and the recovery path accepted any nonzero pytest exit.

Recovery now runs only for exit 1, "tests failed" — the one outcome a
rerun can speak to. Exit 2 (interrupted), 3 (internal error) and 4
(usage) describe the run itself, and reporting one of those as a
recovered flake turned a broken run green. The json report states its
exit status twice; both are cleared together, and the accepted flake
node ids are written into the report and carried into the durable
receipt, so a step green only on rerun is distinguishable from one that
never failed.

A focused `devtools test` traces into the same datafile `devtools
verify` selects from, so it forces the full Hypothesis profile the way
verify already does. An edge recorded under a reduced budget would let a
later selected green stand for less property coverage than it claims.

Inside an agent job the worker cap now applies to an explicit `-n`,
which previously skipped it entirely and could claim the whole shared
host. An explicit zero survives the cap: it asks for no xdist at all,
which is always within it.

`devtools verify --json` answers a tier refusal in JSON. Schema
promotion audits the registry tree it actually writes to rather than a
relative literal, and keeps its `--json` output to one document.

An integration selection cannot pin one session identity from two
witnesses. Distinct recipes with the same session_native_ids passed the
recipe-digest check and then silently materialized over each other.

The rerun and step runners acquire the host pytest slot, so the tests
that drive them inline use the documented POLYLOGUE_PYTEST_SLOT escape
instead of requiring a live queue.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YGi8wLWGR2HYBh8p8fXFXz
@Sinity
Sinity force-pushed the fix/codex-reviews-devtools branch from 93a1712 to 29c9139 Compare September 3, 2026 07:49
@Sinity
Sinity merged commit a09d63a into master Sep 3, 2026
3 of 4 checks passed
@Sinity
Sinity deleted the fix/codex-reviews-devtools branch September 3, 2026 07:55
@Sinity

Sinity commented Sep 29, 2026

Copy link
Copy Markdown
Owner Author

Closing out open Codex review threads on this PR (evidence checked against master at 64a9bd0):

  • P1 devtools/schema_promote.py:38: Fixed on master (checked at 64a9bd0): _schema_registry_root returns SchemaRegistry().storage_root from polylogue.schemas.registry, the class schema_registry() constructs for promotion (devtools/schema_promote.py:46-48; polylogue/schemas/operator/registry.py:69-72).

Resolving every thread listed; confirmed defects are fixed under the named bead.

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