0.129: P1/P2 report
pauljd/davidson-ci: Davidson CI / quality (push) Failing after 3m54s
pauljd/davidson-ci: Davidson CI / ai-review (push) Failing after 3m4s
release-gate / verify (push) Successful in 10m35s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-10 20:27:35 +00:00
co-authored by Claude Opus 5.5
parent f2bf735c72
commit 7b78ad607c
+107
View File
@@ -0,0 +1,107 @@
# 0.129 P1 and P2: gentler on the server, and pages you can scroll (10 November 2026)
Branch `ux-0.129`, development only.
- Nothing was installed on either TV, and the live server was not contacted.
- Everything ran on the emulator (Android TV 14), signed with a throwaway key, against the Silo test server.
- The test media was fictional. I added two 10-minute test-pattern films ("Orbit Fixture Long" and "Orbit Fixture Long Two") to
check the report rate.
- Screenshots are in `p1p2/`.
## P1: requests to the server
### What changed
| Part | Before | Now |
| --- | --- | --- |
| Collections re-read | Every collection, every page, once a day (about 3,300 requests per TV per day in the logs) | Weekly. Only collections whose member count changed are read again; every fourth refresh is a full read, paced |
| Channel lists | All due together after 7 days (18 lists on both TVs at about 12:00 on Wed 11 Nov, about 1,666 requests per TV) | Each list gets its own 0 to 47 hours of spread, and at most one routine refresh every 30 minutes. A changed channel still refreshes straight away |
| Background pacing | None: reads went as fast as the server answered | One background request every 1.5 s at most, and at most 600 an hour per TV. When the hour's share is used up, the read stops cleanly and carries on in a later round. Watching, tuning and anything you ask for are never slowed |
| Playback reports | Every 10 s while watching (360 an hour) | Every 30 s (120 an hour). The start, stop and resume point are unchanged |
| Pictures | A show with no picture was asked for up to 4 times every time one of its programmes was shown | Asked once, then left for 6 hours |
| Counters | None | Counts by kind (reports, getting ready to play, video, pictures, library list, collections, episode lists, searches, item details, sign-in, other), background or not, and failures, by the hour, kept 72 hours. Settings › Account shows this hour and the last 24 hours. The household build can write them out with `--es orbit_requests dump`. Paths, titles and IDs are never kept |
| Version in headers | 0.110.9 whatever was installed | The real version |
### Before and after, per TV (estimates from the code and Paul's library sizes)
| Source | Before | After |
| --- | --- | --- |
| Collections | 23,016 a week (daily) | Under 60 a week (changes only); a full read every 4th week, paced at 600 an hour |
| Channel list burst | About 1,666 in one go, both TVs at once | Spread over 2 days, at most 600 an hour |
| Playback reports | 8,640 a day watching all day | 2,880 a day |
| Background total | Unbounded (up to 1,000 per 12 minutes seen in the logs) | At most 600 an hour |
The worst hour in the audit was around 2,000 to 2,600 requests across the house. With these limits, a TV's background work can't
pass 600 an hour, and the collections read that caused most of it mostly disappears.
### Checked on the emulator
- **Counters.** Creating a fictional channel was counted as 218 searches (title matching), which is right for Create your own.
The dump and the Settings › Account line agreed.
- **Reports.** Over 5 minutes of the 10-minute film there were 10 reports, one every 30 s. The resume point was saved on Silo at
6 min 52 s when I changed channel.
- **Pictures.** The fictional show has no pictures. Before the fix: 120 picture requests in about 4 minutes. After: none
repeated (165 stayed 165 over 4 minutes).
Not checked on the emulator: the weekly collections read and the 2-day spread. Silo has no collections, and a week can't be run
in an afternoon. Unit tests cover both: `ServerRequestsTest` (7) and `CollectionRefreshTest`.
### Not built: sharing collections between the TVs
After the weekly changes-only read, each TV makes about 20 collection requests a week. Sharing would save almost nothing. It
would also add a new kind of Rooms sync that could go wrong. I left it out.
### What this needs before it helps
These changes only reach the server once the TVs run this build. That needs your OK to sign with the current key and to
install. The channel lists on both TVs still fall due together at about 12:00 on Wed 11 Nov on the installed build.
## P2: High Scores and other long pages
### The cause
The High Scores list (18 games) was taller than the screen and couldn't scroll, so Pairs and Patience were cut off and out of
reach.
### Fixed
- **High Scores.** The rows scroll under a fixed heading, and moving onto a row brings it fully into view.
- **How to Play, Arcade Settings and Reset Progress** scroll too.
- **Back on a Top 10** closed nothing. Back on a game's settings sheet didn't work either. Both are their own window, so the
page's Back never heard it. Both now close with Back.
- **The footer** on Arcade pages said "Back: Orbit TV". Back goes to Play Games, and the footer now says so.
- **At 130% text size,** the Arcade menu cut "High Scores" to "High". Its items now wrap onto two lines.
- **On a narrow screen** (a larger display size), game names were cut to "Sta…". The Played column now steps aside below 900 dp.
A TV at its usual size is 960 dp and keeps every column.
- **Settings.** Family's home, a person's page, PIN and Account now scroll. My new requests line had pushed Account's Welcome
tour off the screen. Down at the foot of a Settings section used to open the next section; it now stays put.
### Checked
All of these used fictional scores: Star Chase 200/170/160 and Block Drop 442 on household, Star Chase 100 on Play. The profile
was renamed to a 20-letter fictional name.
| Check | Household | Play |
| --- | --- | --- |
| Every row reachable and fully visible when focused | ✓ (to Patience and the footnote) | ✓ |
| Up/Down scrolls | ✓ | ✓ |
| Top 10 opens, Back closes it, focus returns to the row | ✓ | ✓ |
| Back from High Scores → Play Games → Orbit | ✓ | ✓ |
| 130% text | ✓ (after the menu fix) | not repeated |
| Display size 380 dpi (a narrower screen) | ✓ (after the column fix) | not repeated |
| How to Play, Arcade Settings, Reset: last item visible | ✓ | not repeated |
Safe area and overscan: Orbit already keeps 32 dp at the sides and 12 to 16 dp top and bottom. Nothing in these pages sits in the
outer 5%.
### Still to do (not fixed here)
1. **Left from a Settings page** lands on the nearest item in the list, which can be the next section rather than its own. This
is the focus-owner refactor planned for stage 3.
2. **The top bar at 130% text** or a larger display size: "Arcade" crowds the clock. That belongs to the layout prototypes.
3. **Play edition after first run** ends in Settings with no top bar until a channel is on. This is stage 2, your acceptance test.
## Release gate
Passed on commit f2bf735c: household 1,185 tests and Play 1,174, with 0 failures and 0 lint errors. Editions check passed, all unsigned.
Household APK SHA-256 `5f53b5f4…eb60`.