Skip to content

ci(corpus): run the DXF value oracle in the Corpus job and ratchet it - #277

Merged
DrunkOnJava merged 1 commit into
mainfrom
feat/dxf-oracle-ratchet
Oct 26, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
feat/dxf-oracle-ratchet

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 26, 2026 •

Copy link
Copy Markdown
Owner

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

  • Corpus job (ci.yml): builds examples/dxf_oracle with 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 uploads oracle.tsv, oracle.log and oracle-summary.md in the corpus-measurement artifact.
  • tools/oracle/baseline.tsv: 2723 rows (release, section, type, field, group → equal, default, different, DWG-only), generated from the 102 files pinned in tools/corpus/pins.tsv (49 drawing pairs). No path or sample content in it.
  • Measure workflow (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 include examples/dxf_oracle/** and tools/oracle/**. The NOT MEASURED (no scorer on main yet) placeholders go, there and in measure.py.
  • CONTRIBUTING.md says 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 after spec_examples -- --update); release-1.0-criteria.md R4 says the oracle runs in CI.

Test plan

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.

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.

@DrunkOnJava
DrunkOnJava force-pushed the feat/dxf-oracle-ratchet branch 3 times, most recently from 0e7a608 to 8aada33 Compare October 26, 2026 11:52
@DrunkOnJava
DrunkOnJava force-pushed the feat/dxf-oracle-ratchet branch 5 times, most recently from cbf0f2e to 6bc1fd5 Compare October 26, 2026 12:24
@DrunkOnJava
DrunkOnJava force-pushed the feat/dxf-oracle-ratchet branch 2 times, most recently from 71bfec1 to ebc33b1 Compare October 26, 2026 12:37
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
DrunkOnJava force-pushed the feat/dxf-oracle-ratchet branch from ebc33b1 to 1766f6d Compare October 26, 2026 14:17
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review October 26, 2026 14:17
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 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-26T14:37:16.979407Z 7bea4d0 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: 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".

Comment thread .github/workflows/measure.yml Resolved
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
DrunkOnJava force-pushed the feat/dxf-oracle-ratchet branch from 1766f6d to 7bea4d0 Compare October 26, 2026 14:35
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 26, 2026 14:44
@DrunkOnJava
DrunkOnJava merged commit 7df1acb into main Oct 26, 2026
26 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/dxf-oracle-ratchet branch October 26, 2026 14:53
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.

Oracle results in CI, ratcheted Pair every DWG record with the DXF object of the same handle

1 participant