Card 0's rows under the 500 m near clip are the calm skirt; r_max_m 113.4 and r_max_forward_m 234.9 are the fit bound of the terrain beyond the clip (nearest card 592 m), not the clip floor.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Card 0's rows under its first sample are wall rows like every other card's, coloured from the ring-blurred sample-0 height, so the near ground no longer extrudes one sample per column. NEAR_CLIP_M names the march start; write_bake refuses a card 0 nearer. set_view gains a horizon anchor (GROUND_ROWS_MIN = 150 rows under it, exaggeration floor 0.5x, refusing a skyline that cannot hold them); validate_manifest and manifest.ts refuse a short plane, and offsetRange loses its keep >= 1 case. Baker version 6; no bake is rebaked here.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
swap-lag: a plate is repainted first (`refit`), then everything is keyed from a clock read after the paint, on the issue path and the residency path alike; paint time is no longer lag.
recentre-margin-zero: the recentre margin is the speed in force (heading.ts turnRate) over the tick's real period plus a 2 s lateness budget; the slack is sized to the same speed, and a plate is repainted when a faster turn asks for more.
twinkle-reroll: the twinkle schedule runs over the catalogue (Star.id), so a swap keeps which stars swing and their phase, and the new twinkle canvas is drawn before it is shown.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
ridgeLive.html runs one tier-full scene for a CDP driver (hold, pose, plate edge, plate paint cost, long tasks); ridgeSheet takes &sun=az:el so a column's sun can
stand where a turned camera should see it.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The live scene paints its physical sky into one plate element, 20 degrees wider than the viewport each side, centred on the heading heading.ts owns, with
the twinkle canvas as its child, and slides it on the same keyframes as the cards (translate by -(h - centre) px per degree; the sky is at infinity).
A residency tick or a reissue paints a new plate about the heading when it is within 14 degrees of the plate's edge and swaps it in the same tick.
The host canvas now holds only a still's sky (painted facing the still's frozen pose) or a gradient; the fixed full-viewport twinkle overlay is gone.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A rebuild with no tile stays pending (its loader retries) and replaces the shown scene the moment it holds one; a newer rebuild supersedes it. sceneDrawn owns the drawn sky; the door tells it the band of the scene it shows, and the theme and ink hooks read it, not the announced band. A rebuild over a sky-only scene keeps the first-load deadline.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A build a newer one supersedes is given up at once (its backdrop disposed, its requests aborted) instead of running to the end of its pass: five quick sky picks on a slow link left five backdrops and lighting contexts alive. A rebuild that ends with no tile no longer swaps a ridge that was fine for the sky alone and tells the host its planes failed: the scene that is up stays, its own backdrop is disposed, and the next change of sky tries again. Only a first load that ends with no tile is the sky alone.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
heading.ts holds one segment: the pose (view direction, camera angle, offset) at t0, the mode and bounded speed, and the ease to the pose the inputs owe. poseAt(t) is a pure function of it. Any change (a mode pick, a hold, a resume, the speed, the offset slider, a new bound, reduced motion, a place) starts a new segment from poseAt(now), and the order of the two stages (the angle first when the camera goes to stand on its heading, the offset first when it goes off it) is decided from that pose against the bound, so every pose inside an ease is inside the bound from wherever it starts.
Deleted: the change log in cameraState (takeChanges, CameraChange: the owner is one synchronous hook called before every listener, no queue), the offset ease and its closure state in Ridge.ts (offsetNow, offsetFrom, offsetAt, easeLeft, easeEndsAt, offsetFreeAt, shownPhiAt), and the rig's camera subscription (the rig hears heading alone). A rebuild reads poseAt(now) and lands exactly where the old scene was.
Vienna rebaked under the continuous measure: vienna-2aac8e6fee59, r_max_m 95.8 (was 98.2), r_max_forward_m 198.4 (was 205.4); the worst card is at 24.0 px by the continuous measure. Tests: a pick made while an ease is under way and a rebuild in the middle of one at Vienna's bounds, and a seeded property run of picks, holds, speeds, offsets and rebuilds at random times checking every laid-out pose against the bound and the owner's pose, and continuity across rebuilds.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A still has no residency timer, so a tile that failed in its first pass was never asked for again and the ridge kept an 11.25 degree hole until reload. The loader now keeps the arc last asked for and, when a tile of it failed, asks again at the end of its pause (doubling to a minute, as before) with no one asking; the arc moving away or dispose ends it, a 404 is still not asked for again. Residency timers say which tiles are wanted and nothing else.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
fit_px took the least-squares line of 33 uniform samples and the error on the same 33: the line was biased by its end samples, so the shipped bounds were at 24.7 and 26.3 card px by the continuous measure. The line is now the quadrature of the viewport (Gauss-Legendre, 48 nodes) and the error is looked for on 513 points; a fixture checks it against a 20001-sample brute force within 0.1 px at the offsets the bound is set at.
write_bake wrote manifest.json and index.json with Path.write_text, which ends lines with CRLF on Windows while bake_id hashed LF: the bytes served were not the bytes the id was hashed from. They are written as bytes now; the fixture runs the writer with a text writer that ends lines CRLF and checks the id from the bytes on disk.
Mutants: the 33-sample line, a two-node quadrature, and each text write.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>