Skip to content

feat(tools): rank the prose and open issues that merged pull requests may have overtaken - #406

Merged
DrunkOnJava merged 6 commits into
mainfrom
feat/jev-review
Oct 28, 2026
Merged

DrunkOnJava merged 6 commits into
mainfrom
feat/jev-review

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

Adds tools/maintainer/jev_review.py, a local maintainer tool with two read-only reviews. Each produces a ranked shortlist; neither edits anything.

  • prose handles 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.
  • issues finds open issues that a merged pull request may already resolve without having closed them.

How it decides:

  • Code builds the candidates. Status wording, #N references and shared rare words pair each sentence or issue with up to six merged PRs.
  • Jev answers yes/no questions about each pairing. Jev is TypeSafe's typed-judgment model (jev-1.14.0, https://docs.typesafe.ai).
    • For prose there are two questions. One asks whether the sentence names a specific part of the project as missing, pending or limited. The other, asked once per candidate PR, asks whether that PR delivers it. A pairing scores the product of the two.
    • For issues there is one question per candidate PR: does it resolve the issue?
  • Results are ranked. Pairings at 0.7 or above print as likely and pairings between --min and 0.7 as look.

The tool needs TYPESAFE_API_KEY and 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:

Score Where Pull request Sentence Verdict
0.96 README.md:188 #380 "XRECORD and XDATA strings are not decoded by page yet, and the writers still emit UTF-8 (#375)." stale
0.93 ROADMAP.md:38 #225 "CI · Synthetic fixtures only: no real DWG file is read in CI" stale
0.93 README.md:123 #371 "DXF writer · … BLOCKS and OBJECTS in review (#371 to #373)" stale
0.80 README.md:119 #379 "… every skipped type has a decoder in review (above)" false positive
0.78 README.md:188 #382 the same sentence's "writers still emit UTF-8" stale

Negative controls at or below 0.19:

  • the clean-room paragraph: 0.005;
  • "Sec_Mask · R2007 does not use it": 0.10;
  • the README headline: 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:

  • The resolving PR ranks first for 32.
  • It is on the shortlist for 33.
  • It scores 0.7 or above for 19 and 0.5 or above for 23.

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

  • prose on main: the table above
  • issues --number … over the 41 recently closed issues: the scores above
  • With TYPESAFE_API_KEY unset, the tool exits 1 with a one-line message
  • --max-questions 10 refuses a 995-question run before sending anything
  • python3 -I -m py_compile, PII guard pattern and spec_coverage.py --check pass
  • No Rust change; no unit tests added.

Source-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:

  • No Autodesk DWG SDK source (RealDWG, ObjectARX, ObjectDBX) or NDA-protected Autodesk documentation was consulted or imported.
  • No Open Design Alliance Teigha / Drawings SDK source was consulted or imported. The ODA's public Open Design Specification for .dwg files PDF is explicitly allowed (see CLEANROOM.md).
  • No GPL-licensed DWG implementation source (LibreDWG, etc.) was consulted or imported. This matters because dwg-rs is Apache-2.0 and must remain compatible.

My contribution is based on:

  • The ODA's freely-redistributable Open Design Specification for .dwg files (v5.4.1);
  • Public reverse-engineering notes, research papers, or blog posts cited inline;
  • Reading algorithm-description comments (not executable code) in permissively-licensed projects (MIT / Apache / BSD) to resolve spec ambiguities — disclose any such reading in this PR body so it can be recorded in CLEANROOM.md.

See CLEANROOM.md for 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 -s when asked, which adds a
Signed-off-by trailer to the commit message asserting the DCO.

… 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.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 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-10-28T03:51:10.783516Z 9c68cf5 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: 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".

Comment thread tools/maintainer/jev_review.py Resolved
Comment thread tools/maintainer/jev_review.py Resolved
…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).

@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: 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".

Comment thread tools/maintainer/jev_review.py Resolved
…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.
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 28, 2026 03:54
@DrunkOnJava
DrunkOnJava merged commit ab601a0 into main Oct 28, 2026
24 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/jev-review branch October 28, 2026 04:04
DrunkOnJava added a commit that referenced this pull request Oct 28, 2026
…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.
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