{
  "date": "2026-10-27",
  "status": "Source audit; live integration proposed, not implemented or performance-tested",
  "source": "/Users/andyed/Documents/dev/protoplasm-eye-testflight",
  "commit": "61d83a1",
  "scope": "Latest inspected build-16 source; older liquid-light-warp master was compared and not used as current feature authority",
  "finding": "A live view can reuse each enabled projector's actual simulation and optical output texture. One, two or three plates must follow the active layout.",
  "features": [
    {"priority": 1, "feature": "Live per-plate liquid", "integration": "Sample DishOptics.getOutputTexture() from the same GPUDevice; preserve lamp, wheel, lens and image-rotation treatment from Projector.slot(). Keep the combined output on the existing compositor.", "source": "src/renderer/dish-optics.ts:352; src/renderer/projector.ts:577; src/renderer/show.ts:953"},
    {"priority": 1, "feature": "Actual stack order and active plate", "integration": "Animate geometry from existing layer identities/order. selectProjector releases held input and selects; layers() raises active to top and redistributes lamp contribution. Observing the view must not select or reorder anything.", "source": "src/renderer/controls.ts:141; src/renderer/show.ts:936"},
    {"priority": 1, "feature": "Real plate spin", "integration": "Drive glass orientation from dishAngleRad and imageRotation. Avoid rotating both texture and mesh twice. Jet modes keep the glass stationary.", "source": "src/renderer/projector.ts:538; src/renderer/flow-drive.ts"},
    {"priority": 2, "feature": "Press and local glass flex", "integration": "Show a shallow transparent pressing cap and contact depressions from getSquishDepth(), squishAt, and PlateFlex state. Use actual relaxed contacts, not invented force measurements.", "source": "src/renderer/projector.ts:272; src/renderer/projector.ts:402; src/renderer/plate-flex.ts"},
    {"priority": 2, "feature": "Jets, rotors and liquid flow", "integration": "Use the existing five FLOW_MODES for mechanism positions and direction. Optional field tracers sample velocityRead rather than decorative orbiting particles.", "source": "src/renderer/flow-drive.ts:10; src/renderer/fluid-grid.ts:14"},
    {"priority": 2, "feature": "Paint, Soap and manipulation", "integration": "Expose existing Plate / Paint / Manipulate families. Ray-to-plate picking must map to grid coordinates and account for rotation and press. Preserve manual-over-autopilot ownership and release behavior. Soap tuning remains unresolved; do not promise conservation fixes.", "source": "docs/INTERACTION_VOCABULARY.md; src/renderer/show.ts:487; src/renderer/show-input.ts; src/renderer/soap.ts"},
    {"priority": 2, "feature": "Focus, caustics and palette", "integration": "Reuse actual optical textures so focus, meniscus edges, sheen and palette recoloring remain recognizable; no synthetic alpha composite substitute.", "source": "src/renderer/dish-optics.ts:367; src/renderer/show.ts:374; src/renderer/film.ts:171"},
    {"priority": 3, "feature": "Nanite interpretation and thermal view", "integration": "Optional particle/flow and heat visualization from psi, dye, velocity, temperature and film thickness. This is a representation of existing fields; programmable nanite agents do not exist in the product.", "source": "src/renderer/fluid-grid.ts:14; src/renderer/fluid-simulator.ts:1446"},
    {"priority": 2, "feature": "Microphone response", "integration": "Reflect actual 1.0 bass-to-jiggle and highs-to-lamp behavior. Advanced musical pacing/clock/MIDI is a separate disabled-by-default development path, not the current default promise.", "source": "src/renderer/basic-audio-response.ts:9; src/renderer/show-app.ts:228; src/renderer/business.ts"}
  ],
  "architecture": {
    "recommended": "A same-device WebGPU stage-view render pass in the existing show lifecycle; no second simulation or frame-by-frame CPU readback.",
    "prototype_difference": "The current study is Three.js WebGL with synthetic liquid. Its WebGL renderer cannot directly consume the app's GPUTexture handles. Preserve the art direction, replace the rendering bridge.",
    "lifecycle": "Use onRendered subscription or an explicit post-optics render hook; do not advance simulation twice. Dispose subscriptions and GPU resources; handle texture resize/replacement and ping-pong buffers.",
    "optical_truth": "App layers are independent projector contributions added in HDR. Selection changes lamp prominence; this is not literal alpha occlusion or light physically traversing all three glass plates.",
    "output_window": "Existing output-link replays state into a separate simulation. It is not guaranteed pixel-identical live texture transport. Start in-process on one device."
  },
  "recommended_first_slice": "Read-only exploded live stack beside the unchanged final projection; reflect current enabled plates, order, color, spin and press. Orbit and spacing affect the view only. Add direct manipulation after coordinate and ownership checks.",
  "acceptance": ["All enabled plates show live content from their actual simulation", "No reseed, palette change, clock advance or reorder on entering/leaving inspector", "One/two/three-plate layouts and active order match app", "Real compositor output remains unchanged", "No second simulation or continuous GPU readback", "Hidden-view rendering stops and resources are released", "Device performance measured on Mac and physical iPhone; not inferred from source"],
  "gated_or_future": ["Advanced audio default off", "Reel export and user pause have build-specific gates; do not bypass", "Hand tracking not implemented", "Arbitrary programmable nanites not implemented", "Actual 3D liquid surface needs a read-only height/film-data interface; heights are currently partly private"],
  "changes": "Audit artifact only; application source untouched"
}
