gitoria

tracker

All repositories: gitoria

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

9.7 KB

  1. # HM61 — packed people order
  2. The implementation is committed on `hm61-peopleorder` at `b5357ac411a784c120aaa2febd27c963cb7cd136`, branched from `2e7d625`. It preserves the order and paging with a packed representation and releases the finished startup arrays. **This standalone change does not remove 2.4 million live objects.** It saves approximately 18.85 MB of runtime-counted bytes; the ID strings remain reachable elsewhere. The larger HM1 result was an ordered marginal deletion after removing other indexes, not an independent prediction for this ticket. No search, person-map or catalog optimization was included.
  3. The implementation and automated checks are complete. Required confirmation in the creator's Chrome is blocked: SSH to lisbeth (192.168.178.50) returned `No route to host` both before and after the work. No tab, browser or tunnel was opened there, and neither the initial nor final page list could be obtained. No screenshots are claimed. This candidate has not been merged, pushed or deployed.
  4. ## Change and behavior
  5. `lib/people.hl` now keeps UTF-8 ID bytes and little-endian 32-bit offsets in two `Bytes` values, with an explicit count. A normal page decodes only its at most 24 IDs. The stable sort and its reverse-storage tie order are unchanged. Duplicate physical rows retain their original behavior. Recent touches still move the latest distinct touches to the front and remove all their earlier occurrences. The photo queue takes its own packed snapshot, preserving its order while updates occur. Both completed scan arrays are replaced by empty arrays rather than retained with null slots. Storage schemas, UUID `@id` keys, ID spelling, slug lookup, short-ID ownership and disk indexes are unchanged.
  6. The offsets support a packed ID payload below 4 GiB, well above this copy's size. Packing trades decoding and rebuilding work for smaller retained array storage. Real-copy update latency was not measured; the update and photo-snapshot checks used the fixture described below. There was no new migration. A live step would require only the normal code rollout after the missing browser confirmation; no stored-data conversion or index rebuild is needed. The copy's ordinary startup summary migration was permitted to run only on the disposable copy.
  7. ## Measurements
  8. The backup was `/media/STORAGE/deploy-backups/tracker.worldapi.org/tracker.worldapi.org-20261104-0940.tgz`. Available disk was 186 GB before extraction. Only storage was extracted, excluding posters/profiles; no sessions or `.env` were restored. Both versions used the HM1 startup recipe with every job disabled, `HL_HOST=127.0.0.1`, port 8712, and `HL_CACHE_DIR` inside this scratch directory. Both used the identical copied local binary/runtime/plugins; binary SHA256 was `6b481aa717128a5e2a35f0652606fbeed422227ed7f32c3a6fb26f3d859cd78f`. Nothing was re-vendored in the committed branch.
  9. After warming, each version streamed the same 1,220,682 persons four times without retaining census rows. The temporary application-only clock instrumentation used normal allocation-triggered collection, never `import c` or a runtime patch. It was removed before the gates and commit. Each final run produced 17 warmed `[hl-gc]` observations. The table reports medians over the final 10 observations of each run; exact final observations are also given. These runtime counters are not RSS.
  10. | Metric | Before, main 2e7d625 | After, b5357ac |
  11. |---|---:|---:|
  12. | Warmed collections captured | 17 | 17 |
  13. | Median marked objects, final 10 | 17,988,025 | 17,988,595.5 |
  14. | Median live_bytes, final 10 | 1,266,380,124.5 | 1,247,524,586.5 |
  15. | Median mark_ms, final 10 | 1823.2525 | 1662.8755 |
  16. | Median pause_ms, final 10 | 3161.408 | 2971.4425 |
  17. | Final marked objects | 17,988,003 | 17,988,596 |
  18. | Final live_bytes | 1,266,379,225 | 1,247,524,643 |
  19. The final byte decrease is 18,854,582 bytes (about 1.49%). Objects increased by 593, effectively unchanged at this scale. Median mark/pause decreased about 8.8%/6.0%, but the sequential runs shared a busy machine, and unchanged object count does not establish a reproducible GC speedup. This is a modest array-storage saving, not the expected multi-million-object win. It should be reviewed on that basis.
  20. Evidence is in `/media/STORAGE/claude-scratch/tracker/HM61/`: `before2.log`, `after2.log`, `measurements.json`, `start.sh`, `prepare.py`, `final-run.py` and `summarize.py`. The initial `before.log`/`after.log` pair captured only 8/9 warmed collections and is excluded from the reported measurements; it supplies the HTTP comparison. The repeated four-pass pair corrected that minimum-GC shortfall.
  21. ## Functional proof and gates
  22. The real-copy HTTP samples were `/people`, `/people/page/2`, `/people/page/100`, `/people/page/50862`, `/people/page/50863`, `/people/page/0`, `/people/page/nope`, `/person/tmdb/0`, and `/abcde`. All nine had identical statuses, Location headers and ordered person links. The people responses were 200, with 24 tiles except the final/clamped final page, which had 18; the two invalid-person/short-ID samples were 404. All nine complete HTML bodies matched after normalizing only the framework build query hash and offline timestamp. Raw HTML and comparisons are preserved as `before-*.html`, `after-*.html`, `before-http.json`, `after-http.json` and `http-normalized.json`.
  23. `tests/people-order.hl` seeds 63 people plus a repeated physical view entry, spanning zero timestamps and equal positive timestamps. It covers every page, oversized/zero/negative/nonnumeric page input, repeated touches, a newly added person, a second read, and a photo snapshot taken before those changes. Its complete output matched the original implementation byte for byte; assertions also check counts, page sizes, first entries and snapshot duplicates. The fixture's untouched and updated views both have 64 entries: adding one person and collapsing the touched duplicate balance exactly. `functional-before.txt` and `functional-after.txt` retain the evidence. An initial wrong snapshot assertion index was corrected from 58/59 to 57/58; the final assertion run passed.
  24. The entire suite ran only under `flock /media/STORAGE/claude-scratch/tracker/gates.lock bash /media/STORAGE/claude-scratch/tracker/HM61/gates.sh`, using the prescribed shared ports, with the copy application stopped. Existing gate startup allowances were retained. All 11 passed, with zero failures:
  25. | Gate | Result |
  26. |---|---|
  27. | browser | 389 passed, 0 failed |
  28. | security | 56 passed, 0 failed |
  29. | kinds | 32 passed, 0 failed |
  30. | franchises | 53 passed, 0 failed |
  31. | pager | 229 passed, 0 failed |
  32. | franchiseseed | 26 passed, 0 failed |
  33. | signin-return | 3 passed, 0 failed |
  34. | check-theme | 109 files, 0 problems |
  35. | person-lookup | passed |
  36. | mobile | 45 passed, 0 failed |
  37. | warmstart | 12 passed, 0 failed |
  38. `gates.log` and `log-*.txt` preserve the full results. They ran from 21:15:41 to 21:27:40 local time, after waiting for the shared lock. These automated headless gates do not substitute for the unavailable lisbeth confirmation.
  39. ## Cleanup, documentation and remaining work
  40. The copy application PIDs were 3029643 (an early failed start), 3037788 (successful initial baseline), 3123120 (initial packed run), 3201272 and 3280418 (final measurement pair). All are stopped. Earlier launch PIDs 3015472 and 3026275 exited, and an early foreground start was stopped with Ctrl-C. The launcher PID 3015471 exited. The obsolete gate waiter PID 3055388 was stopped with SIGTERM after checking its cwd. Final gate flock PID 3367287 completed and exited; orchestrators 3047471 and 3137233 completed. Extraction tar/gzip PIDs 2993601/2993602 completed. Some short foreground probe, extraction-list, compiler and gate child server/Chrome PIDs were not separately recorded; that is a process-accounting limitation. The final cwd audit found only the Codex harness and its audit command, with no remaining application, gate, Chrome, tunnel or loop in scratch. `cleanup.txt` shows port 8712 free. `process-final.json` preserves the audit. The extracted `copy/` has been deleted.
  41. No Chrome tab was created on lisbeth. `chrome-initial.json` and `chrome-final.json` are empty because the host could not be reached; `chrome-final-error.txt` records the error. The required final target list is therefore unavailable, not an empty-list assertion. The next confirmation is to check the copy in his Chrome at phone, both tablet orientations and desktop when connectivity returns. Real-copy updates should also be timed before claiming this is a useful performance optimization.
  42. DOCS: Read the complete brief, archived WORKER-RULES, HL-PRIMER and CODE-ORDER; consulted project.hl's complete map, README configuration/data/testing/vendor sections, archived RULINGS and CONDUCTOR.md, SPEC.md Bytes and References, the HM1 report/start recipe/instrumentation/log/deltas, and the original people/boot-scan implementation. The current MANUAL path was absent, so the archived rules and project conductor document supplied the applicable context. No components or styles changed. The Bytes/reference documentation supplied the working shapes; no Hybriel runtime gap required a workaround. A first helper declaration used unsupported `String &id`/`Bytes &ids` syntax; it was corrected to the existing documented `&id`/`&ids` parameter shape before verification.
  43. Work used roughly 65–70 API interactions: about 20 for rules/source/setup, 20 for implementation and fixture checks, 15 for measurement setup/corrections, and 10–15 for bounded waiting, final verification and reporting. This exceeded the approximate 60-request target because the first measurement did not meet the required 10 GCs and was repeated; the long measurement/gate wait itself was one orchestration call. Exact billed USD is not exposed here. No subagents or external paid services were used. Only this report was written in the main repository; no LOG/STATUS edits were made.

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