tracker
All repositories: gitoria
9.7 KB
# HM58 — project.hl is the mapBranch: `hm58-map`. The starting main commit was `13dea5b`. This is tracker ticket #58 only. Nothing was pushed or deployed, and main's checkout was not edited.The route handlers for posters and profile images now live in `lib/images.hl`; short links in `lib/shortids.hl`; guest links in `lib/people.hl`; and the header search redirect in `lib/search.hl`. Permanent redirects live in `lib/redirects.hl`. The title-page HTTP adapter lives in `lib/title-route.hl`. The session tag lookup and the audience predicate live in `lib/users.hl`. The common 404 response lives in `lib/util.hl`, and the warm-up 503 response lives in `lib/warm.hl`. `project.hl` names these handlers, keeps the route table in its original order, and retains configuration and startup wiring.Two one-line closures remain in `project.hl`. The login callback needs the running server's session store and HTTPS check. The title route needs its router, page renderer and transient session store. The documented function-route contract supplies only `route` and `req`; neither gives the running framework instance. The scratch repro is `../repro/project.hl` with `handler.hl`, under `/media/STORAGE/claude-scratch/tracker/HM58/`. Removing these last closures depends on framework support. No global server registry, second framework instance or JavaScript workaround was added. Startup clock and Error event handlers remain as application wiring.No needless `let` occurs in the moved functions; the title adapter's `let s` is reassigned when the request has no session. Ticket #57 is otherwise untouched. No component, style, token, icon or login.js was edited. The accent remains in the existing theme configuration.DOCS: I read the archived worker rules, HL-PRIMER.md, CODE-ORDER.md, COMPONENTS.md's current function-route request contract, §11 Routing and static assets, and §7 The project manifest, plus CONCEPT.md. The manual's current path no longer exists; I read its archived 2026-10-31 copy. The docs give no handler argument for the running framework instance and list no redirect route kind; preserving the existing HTTP responses therefore keeps the redirect functions. The existing callback's `req.secure` field is also not listed in the request-field table; its behavior was preserved.The newest completed backup used for proof is `tracker.worldapi.org-20261106-1417.tgz`. Only its `storage/` was extracted, excluding posters and profiles; neither sessions nor .env was extracted. Every background job was disabled as in HM1. Both trees use main's copied `bin/`, their own scratch cache and temporary directory, and application port 8706 on 127.0.0.1.All 44 route table entries remain byte-identical to main. There are now only two function-valued members in project.hl, the required server closures described above.All 11 gates ran under `flock /media/STORAGE/claude-scratch/tracker/gates.lock bash /media/STORAGE/claude-scratch/tracker/HM58/gates.sh` and exited 0. Browser: 389 passed, 0 failed. Security: 56 passed, 0 failed. Kinds: 32 passed, 0 failed. Franchises: 53 passed, 0 failed. Pager: 229 passed, 0 failed. Franchise seed: 26 passed, 0 failed. Sign-in return: 3 passed, 0 failed. Mobile: 45 passed, 0 failed. Warm start: 12 passed, 0 failed. Person lookup passed. Theme: 121 files, 0 problems. The full logs are in the scratch directory as `gates-run.log` and `log-*.txt`. This branch did not run a second complete baseline gate set; its before/after baseline proof is the real-data comparison below.Curl captured 59 paths on the baseline tree and this branch, covering every route pattern, additional invalid inputs, short links in both cases, moved title paths, image placeholders, guest links, the login callback failure and not-found responses. Every raw response header is byte-identical, including Location, cookies, status and Content-Length. Every body is byte-identical after normalizing only the build hash and the framework's per-request `at` timestamp. `proof-differences.json` and `raw-header-differences.json` are both empty lists. The separate warm-up captures have exactly identical headers and 45-byte bodies: HTTP 503, Retry-After 30, and “tracker is starting up, try again in a minute”.Raw files are `/media/STORAGE/claude-scratch/tracker/HM58/proof-{before,wt}/{N}.headers` and `{N}.body`, with `paths.json` mapping N to its path. `warm.headers` and `warm.body` are the startup captures. `proof.py` is the repeatable curl driver. The per-path status, Location and body length are recorded below; the baseline has the same results.I confirmed the home page and /shows/The-Daily-Show in lisbeth's real Chrome, in one own plain tab, at 390×844, 800×1280, 1280×800 and 1280×900, before and after. I inspected all 16 screenshots through four contact sheets. The phone header, stacked title/poster/Follow arrangement, tablet and desktop title/cast/season rows, typography and spacing match. Missing image placeholders are expected because the copy excludes image files. Screenshots are `proof-before/{home,show}-<size>.png` and `proof-wt/{home,show}-<size>.png`; contact sheets are `sheet-<size>.png`, all in the scratch directory. The automated gates also cover navigation, repeated guest-link visits and session behavior.The framework repro returned exactly `{"requestHasServer":false,"routeHasServer":false,"entryHasServer":false}`. Its source and result are in `repro/`; it ran on port 8706 and was stopped. No workaround was added for this limitation.Cleanup is complete. The baseline proof app PID 3330001, branch proof app PID 3381295, repro app PID 3420541 and SSH tunnel PID 2950051 were stopped. The gate runners exited: browser 3231722, security 3283188, kinds 3286681, franchises 3293039, pager 3298258, franchise seed 3315532, sign-in return 3321963, theme 3325984, person lookup 3326000, mobile 3326016 and warm start 3329339. The final /proc check found no process whose cwd is under HM58, and ss showed no listener on port 8706. The extracted storage copy was deleted.The final Chrome page list, independently fetched after closing both proof tabs, contains only the original page: `0118C0F7E669B08C2B8A0E3AB195BA4C`, `about:blank`. Complete target lists are in `chrome-before.json`, each proof directory's `targets-{before,final}.json`, and `chrome-final.json`. No existing tab, cookie or session was changed.The work took approximately 85 requests including waits and status updates: reading/setup about 12, implementation about 10, proof/report/cleanup about 20, and serialized waiting/status about 43. The approximate 60-request target was exceeded mainly while waiting for HM49's gate lock and for the two multi-million-row scans. No additional ticket scope was taken. No app work remains; eliminating the final two closures requires the framework to supply the running instance to an imported route handler.The pending `hm54-fill` branch adds its PageFills import and instance independently. Its three audience entries are inserted into the same block that this branch changes to name `sessionAudience`; that audience hunk is expected to require manual merge resolution. Preserve all three fill entries and the two sessionAudience references. HM58 does not edit show.hl, person.hl or styles.hl.## Per-path curl proof| Path | Status | Location | Body bytes ||---|---:|---|---:|| `/` | 200 | — | 20462 || `/favicon.ico` | 200 | — | 15086 || `/icons/icon-192.png` | 200 | — | 4393 || `/icons/icon-512.png` | 200 | — | 12486 || `/icons/apple-touch-icon.png` | 200 | — | 4131 || `/icons/favicon.svg` | 200 | — | 440 || `/login.js` | 200 | — | 2823 || `/login/failed` | 200 | — | 10222 || `/login/callback` | 302 | /login/failed | 38 || `/posters/none` | 200 | — | 286 || `/posters/bad%21` | 400 | — | 15 || `/profiles/none` | 200 | — | 285 || `/profiles/bad%21` | 400 | — | 14 || `/movies` | 200 | — | 21170 || `/movies/page/2` | 200 | — | 22136 || `/movies/Star-Trek-First-Contact` | 200 | — | 30376 || `/series` | 200 | — | 21634 || `/series/page/2` | 200 | — | 21779 || `/series/Star-Trek-Picard` | 200 | — | 107292 || `/shows` | 200 | — | 21569 || `/shows/page/2` | 200 | — | 21743 || `/shows/The-Daily-Show` | 200 | — | 25494 || `/shows/No-Such-Title` | 200 | — | 11405 || `/shows/Star-Trek-Picard` | 301 | /series/Star-Trek-Picard | 33 || `/shows/Star-Trek-First-Contact` | 301 | /movies/Star-Trek-First-Contact | 40 || `/my/movies` | 200 | — | 10829 || `/my/unwatched` | 200 | — | 698268 || `/my/schedule` | 200 | — | 28943 || `/my/series` | 200 | — | 47048 || `/my/shows` | 200 | — | 11905 || `/my/nothing` | 200 | — | 10262 || `/unwatched` | 301 | /my/unwatched | 22 || `/schedule` | 301 | /my/schedule | 21 || `/search` | 200 | — | 11743 || `/search/star%20trek` | 200 | — | 25474 || `/find` | 302 | /search | 11 || `/find?q=star%2Ftrek%3F%23` | 302 | /search/star%20trek | 23 || `/person/tmdb/nope` | 404 | — | 9 || `/person/tmdb/1` | 302 | /person/George-Lucas | 24 || `/person/tmdb/2387` | 302 | /person/Patrick-Stewart | 27 || `/person/Patrick-Stewart` | 200 | — | 196226 || `/genres` | 200 | — | 14322 || `/genres/drama` | 200 | — | 22018 || `/genres/drama/page/2` | 200 | — | 22148 || `/genre/drama` | 301 | /genres/drama | 22 || `/genre/bad%21` | 301 | / | 10 || `/people` | 200 | — | 21196 || `/people/page/2` | 200 | — | 21302 || `/settings` | 200 | — | 9929 || `/franchises` | 200 | — | 24957 || `/franchises/page/2` | 200 | — | 21827 || `/franchises/edit` | 200 | — | 11296 || `/franchises/star-trek` | 200 | — | 10599 || `/timelines/star-trek` | 200 | — | 10580 || `/timelines/star-trek/edit` | 200 | — | 10604 || `/100jh` | 301 | /series/Raised-by-Wolves | 33 || `/100JH` | 301 | /series/Raised-by-Wolves | 33 || `/zzzzzzzzz` | 404 | — | 9 || `/not/a/route` | 404 | — | 23 |
Branches
Latest commits
- cb78a1a0HM65 report missing heap diagnostic package with repromre
- 89606a5cHM65 briefmre
- 096ce0d4log: DP69 live on day48mre
- b3d8a80bDP69 brief, RV48 mergedmre
- ce6d7d32Merge rv48: Hybriel day48mre
- 3da2ea86RV48: report day48 cold starts, gates and cleanupmre
- 8d9ecdfeRV48: re-vendor Hybriel set day48 (source b6a8f429, bin 660a9524)mre
- 4a802ae7status: RV48 runningmre
- 0a5412b6RV48 brief, day48 outmre
- 56665efelog: CB69 mergedmre
- 05448a98Merge cb69-imports: appTitle in a dependency-free topicmre
- e55b379dKeep shared app title independent of the route import graphmre
- 9a99659blog: hybriel#334, batch waits for day48mre
- 85fa6c9blog: CB68 result, CB69 startedmre
- 2f07c1b7log: DP68 boot gate failed, CB68mre
- 9652782dlog: HM59 merged, DP68 startedmre
- 29867a75Merge hm59-logic: tracker#59 page logic moved to libmre
- f7bfe90bMove remaining page builders into their topicsmre
- 7c3991f9log: day46 from Antonmre
- ec54fc35Move show page logic into the shows topicmre