Commit graph

28 commits

Author SHA1 Message Date
6dd54987de Build release wheels with a checkout-local Podman store 2026-11-19 11:06:13 -08:00
2b5b184dc6 Refresh installation and walkthrough documentation 2026-11-19 11:04:20 -08:00
623de2e585 Clarify comparison and report controls 2026-11-19 10:21:56 -08:00
4aa36a6d65 Separate hierarchy traversal and text report modules
Build structured hierarchy rows and folded paths before rendering ASCII or Mermaid. Move compact and detailed diff writers alongside their text presentation helpers.
2026-11-19 09:29:21 -08:00
b5071444f5 Render layer labels and terminal styles from report roles 2026-11-19 08:44:28 -08:00
852660bcc6 Separate text evidence selection from report formatting 2026-11-19 08:35:08 -08:00
f3275fc161 Add an opt-in detailed text diff 2026-11-18 23:20:00 -08:00
ab308f7b7f Pair unique layer-only shape changes 2026-11-18 23:16:09 -08:00
87683db7e8 Accept embedded layer names in CLI selectors
Resolve scope and display selectors against both revisions before projection. Keep display-only selection on the large-file comparison path and list numeric choices for ambiguous names.
2026-11-18 23:07:22 -08:00
4ae689cd1c Fold unbranched paths in ASCII diffs 2026-11-18 23:04:24 -08:00
4789638e22 Show the displacement of a single shape move 2026-11-18 23:01:57 -08:00
28b7f10f6e Add terminal colors and clarify elided hierarchy branches 2026-11-18 22:58:12 -08:00
ed1e0595bc Simplify text diff and hierarchy reports
Use signed cell rows and keep whole-cell contents out of the text diff. Group reference changes, fold redundant terminal edges into the cell list, and inline one-off layer names. Count identical unmatched objects while retaining occurrence-based display limits.
2026-11-18 20:12:42 -08:00
9d5fe27516 Clarify diff report controls and README links
Document the text limit, JSON omission counters, and hierarchy options. Use absolute links for the documentation referenced by the README.
2026-11-18 12:37:10 -08:00
f474e9848c Require PyArrow in the Python package
Keep the arrow extra available for existing requirements. Update wheel checks and install instructions, and verify that integer packing leaves PyArrow unloaded.
2026-11-18 12:36:58 -08:00
8efeb04aab Simplify and speed up GDSII diffs
Summarize added and removed cells, group references, and keep replacement pairs together at text display limits. Trim hierarchy labels and summarize long unmatched paths.

Stream JSON object evidence and reduce parsing and comparison allocations. Parse large revisions concurrently and adaptively reuse matching cell bodies when most of the layout is shared.
2026-11-18 10:58:19 -08:00
15e8a3b7b5 Share GDSII reader logic and simplify review output
Share record framing, name decoding, payload validation, array reference
decoding, and Arrow cell-header parsing. Accept trailing NUL padding in
names and retain located diagnostics for malformed records.

Summarize text diffs by cell, layer, and reference target. Show comparison
and omission counts before detail. Compact canonical dumps while
preserving exact fields and duplicate counts for Git textconv. Simplify
hierarchy output and retain per-object evidence in JSON.
2026-11-17 21:49:26 -08:00
d95c378690 Add a reproducible upstream GDSII corpus check
Pin 30 layouts from five upstream repositories and verify downloads and license
files by SHA-256. Exercise full reads, scans, selected reads, and CLI
self-comparisons with a per-layout JSON report. Cache the inputs locally for
offline reruns.

The baseline exposes a CLI rejection of KLayout's padded-name fixture. The
gzip fixture passes directly through the CLI.
2026-11-17 16:15:05 -08:00
6e4b371046 Read gzip-compressed GDSII directly in the CLI
Detect gzip headers on every CLI input and decode all members before parsing.
Keep report offsets relative to the decompressed stream and report corrupt
archives as invalid input. Recognize OASIS headers and explain how to provide
GDSII data.

Cover mixed compressed and plain comparisons, corrupt trailers, and layer-name
output from compressed input.
2026-11-17 16:14:53 -08:00
58adf0cc99 Build Windows wheels locally and document release builds 2026-11-17 15:07:51 -08:00
4ea14085f7 Clarify Pheon installation and first-use examples 2026-11-17 15:07:40 -08:00
31afef0529 Reject invalid record sizes and return malformed-input errors
Validate payload sizes before record/header writes and make header packing
return io::Result when the total size overflows the format limit.

Return located parse errors for invalid UTF-8 and timestamp year overflow.
Validate cell timestamps consistently in full reads, selected reads, and
hierarchy scans while retaining scan behavior for skipped text geometry.

Add regression coverage for preserved writer outputs, padded metadata sizes,
malformed strings, timestamp boundaries, bounded errors, and Python bindings.
Document the fallible header packing API.

Validation: all 97 Rust tests pass in debug and release; all 16 Python tests
pass against the rebuilt native library.
2026-11-16 21:28:54 -08:00
df62677f5c Make Pheon structural review results self-contained
Capture revision metadata, cell presence and attributes, and structured
diagnostics in owned comparison results. Derive outcomes and render text,
JSON, and hierarchy reports without retaining source documents. Keep derived
descriptions and graph analysis in their renderers.

Use pheon-structural-v1 and PHEON_LAYER_NAMES_V1 consistently, expose helpers
through their defining modules, and remove obsolete re-exports. Update user
guides and report fixtures without changing schema version 1.

Cover dropped inputs, diagnostic ordering, absent and empty cells, offset
independence, and CLI failures. All 92 Rust tests pass in debug and release;
report and hierarchy goldens retain their behavior.
2026-11-16 20:45:06 -08:00
a723ba2265 Simplify Python bindings and package builds
Read each input path through one opened stream, including gzip detection, and
use direct numeric converter lookup while preserving byte-order handling and
caller data. Read the package version from installed metadata and report range
errors consistently as ValueError.

Require the supplied Cargo.lock instead of generating it during builds, use
the standard sdist command, and update package checks and development guides.

Validation: 15 Python tests pass against source and the rebuilt installed
wheel; the source archive and platform wheel build successfully.
2026-11-16 20:44:56 -08:00
54aa757678 Validate GDSII record sizes through one fallible path
Route every record read through size validation and report malformed payloads
as parse errors instead of panicking. Apply metadata size constraints through
the Record trait, hide Arrow reader internals, and remove unused wrappers and
scratch code.

Add coverage for direct, skipped, and payload reads, truncated buffers, and
FFI error offsets.
2026-11-16 20:44:48 -08:00
a384bb2f89 Organize documentation into focused user guides 2026-11-16 16:51:41 -08:00
b3346b40a4 Introduce Pheon GDSII parsing and layout review tools
Implement native GDSII reading and writing with Arrow interchange, hierarchy
scans and selective cell loading. Validate numeric packing and array pitches,
and preserve normalized REAL8 encodings exactly within the supported range.

Add standalone dump, structural diff, hierarchy, layer-name annotation and Git
diff commands. Provide scoped text and JSON reports, deterministic comparison,
and record-preserving metadata edits.

Package the shared library and optional Python Arrow readers as pheon using
CFFI ABI mode and Python-independent platform wheels. Include locked source
builds, native API checks, cross-platform artifact workflows, documentation
and regression coverage. Require Rust 1.88 or newer and Python 3.11 or newer.

Validation: 87 native tests, 14 binding tests on Python 3.11/3.13/3.14,
and 71 installed companion integration tests pass. Full, scanned and selected
Arrow layouts match the previous schemas.
2026-11-16 16:21:21 -08:00
e0a634f476 add gitignore 2021-12-18 21:17:43 -08:00