Skip to content

DXF: owned file layers and lineweight model (#5319) - #8435

Closed
selun3 wants to merge 2 commits into
tangency-labs:mainfrom
selun3:batch/3
Closed

selun3 wants to merge 2 commits into
tangency-labs:mainfrom
selun3:batch/3

Conversation

@selun3

@selun3 selun3 commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

Completed validation attempt — full gate failed

The actual cargo xtask ci attempt on the frozen, byte-identical X2 source has now ended. Strict workspace Clippy, the native workspace build, documentation checks and all 82 native test binaries passed. In that workspace configuration, IO reported 224 passed, 0 failed, 2 existing ignored and engine 2688 passed, 0 failed, 6 existing ignored. These are source- and feature-specific results, not default-feature artifact qualification or results for the later X3 proposals.

The full gate is FAILED, because its 12-crate wasm side check failed on the previously reported UI Theme-drop .bytes() call. The owner correction #8534 has since merged and has been checked against our frozen source, but was not applied to this attempt and has not yet been validated here. No assertions, ignores or tolerances were changed to bypass the failure. The attempt and its children ended, and its own leases were released.

This PR remains a draft. The next DXF source increments are separately preserved in the continuation index, explicitly uncompiled/unrun; they inherit none of this attempt's results. Integration, affected validation and the actual final repository gate remain pending. Earlier notes below are historical snapshots.


Scope

Partial implementation of #5319 in the agreed shared DXF sequence #5318 → #5319 → #5320 → #5321. This does not close #5319.

  • Add an owned DxfFile with checked layer ownership, ASCII layer-name normalization/collision refusal, standard physical lineweights and distinct omitted/ByLayer/ByBlock/Default entity weights.
  • Add bounded geometry helpers for LINE, CIRCLE, ARC, POLYLINE, ELLIPSE, supported SPLINE and TEXT: conservative bounds and positive uniform transforms. TEXT bounds require supplied layout metrics; arc/ellipse/spline bounds are conservative, not tight. Variable copy payload and geometry work have separate budgets.
  • Add write_dxf_file through the same borrowed layer/entity views and Out backend as the existing writer. It preserves stored optional lineweights, refuses unsupported or unrepresentable owned geometry, and bounds work and final output to the existing 64 MiB file budget. Legacy numeric spelling and APIs remain available.

The metadata model currently admits ASCII names only, up to 1,024 layers and one million entities. Imported nondefault layer-zero styles and Unicode names remain unsupported. The owned writer retains the existing approximate extent calculation; its TEXT subset is at most 250 BMP characters. These limits do not claim a peak-memory bound or complete DXF support.

Remaining work

Final X1 #5318 baseline binding and flat/view caller migration wait for the actual integrated receiver, including Cam's #6482 where it overlaps. The nine TEXT alignments, complete text policy and X3 layered import remain separate unfinished work. Existing drawing commands continue using their current APIs; this PR changes no application default.

Validation

Published WIP at the user's request; not ready for review or merge. Head fac00435431c84d9fd5c3c991fd39ca496d1f37e. The corrected normal-toolchain full cargo xtask ci is still running on the byte-identical working source: strict workspace Clippy passed, and test binaries are still building at this publication checkpoint. No complete full-gate pass or test execution result is claimed. The earlier actual gate failure at two new-code Clippy diagnostics is preserved; those two minimal fixes were independently source-reviewed.

Publication used a private Git index and left the running build's source, real index and local HEAD unchanged. Its final result will be bound separately, not inferred from this push.

46 new tests are written (16 model, 15 geometry, 15 writer); their execution is not yet qualified by a terminal result. The 14 original writer tests and their assertions remain, with line-ending/rustfmt normalization only. Independent source review covers the actual four-file candidate; it is not a compiler or runtime pass. The sole builder's normal-toolchain cargo xtask ci result is pending. Draft/skipped CI is not a pass.

Changes a default: no

Published WIP continuity — 28 October 2026

Complete source/checkpoint index. This preservation includes unintegrated proposals with their exact source and pending dependencies; none of them inherit this PR's validation or imply readiness.

Current exact-source gate update

On the unchanged frozen X2 working source corresponding to this publication, strict workspace Clippy and the native workspace test build passed. The actual wasm side job failed with E0599 in crates/ui-egui/src/prefs.rs: .bytes() is unavailable on web-target DroppedFile. The test runner continues the native queue after side-job failures; WHOLE is still running, and this is not a full-gate pass. Kernel LIB reported 877 passed / 0 failed / 28 existing ignored, and UI LIB 3153 passed / 0 failed / 14 existing ignored. These results do not qualify later X3/proposal source. The existing owner coordination records the API mismatch and static baseline comparison; an untouched baseline has not been run. No waiver, changed tests or duplicate CI attempt.

At Judit's request, this exact source checkpoint is now also stored directly in tangency-labs/solidcraft: codex/drawings-x2-checkpoint-20261029, commit fac00435431c84d9fd5c3c991fd39ca496d1f37e. The existing PR remains the review/coordination thread; this is preservation, not a competing claim, a new validation result or a merge. Its draft status and remaining work are unchanged.

…labs#5319)


Publish the reviewed partial implementation at the user's request while the corrected normal full gate is running. Not ready or fully validated.
@bherbruck

Copy link
Copy Markdown
Collaborator

Thanks for this! I'm closing older PRs that have gone quiet or drifted from main, since a lot has changed in the last couple of weeks. If you'd still like this in, please open a fresh PR against current main; happy to review it.

@selun3

selun3 commented Nov 14, 2026

Copy link
Copy Markdown
Collaborator Author

Current-main replacement: #16825, opened as a fresh ready PR as requested. This draft remains closed. The new PR records the owned-layer scope, inherited #16617 dependency, actual export evidence and local CI failures. Two subsequent owned-model review fixes are currently validating; the maintainer’s temporary sheet-metal hold remains in place.

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.

DXF: a DxfFile that owns its layers, line types and line weights

2 participants