Skip to content

home: Down from the hero dives to the first shelf only, and a shelf keeps its offset at the hero - #871

Merged
GLinnik21 merged 41 commits into
mainfrom
crx-home-hero
Oct 20, 2026
Merged

GLinnik21 merged 41 commits into
mainfrom
crx-home-hero

Conversation

@GLinnik21

Copy link
Copy Markdown
Collaborator

The owner, after trying the captions build on the TV: "On home when I scroll to the bottom press BACK and then from hero down, the animation briefly jumps to where I was before BACK and then to the first shelf as expected. Also when we go to hero, all shelves are scrolled to the beginning and when we scroll down they scroll back." Then: "2. Is not about BACK but more about hero". Both bugs were already on main before #859.

What changes for a user

  • Down from the hero dives to the first shelf only. Home rested its page by the picture's focus. After Down, the picture keeps the hero focused until the dive is half done, so the page's target stayed at the deep shelf BACK left behind. For about 7 frames the dive drew the deep shelves, then it travelled back to the first. The page now rests by the focus engine's focus (HomeScreen::rest_row). A focused hero rests the first shelf through the same rule the Library uses (ui_cards::grid_rest_scroll).
  • A shelf keeps its offset at the hero. At the hero, every shelf was drawn at its first card and slid back to its real offset on Down. The cause was a draw rule, not a reset or a request: Home's CardSource::sweep multiplied every shelf's scroll by the dive's phase (Home: the hub shelves are cards::Shelf #525). The hook is removed (CardSource::sweep, Swept, Shelf::drawn_scroll, Home's eff_scroll), so a shelf is drawn at its real offset in every phase. No shelf was refetched: the mock saw zero requests from the last walk through BACK, Up to the hero and three Downs.
  • The BACK fold from the last shelf is faster and shorter. This follows from resting by the engine's focus: the page falls with the dive instead of holding until the phase lets it go. In the app-tier rig (six shelves), the largest step rose from 171.9 to 258.9 px/frame, and the offset rests in 29 frames instead of 48. The owner saw this on the TV and approved it ("Ok good").

Verification

  • Route and UI tests on the app-tier World rig, each seen failing on the old code and passing on the fix. They read the drawn frame:
    • home_hero_route_tests.rs:

      • Down from the hero draws no heading of a deeper shelf and the first shelf's heading only rises, on a fresh boot (the control), after BACK from the last shelf, and after Up from a deep walk.
      • A shelf walked seven cards keeps its drawn card within 0.5 px at the hero and through every frame of the next dive, whether the hero was reached by Up or by BACK.
    • The screen tier (home/tests.rs):

      • the page rests by the engine's focus while the picture still shows the deep shelf (red on the old code: a billboard focus rests the first shelf at once left: 645.0 right: 0.0);
      • a retained shelf offset adds no motion to the late dive (red on the old code: left: Moving right: Settled);
      • a pointer hits the drawn card's column at every scroll. This one is a guard and passes on both.

      To run the two red cases against the old code, the shared test helper's update_grid call was given the old signature. The test bodies were not changed.

    • The two cards/tests.rs tests of the removed sweep hook are gone with it.

  • The app-tier Home request loop (bridge_test_support.rs) now performs the BACK fold and a card's Detail through the app's own paths, not a test-only copy:
    • the BACK fold through content::fold_to_hero, extracted from the World pump. It needs none of the Pump's state, so pump_navigation performs it too;
    • a card's Detail through perform_home_detail.
  • Gates on the committed tree (head 82a0875, git status --short empty before and after):
    • make check exit 0, every test result: ok (largest ok. 1840 passed; 0 failed; 60 ignored).
    • make test-hostsim ok. 974 passed; 0 failed.
    • make check-nodef clean.
    • make check-replay 3 fixtures, 6 replays, 0 failures, every replay SAME. No anchor was re-recorded.
  • Simulator, mock only, frame by frame (0 non-loopback hosts; mock version=…-synthetic):
    • Down after BACK from the last shelf: 21 frames drew a deeper shelf's heading before the fix, 0 after. The first shelf's heading rises without a dip to its rest.
    • At the hero: the peek row held its rest phase (202) instead of drawing phase 0 and sliding back.
    • Up to the hero from a deep walk: identical before and after.
  • poster-hero-grid-dive (the TV fps scene guarding The fps suite cannot grade the poster fast-scroll gate #191 gap 3) is unchanged. Its prose now describes the motion the dive has today. A simulator run still grades it: moving frames 15–16, refused_evicted 72, requested_moving 0. With the moving decline ignored, it grades red.
  • Review: one Opus review of the whole fix: 0 blockers. Its one should (the test pump's prose) and three nits (pump_navigation dropped the fold, a control test worded like a repro, the screen test's red not recorded) are fixed. It also found the focused caption now waits its full settle lag during the dive's second half, instead of lag × phase. That only shows while the shelf's x spring is moving, and it is part of the build the owner approved.
  • TV (debug flavour, release profile): the owner tried this build on the set and approved it. The TV fps run of poster-hero-grid-dive (≥55 moving fps, shelf offset held) is owed to the next TV window.
  • No Makefile, Cargo, build.rs, workflow or module-layout change, so there is no build-bench table.

🤖 Generated with Claude Code

GLinnik21 and others added 30 commits October 20, 2026 00:00
…lves

The setting claimed to caption "the same policy the shelves and the Library read" but only the
Library grid, the Watchlist and the Collections page did; Home and Recommended built their labels
by hand (title, year or time left) and reserved the legacy 114 px band.

One reader and one builder now serve every poster shelf (registry::captions: policy(), the one test
override, label(), shelf_label()). A tile that carries a state keeps it: the Continue Watching deck's
time left is its details line under every details kind but Nothing, the amber play mark leads its
title while OK plays and the title shows, and the Watchlist's state sentence rides the same rule.
An episode on a poster shelf says its address as the default details line.

Shelf and CardRow take an optional policy (None keeps the legacy band for Search, Person and
Detail); Home's settled layout, reveal band, scroll end and group extent, and Recommended's row
pitch, read band_h of the same policy.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…and the cases that do not

The audit of the previous commit found sentences it had made false. "Every poster shelf" read
the one policy, but Search, the person page and Detail's Related and Extras shelves keep the
legacy band, and the Collection screen's members use their own wording; the legacy band's doc,
the focused-caption doc, the ROW_PITCH doc and the band-travel doc still described Home as a
legacy-band shelf. "No band opens" under Details set to Nothing is true only with the Title
switch Off. The amber play mark leads the title line, so a poster deck that plays on OK draws no
mark while the Title switch is Off, which the play-indicator rule in the ui guide and the live
scenario now say. Prose only.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…to Home

A real server's Recently Added TV holds seasons, each named for its show by parentTitle, and the
generated and demo mocks only served episodes and shows there, so the simulator could not show how
Home captions a season tile. The flag (off by default, the default response is unchanged) inserts
a "Recently Added Seasons" shelf after Continue Watching, paged through its own key like the other
synthetic shelves.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…a season or any other kind

The owner saw Home's "Recently Added TV" shelf, which holds SEASON items, focus a tile and draw no
caption although a one-line Under posters setting was on. A season has no length and often no year,
genre or rating, so the picked details kind had nothing to say and the line came out empty under an
80 px band that had opened for it; and with Title On the tile read the season's own "Season 6"
instead of the show a reader knows it by.

One rule now serves every kind on every policy-driven shelf (caption_lines, fed by
tile_facts::caption_facts): the title line is the name a reader knows the tile by (a season by its
SHOW, as Plex's own clients caption it, an episode by its own title, a show or movie by its title),
and a details kind the tile has no facts for says its identity line instead: a season "Season 6" (its
own title, else "Season N"), an episode "S1 . E8", a show or movie its year, a collection its size.
Nothing still shows no details line, and the Continue Watching state rules are unchanged. The
Library grid's season special case (title "Season 3" over the show, policy ignored) is gone, so a
season there reads like one on Home; the Settings picker's samples follow the preview, so a kind the
sample poster has no facts for samples its year.

The route test on the app-tier World rig grades the focused tile's caption lines for a season (bare,
rich, self-titled), a show, an episode and a movie under every Title switch and details picker; it
failed on the old builder with ["Season 6"] where ["The Office", "Season 6"] is owed.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…, whatever the Under posters band

Home rested a focused shelf by the NEAREST scroll that showed its caption band open (ui_cards::reveal
between row_reveal_band's lo and the shelf's top). Down came to rest at lo, which sits caption_reach(band_h)
short of the bottom margin, so the focused row's y followed the Under posters band (531 / 563 / 603 for
112 / 80 / 0) and the heading of the shelf above rested at 22 / 54 / 94: under the account chip at the two
smaller bands (the owner's TV screenshot, FRAMES-8 item 5). Up rested at the shelf's top instead, so the rest
also depended on the direction of the last move.

Home now rests the focused shelf with the Library's rule (poster_grid::rest_scroll through
ui_cards::grid_rest_scroll): row 0 at 0, any other shelf with its top at GRID_TOP_Y, the document end holding
the last shelves lower. The focused heading rests at y 160 for every band and either direction, and the
shelf above has scrolled off.

A heading that rides the page under the chrome while it scrolls now fades by where it stands. The spatial
half of scroll_chrome::Handoff (clearance: 0 at or above the chrome's bottom edge, 1 an 18 px ramp below it)
is exported as clearance_under_shown_chrome for a page that keeps its chrome shown; Home owns no Handoff and
does not tuck its nav, and draws each heading at that alpha. Docs that named who owns a Handoff say so.

Tests: two app-tier World route tests (home_chrome_route_tests) over six seeded shelves, red against the old
anchor and green now: every drawn heading is clear of the chip rect and the chrome band with focus on the 2nd
and 3rd shelf under 112 / 80 / 0 and the focused heading rests at one y across the three; and no heading ink
over the chip beyond the proven bound while the page scrolls. World::drawn() now returns the drawn text runs
with their alpha (Painter::text notes the run while a host draw discovers). The Home screen tests that pinned
the old clamp are rewritten for the rest rule and a unit test pins the shared clearance rule.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…d headshots are not on it

The ux scenario and the screens and ui guides name who reads the setting now: Home, the Library,
Recommended, Search's poster rows, the person page's filmography, Detail's Related and collection
shelves and the Collection screen's members, all through the one builder in registry/captions.rs.
Landscape tiles (episode stills, Extras, Recommended's landscape rows) and headshots (Cast, Person
results) keep their own block under every setting.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… shelves and the Collection screen

Search's movie, show and collection rows, the person page's filmography, Detail's Related and
collection shelves and the Collection screen's member grid now word their focused caption through
the one builder in registry/captions.rs and size the band with caption_policy::band_h, as Home, the
Library and Recommended do. The stack hands the page's policy to its grids and shelves, Detail sets
it on the shelves it owns, and the settled height of a policy shelf uses its own band. Person
results, the landscape Episode row, Extras, Cast and Recommended's landscape rows are not posters
and keep their block under every setting.

A filmography poster's character is the tile's own state and replaces the details line under every
setting but Nothing. A friend's server handle is credited after the details line. The Collection
screen's members no longer use poster_label (removed); an episode member reads the title over its
S/E numbering.

Two gaps in the shared builder are closed there and not per tile: a tile with no picked fact and
no identity line now ends on the kind word (Movie, Show, Collection), so a line the setting turns on
is never drawn empty and no band opens over nothing, and the rows below do not jump as focus moves
along a row.

Route tests on the app-tier World rig grade the drawn text of Search, the filmography, Detail's
Related shelf and the Collection screen under Title On + Genre, Title Off + Year/Length and Nothing.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
# Conflicts:
#	rust-modules/src/app/bridge.rs
…posters says

A grid of landscape stills is not on the Under posters policy: its two-line block (title, release
date) is drawn under every setting, so the band it reserves has to be the legacy one the label needs.
The grid took the setting's band instead, which under the default (Title Off + Year / Length) left
the next row's stills starting 9 px inside the date line and, under Nothing, covered the whole block.

Grid and GridBands now take an Option<CaptionPolicy>: None is the legacy band, and the Episodes
listing hands None. The band is graded at the app tier: the drawn caption of a focused still clears
the next row's tiles under every setting (Title On/Off x five details kinds), and the Library grid
opens exactly the band its setting asks for (72 / 40 / 0 px of growth). The recording painter's
discovery walk now notes a run that dissolves at its edges, so a gliding caption is read like any
other drawn word.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…pisode address, tests that read what is drawn

One rule for a collection on every surface: the Title switch governs its title line, the details
line is its size ("7 films") under every details kind but Nothing, and a name its face cuts rides
the details line ("Name · 7 films") when the title line is off, since the face is the only other
place it is told. The cut-name fact (CaptionFacts::name_cut, tile_facts::face_cuts_name) is honoured
by the one builder, so the Collections page's own band policy and transform are gone.

A line the setting turns on is never drawn empty, for every kind: an episode with no number or year
reads "Episode", an untitled season numbered 0 reads "Specials" (new catalog keys browse.kind.episode
and browse.detail.specials in all eight locales), a season's identity beats its year under
Year / Length, and "N new episodes" is for a show in progress only (something watched and something
left), a never-opened show reading "Year · N seasons".

The episode address is spelt one way app-wide, with the middle dot the designs set: the caption
reads fmt::episode_address like the art's mark, and the caption's own catalog keys
(widgets.card.season_episode, widgets.card.episode) are gone from all locales. A Collection screen
episode, whose poster already wears that mark, names its show instead of repeating the address.

The landscape episode label (the Library Episodes grid, Recommended's landscape rows) is one builder,
captions::still_label, and a tile with no title or details draws no empty line (Recommended's empty
hub, Detail's extras). The Under posters preview is built by captions::label like the screens it
previews.

Tests read what the frame draws: Drawn::caption_lines is the shadowed caption block itself, so a
stray line fails, Nothing included. The route tests drop their word lists, the Library tests read
the drawn grid instead of asking the label builder (probe_caption is gone), and the tables gain
Video and Age / Score pickers, an unnumbered episode and an untitled season.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…he comments that said 92

Comment-only. LEGACY_BAND_H = UNDER_LABEL_H (92) + UNDER_LABEL_AIR (22) = 114;
the Grid/GridBands/stack docs and still_label named the block's height as the band's.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…s setting opens

The Library had an app-tier band test; the shelf surfaces had none. Each now reads the frame it
draws: the pitch between the focused shelf's heading and the next heading grows over the closed
band (Title Off + Nothing) by what the layout documents for 112 / 80 / 0 px (72 / 40 / 0), and no
caption run ends under the next heading. A shelf whose band ignores the policy fails all three.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…udit N5)

The Watchlist's details line knew only the row's title, year and kind, so Genre, Video and Age
rating read the year under every pick and a movie with no year read "Movie". The guid lookup's row
already carries the rest. `Metadata::listing_facts` lifts the caption facts off the wire once (the
catalog row's `fill_caption_facts` now reads the same rule), `GuidMatch` carries them, the match
table keeps them with the held copy (`Asked::Held`), `WatchlistView::listing` answers for the copy a
press opens, the app feed hands them to the page in `MatchedFacts::listing`, and
`watchlist::caption::label` words them through the one shared caption policy.

Tests: caption_tests (a movie under all four picks, a show's seasons and new episodes, a copy with
no such fact, the state sentence still replacing them), the app-tier chain through the store and the
feed (watchlist_press_tests), the store's copy choice, and the wire extraction in plex.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Home's focused caption is now the shared caption policy's, so under the default setting it measures
the year and the length ("1992 · 1h 40m") where it measured the year alone, and the recording the
committed anchor was taken from took measurements the new tree no longer asks for. The owner chose a
general year · length pattern over the one literal (2026-10-20): ALPHABET.json gains
`[0-9]{4} · ([0-9]+h )?[0-9]+m`, sourced to year_length, the duration catalog keys and tests/mock_pms.py's
year and length draws. Only 1-boot-home-chip-grid/rec-0000.jsonl is replaced (its manifest already
equals the new recorder's header); the other two anchors replay SAME on the new tree.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…d the drawn result

S1: the amber play mark leads the first line drawn whenever OK plays the deck
card (the title when Title is on, else the state line); under Nothing no line
and no mark. The title centres as if the mark were not there. ui/CLAUDE.md
states the rule again.
S2: a season whose art prints "SEASON 3" gets address_on_art, so its details
fallback names the show, else nothing.
S3: docs/watchlist.md and watchlist/caption.rs say what a matched title reads.
S4: the Stack shelf and grid paths, Search, the filmography, the Collection
screen, the Collections page, the Watchlist and Detail's collection shelf each
have an app-tier band test that reads the drawn frame; caption_lines() reads
the label census, so a stray unshadowed line under Nothing fails.
S5: the dead non-deck half of card_row::focused_caption is gone (cw_caption).
S6: Home's pointer reach follows the full-shelf rest rule, so a Magic Remote
user reaches every shelf; an app-tier test moves the pointer from shelf 3 to 2.
Nits: unused caption_reach removed; one shared landscape still label
(registry::captions::still_label / still_block) for Search's Episode row, the
Library Episodes listing, Recommended and Extras; stale home-legacy ledger row;
browse.detail.specials description; over-chip heading alpha asserted ~0; the
heading fade is judged at the drawn (lifted) place. A pixel test shows Home,
Collections and the Watchlist draw the focused title in one ink.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The under-poster caption falls back on a year, a length, a genre, a season
number and an episode number the server may not send, and on the collection's
full name when its face cuts it; no generated item lacks any of them. The flag
adds, from their own random stream and at fixed ids from 980001: a movie with
no year, a movie with no year, length or genre, a show with no year and no
seasons, a show whose season 0 has no title, an episode with no number, and two
collections (a fan and a neutral tile) named by five words. Numberless episodes
and unyeared items no longer break the mock's own sorts. Default data is
unchanged (a test compares item by item) and the flag is refused with --catalog.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
A sim reaches them without walking the library.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…words, so its tile cuts the name

Five words fit the neutral tile whole; fourteen end in an ellipsis, which is the
case the focused caption carries the name for.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…d season is drawn on Home

Home's "Recently Added Seasons" did not draw a season 0 the server gave no title (the mock's
--caption-edge-cases serves one): the shelf's projection dropped any hub row with an empty title,
and a season's own title is exactly the field a server leaves empty for Specials. The same
"title and a poster" predicate was copied into four places (Home's shelf_card, the Library's
Recommended parse_window and the sliding window's two reads); they now share one, pms::shelf_card,
which asks for a listable type and a poster and no title, because a caption names a tile by what
it is when the server named it nothing ("Specials", "Season N", "Episode").

Tests: a data test that the untitled season survives every hub path, and an app-tier World test
that builds Home from a /hubs answer (new seed_hubs_response_for_test, which runs the real
projection; the hand-built edit_test_item tiles could never see a dropped row) and focuses the
untitled season's poster, which reads "Specials". Both failed against the old predicate.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…d by their identity, not by a zero

Two predate the caption work and neither is a poster caption. Detail's season tab built its own
label ("Season N" from the index when the title was empty), so a season 0 the server gave no title
read "Season 0" while the same season's caption said "Specials". The label rule now lives once, in
fmt::season_identity (own title, else "Season N", else "Specials"), and both the caption policy and
the tab read it.

The episode card's kicker was catalog "EPISODE {number}" fed ep.index unguarded, so an unnumbered
episode read "EPISODE 0". The same zero was printed by fmt::episode_ordinal ("S1, E0"), which the
transport HUD, the Up Next card, the pre-roll context line and the hero blurb all spell. The
ordinal now says only the parts the server numbered ("S1, E3", "E3", "S1", or nothing), the lines
built on it leave an empty part out (episode_kicker, a new episode_context for the two hand-built
"show · address" pre-roll lines), and the card's kicker for an unnumbered episode is the kind word
in the same capitals ("EPISODE"; the aired date is the card's own bottom row, so the kicker does
not repeat it). The landscape still label, the Collection screen mark and the Home hero already
print an empty address as nothing and are unchanged.

Tests: a unit test on the formatters across every shipped language, the episode card drawn on a
recording painter, and an app-tier World test that opens a Detail page and reads the drawn tab and
cards; the last two failed ("Season 0", "EPISODE 0") against the old rules.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Main's Home work made a key press cost the rows it touches: key tables update in place
(registry::Compaction), the catalog sync keeps a row whole while its cards are the very same cards,
and the hold band has hysteresis (ui::cards::HoldBand over plx_base::hold::clamp_hold). This branch
words every poster's caption from the Under posters setting (registry::captions), rests the focused
shelf at the Library's line, and makes an untitled item a card (one pms::shelf_card).

The one textual conflict was ui/src/cards/tests.rs, where both sides appended tests after the same
test; both sets are kept. Everything else merged cleanly and is compatible by construction: a caption
is worded at the draw from the card the published row holds now (HomeCards::item reads the view, not
the projection) and from the setting, so no caption input lives in the projection the sync keeps.
A caption FACT that changes is a new card (the projection holds an Arc of each card, so an edit can
never alias it), which projects its own row again; the setting is a layout input, not a publication.
#858's released-row merge patch overwrites already-projected shelves with the placeholder slot, so
it does not read shelf_card's predicate: an untitled card is a card on both paths.

New test: a_caption_input_that_changes_under_a_kept_row_reaches_the_drawn_block. A fact changed on
one card re-projects that row only (the element-map writes equal one row's cards) and the block it
words is the new fact's; the setting changes the block and every shelf's band with no sync.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Both sides re-recorded the 1-boot-home-chip-grid anchor (the Under posters
captions on this branch, a released card's spring landing exactly at rest on
main), so neither recording matched the merged code. The branch's recording
replayed against the merged tree diverged on 13 frames (382-394), the tail of
the Home card spring release, with every other counter zero; the same recording
replayed SAME with Spring::land made a no-op, so the card landing is the whole
divergence. The anchor was recorded once afresh on the merged tree
(tests/focusfp.sh --rec --only 1) and only its rec-0000.jsonl replaced; the
README keeps both sides' paragraphs and gains one for the single re-record.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…changed under a kept Home, held-Right glide with the headings, released posters at rest)

a_setting_changed_under_a_kept_home_reaches_the_card_after_back,
a_held_right_along_a_home_shelf_glides_the_caption_without_a_heading_over_the_chip and
a_released_poster_is_captioned_at_rest_after_a_held_walk, on the World rig. Test-support
accessors (HomeScreen/RecommendedScreen::probe_card_pops, World::card_pops) match crx-routes2-tests.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… its box, for the grid and the shelf alike

The grid faded a caption by its band's own progress (band_fade(e) = e) while its next row's
tiles are carried down on the same spring, so the focused block stood half-faint at its fixed
offset with the next row on top of it, and the departing block slid under the rising row.
TileLabel now carries the band it hangs in (band_h, e) instead of an alpha, and each line is
drawn at line_reveal_for: zero until room_for(band_h, e) reaches the line's box, smoothstepped
over LINE_REVEAL_RAMP px, never past the band's expansion. The title of a two-line block
therefore comes in before the details line and goes out after it. band_fade, band_reveal and
band_reveal_for are gone: one rule. The Grid ghost no longer applies the alpha twice.

A narrow test probe (Grid::caption_lines_probe) reads every drawn line's box; the walk of Down,
Down, Up at the 112 and 80 px bands failed against the old rule (32.9 px and 9.4 px under the
next row's rest cell at alpha >= .25; 52.0 and 20.0 px in the faint tail).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
GLinnik21 and others added 11 commits October 20, 2026 13:31
… (grid tile pop, next shelf's heading lift)

The reveal rule measured the room to the tile below at rest. The tile below a departing caption
is the newly focused card popping up to 17 px over its cell, and tiles are drawn over captions, so
the departing title was cut under it (2.5 / 7.5 / 11.8 px at frames 9 / 10 / 11 at the 112 px band,
8.5 px at 80). room_for / line_reveal_for / TileLabel::revealed now take the rise of what is directly
below the band (BandOpen::rise): the grid supplies the drawn top of the tile under each card (its
live pop, press and landing slide, the same rect place(At::Drawn) answers), every shelf owner
supplies the next shelf's heading lift (SectionFrame::below_rise: Home, Stack, Recommended, Detail).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…probe, two-shelf walk, band 0 and 114), lines() is the one source of line geometry

Shelf::caption_lines_probe reads the label the focused card is drawn with (focused_label), so a
host test runs the real shelf decision mid-move against the next shelf's DRAWN heading and focused
card at 112 and 80 and the stored default (title off, Year/Length, band 80); without the owner's
below_rise a line reaches 8.2 px under the lifted heading. The band-0 case asserts nothing is drawn,
the legacy 114 case asserts its reveal, the overlap walk asserts it saw lines, the Down hand-over
requires the arriving caption to appear, and the default policy's arriving line is monotone through a
Down and an Up. draw_label_block takes each line's y from LineBox::top; prose follows.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…shelf that draws, and the Person page stacks its shelves

Correctness. `Stack::frame` handed a shelf the lift of the NEXT SECTION's heading, so a shelf above an
empty shelf (a section that takes no room) was told 0 while the shelf drawn under its caption is the
one after it, and the Person page, which put a `Custom` gap section between its filmography shelves,
told every shelf 0 while the heading under it rose by its lift (a Movies caption ended 6.2 px below the
Shows heading at the 112 px band). `Stack::frame` now reads the first following section that takes
room, and the Person page carries the air under a shelf as `shelf_foot` (Search's idiom) with no gap
section between two shelves; the last shelf keeps no foot, so the page's geometry (its end, the
reveal of the first shelf) is the one it had. `StackPage::shelf_foot` takes `cx` so a page can say
which shelf is last from the same content its sections read. Both tests were red first: a Stack of
shelf, empty shelf, shelf (7.6 px) and the real Person page (6.2 px).

Simplification (four review reports):
- Home's `below_rise` is `Grid::lift(row + 1)`; Detail's `band_open` and `below_rise` share
  `shelf_of`; `tile_paint_bounds` uses `unscaled_bottom`; `TileLabel` derives `Default`;
  `Stack::frame` matches bodies only; `rise_below` drops the `.max(0.0)` that `room_for` already
  applies; `LINE_REVEAL_RAMP` is private; `draw_label` computes `lines()` once and
  `draw_label_block` filters both lines the same way; `card_paint` calls `revealed` once.
- Tests: `BOTH_LINES` / `TITLE_ONLY` consts, one `captioned_grid` bootstrap, one overlap helper
  looped over the three policies, `r.place`, one `title_alpha`, the redundant assert gone, the both-lines
  loop folded into the main one, the walk's `start` loop fixed, `ShelfWalk::lines` derived,
  `SHELF_AT.y`, `shape_captions(Option<CaptionPolicy>)`, narration of removed rules dropped.
- Left alone: drawn_rect's focus/pressed parameters (a few lookups per frame, `place` already did
  both), computing `below_rise` only on the draw paths (five owners build frames at four call
  sites each; a second constructor per owner could pass a stale caption for tens of ns), the probe
  iterator / `LineBox::below` / `SectionFrame::with_below_rise` / `SectionFrame::above`, and the
  smoothstep dedupe.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…every owner, and a Stack refuses a shelf that keeps less above another shelf

`card_row::room_for` counts UNDER_LABEL_AIR + the band under a card, so it assumes the next shelf's heading
(or the next grid row's tile) rests that far down. Every owner of a shelf or grid keeps exactly that air
(Home: `ROW_PITCH_FIXED + under_band`; the Library's Recommended shelves: `shelf_pitch`; Search:
`shelf_foot` and `layout::caption_band`; the person page: `shelf_foot` / `SHELF_GAP`; Detail: `section_gap`
3/4/6/7, the cast row more; the grids: `Geom::pitch`), so the rule overstates the room nowhere today; the
only place less could come from is `StackPage::shelf_foot`'s default of 0, which is meant for a page's last
shelf.

Pins, so a page that changes its air breaks loudly:
- `the_rules_room_is_the_gap_the_shared_pitch_keeps_under_a_card` (ui): the rule's room is the shared
  pitch's gap at every band and expansion, and the grid keeps the same air.
- `shelf_pitch_keeps_the_shared_air` (Library shelves) and `a_shelf_is_followed_by_the_shared_air` (Detail's
  Related, Extras, collection, cast); the person page's and Search's existing pitch tests cover those two.
- `Stack::frame` debug-asserts that a shelf with another shelf below it keeps at least UNDER_LABEL_AIR
  (`a_shelf_keeping_less_air_than_the_caption_rule_counts_is_refused`, red first: "test did not panic").

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
#866 per-card grid let-gos) into crx-grid-reveal

Both sides' behaviour is kept in every conflict:

- ui/poster_grid.rs: the branch's title-handover test next to main's GridBands canon test
  and the `at` helper (#866).
- ui/cards/grid.rs: #866's `self.pop.reset()` where the branch's side built a fresh
  GridPop, with the branch's band comment.
- ui/cards/tests.rs: the branch's title_only/details_only Cards fields beside #866's
  elem_calls counter.
- screens home/recommended `probe_card_pops`: main's (#864) versions; the branch's copies
  came from an earlier draft.
- app/bridge_test_support.rs: main's sole_card_off_rest / home_focused_item / home_card
  next to the branch's `poster_cell`, and `card_pops` stays `pub(super)` because the
  Under posters shelf route test reads it.

The semantic join: `Grid::rise_below` (the drawn top of the tile below a caption line) reads
that tile through `drawn_rect`, which now takes the pass's `LetGoCards` and goes through
`pop_in`, the one resolution the draw paints with after #866. A released card still shrinking
below a caption (a let-go) is therefore drawn above its rest top in the caption's rule too, by
element when the source moved since the last tick, and `card_paint` / `rise_below` /
`drawn_rect` share the pass's single `let_go_cards` answer (the frame's hash budget,
`grid_draw_hashes_no_drawn_card_while_cards_let_go`, is unchanged).

New test `no_caption_line_is_drawn_where_a_tile_letting_go_below_it_is`: a held Down then a
held Up (a press every three frames), every caption line against the live drawn top of the
tile directly below it, with a check that the walk really leaves a let-go under a line. Watched
red with `rise_below` reading the tile below with the let-gos left out (worst overlap 7.8 px),
green on the join.

Replay fixtures: main's are the base (the three anchors as #866 re-recorded them) and the
README keeps both sides' paragraphs in order. The anchors are re-anchored on this merged
tree in the next commit.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…rn once on the merged tree

The merge of origin/main (#863, #864, #866) into crx-grid-reveal kept main's fixtures as the base.
On the merged tree `make check-replay` found 6-settings-family SAME (frames=1321, diverged=0, every
counter zero, Targets and Resolve) and two anchors that no longer match, with the shape unchanged
(state_fp 2896094977091175041, so `rerecord` refuses):

- 12-filmography-detail-return: DIVERGED in both modes, diverged=884 of 923, present/input/result/
  land/effect/focus/hit diffs all 0 (a pure state-hash divergence, no visible counter). Attributed by
  replaying the committed anchor against the merged tree with only person.rs put back to
  origin/main's (filmography labels through the one caption policy, the air under a shelf as
  StackPage::shelf_foot instead of Sec::Gap(kind)): SAME, diverged=0, every counter 0, Targets and
  Resolve. The fresh recording holds the same 136 metrics (text measurement) queries as the old one.
- 1-boot-home-chip-grid: diverged from frame 296, then REFUSED (replay measurement table miss) in
  both modes, because main's recording predates the Under posters captions this branch carries.
  Attributed from the measurements themselves: the metrics records of the fresh recording differ
  from the committed one by exactly one gained Width query (Home's focused poster caption
  "1992 . 1h 40m", 24 px) and three lost (the year alone and the two synthetic title names).

The owner approved re-anchoring for intended UI changes (README 2026-09-29/30 entries; the standing
instruction not to stall on it). Both anchors were recorded afresh on this merged, committed-source
tree (tests/focusfp.sh --rec --only 1,12), passed `plxnative-rec check` (synthetic) against the
unchanged alphabet, and only rec-0000.jsonl was replaced; the manifests (anchor flag included) are
byte for byte the committed ones and equal the new recorder's header. README paragraph added.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…al offset

Two Home bugs the owner saw (HOME-BACK), both through shared mechanisms.

A. Down from the billboard after BACK from the last shelf drew the deep shelves for ~7
   frames before travelling to the first. Home rested the page by the PICTURE's focus,
   which keeps the billboard "focused" until the dive is half way, so the deep scroll
   target outlived the fold. The rest now comes from the ENGINE's focus (HomeScreen::
   rest_row -> rest_scroll -> ui_cards::grid_rest_scroll, the rule the Library rests by):
   a billboard focus rests the first shelf at once, a card or heading its own row.

B. At the billboard every shelf drew at its first card and slid back on Down. Home drew a
   shelf at its offset times the dive (CardSource::sweep = snap.pos, Grid::eff_scroll).
   The sweep hook is removed from CardSource and Shelf, and Home's override and eff_scroll
   with it: a shelf draws at the offset it holds at every dive phase.

Tests: home_hero_route_tests.rs (World rig, key-driven, what the page DRAWS) and a screen
tier test for the rest rule. The World pump now performs HomeReq::FoldToHero through
content::fold_to_hero (extracted from the loop's home_requests) so BACK reaches the
billboard in the rig as it does in the app. The old retained-offset late-dive test asserted
the sweep's product; it now asserts the offset adds no motion.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…loop performs the BACK fold and a card's Detail

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…nd a simulator run shows it still grades it

The scene's premise was "dive through the retained horizontal offset"; a Home shelf now draws at the
offset it holds, so the dive's card motion is the page's vertical travel alone. What the scene is FOR
(#191 gap 3: a fast-moving card is not admitted poster work during the hero-to-grid dive, the art the
hero evicted is refused while it travels and refilled at rest) does not depend on the horizontal
sweep, and the grader's own mechanisms still see it: on the merged tree, in the simulator against
tests/mock_pms.py (debug build, a Mac, not a frame-rate result), the dive phase logs 15-16
moving_frames, refused_evicted=72, requested_moving=0 and the grade is True (two runs); with
`plxnative-cardspeed` ignored (the decline gone) the same scene grades False ("dive admitted 2
source requests while cards moved fast"). So the mechanism is unchanged; the manifest comment, the
README paragraph and the plan's doc now say what the dive carries and why the shelf keeps a graded
offset (the grader holds its spring still, which a shelf with no offset could not show).

Whether the TV run clears `moving_fps_floor` 55 is a television result and stays for the TV window.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…he prose says what the pump performs

The fold needs none of the Pump's resources (content::fold_to_hero takes the dispatcher, the asking
machine and its entry), so the arm no longer gates it on the Pump: pump_navigation does what the loop
does for a Home BACK. The two doc comments that listed the performed requests now name the fold, and
the Up-from-a-deep-walk test says it is a control that passes on the old code by design.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@GLinnik21
GLinnik21 merged commit a9dcfe6 into main Oct 20, 2026
19 checks passed
@GLinnik21
GLinnik21 deleted the crx-home-hero branch October 20, 2026 13:29
GLinnik21 added a commit that referenced this pull request Oct 22, 2026
* Release notes and audit for v0.9.0

Action-required evaluation (README trigger list, read from the PRs, grep not run on a built tree): no hits that need a reader action. Launch links (#853) add an inbound surface (any app that can launch apps), stated in What's new; the 3.4 image cache writes to /media/developer/temp (#667); crash/error reports gain fixed-value fields with POLICY_VERSION unchanged (#632), stated under Changed; Watchlist and PMS notifications use hosts the app already reaches.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Release notes v0.9.0: coverage and accuracy pass

Note: correct the Collections surfaces (no TYPE menu; collection shelf
headings live on Home and a library's Recommended page), the Watchlist
hold-menu rows, the launch-link sign-in behaviour and platform-release
numbering, the notification-feed sentence and the per-profile settings
list (no stale "nine"). Add #832, #808, #750/#762, #709 (#628), #641,
#647, #793, #871, #877 (#679), #876 and the key-press frame work;
credit RichiL10 and Shakil Choudhury. #862 moves from Known issues to
the webOS 3.x lines as fixed by #578; the 3.9.3 source-build report
(#700) is kept in Compatibility. Compatibility links reports, not
reporters' profiles.

Audit: #862 provenance (attributed usage-report reading, no counts),
contributor list wording.

Action-required section: not owed. The README grep over
v0.8.0..origin/main (rust-modules/src src ci) hits only CI tooling,
test-only loopback listeners and fixture tokens, and the dev-only
/tmp/plxnative-trackmemory trigger; the audit's PR-by-PR reading in
"Deliberately not done" stands.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Release audit v0.9.0: name the toolchain by its pin file, not its version

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant