gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitec54fc35ec54fc35Move show page logic into the shows topicmreec54fc35/reports/HM59.md

6.3 KB

  1. # HM59: show-page logic extraction (first group)
  2. This branch completes the show-page group of [tracker#59](https://tickets.worldapi.org/tracker.worldapi.org/59). The eight smaller component groups remain for a continuation within a fresh budget. It starts from main commit `c1a8d07` and changes only `components/show.hl`, `lib/shows.hl`, and this report. Nothing is pushed or deployed.
  3. The show component now imports its page helpers from `lib/shows.hl`. Thirty functions and three static values moved without changing their bodies. Six face bodies became static topic actions; the session faces resolve the server session's user id and call one topic function. Existing table writes still live in watches/follows. The component fell from 1,212 to 886 lines (326 fewer). It retains one static function, `completedPageOf`, with 21 source lines; its body, the completion face and the client completion handler are unchanged. No Style or View block changed.
  4. DOCS: I read WORKER-RULES.md, HL-PRIMER.md, CODE-ORDER.md, the project map, and COMPONENTS.md sections on data/providers, derived state, session delivery and server faces. The working shape is braced static imports and server faces operating on arguments, imports and statics. No language/framework gap was established. A cold compile took several minutes; the initial 160-second proof startup limit was too short, and the bounded retry succeeded. The retry needed 554.27 seconds from launch to the first successful HTTP response. Later gates reused the compiled artifact. A fresh-cache start may therefore need substantially more than 120 seconds; this run does not establish a compiler defect.
  5. The pending `hm54-fill` branch can still edit the completion implementation: `completedPageOf`, `completeTick`, `showComplete`, and all of `person.hl` remain in their current files. Import lists and the adjacent removed `completingOf` helper may need a small merge resolution if that branch changes them. No keyframes, styles.hl or project.hl were changed.
  6. Proof lives in `/media/STORAGE/claude-scratch/tracker/HM59/`. Storage was seeded from `tests/seed-show.hl` with the HM51 extra fixture and an az5b2 test session, entirely inside `copy/`; no production data or sessions were used. `baseline/` and `show/` contain the before/after responses for HM51's 26 routes, both signed out and signed in. All 52 canonical comparisons match. The collector preserves class order, text, state and element order; it ignores attribute ordering and generated build metadata, including source coordinates in generated child-component keys. CSS is byte-identical, SHA-256 `e10f4c056dab38482bf8a326587848059aeb7b566dd7d9d3a01621f53ad515e4`. `show/comparison.json` records zero differences.
  7. `clicks-show.json` records real CDP input through `tests/cdp.mjs`, in local headless Chrome as specifically required by this mission. At 390×844, 800×1280 and 1280×800 it opens season `se000000000se0s1`, toggles episode `ep0000000000ep0e1` twice, toggles the season twice, toggles Follow twice, and reloads to confirm restored watch/follow state. There are no browser errors or warnings. I inspected all six `show/{closed,open}-{390,800,1280}.png` screenshots: the same dense season rows, controls and responsive layout are present; the fixture intentionally has no poster file. The created page tab was closed. Final page target: `4C186D7EB27F4D14241A61CCC842E26B`, `about:blank`; the local Chrome was then stopped, including its service workers.
  8. The remaining static logic in the nine named components is 21 declarations spanning 241 source lines: show 1/21, myshows 3/44, mymovies 2/21, unwatched 3/48, schedule 2/33, genre 3/3, franchise 3/19, person 2/18, search 2/34 (declarations/source lines, excluding surrounding comments). Remaining work is to move the helpers and unwatched/search face orchestration from myshows, mymovies, unwatched, schedule, genre, franchise, person and search into their topic files, proving CSS/52-page equality after each group. Keep person filling coordinated with hm54-fill. Client handlers that manage presentation remain in the components.
  9. Baseline gates: all eleven passed with zero failed. The initial baseline run retained CB's original port settings; I corrected the copied gate script afterward. Proof and final gates use app port 8708, HL_HOST=127.0.0.1, with the proof app stopped before the final suite. All runs use scratch-local HL_CACHE_DIR and TMPDIR. The gate runs are under the exclusive gates.lock.
  10. Final gates also passed all eleven with zero failed: browser 389, security 56, kinds 32, franchises 53, pager 229, franchiseseed 26, signin-return 3, mobile 45 and warmstart 12 assertions; person-lookup passed, and theme/check-theme.mjs checked 121 files with 0 problems. The baseline had the same counts. Logs are baseline-gates.txt, baseline-gate-logs/, final-gates.txt and log-*.txt in scratch. No merged-state gate failure was observed. git diff --check passed, and a direct source comparison confirmed the entire Style/View span unchanged.
  11. Stopped processes: baseline proof app PID 2515592, successful retry compiler/app PID 2618276, local proof Chrome PID 2680570, baseline gate shell PID 2495518 and its browser-suite node PID 2495525, final browser-suite node PID 2681295, and the lock/runner processes. Gate child servers and browsers were stopped by their harnesses. The first 160-second compile attempt was stopped by its saved-PID shell trap, but its PID file was overwritten by the retry and its exact PID could not be recovered. This is a process-accounting limitation. The final /proc audit found no process with an HM59 command line or working directory, and ss found no listener on worker ports 8701–8719. process-audit-final.json is []. The copy/ directory, gate fixture storage and unused reduced example were deleted. The main checkout is clean, and bin/ is a real copied directory, not a symlink.
  12. The request budget was spent on the first group, full baseline/final validation and the slow cold-compile retry; no second component group was started. Preparation and reading took roughly 15 replies, extraction/proof preparation about 20, validation and bounded waits about 50, and cleanup/reporting about 5. These are estimates; an exact API request count was not available. The approximate 60-request target was exceeded during validation waits, which is why the eight smaller groups are explicitly deferred. Exact dollar usage was not available from the tools.

Branches

Latest commits

  • ec54fc35Move show page logic into the shows topicmre
  • c1a8d074log: correct timesmre
  • 5827eba9log: HM57 merged, HM59 startedmre
  • d1a91be9Merge hm57-let: tracker#57 let only for reassigned namesmre
  • a404ed75Report HM57 audit, gates and integration notesmre
  • 1dcb87a7Use plain declarations for unchanged bindingsmre
  • b90395e3log: HM51 mergedmre
  • 9888d076Merge hm51-classes: tracker#51 views use Style referencesmre
  • 4399bc2fReference remaining component-owned root Style rulesmre
  • 9edcc2dflog: #58 live, HM57 startedmre
  • 73fa20ddMerge hm49b-styles: tracker#49 rest of the component stylesmre
  • aed12917Reference owned Style rules in genres and searchmre
  • 14195720log: HM49B done, HM51 startedmre
  • 78ee6b56Move remaining component styles into Style blocksmre
  • 7f04de33log: HM49Bmre
  • 00616cf3log: #49 batch merged, DP67 startedmre
  • d7232e86Merge hm49-styles: tracker#49 first batch of component stylesmre
  • 079f376dMove seven components' styles into Style blocksmre
  • 17d66feelog: #58 mergedmre
  • 69a6640bMerge hm58-map: tracker#58 project.hl only the mapmre