feat: add domformat package and canonical gallery corpus - #81
Open
alowpoly wants to merge 1 commit into
Open
Conversation
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
@layoutit/polycss-domformatworkspace package with the closeddomformat@0/polycss-3d@0retained-DOM contract.dom, archive, gzip, or embedded-package transportArchitecture
The package remains producer-neutral and independent of Morph and renderer internals. Producer parsing, preparation, lowering, and product adapters remain outside domformat. No PolyCSS or Morph producer integration is added here.
The exact runtime lifecycle is
validate -> construct -> bind -> initialize -> publish -> destroy. Partial lifecycle failures roll back DOM, styles, listeners, observers, object URLs, and host changes; destroy is idempotent.Package code is MIT. Per-model third-party Gallery licensing and attribution remain recorded in the corpus catalog and are not relicensed as MIT.
The checked Gallery corpus adds approximately 176 MiB: 304 JSON documents, 216 unique external assets, and one shared CSS resource.
Verification
pnpm --filter @layoutit/polycss-domformat test:release— 120/120 tests, independent Python and N-version corpora, real Chrome mounts, clean-installed deterministic tarballpnpm gallery:domformat:verifypnpm gallery:domformat:verify:freshpnpm testpnpm buildgit diff --checkDeterministic package tarball: 79,046 compressed bytes, 31 entries, SHA-256
174c68e76aafd00ffbf72ee5d4a9a167a14baf5761087d54f01dd9d8a74e988f.Proof boundary
The committed corpus is a Chromium Gallery-strategy snapshot. Browser proof establishes retained-DOM and selected-tick browser equivalence within strict reported bounds; it is not native or universal cross-engine parity. Animated entries capture the Gallery-selected clip at canonical 30 Hz, not every clip in every source model.