Repository navigation
ci(corpus): run the DXF value oracle in the Corpus job and ratchet it - #277
Merged
Merged
Conversation
2 of 3 tasks
DrunkOnJava
force-pushed
the
feat/dxf-oracle-ratchet
branch
3 times, most recently
from
October 26, 2026 11:52
0e7a608 to
8aada33
Compare
4 tasks done
DrunkOnJava
force-pushed
the
feat/dxf-oracle-ratchet
branch
5 times, most recently
from
October 26, 2026 12:24
cbf0f2e to
6bc1fd5
Compare
7 tasks done
DrunkOnJava
force-pushed
the
feat/dxf-oracle-ratchet
branch
2 times, most recently
from
October 26, 2026 12:37
71bfec1 to
ebc33b1
Compare
DrunkOnJava
added a commit
that referenced
this pull request
Oct 26, 2026
Once tools/oracle/baseline.tsv is on main (#277), refresh.sh runs the oracle against main's baseline, refuses a pull request whose agreement falls, and commits the regenerated TSV so a rise is ratcheted in. A conflict in it takes main's and regenerates. Inactive until main has that file.
DrunkOnJava
force-pushed
the
feat/dxf-oracle-ratchet
branch
from
October 26, 2026 14:17
ebc33b1 to
1766f6d
Compare
DrunkOnJava
marked this pull request as ready for review
October 26, 2026 14:17
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: 1766f6d36a
ℹ️ 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".
The Corpus job builds examples/dxf_oracle with the corpus examples and runs it over the fetched drawings: every DWG record paired by handle with AutoCAD's DXF export of the same drawing, every decoded field compared with its DXF group. tools/oracle/baseline.tsv holds the agreeing counts per release, section, type, field and group (2723 rows, from the 49 drawing pairs pinned in tools/corpus/pins.tsv); the step fails when a count falls or a row disappears, and uploads the run's oracle.tsv with the corpus measurement so a change that raises or renames a row commits it. Its Markdown summary goes to the job summary. measure.yml builds the oracle on each side that has it and reports the head against the base, listing drops without failing; a base older than the oracle, or a base run that failed (a pair it could not load), reports the head alone, and a head run that could not load every pair says its scores are incomplete. The NOT MEASURED placeholders for the oracle go. CONTRIBUTING.md says how to regenerate the TSV and the coverage notes. Both workflows print the pairing per file and the one-sided records by release and type (#101). Closes #101, closes #103
DrunkOnJava
force-pushed
the
feat/dxf-oracle-ratchet
branch
from
October 26, 2026 14:35
1766f6d to
7bea4d0
Compare
DrunkOnJava
enabled auto-merge (squash)
October 26, 2026 14:44
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The DXF value oracle (#248) runs in CI and is ratcheted (#103), and its pairing runs in the Measure workflow (#101).
One commit on
main, after #248.What it does
ci.yml): buildsexamples/dxf_oraclewith the corpus examples (--features dxf-reader) and runs it over the fetched drawings with--baseline tools/oracle/baseline.tsv. The step fails when a field's agreeing count falls or a baseline row disappears; it prints the pairing per file, the one-sided records by release and type, every disagreement and the ratchet result, writes the by-section table to the job summary, and uploadsoracle.tsv,oracle.logandoracle-summary.mdin thecorpus-measurementartifact.tools/oracle/baseline.tsv: 2723 rows (release, section, type, field, group → equal, default, different, DWG-only), generated from the 102 files pinned intools/corpus/pins.tsv(49 drawing pairs). No path or sample content in it.measure.yml): builds the oracle on each side that has it; the head's run is reported against the base's TSV (drops listed, never fatal), with the pairing and one-sided records; a base without the oracle reports the head alone. Paths now includeexamples/dxf_oracle/**andtools/oracle/**. TheNOT MEASURED (no scorer on main yet)placeholders go, there and inmeasure.py.CONTRIBUTING.mdsays how to regenerate the TSV and the coverage notes (tools/oracle/spec_notes.py, which feat(dxf): the value oracle — pair every DWG record by handle and score its fields #248 makes safe to run before or afterspec_examples -- --update);release-1.0-criteria.mdR4 says the oracle runs in CI.Test plan
actionlinton both workflows: the only findings are the two SC1003 infos main already has in the PII guard step (rebased over fix(rs-fec): implement §5.13's two Reed-Solomon codes as AutoCAD writes them (#275) #286's Reed-Solomon and Streaming 1: replace whole-file parsing with explicit byte-demand states #205's data-page steps; all kept)python3 -I tools/corpus/fetch.py --dest <corpus>: 102 of 102 pinned files verified; the oracle over that tree with--baseline tools/oracle/baseline.tsvexits 0 (no agreeing count fell below the baseline); feat(dxf): the value oracle — pair every DWG record by handle and score its fields #248's test plan shows a raised count failing with exit 1python3 -I tools/ci/spec_coverage.py --checkSource-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).CI wiring and a measured TSV only; no decoder code.
Developer Certificate of Origin
By submitting this PR, I certify that the contribution complies with the Developer Certificate of Origin 1.1.
Closes #101, closes #103. Refs #99.