feat: add domformat package and canonical gallery corpus - #81
Open
alowpoly wants to merge 15 commits 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.For the optional pointer/grab interaction,
button.holdintentionally freezes motion by zeroing spring velocity; release resumes from rest.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— 156/156 tests, independent Python and format-level N-version reader corpora, exact real-Chromium browser proofs, clean-installed deterministic tarballpnpm gallery:domformat:verifypnpm gallery:domformat:verify:freshpnpm testpnpm buildgit diff --checkDeterministic package tarball: 75,452 compressed bytes, 254,543 unpacked bytes, 62 entries, SHA-256
9395f544a7167599ee3728e130a987347334e20004aeada28f74ad8c5355691f.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.