prepare() does every await and returns a synchronous make(); rebuild swaps after the load and a stale or disposed build is never made, so it never speaks. onPlanesFail/onPlanesOk are announced for the scene that won, on change only; a success is silent. Tests cover held decodes, post-dispose and superseded failures, the manifest-view sun, and the fallback sky after a failure.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The baked planes are haze as alpha, so b laid over a at opacity w doubled the haze mid-blend and popped when the choice collapsed to b alone. crossfade() is the one rule: a at 1 - w plus b at w, summed in an isolated group (plus-lighter in the rig, lighter in an offscreen for the still). Tests pin composite = lerp on alpha planes, BLEND_EDGE, and the noon azimuth split.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
createRidgeScene takes a decoded Backdrop and adds one rig (far, mid, near) with transform-only drift; index.ts create() loads manifest, frame choice and planes with the scene chunk; BackgroundSceneConfig.place; vite copies public/ridge. Tests also cover resize debounce, listener removal and the window-size fallback.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Cuts ridgeWorld, ridgeBake, horizon.ts, viennaHorizon.json, bake-horizon.py and the layer/rig/drift half of Ridge.ts, the
HORIZON_CREDIT line, onBake, and the dead SkyColours fields (ground, sunAzimuth, band). Rollback is the tag
parked/ratatoskr-noise-ridge (ruling ridge-ad-rollback-tag).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
relight_planes splits the opaque relight into three straight-alpha planes
by the affine-haze trick; the premultiplied colour is made exact over the
reference haze per channel (a scalar alpha alone drifts 34/255 on the far
plane, because the haze share differs per channel). export.py bakes a
place, writes WebP planes, manifest.json and index.json under a budget.
Tests: the straight-alpha test compared a hazy body with a few solid ink
pixels (fixture, not code); the rebake fixture replaced a plane with one
that had no solid pixel; an everywhere-opaque plane decodes as RGB, now
read back as RGBA.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Moved from the mockup workspace: ridge.py, sun.py, places.json, tests. core.py is
dropped (ridge.py only imported its save_png, unused; the rest carried hard-coded
paths). places.json is read beside ridge.py; tiles and caches come from RIDGE_TILES
and RIDGE_WORK.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
phoneHit.coverage.test.ts walks every .tsx under src/app and fails on any IconButton without a PhoneHit class
unless it is named with its reason (EstateNavigator Find a room, LobbyHeader Members). UrlPreviewCard's two
absolute arrows take PhoneHitInPlace, which adds the hit area without PhoneHit's position: relative.
Editor.preview.tsx was imported nowhere and held 11 bare IconButtons.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
className must appear once, with no spread after it, as the imported PhoneHit*
identifier bare, a classNames/clsx/cx direct argument, or a template span, and
the identifier must occur nowhere else in the expression. Tag enumeration uses
the same AST. expectPhoneHitClasses takes (string|null)[] (null = no class), as
the phone-hit-pages branch does, and is exercised by a test on a temp source.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A PhoneHit name inside a string, built by concatenation, behind ?:/&&/||/??, or
followed by a props spread that can override className no longer satisfies the pin.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>