Skip to content

refactor: prune dead code, harden SSR/parity/preview bugs, and add agent guards - #99

Merged
alowpoly merged 4 commits into
mainfrom
fix-agent-friction
Dec 4, 2026
Merged

alowpoly merged 4 commits into
mainfrom
fix-agent-friction

Conversation

@alowpoly

@alowpoly alowpoly commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Remove unreachable dead code across core and renderer (planeNormalize.ts, lightVisibility.ts, asyncRender.ts, seamRepair mutators, dead shadow/camera/parser exports) — net -2,569 lines across 4 commits without touching render strategies or packages/domformat.
  • Type previewBakedSolidLighting / commitBakedSolidLighting / clearBakedSolidLightingPreview on PolySceneHandle, fix preview state-machine teardown across auto-rebake, dynamic switch, and manual setOptions calls, and partition packages/core/src/index.ts into Part 1 (Public User & Headless API) and Part 2 (Renderer & Morph Contract).
  • Fix verified runtime, SSR, and parity bugs: translucent voxel rgba(NaN, ...) shading, React SSR <PolyTransformControls> getServerSnapshot + useIsomorphicLayoutEffect, Vue SSR async src fetch guard, multi-action animation highest-weight metadata, standalone <PolyMesh> seamBleed, PolyThreeOrthographicCamera inline perspective: 1000000px, custom-element observed attributes (distance, target, cast-shadow, receive-shadow, exclude-from-auto-center), Vue PolyShapes full SHAPE_MESH_PROPS/SlotsType/expose parity, shared shadowOptionKey, and missing React/Vue barrel exports (PolyPointLight, PolySeamBleed*, spherePolygons, ringQuadPolygons).
  • Tighten AGENTS.md, .github/architecture/rendering-and-shadows.md, and packages/skills/skill/ (synced to website/public/skill/), add .github/scripts/check-elements-observed-attrs.test.mjs, expand bench/lifecycle-gate.mjs Node SSR checks (fetchCalls=0), and add a fail-closed breaking-export semver guard to .github/scripts/bump-versions.mjs.

Release Note

  • Because previously exported dead symbols were removed since v0.2.11, the next npm publish must use bump=minor (0.3.0); bump-versions.mjs now enforces this automatically.
  • After merge, reset .github/mirror-waivers.json back to {} in a clean 1-file follow-up.

Local Verification

  • pnpm verify (166 script tests, all package & website tests, builds, typechecks, IR, packs, examples)
  • pnpm test:coverage (8/8 packages)
  • pnpm --filter @layoutit/polycss-website build (23 pages)
  • pnpm bench:gate:lifecycle (13/13 Node SSR + Chromium)
  • pnpm bench:gate:perf -- --base-ref main (9/9 Chromium A/B, 0 per-frame DOM mutations)
  • Chromium (--software-backend) + Firefox visual gate vs main (55/55, 0 px strict mismatch)

@alowpoly
alowpoly merged commit 936b103 into main Dec 4, 2026
6 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