Skip to content

docs(readme): show decode coverage per pinned source and for the median drawing - #404

Merged
DrunkOnJava merged 1 commit into
mainfrom
docs/readme-per-source
Oct 27, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
docs/readme-per-source

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

README's coverage headline is weighted by records, and the pinned sources differ in size by orders of magnitude. When #384 lands, its nine code-page drawings add 106,189 records, about seven times the 15,541 now on main. The headline would then go from 96.7 % to 99.5 % with no decoder changing. Most of the jump comes from four R2004 drawings from oshw-jetson, which also take the R2004 row from 96.8 % to 99.9 %.

tools/maintainer/readme_status.py now renders:

  • a per-source table (new corpus-sources marker block in README.md), in the order tools/corpus/pins.tsv first names each source. A source's own row does not move when another source is pinned;
  • a median drawing column in both tables and in the summary line. It weighs every drawing the same;
  • > 99.9 % instead of 100.0 % for a rate that still has records skipped or errored. oshw-jetson would otherwise show 100.0 % with 25 records not decoded.

The prose no longer hard-codes "52 public drawings"; the tables carry the count.

Spec reference

Docs and tooling only; no decoder change. Rendered from tools/corpus/baseline.tsv on main (c1a58c9), measured by run 40503137263. Dry run of the same renderer on #384's baseline.tsv and pins.tsv (head bd1ef13), to show what the README will say after it lands:

Source Files Decoded Skipped Errored Success rate Median drawing
nextgis 42 8275 168 0 98.0 % 98.0 %
acadsharp 10 7266 365 0 95.2 % 95.0 %
bookviewerapp3 4 1389 70 0 95.2 % 97.2 %
oshw-jetson 4 104552 16 9 > 99.9 % > 99.9 %
planar-algorithm 1 248 4 0 98.4 % 98.4 %
All sources 61 121730 623 9 99.5 % 97.8 %

The median drawing is 97.8 % before and after; the aggregate goes 96.7 % → 99.5 %.

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. 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.

…an drawing

The record-weighted aggregate moves when a source of large drawings is
pinned: #384's nine drawings hold 106,189 records, seven times the 52 on
main, and would lift the headline from 96.7 % to 99.5 % with no decoder
changing. readme_status.py now renders a per-source table and a median
drawing column, and stops rounding a rate with records left undecoded to
100.0 %.
@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-27T17:43:37.592538Z 26f8a14 PR opened
ℹ️ 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.

@DrunkOnJava
DrunkOnJava merged commit d56e569 into main Oct 27, 2026
25 checks passed
@DrunkOnJava
DrunkOnJava deleted the docs/readme-per-source branch October 27, 2026 18:09
DrunkOnJava added a commit that referenced this pull request Oct 28, 2026
…10-27 (#416)

* docs: bring README, ROADMAP and CHANGELOG up to the landings of 2026-10-27

README's code-page and DXF writer text named work in review that has landed
(#371, #380, #382, #384); jev_review.py prose ranked those sentences 0.72 to
0.96. ROADMAP's "where it stands" table was a 2026-10-21 snapshot whose
numbers, CI row and release row were all out of date; it now points to the
rendered numbers instead of repeating them. CHANGELOG gains #371, #380, #382,
#384, #385 and #404.

* docs(changelog): record the CI-only merge train (#408)

* docs: OBJECTS landed (#372): README, ROADMAP and CHANGELOG

* docs: LAYOUT, GROUP and MLINESTYLE (#373), the class map writer (#405) and the double-byte round trip (#414) landed

* docs: VISUALSTYLE landed (#413)

* docs(readme): name the skipped types still in review without per-type counts; MATERIAL landed (#325)

* docs(readme): point to the open decoder PRs instead of a list that each landing makes stale
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