Skip to content

chore(infra)!: consolidate benches, guards, visual gate, ESM-only packaging, and website/examples cleanup - #92

Merged
alowpoly merged 15 commits into
mainfrom
infra-cleanup
Dec 3, 2026
Merged

alowpoly merged 15 commits into
mainfrom
infra-cleanup

Conversation

@alowpoly

@alowpoly alowpoly commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Pre-renderer infrastructure cleanup — 0 runtime edits under packages/*/src/, 217 fewer tracked files, -39,354 net lines, and -24.20 MB of dead tracked public assets.

Highlights

  • Visual & IR safety rails: Added fail-closed pixelmatch static + 360° video triptych gates (bench/visual-gate.mjs, Chromium/Firefox/WebKit, 0-leaf tag-shift guards, report.html), unified browser discovery and static server helpers, and zero-browser cross-renderer IR conformance (pnpm check:ir against compiled dist/ including */three).
  • Bench & script consolidation: Pruned 40+ dead harnesses under bench/, extracted shared helpers for chrome-trace (trace-common.mjs), packages/domformat/scripts/lib/harness.js, website/scripts/gallery-domformat-shared.mjs, and .github/scripts/is-direct-run.mjs.
  • Guards & CI: Added check:exports, check:packs, check:ir, check:guards, lockless check:mirrors --require-base with tamper-evident waivers, unified coverage across all 8 workspace packages, composite CI setup action, path-filtered visual-gate and domformat CI jobs, and unit tests for all guards (pnpm test:scripts).
  • Packaging (ESM-only): Switched all 6 publishable libraries (core, polycss, react, vue, fonts, morph) to ESM-only (-52% dist/ bytes), enabled splitting: true on core/react/vue (fixing compiled dist/three.js Context/Symbol isolation), declared sideEffects, aligned workspace deps (playwright kept pinned at 1.58.2), and shared packages/tsup.base.mjs, packages/vitest.base.mjs, and packages/tsconfig.base.json.
  • Docs, website & examples: Split AGENTS.md under 20 KB into .github/architecture/*.md with automated link checks, deleted 178 unreferenced tracked website/public/ assets (24.20 MB) and 10 dead website/src/ files, fixed 4 docs/README bugs, and fixed zoom across all 23 examples/ demos plus textured-glb, examples/html/animated, dispose() leaks, and examples/vue tsc.

Verification

  • pnpm verify (guards, tests, builds, typecheck, check:ir 7/7, check:packs 7/7, bench:build, 4 examples) — PASS
  • pnpm test:coverage (all 8 packages) — PASS
  • pnpm --filter @layoutit/polycss-website test:domformat-tools && verify:domformat (304 models) + pnpm build:website — PASS
  • pnpm --filter './examples/*' -r exec tsc --noEmit — PASS
  • pnpm --filter @layoutit/polycss-domformat pack:check — PASS
  • pnpm eval:selftest — 14/14 mutations caught
  • Live bench/visual-gate.mjs --mode ci --base-ref origin/main --browsers chromium,firefox — 27/27 strict (0 px diff) + 26/26 parity PASS

…er, gate modules, Vitest configs, and prune 11 dead files
…t-run helper, and slim tsconfig build configs
@alowpoly
alowpoly merged commit 129f9af into main Dec 3, 2026
4 checks passed
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