Commit graph

2,225 commits

Author SHA1 Message Date
Meta Vens
128fda5ec5 ridge-bake: the fit gate measures the continuous error, the manifest and index are written as bytes
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>
2026-11-23 04:20:56 +01:00
Meta Vens
7b92d5c6ee ridge heading: the owner computes on read from the clock and the changes the viewer made (no listener, no order); a mode pick eases the camera's inputs in two stages, the angle and the offset one after the other, each pose a real pose inside the fit; reduced motion has no ease
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 02:54:28 +01:00
Meta Vens
aeace1f346 ridge still: the backdrop tells of each tile it makes, and a still rebuilds once per burst of arrivals (the same debounced rebuild as a resize), so the tiles that come after the deadline are drawn
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 02:45:30 +01:00
Meta Vens
5ed3327b14 scene start: the deadline is for the first scene alone; a rebuild keeps the scene it replaces until the new one has its tiles, and never swaps to the sky alone for want of time
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 02:45:28 +01:00
Meta Vens
801fdf3e31 ridge assets: public/ridge is checked out as committed (-text), so a Windows checkout serves the bytes its bake id was hashed from; the asset test hashes the real bytes and pins the attribute
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 02:41:04 +01:00
Meta Vens
0f4739f8b8 ridge assets: Vienna rebaked under baker 5 with the new bake id vienna-6c0b4df70bf5 (tiles byte-identical, manifest now inside the id); the asset test hashes the manifest too
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 02:23:49 +01:00
Meta Vens
fcfa26c2bc ridge-bake: bake_id addresses the whole bake, the manifest as written (its id blanked) and then the tile files, so a manifest change is a new directory
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 02:23:47 +01:00
Meta Vens
fa2e216039 ridge runtime: the speed is bounded from the anchor, the owner settles before the rig reads it, a mode pick eases the view, and a scene start has a deadline
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>
2026-11-23 02:09:27 +01:00
Meta Vens
32bcc2490a ridge loader: a freed slot is handed to the next waiter, so the cap of six holds under arc churn; dispose gives up the requests of the pass in flight
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 02:09:25 +01:00
Meta Vens
898ace2291 ridge runtime: the hold is session state in cameraState, the clamps are derived at read and never written back, fetches go nearest the view first
- 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>
2026-11-23 01:34:07 +01:00
Meta Vens
76d02e1997 ridge-bake tests: the forward offset is searched at phi 0 alone (a mutant that searched the circle survived)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 01:27:52 +01:00
Meta Vens
35c3f825a8 ridge runtime: one owner of the rotation mode and the hold; the offset range and the speed bound per mode; the arc swept, not sampled at its ends; the heading kept bounded
- 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>
2026-11-23 01:01:57 +01:00
Meta Vens
b4232c9c55 ridge runtime: the loader asks for files six at a time against a timeout, backs off a failed tile and gives up on a 404
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>
2026-11-23 01:01:36 +01:00
Meta Vens
40573e5c32 ridge assets: Vienna rebaked with camera.r_max_forward_m (205.4 m, r_max_m 98.2 m); the manifest and the gate read it
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>
2026-11-23 00:53:07 +01:00
Meta Vens
86063b86ff ridge-bake: camera.r_max_forward_m, the offset bound with the camera on its heading (phi = 0 alone); baker version 5
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>
2026-11-23 00:44:43 +01:00
Meta Vens
5fb77e2bcd ridge runtime: view test pins the sign of the camera's sideways shift
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>
2026-11-23 00:11:13 +01:00
Meta Vens
44ad930253 ridge runtime: look sheet draws through the app's still path and takes views; README and target describe the ring and heading
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>
2026-11-23 00:06:18 +01:00
Meta Vens
94cfae1945 ridge assets: Vienna as a ring bake (schema 3, r_max 98.2 m); the gate reads tiles
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>
2026-11-22 23:43:44 +01:00
Meta Vens
19d49cbd46 ridge runtime: one box per card posed from the heading owner; tiles mounted by arc
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>
2026-11-22 23:39:20 +01:00
Meta Vens
0f7a297339 ridge runtime: a lighter per sky, tiles lit by ring column; a backdrop holds tiles by arc
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>
2026-11-22 23:31:55 +01:00
Meta Vens
e82b6cf01f ridge runtime: ring, heading, cameraState; view without a window; manifest schema 3
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>
2026-11-22 23:27:48 +01:00
1ef6abab13 Merge pull request 'Ridge baker: the ring is the bake (32 tiles per card, schema 3)' (#177) from void/ridge-ring-bake into dev
All checks were successful
Rat dev preview / Build dev preview (push) Successful in 3m49s
2026-11-22 22:04:34 +00:00
Meta Vens
069df981f9 ridge-bake tests: r_max at R = d, the 0.1 seam-prior pin back where it holds, tighter albedo bounds
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 3m34s
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>
2026-11-22 22:48:46 +01:00
Meta Vens
30e4ee549a ridge-bake: r_max_m fits each card tile's linear map at its own distance (R = d)
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>
2026-11-22 22:48:46 +01:00
Meta Vens
920e37e385 ridge-bake tests: pin the tile cut, the ring anchors and the apron against mutants; mutate.py takes name filters
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 22:10:31 +01:00
Meta Vens
dbef945493 ridge-bake: README and places.json for the ring, tiles and r_max_m
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 21:25:12 +01:00
Meta Vens
65db62c986 ridge-bake: the ring is the bake, 32 azimuth tiles per card (schema 3)
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>
2026-11-22 21:25:09 +01:00
d851a5fca9 Merge pull request 'Sky menu: Auto, six named moments and a free moment, in the place's local time' (#176) from void/sky-menu-moments into dev
All checks were successful
Rat dev preview / Build dev preview (push) Successful in 3m55s
2026-11-20 23:12:54 +00:00
Meta Vens
cd81f85d05 Sky menu fixes: one owner of the drawn place, Night is tonight's, named moments roll
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 3m32s
- 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>
2026-11-21 00:07:01 +01:00
Meta Vens
3269250d19 Scene README: the sky choice, the moment authority and place.tz
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 23:42:49 +01:00
Meta Vens
e948f99f9e Sky menu: Auto, six named moments and a free moment picker
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>
2026-11-20 23:42:48 +01:00
Meta Vens
4597539976 Tests and look sheet follow the moment authority
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>
2026-11-20 23:36:08 +01:00
Meta Vens
ca77bacb4a Sky choice store: Auto, named or free moment resolved at the loaded place
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>
2026-11-20 23:36:06 +01:00
Meta Vens
8e44479792 Place carries its time zone: baker writes place.tz, manifest parses it
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>
2026-11-20 23:23:26 +01:00
Meta Vens
fbe9c9a930 Sky moment authority: skyMoment.ts decides the drawn instant; sunForState deleted
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>
2026-11-20 23:23:24 +01:00
Meta Vens
6524621ead Idunn recipe: pin dist d62be29f (release a7: ink follows the drawn sky)
All checks were successful
Rat dev preview / Build dev preview (push) Successful in 3m57s
Build pull request / Build pull request (pull_request) Successful in 3m20s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:12:10 +01:00
d62be29fd4 Merge pull request 'Ink follows the drawn sky' (#174) from void/ink-follows-sky into dev
Some checks failed
Rat dev preview / Build dev preview (push) Has been cancelled
dist-d62be29f
2026-11-20 22:09:04 +00:00
Meta Vens
8567439786 useSceneOn reads whether a scene is drawn, not whether one is configured
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 3m50s
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>
2026-11-20 23:08:32 +01:00
Meta Vens
e4ae831b5a The drawn sky alone decides theme and ink while a scene is on
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>
2026-11-20 23:00:30 +01:00
Meta Vens
248839974b Idunn recipe: pin dist f562f8fa (release a6: painterly cel-3 look, real night sky, more sky in the frame)
All checks were successful
Rat dev preview / Build dev preview (push) Successful in 3m9s
Build pull request / Build pull request (pull_request) Successful in 3m28s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 21:56:14 +01:00
f562f8fae9 Merge pull request 'Ridge look and night sky: painterly cel-3, fitted tone curve, real stars and moon, more sky' (#172) from void/ridge-night-sky into dev
Some checks failed
Rat dev preview / Build dev preview (push) Has been cancelled
dist-f562f8fa
2026-11-20 20:51:22 +00:00
Meta Vens
d84a31ce79 Delete the unused MARGIN constant
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 3m43s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 21:50:36 +01:00
Meta Vens
01d74b8188 Delete the sky-backdrop contrast apparatus, the sun-disc floor and dead star/tone code; keep stars out of the moon disc
Some checks failed
Build pull request / Build pull request (pull_request) Has been cancelled
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>
2026-11-20 21:50:20 +01:00
Meta Vens
0089cd956a Ridge framing: horizon at 0.85 of the viewport (operator, by eye)
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 3m56s
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>
2026-11-20 21:33:04 +01:00
Meta Vens
53910b1e5b Brighter stars, second step: point spread 1.5 arcmin, contrast exponent 0.8; the test now asks for a visible lift (20 of 255) at the vertices, not just a drawn star
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 21:15:25 +01:00
Meta Vens
3185ea90c1 Brighter stars: smaller point spread, gentler contrast compression, larger points (starting values; the operator tunes by eye)
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>
2026-11-20 21:12:47 +01:00
Meta Vens
0fd1ec45ae Frame: the horizon sits at one authored fraction of the viewport (HORIZON_AT 0.95), set by windowFor alone
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>
2026-11-20 21:11:31 +01:00
Meta Vens
9d0764f23a Harness: ?labels=1 debug option names each constellation chain in frame (ids fetched from d3-celestial at run time; not shipped)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 21:03:29 +01:00
Meta Vens
5e64e83389 Pin the night bodies under the cards: still paints every line, star and moon before any card; live keeps them in the host canvas under the twinkle canvas and the rig
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 20:57:52 +01:00
Meta Vens
c18d3e3e9d Harness README: night sets and the night look's knobs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 20:53:23 +01:00