gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmaind2e6d26bMerge branch 'records-park55' into mainTrackermain/reports/T36A.md

14.2 KB

  1. # T36A — live apply rolled back; original service recovered
  2. **STOP outcome:** The safe tool changes are implemented and verified. The fresh plan was **58 changes: 49 years and 9 TMDB IDs**, identical to the old plan. Copy validation passed. Live apply also reported **58 applied, 0 skipped, 0 failed**, but the following SSH readiness check failed. The mission requires rollback on an unexpected phase-2 failure, so the stopped-app backup was restored. **Zero T36 fixes remain live; the 58 changes still need a successful live attempt.** Main is running, standby is stopped, RestartCount is **0**, and recovery page/Chrome checks passed. No second apply was attempted after rollback.
  3. Branch `t36a`, based on main `08e552554df108d96bcdd594e888dc87ae317c05`. Tool commits: `9b3c255` and `7aea52b`. The original initial-stop report is in `d56ee0d`. No push, ticket, LOG.md or STATUS.md write was made. Application code on byrodin was not replaced.
  4. ## Tool changes and gates
  5. Apply rechecks the title/year of fresh TMDB details, the record's planned old values, and current ownership of the destination ID. A sixth plan column contains an encoded snapshot of type, title, migrated title, year, release, TMDB ID and slug. Missing or changed preconditions, mismatched fresh details and failed external checks cause a logged skip without a title write. Legacy five-column plans are therefore skipped; the preserved fresh `plan.txt` is in the new format. Dry run reserves every planned target ID, preventing two planned records from acquiring it. An owner without a slug is protected by its record ID.
  6. The added regression cases cover the original changed-name/year reproduction, separate series name/year changes, stale year/release/TMDB ID/title, an ID acquired by another record, an owner without a slug, duplicate proposed targets, and a failed details request. Final TMDB gate: **39 passed, 0 failed**. The original gate was 28/0; the original unsafe-details reproduction was 27/2 before the fix. An initial expanded-gate run had a fixture reset error; clearing the synthetic store before reseeding fixed the harness, and the final 39/0 result is the acceptance result.
  7. All 11 application gates passed under the shared `gates.lock`: browser **389/0**, security **56/0**, kinds **32/0**, franchises **53/0**, pager **229/0**, franchiseseed **26/0**, signin-return **3/0**, theme **118 files / 0 problems**, person-lookup **passed**, mobile **45/0**, warmstart **12/0**. Application port was **8717** and HL_CACHE_DIR was in scratch. The browser harness initially used its default temporary directory; it completed normally and removed its profile. Later gates used scratch TMPDIR. The last ownership-only change was followed by another successful TMDB gate; application gates do not import this tool library.
  8. Boot-scan source review covered packed search text and TMDB lookup ownership, catalog entries/genres/release ordering, slug maps, short-ID owners, cast profiles and people order. These are rebuilt from persisted records at boot. The tool updates the existing primary record, preserves unrelated fields, and persists the shows table; it runs while the app is stopped. The copy app subsequently completed its full boot scan with the corrected data. No framework gap or workaround was introduced.
  9. ## Copy proof and plan
  10. The newest completed/restorable archive at copy creation was `tracker.worldapi.org-20261106-0753.tgz`, **15,198,468,203 bytes**, tar validation **0**, hardlink entries **0**. The newer `20261106-1013` archive was still open for writing and was not selected. The **6.1 GB** copy contained storage only: no posters, profiles, sessions or `.env`. The token was read from the live `.env` into process memory/environment only, never written to a local environment file, log or report. The mandated stopped-app backup below separately contains `.env`.
  11. Detached dry run: **9,285 asked; 8,954 fine; group 1 = 139 (49 fixable, 90 nothing to take); group 2 = 46; group 3 = 137 (9 switches, 128 listed); group 4 = 9; failed = 0; 4,130.944 seconds**. Comparing the first five plan columns with `/media/STORAGE/claude-scratch/atlas/T36/plan.txt` gave **0 additions, 0 removals**. The plan is below the 100-line stop threshold and contains only the two authorized kinds.
  12. Copy apply: **58 applied (49 years, 9 IDs), 0 skipped, 0 failed**. Second apply: **0 applied, 58 skipped, 0 failed**. The full post-apply dry run asked **9,285**, found **9,012 fine**, **0 year fixes**, **0 switches**, and **0 failed**, in **3,333.699 seconds**. The unresolved lines were identical before/after. Audit comparisons confirmed unchanged linked seasons, episodes, watches and follows, and unchanged unrelated fields on planned titles. No planned title had a watch or follow by anyone in this backup copy: **0 linked watch/follow rows**. The synthetic gate separately preserves watched/followed movie and series fixtures.
  13. | ID-switch slug | Old ID | New ID |
  14. |---|---:|---:|
  15. | The-LEGO-Ghostbusters-Movie | 401887 | 1456302 |
  16. | Freddy-vs.-Ghostbusters | 71977 | 1646693 |
  17. | The-Boys-4 | 935667 | 915561 |
  18. | Sandman-4 | 566744 | 1273338 |
  19. | Thanksgiving | 363909 | 642629 |
  20. | My-Brother-I | 1208812 | 580849 |
  21. | World-Poker-Tour | 12853 | 327634 |
  22. | The-Wheel-of-Time-Origins | 223660 | 307623 |
  23. | reView | 80547 | 336364 |
  24. Signed-out copy checks covered The Boys, The Gathering and Ripley Under Ground in the app and in lisbeth Chrome at **390×844, 800×1280, 1280×800 and 1280×900**. All three HTTP pages returned **200**. All **12 PNGs** were inspected: headings, dates and controls were readable with no horizontal overflow; missing-poster placeholders were expected on the image-free copy. The Boys linked to **915561**. The Gathering showed **23 February 2003**; Ripley Under Ground showed **31 October 2007**. The old release dates are kept in `migratedRelease` by the already-present `297288f` behavior.
  25. ## Live sequence, failure and recovery
  26. Before phase 2 I read DP65's completed report and checked that `deploy/run-dp65.out` ends with **deploy-exit=0**. No local deploy process remained; the remote process check showed no active compose/deploy command. Nginx had the normal primary **45008 max_fails=0** and backup **45018** configuration. No nginx file or setting was changed.
  27. The shared deploy-init lock was taken on fd **9** only for staging/stop/backup/apply/start, then released. Only the tool and library were staged outside the app at `/CONTAINERS/tracker-t36a-20261106-131232`, with links to existing dependencies. A same-image preflight against empty scratch storage passed (**0 asked, 0 failed**). The apply used the running container's image `sha256:a900541ba1ef14e5c682c578e230da589b57d177754ba1a87ada76c8b6a0ee6f` and the same app mount. Both main and standby were confirmed stopped before backup and apply.
  28. Backup on loreana: `/media/STORAGE/deploy-backups/tracker.worldapi.org/tracker.worldapi.org-pre-t36-20261106-131232.tgz`, **1517348156 bytes**. It contains storage without posters/profiles, plus `.sessions` and `.env`. **gzip -t = 0; tar listing = 0; hardlink entries = 0.** The backup was verified before any apply.
  29. Main stop was requested at **13:12:39 Europe/Vienna**. Backup verification finished at **13:18:45**. Apply completed with **58/58, 0 skipped, 0 failed**; main was started at **13:20:38**, standby remaining stopped. The subsequent fresh SSH handshake for `docker logs` returned **255**, with `kex_exchange_identification: read: Connection reset by peer`. The first rollback handshake also returned **255** before executing its remote command.
  30. The initial runner opened fresh SSH connections and lacked the documented connection-reuse/retry behavior. I should have adapted that pattern to a scratch control socket before phase 2. The reason the peer reset those handshakes was not independently established. This was an operational transport failure after a successful data apply, not a reported TMDB tool write failure.
  31. Recovery used a persistent SSH control socket under T36A scratch, with retries, and reacquired fd **9** on the shared lock. Both containers were stopped again. The applied storage was moved aside, the verified archive was restored, and the original poster/profile directories were moved back. Restore transfer/extraction ran **13:22:30–13:36:00**, about **13 min 30 s**. Its performance cause was not diagnosed. Main restarted at **13:36:00**, standby remained stopped, and the recovery lock was released. The boot log records completion in **171,404 ms**. Full recovery curl checks completed at **13:41:48**. The initial Python `urllib` page checker received **403**; subsequent public curl and Chrome checks and direct-origin curl returned **200**. No server/config change was made in response to that client result.
  32. Recovery checks returned **200** for all nine formerly switched pages, `/shows`, `/movies`, `/100sp` (redirects to `/series/Foundation`), The Gathering and Ripley Under Ground: **14 checks**. All nine TMDB links were checked against the original IDs, confirming rollback. The complete captured post-rollback log has **0 error/panic matches and 0 LockTimeout**. Main is **running / RestartCount 0**, standby **exited / RestartCount 0**.
  33. ## Downtime and Chrome
  34. The detached outside probe started one curl per second, with a 15-second timeout, for the whole live phase: **13:12:32–13:42:52 Europe/Vienna**. There are **1,821** complete records: **495 HTTP 200, 1,301 HTTP 503, 25 HTTP 000, 0 other statuses**. Non-200 request-start samples total about **22 min 6 s**, exceeding the intended short outage. The long backup/restore and rollback extended the interruption. The measured intervals below run from a non-200 request start to the next 200 request start; they do not establish the cause of warmup timeouts.
  35. | First non-200 (Europe/Vienna) | Next 200 | Approx. seconds |
  36. |---|---|---:|
  37. | 13:12:40 | 13:20:43 | 483 |
  38. | 13:21:48 | 13:21:50 | 2 |
  39. | 13:22:27 | 13:36:05 | 818 |
  40. | 13:37:10 | 13:37:13 | 3 |
  41. | 13:38:55 | 13:39:15 | 20 |
  42. After restoration, signed-out live Chrome checks covered The Boys and The Gathering at the same four sizes. All **8 PNGs** were inspected. The Gathering's real poster loaded and its original **23 June 2001** date was back; The Boys retained its original placeholder. Titles and controls were readable with no horizontal overflow. These are recovery checks, not proof of a retained live fix. Screenshots are in scratch `chrome-copy/` and `chrome-live/`; HTML and response checks are preserved beside them.
  43. Both own tabs closed. The before/after/final page-target snapshots contain only the pre-existing page below; other browser targets were preserved. No global cookie/cache operation or sign-out was performed. A tab-scoped empty Cookie header kept the checks signed out.
  44. ```json
  45. [{"id":"0118C0F7E669B08C2B8A0E3AB195BA4C","url":"about:blank"}]
  46. ```
  47. ## What remains and cleanup
  48. The **58 approved automatic fixes remain pending live** after rollback. The fresh unresolved list has **273 unchanged cases**: **90** no-year/nothing-to-take, **46** translations, **128** unresolved IDs (**90** no match, **24** no local year, **13** already owned, **1** multiple match), and **9** group-4 cases. This differs slightly from the historical document's categorization, but no unresolved record was modified, and the before/after copy list lines are identical. The historical dated unfixable document was not rewritten. Fresh lines are preserved in scratch `unresolved-list.txt`.
  49. Do not rerun the failed `phase2.py` unchanged: an eventual fresh attempt needs the scratch ControlMaster/retry transport from the start, a new stopped-app backup, and all phase-2 conditions checked again. The preserved new-format plan, successful copy proof and tool commits are available for review. This mission stopped after the required rollback; no further live mutation was attempted.
  50. The test copy, copy sessions, synthetic gate stores, external preflight store and worktree `.scratch` are deleted. Temporary verification helpers were moved out of the worktree. Remote tool/library/dependency links, plan and compilation cache were removed. The post-apply rollback snapshot is intentionally retained for review at `/CONTAINERS/tracker-t36a-20261106-131232/failed-storage` (**6.2 GB**); it is outside the app and has no running process. This is a rollback artifact, not the deleted local test copy. The pre-T36 backup is retained on loreana.
  51. Every saved persistent local PID is absent in the final `/proc` audit. A full cwd scan found **0** remaining T36A processes, and ports **8717 / 9223** have no listener. The probe stopped through its own flag; the copy app and Chrome tunnel were stopped by saved numeric PID after cwd checks, and the private SSH master was closed with its control command.
  52. | Owned process | PID | Final state |
  53. |---|---:|---|
  54. | restore-copy.pid | 3961961 | absent |
  55. | copy-pipeline.pid | 3980950 | absent |
  56. | validation-monitor.pid | 238985 | absent |
  57. | copy-app.pid | 916784 | absent |
  58. | chrome-tunnel.pid | 918979 | absent |
  59. | probe.pid | 964551 | absent |
  60. | phase2.pid | 964552 | absent |
  61. | phase2-monitor.pid | 964553 | absent |
  62. | rollback.pid | 1038333 | absent |
  63. | rollback-monitor.pid | 1038334 | absent |
  64. | ssh-master.pid | 1030272 | absent |
  65. Earlier stopped gate processes were shell **3822022**, browser test **3823539**, fake ident **3823551**, tracker **3826864**, and resumed gate shell **3858360**. The resumed browser gate **3866559** and its helpers completed normally. Other short-lived test/compiler/curl/SSH/tar/Python/Git children were not individually retained; the final full cwd/listener audit found no owned remainder. Production main intentionally remains running.
  66. DOCS: Read the mission, ticket #36, t36 report, CONDUCTOR.md sections 5/6, CONDUCTOR-BASE.md, archived WORKER-RULES.md and RULINGS.md, HL-PRIMER.md, CODE-ORDER.md, deploy.sh, run.sh, standby-swap.sh and byrodin-ssh.sh. No COMPONENTS section was named for this CLI-tool brief. No language/framework documentation gap was established. The full safety regression and copy checks are recorded above.
  67. Request accounting is approximate: about **110 model/tool rounds** across the original stop and continuation. Initial reading/setup, expanded gates, early individual waits and transport recovery exceeded the 60-request guideline; early repeated polling was avoidable. The remaining long dry runs and live/recovery waits used one streaming monitor per background phase. Billing totals were not exposed. All work is committed on `t36a`; nothing was pushed.

Branches

Latest commits

  • d2e6d26bMerge branch 'records-park55' into mainTracker
  • f567f025|||PR records: park #55, no Claude workers ruleTracker
  • c21aff6bMerge branch 'records-hm55c' into mainTracker
  • 9ba258d3|||PR records: HM55b resultTracker
  • 64f2d300Merge branch 'records-hm55b2' into mainTracker
  • ae3b80dc|||PR records: HM55b briefTracker
  • 7ef3cb3bMerge branch 'records-st55' into mainTracker
  • fec2e080|||PR records: STATUS HM55Tracker
  • 8e174918Merge branch 'records-hm55b' into mainTracker
  • b1ecee57|||PR records: HM55 stateTracker
  • 28eab08cMerge branch 'records-hm55' into mainTracker
  • d3edaa05|||PR records: HM55 start, PROCEDURES.mdTracker
  • 3059f86cMerge branch 'records-design-rule' into mainTracker
  • 421a4809|||PR records: his-design rule (Apollo 2026-11-13)Tracker
  • d1390692Merge branch 'records-dp75b' into mainTracker
  • a4d1a7d2|||PR records: later steps checked, branch auditTracker
  • e070e16fMerge branch 'records-dp75' into mainTracker
  • 642b4fa8|||PR records: DP75 day62 live, AP62 briefTracker
  • bfc4ea4dMerge branch 'ap62' into mainTracker
  • 2c95ac46|||PR AP62: re-vendor Hybriel set day62 (source 70341ad2, bin a54f5f08)Tracker