Repository navigation
feat(tools): rank the prose and open issues that merged pull requests may have overtaken - #406
Conversation
… may have overtaken tools/maintainer/jev_review.py pairs each status sentence of README.md, STATUS.md and ROADMAP.md, and each open issue, with the few merged pull requests it could be about, and asks TypeSafe's Jev model yes/no questions about each pairing. The output is a ranked shortlist for a maintainer to read, never an edit; measured numbers are listed for re-measurement, not judged. Local only: needs TYPESAFE_API_KEY and costs about a cent a run.
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: 194361ba78
ℹ️ 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".
…ce criteria in its issue text `prose` sent a statement that states a measured number to the model whenever it also had status wording, though the tool says it does not ask about numbers; those statements now go only to the re-measure list, and the percentage alternative leaves STATUS since it can no longer select one. `issues` gave the model the first 1,500 characters of an issue body, which cut the Acceptance or Done when section off 5 of the 16 long open issues that have one; a body that does not fit now leads with those sections. Checked offline on main's README, STATUS and ROADMAP (6 measured statements leave the candidates, no other statement is lost) and on the 121 open issues (16 of 16 keep their acceptance section, the 97 that fit pass whole).
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 328f45cff8
ℹ️ 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".
…nts under it A list whose limitation is stated in its heading, such as README's "What dwg-rs does not do today", has bullets with no status wording of their own, so `prose` never asked about them. A statement is now a candidate when its text matches STATUS or its heading says not, pending, remaining, missing, planned, in review or limit, and both questions tell the model to read the statement with that heading. Checked offline on main's documents: README gains the two bullets of that section, STATUS the 27 statements under "Pending — non-trivial work remaining", ROADMAP none.
…till skipped (#424) CHANGELOG gains the table objects (#313, #316, #317, #319), the nineteen classes derived from AutoCAD's output (#326 to #341), the DIMENSION scorer (#387), the BLOCK fixtures (#407), the maintainer tools (#406, #383) and the merge train's stack handling (#421 to #423). README said every skipped type had a decoder in review; only SHAPE (#310) and the VIEWPORT entity header (#311) do, and the rest are twelve custom classes in the BookViewerApp3 drawings with no DXF export yet, now named. STATUS's pending section says its counts are the 2026-08-30 snapshot.
Summary
Adds
tools/maintainer/jev_review.py, a local maintainer tool with two read-only reviews. Each produces a ranked shortlist; neither edits anything.prosehandles housekeeping item 10. It finds sentences in README.md, STATUS.md and ROADMAP.md that a pull request merged since may have made untrue, such as "X is not done yet" after X landed. Text inside the<!-- name:begin/end -->blocks is skipped because readme_status.py already checks it. Sentences that state a measured number are listed for re-measurement and not judged.issuesfinds open issues that a merged pull request may already resolve without having closed them.How it decides:
#Nreferences and shared rare words pair each sentence or issue with up to six merged PRs.likelyand pairings between--minand 0.7 aslook.The tool needs
TYPESAFE_API_KEYand reads it from the environment only. It caps the number of questions per run (--max-questions). It is not wired into CI or audit.py, because a probability is a pointer for review, not a gate. Input tokens cost $0.042 per million and output is free, so a full run costs about two cents and takes 5 to 25 seconds.Spec reference
Maintainer tooling only; no decoder, corpus or spec-coverage change.
Evidence (main at c1a58c9, 2026-10-27)
prose --since 2026-10-21: 139 requests, 460k input tokens, $0.019. The sentences known to be stale before the run all rank at 0.7 or above, alongside one false positive:Negative controls at or below 0.19:
Prose followed by a deterministic numbers list (README:66–69 per-type record counts, ROADMAP:33's 2026-10-21 decode snapshot).
How the questions were tuned. Precision at 0.7 or above went from about 5 of 10 with a single question per paragraph, to 3 of 3 once the judgment was split into the two questions above, applied to sentences, with criteria that include made-up contrastive examples. The examples are not taken from the evaluated sentences.
issues --number <41 issues closed since 2026-10-26>: $0.006. Of the 35 issues with a known resolving pull request:One other pairing scores 0.7 or above: #105 ← #292 at 0.82. #292 made the spec-coverage check required, which is part of what #105 asked for.
The six issues closed without any pull request (#111, #116, #224, #98, #228, #229) score between 0.04 and 0.35. #228 and #229 were each fixed piecemeal by several PRs, and the question counts a partial fix as no. On today's 123 open issues, nothing scores 0.7 or above, which fits with the triage pass that closed 43 issues today.
Test plan
proseon main: the table aboveissues --number …over the 41 recently closed issues: the scores aboveTYPESAFE_API_KEYunset, the tool exits 1 with a one-line message--max-questions 10refuses a 995-question run before sending anythingpython3 -I -m py_compile, PII guard pattern andspec_coverage.py --checkpassSource-provenance declaration
By submitting this PR I certify that my contribution does not incorporate executable code from any source whose license is incompatible with Apache-2.0. Specifically:
CLEANROOM.md).dwg-rsis Apache-2.0 and must remain compatible.My contribution is based on:
CLEANROOM.md.See
CLEANROOM.mdfor the full allowed/forbidden source list and the honest scope of what "clean-room" means for this project.Developer Certificate of Origin
By submitting this PR, I certify that the contribution complies with the
Developer Certificate of Origin 1.1.
Specifically, I affirm that the contribution is my own work (or rightfully
licensed to me) and that it can be distributed under the project's Apache-2.0
license.
I will sign off commits with
git commit -swhen asked, which adds aSigned-off-bytrailer to the commit message asserting the DCO.