Skip to content

Consolidate workspace + refactor biome visualization engine#25

Merged
ctavolazzi merged 6 commits into
mainfrom
dev
Mar 27, 2026
Merged

Consolidate workspace + refactor biome visualization engine#25
ctavolazzi merged 6 commits into
mainfrom
dev

Conversation

@ctavolazzi

Copy link
Copy Markdown
Owner

Summary

  • Workspace consolidation: Brings in all code from the integration/all-code-20260327 branch — oracle-cycle endpoints, sitrep hub guardrails, biome visualization engine, meme lab, cognitive prosthetics CLI, pantheon, promotion review, visualizer packages, tests, docs, scripts, and work efforts
  • Biome engine refactor (commit ef5ab266): Extracts shared utilities, fixes per-frame allocations, consolidates shaders, and simplifies event handlers across the 3D aquatic visualization engine
  • 404 configurator gitlink (92322718): Standalone configurator update

Biome refactor details

Change Impact
New engine-shared.ts — shared constants, presets, debug helpers, ripple logic ~80 lines of duplication removed between WebGL/WebGPU backends
Cached Color, Fog, scratch Vector3 in both engines + caustics 12+ per-frame heap allocations eliminated from 60fps render loop
shaders/index.ts barrel + 11 standalone .glsl reference files ~120 lines of inline GLSL extracted into structured module
Factory functions slider(), checkbox(), select(), textInput() in +page.svelte ~25 boilerplate handlers → 4 factories + 6 custom handlers

Net biome change: -491 / +184 lines across 6 modified files + 13 new files

Key biome files changed

  • visualizer/src/lib/biome/engine.ts
  • visualizer/src/lib/biome/engine-webgpu.ts
  • visualizer/src/lib/biome/caustics.ts
  • visualizer/src/lib/biome/rain-system.ts
  • visualizer/src/lib/biome/engine-shared.ts (new)
  • visualizer/src/lib/biome/shaders/index.ts (new)
  • visualizer/src/routes/biome/+page.svelte

Test plan

  • npm run check in visualizer/ — 0 TS errors in biome files (confirmed)
  • Load /biome route — water renders, orbit controls work, rain overlay visible
  • Toggle caustics, sky, WebGPU mode, rain presets
  • Exercise all sliders/checkboxes in control panel
  • Verify ?debugBiome=1 query param logging

https://claude.ai/code/session_018k8MaN75eTLbCfA8zrtGfe

ctavolazzi and others added 6 commits March 27, 2026 07:48
… consolidate shaders, simplify handlers

- Extract duplicated code between WebGL/WebGPU engines into engine-shared.ts (~80 lines removed)
- Eliminate 12+ per-frame heap allocations in 60fps render loop (cached Color, Fog, scratch vectors)
- Move ~120 lines of inline GLSL into shaders/index.ts barrel with standalone .glsl reference files
- Replace ~25 boilerplate event handlers with 4 factory functions in +page.svelte (~140 lines reduced)

Net change: -491 / +184 lines across 6 modified files + 2 new modules + 11 .glsl files

https://claude.ai/code/session_018k8MaN75eTLbCfA8zrtGfe
…le checkout to CI

- Remove 29 submodule entries from git index that had no .gitmodules mapping
  (caused `fatal: no submodule mapping found` during checkout)
- Regenerate uv.lock to resolve empirica from PyPI instead of stale
  `_unified/empirica` editable path that no longer exists
- Add `submodules: recursive` to all 3 CI checkout steps

https://claude.ai/code/session_018k8MaN75eTLbCfA8zrtGfe
The xuehai template submodule has broken nested submodules that cause
recursive checkout to fail. Since CI only runs Python tests, linting,
and project verification, no submodules are needed.

https://claude.ai/code/session_018k8MaN75eTLbCfA8zrtGfe
awakening_app was referenced on line 1041 but never imported,
causing NameError on `waft verify` in CI.

https://claude.ai/code/session_018k8MaN75eTLbCfA8zrtGfe
@ctavolazzi
ctavolazzi merged commit f8ed619 into main Mar 27, 2026
8 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.

2 participants