anchor takes the place's speed bound, so the view never turns past it while the first tiles load, and the rig no longer installs it. The owner keeps one
listener (same function, same place in cameraState's order) so a re-anchor cannot move it behind the old rig's. A change of mode eases phi (shownPhiAt) and
the offset the clamp releases or takes over EASE_MS, keyed finely in the same WAAPI animation. prepare waits PREPARE_DEADLINE_MS for the first arc, then draws
with the tiles held (the rig asks for the rest) or, with none, is the sky alone.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- cameraState holds the chosen mode (persisted) and a non-persisted hold flag;
the mode in effect is still while held. A rebuild keeps the hold, a reload is
a Return, and picking a mode (the chosen one included) ends it.
- The speed bound is applied at read in heading.ts (setSpeedLimit); the stored
speed and offset are the viewer's and nothing writes them back.
- ensure(arc, first): the tiles are asked for and made nearest first to the arc
the view shows now, then outward along the sweep.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- cameraState owns the mode; heading.ts keeps only where the view was at a
clock and integrates under the choice, listening to it. A manual turn sets
the mode to still, so a rebuild or a reload keeps the hold and choosing a
mode again (the one the viewer had included) resumes it. The second copy of
the mode in heading.ts and the sync that re-applied it at every scene build
are deleted. Reduced motion is an override in heading.ts (freeze).
- offsetRange takes the mode (and the camera's angle): the forward bound
camera.r_max_forward_m where the camera stays on its heading, the worst-case
camera.r_max_m where it circles and for a backward offset, the nearest card's
foot clamp on both sides where the circle takes the offset round to phi 180.
The default +200 m is clamped by the range of the current mode.
- maxSpeed: the speed the baked resident count sustains, applied to the stored
choice at the scene start and on every change.
- sweepArc: the arc of every pose of the next 30 s, sampled four times a
second; the rig mounts and asks the loader for that, and lays out in the same
tick as it issues a stretch.
- heading.normalize brings h and phi into [0, 360) before each stretch, so
transforms and tile positions stay small however long the page is open.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A tile's files were fetched one card after another with no timeout, and a
failed tile was asked for again every 500 ms for as long as it stayed in the
arc. Requests now queue to FETCH_PARALLEL over every tile of the pass, each
gives up after FETCH_TIMEOUT_MS (aborted), a tile that failed is asked for
again after a pause that doubles from 1 s to 60 s, and a file the server
answers 404 or 410 is not asked for again while its tile stays: the scene draws
the tile's other cards. The load and keep margins move to ring.ts, where
view.ts's speed bound spends them.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The tile files are unchanged (same bake id); the manifest gains the forward
offset bound. The assets gate recomputes the resident run at the larger of the
two offsets.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
r_max_m holds over every angle of the camera on its circle, which only the
offset-only rotation mode reaches. Where the view direction turns with the
camera phi stays 0 and the linear map holds further out: the baker ships that
bound too (same FIT_PX_MAX, same half-nearest-distance cap, same resident gate,
refused if below r_max_m).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A mutant that flipped the offset's sin(phi) term survived: the phi 90 test read
the shift by magnitude only. It now requires the shift to the left for a camera
clockwise of the heading and to the right for the other side.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
harness/scene/ridgeSheet.html lights a baked place by tile and draws each cell with
createRidgeScene at tier still; ?views=heading:phi:offset renders a heading across
north and the offset-only rotation mode. The scene README and the ridge target
doc replace the drift with the ring, the heading owner and the camera pose.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
public/ridge replaces the 72 degree window bake with the ring bake from the baker
cut (32 tiles per card, 192 tile files, 1.6 MB, bake id 64118fed28c7). The assets
gate is recomputed for schema 3: per-tile and per-place byte caps, the resident
run from the manifest alone (export.py run_tiles), each tile file's WebP size
tile_w + 2 apron by its band, the bake id re-derived tile-major, no stray files.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The rig is a box per card holding that card's resident tiles, carried by one
animation of cardPose sampled each second over 30 s from heading.ts and the
viewer's offset, reissued at 80% and on any change; a 500 ms timer asks the
backdrop for the arc ahead and mounts what it has made. The reach animation,
DRIFT_LEG_S and the drift's easing are gone. prepare() anchors the heading and
awaits the first arc; a stale or failed build disposes its backdrop.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
lightCards becomes createLighter: the sun columns and the sky table span the ring
in absolute azimuth, the ground noise is a function of the ground point and so
periodic over the wrap, and a tile is lit from its own files with one overlap
column kept each side. loadBackdrop (every card, at build) becomes createBackdrop:
ensure(arc) fetches, decodes and lights one tile at a time and evicts beyond the
arc and two tiles; a failed tile is retried, never thrown into the scene.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
cardMotion, DRIFT_FRAC, driftPx, headingMaxDeg and the per-card scale are deleted.
ring.ts owns wrap-around and a card's distance at an azimuth, heading.ts the
view direction and the camera's angle on its circle, cameraState.ts the viewer's
mode, speed and offset; view.ts derives a card's pose and clamps the offset.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The 0.1 pin is back on the 3-12, 4-15/10 and 6-14 km fixtures; 0.04 stays on 4-15/6, 5-30 and 8-40 (closing the seam on the ring tears them above it). Albedo: mean 0.021, p99 0.081 (measured maxima 0.0202, 0.0806).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The per-column median distances inside a tile are no longer part of the fit: the card sits at the tile's distance_m, as ruling ridge-offset-range-fit has it. Vienna's r_max_m is 98.2 m (was 56.1).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The 72 degree window and the baked camera are deleted. The march's 6400 columns are the bake: seams run periodic round the ring (DP over three laps, middle kept), ridge.cards runs per tile on 204 columns with the matching normals, and the vertical anchors read the skyline of the whole ring. Each card tile carries its own distance_m; camera.r_max_m is the largest offset the per-card linear slide fits within 24 card px (and the resident gate allows). Tile, place and resident budgets replace the window's. Manifest schema 3, baker version 4. Tests and mutants rewritten for the ring.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- skyPlace.ts is the only writer of the sky's place: the manifest's when the cards load, FALLBACK_VIEW's
when the manifest or cards fail; the scene draws the view it told the store, so sky, weather, ink and
Auto agree on every drawn state (Auto ticks on the fallback).
- useSkyPlace removed: only a scene start fetches the manifest.
- Old-key migration writes the new key first; a refused write keeps the pick for the page load.
- A named moment re-resolves when the place-local day rolls over (the one timer); Night is the nearest
solar midnight (before the day's noon the one just passed or coming), keyed by the instant drawn.
- Baker validate/schema check place.tz as load_preset does; Vienna manifest baker_version 3 (it carries tz).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Seven radio items plus Pick a moment, which opens a date input and a 5-minute time slider that show the
place-local time and zone and commit on the native change event (slider release), never per input tick.
The picker opens from the moment being drawn, in the place zone (seedFree).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Tests move to SkyChoice and the sun-taking makePhysicalSky; the harness sheet takes the six named moments
on both solstices (?named=1).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
skyState.ts holds the choice, the place and the lines and resolves the band through momentFor and skyBand;
resolveSkyState, LAT and the page-zone clock approximation are deleted. skyPlace.ts shares the manifest with
the scene; hooks, theme and ink take an undefined sky until a place is known. Old 'ratatoskr.skyState' is read
once and removed; the choice persists as 'ratatoskr.skyChoice'.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
places.json tz per preset, load_preset refuses a missing or unknown zone, schema regenerated,
BAKER_VERSION 3; runtime rejects a zone Intl does not know; Vienna manifest gains the one line.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
momentFor(choice, place, now) and skyBand are the one owner of the instant and the band.
sunAt.ts loses STATE_ELEVATION, solarNoon and sunForState; makePhysicalSky takes the sun it is given.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
sceneDrawn.ts owns the flag and html[data-scene] together; BackgroundScene
publishes through it (start, stop, context loss and restore). A failed or
lost scene leaves the person's stored theme in force.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
sceneThemeId is a function of the resolved sky and sceneOn; the person's
theme stands only where no sky is drawn. Deletes userChoseTheme,
chosenTheme, themeChosen and skyThemeId (ratatoskr:ruling:ink-follows-drawn-sky).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
skyBackdrop/BACKDROPS and the tests that held login text against sky bounds are gone (the bounds were false: the look is tuned by eye). The vertex-carry guard asserts placement only. d3-celestial's BSD-3 text is in THIRD_PARTY_NOTICES.md.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
About 31 degrees of sky in a 16:9 cell. The vertex-star guard drops to 0.8:
low vertices sit in the moonlit haze at this framing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Under a full moon at the new framing every constellation-line vertex in the sky strip now carries a drawn star (was 24 of 34); a test pins it.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
windowFor places the plane so its horizon row lands at HORIZON_AT of the height, the same for every sky state and viewport; the plane runs below the viewport bottom (negative bottom) and the near plain is cropped. Every consumer already read the camera and plane from windowFor; the sheet's card placement now reads plane.bottom too, and takes ?h= for a phone-shaped cell. Tests pin the constant horizon, ~35 degrees of sky in a 16:9 cell, and plane coverage with baked ground to spare at 1024x768, 1920x1080, 375x812.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The night set renders new, first-quarter and full moon at four hours each plus deep dusk. Night exposure keys the sky to where the curve wants it so the per-channel curve does not turn the scotopic blue shift into a saturated sky.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
pickSkyState (the menu's pick): Night while the choice is Night toggles the lines, stored in ratatoskr.skyLines (storage wrapped), told to listeners as a sky change; the rebuild key carries ':lines' at night so the scene is rebuilt with the option. Sky menu Data section credits BSC5 and d3-celestial (BSD-3-Clause).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
nightBodies.ts places the catalogue stars for the sky's own moment, adds their radiance (extinction, B-V colour, point spread) to the dome behind them and takes the sky's display, so twilight hides them; the moon is drawn with its terminator and earthshine; lines over the stars when asked. stars.ts keeps the twinkle schedule, now a gain on a star's flux. Ridge.ts bakes the bodies and takes a lines option.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
nightSky.ts holds the night's photometry (moon magnitude by phase, Krisciunas & Schaefer; airglow; star radiance; colour from B-V). The moon gets its own atmosphere bake for the night state and lights the dome, the clouds, the haze lookup and the cards (replacing nightAmbient and the cel bands' sun at night). Night loses its fixed knots and 0.043 ceiling: it adapts like day with the targets scaled by partial adaptation, a scotopic grade (Jensen 2001 luminance, blue shift) before exposure in CPU and shader, NIGHT_CEILING tunable (1). The ink-ceiling test for night is dropped with the ceiling.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2887 stars (Vmag <= 5.5) and 150 line chains, 21 KB packed. Placement precesses J2000 to the date and uses sun.js equatorialToHorizontal; tests hold five stars and the moon to astropy's altitude/azimuth within half a degree.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
sun.js exports daysSinceJ2000, gmstRad, sunEquatorial and equatorialToHorizontal (sunPosition is now their composition, unchanged in value). moon.js adds the Astronomical Almanac low-precision moon, phase from elongation (Meeus 48.3), topocentric position. Tests against Meeus ex. 47.a and USNO phases.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>