tracker
All repositories: gitoria
14.0 KB
# HM62b — person indexes with the m588 coverage fixThis resumes `hm62-personindex` at `66f83de373e3863323d734edfed2db999e0570fe`, based on main `90734c6` and the HM61 merge. No deployment, push, main-branch change, or byrodin operation was performed. The native-index application implementation from HM62 was retained; this continuation supplies the fixed-runtime measurements and behavior evidence. Browser confirmation remains unavailable, so this report is not full deployment approval.## Runtime and reproductionBEFORE is main `90734c6`; AFTER is the HM62 branch. Both real-copy measurements used tracker binary SHA256 `6b481aa717128a5e2a35f0652606fbeed422227ed7f32c3a6fb26f3d859cd78f` with the fixed plugin SHA256 `5c40ac44cde7b49dcedc584985ab41a343f7b04bf4075993c31eb339475e33e3`, copied only under this mission's scratch. No runtime or plugin is committed or re-vendored. The first `HL_PLUGIN_DIR`-only attempt still selected the old plugin when compiling the tracker repro and returned zero matches. A test-only replacement of the worktree's plugin `.so` selected the fixed plugin and passed with the tracker's own binary; the m588 binary also passed. The original plugin was restored after testing.`runtime-check.log` records `verify pk=true`, `verify slug=1`, `verify tmdb=1` for both binary checks. `migration-mixed.log` independently uses the original plugin for seed/oldwrite and the fixed plugin for build/verify; it also returns 1 for both added indexes. Anton's source directory was read only.All evidence and runners are under `/media/STORAGE/claude-scratch/tracker/HM62b/`. The data source was only `storage/` from `tracker.worldapi.org-20261104-0940.tgz`, excluding posters/profiles, sessions and `.env`. Disk initially had 181 GiB available. Jobs were disabled using HM1's recipe; the listener was `127.0.0.1:8712`; compilation caches and temporary files stayed in scratch. No imported production session or token was used. The explicit main `90734c6` baseline takes precedence over HM62's older generic `2e7d625` reference.## Boot and memory measurementsThese wall times run from process launch through the warmed, listening server and include compilation where needed. The person-open timer directly surrounds the `new MPackDB` call; it is separate from the app's boot-scan log. RSS values are KiB from `/proc/<pid>/status`. First builds had cold compilation, while following identical entries could use the cache, so the total launch-time difference is not an isolated index-build measurement. The direct person-open timings isolate that operation.| Run | Person open ms | Ready seconds | Boot scan ms | Ready RSS KiB | Ready high-water KiB ||---|---:|---:|---:|---:|---:|| before | not captured | 239.075 | 125043 | 7297444 | 7297444 || build | 2950 | 256.102 | 132957 | 6607524 | 6756536 || normal | 558 | 153.051 | 125108 | 7029788 | 7098732 || oldwrite | 207 | 220.082 | 131003 | 7117992 | 7155240 || rebuild | 2743 | 169.079 | 133260 | 6196972 | 6523716 || guest-after | 417 | 165.076 | 134146 | 6562408 | 6887592 |The build run is the first AFTER open on the old store. Normal is the following new-code boot. Oldwrite uses the actual main `90734c6` application with its old index declarations and creates two guests through HTTP. Rebuild is the next new-code boot after those writes; it reads 1,220,684 person rows, compared with 1,220,682 before the fixture writes. The first three measured boots read 280,138 titles, 2,551,065 episodes and 1,220,682 person rows. The later copy-only guest fixture adds one title. `measure.json`, the named server logs and `gc-summary.json` retain the exact observations.One immediate normal-boot attempt failed: `normal-failed.log` records a successful 599 ms person open followed by `mpackdb plugin: open failed: LockTimeout` and the framework's `Undefined variable 'Error'` error path. The copied `episodes.lock` contained the terminated build PID 4109609. The process was gone. A subsequent retry succeeded without deleting, rewriting or otherwise bypassing the lock. Later launches were spaced to allow shutdown/stale-lock handling. The successful normal result in the table is the retry, not evidence that every immediate restart succeeds. This operational limitation must remain visible in a handover plan.## Warmed GC resultEach side ran the same six complete streaming person censuses after boot, using `HL_GC_STATS=1` and ordinary allocation-triggered GC. Only collections between census start 0 and census done 5 are summarized; startup and shutdown collections are excluded. All requested statistics below are medians of those collections, not RSS. Conservative stack roots and the current decoded row produce small variation.| Version | Warm collections | Marked objects | Live bytes | Mark ms | Pause ms ||---|---:|---:|---:|---:|---:|| before | 35 | 13488773 | 1197466206 | 1256.84 | 2251.206 || build | 43 | 11047466 | 952222819 | 952.882 | 1802.819 |The object reduction is 2441307 (18.10%). The measured change includes HM61's packed people order and the replacement of the person lookup maps. RSS at census end was 3923780 KiB BEFORE and 3748276 KiB AFTER; the full-process high-water values were 8296264 and 6958740 KiB. RSS includes native indexes, the GC object table, temporary rows and allocator retention. It is not the GC live-byte counter.## Standby and migrationThe fixed mpackdb documentation says coverage is persisted independently per declared index in `idxstate.json.fields`. Missing or unequal coverage rebuilds all requested indexes under the table lock; an old writer drops or invalidates that coverage. Index text and MessagePack formats stay compatible. The application keeps `@id`, `compact=false`, and nonunique slug/TMDB indexes; there is no record transformation or separate migration API.The two-process test uses the real restored persons store, with the original plugin and old declarations in one process and the fixed plugin and new declarations in the other. Both stay open while the old process writes, then the new one queries and writes, then the old one reads. It uses the same tracker binary and test source in separate copied plugin roots. Exact output:```textold open ms=211old wrote=hm62-standby-oldold sees new pk=truenew open ms=345new sees old pk=true slug=1 tmdb=1Cold rebuild with original writer held open:old open ms=514old wrote=hm62-coldstandby2-oldold sees new pk=truenew open ms=3021new sees old pk=true slug=1 tmdb=1```The first cold-overlap attempt reused the preceding fixture's TMDB IDs and incorrectly asserted that two valid matches should be one. It was excluded and stopped by the saved PIDs in `standby-collision-pids.json`; `standby-collision-new.log` preserves that fixture mistake. A fresh distinct-ID repeat passed. Both openers were allowed. A second overlap first makes the original-plugin writer persist a seed while it remains open, invalidating per-field coverage; the new opener therefore performs its rebuild with that old handle still live, then repeats bidirectional write visibility. Held-open native/runtime RSS was {"new": {"VmHWM": 512732, "VmRSS": 512732}, "old": {"VmHWM": 273328, "VmRSS": 273328}} KiB (each role is a separate process). The new opener used 239,404 KiB more resident memory than the old opener in that held-open comparison. This small tool retains no application maps, providing a useful native-index comparison; the process difference is not a precise allocation profiler.The standby test passed, including a rebuild while the original writer remained open. This supports a standby migration with the fixed runtime, subject to the operational limitations below. The verdict is limited to the measured overlap and lookup visibility shown above, together with the separate rollback/reopen reproduction. The app's preexisting in-memory lists remain boot snapshots while both versions run; this does not promise live cross-process refresh of every application cache. For a future authorized deployment, the runtime set must contain the m588 fix, the first new opener automatically builds the declared indexes, and returning after an old-code open/write incurs the measured rebuild. Keep the old service serving until the standby is fully ready. Do not infer an unconditional immediate-restart guarantee from the successful overlap: the stale-lock attempt above and the unavailable Chrome proof remain explicit limitations. This mission deployed nothing.## HTTP and gatesThe focused `tests/person-index.hl` fixture passed on both versions (`fixture-before.log`, `fixture-wt.log`): duplicate slug/TMDB winners, numeric/string TMDB queries, missing/null/empty lookups, conflict suffixes, repeat cast imports, and guest creation/revisits.before vs build: 8 responses; status and Location True; normalized HTML True.oldwrite vs guest-after: 8 responses; status and Location True; normalized HTML True.The real-copy comparison covers `/people`, `/people/page/2`, `/person/Park-Cheol-woong`, `/person/Luca-Tomassini`, `/person/Burak-Kuka`, the missing-slug page, invalid `/person/tmdb/0`, and `/person/tmdb/1` (302 to `/person/George-Lucas`). The normalized page comparison removes build hashes and the offline timestamp; raw bodies and comparison code remain in scratch. Guest creation uses `/person/tmdb/987654330?show=hm62-guest-show` and `/person/tmdb/987654331?show=hm62-guest-show`, twice each; the first free slug is `HM62-Guest` and the next is `HM62-Guest-2`. The checkpoint was restored between versions so each exercises actual creation. Random generated IDs, short IDs and runtime timestamps are normalized only for this controlled fixture. The synthetic guest show and records existed only in the disposable copy.The 11 gates ran with the supplied shared port variables under `flock /media/STORAGE/claude-scratch/tracker/gates.lock`, after stopping the copy app. The driver is a local copy of CB's runner; gate logs are `log-*.txt`. Exact runner output:```text=== node tests/browser.mjs 22:19:05rc=0 ok no console errors/warnings 389 passed, 0 failed=== node tests/security.mjs 22:25:06rc=0 ok the server did not crash or panic through all of it 56 passed, 0 failed=== node tests/kinds.mjs 22:25:35rc=0 ok browser: no console errors / failed requests 32 passed, 0 failed=== node tests/franchises.mjs 22:26:23rc=0 ok no console errors/warnings 53 passed, 0 failed=== node tests/pager.mjs 22:27:01rc=0 ok 1280px script: no console errors/warnings 229 passed, 0 failed=== node tests/franchiseseed.mjs 22:29:24rc=0 ok no error in the server log (absorbed errors included) 26 passed, 0 failed=== node tests/signin-return.mjs 22:30:15rc=0 ok signed in: the selector says so and the one-time code is not left in the URL 3 passed, 0 failed=== node theme/check-theme.mjs . 22:30:43rc=0 check-theme: 115 files, 0 problems=== node tests/person-lookup.mjs 22:30:43rc=0 ok people.hl personBySlug ok components/person.hl person-lookup: passed=== node tests/mobile.mjs 22:30:43rc=0 ok browser: no console errors / failed requests 45 passed, 0 failed=== node tests/warmstart.mjs 22:31:08rc=0 ok after: an unknown short id is a 404 again 12 passed, 0 failedALLDONE 22:31:13```Chrome confirmation could not run: `chrome-connect.log` records `ssh: connect to host 192.168.178.50 port 22: No route to host`. No manual-proof browser tab or tunnel was opened; the automated gates used their normal browser helpers. A final lisbeth page-target list was therefore not obtainable; no empty list is claimed as proof. No live-page test was authorized or performed.## Cleanup and documentationThe restored `copy/` and `guest-checkpoint/` were deleted. All measured app processes were stopped by their saved PIDs, checked inside this scratch; their recorded exits are:```json[{"name": "before","pid": 4082197,"exit": 143},{"name": "build","pid": 4109609,"exit": 143},{"name": "normal","pid": 4138055,"exit": 1},{"name": "normal","pid": 4142664,"exit": 143},{"name": "oldwrite","pid": 4158940,"exit": 143},{"name": "rebuild","pid": 4179898,"exit": 143},{"name": "guest-after","pid": 3398,"exit": 143}]```The aborted first measurement was PID 4075429, stopped with SIGTERM because it overlapped extraction; it is excluded from all results. Extraction PIDs 4067170 and 4078820 completed. Standby PIDs were [20755, 20810] and [34220, 34299]; excluded collision attempt [30907, 30963], all waited to exit by the runner. Short fixture/compiler processes completed; not every short subprocess PID was separately captured. Gate helpers were managed by their existing cleanup paths; `process-final.json` records the final scratch process audit. No Chrome or tunnel was started for manual proof. `cleanup-port.txt` contains:```textState Recv-Q Send-Q Local Address:Port Peer Address:PortProcess```The WIP application's source was restored after temporary instrumentation, and the original tracked plugin binary was restored. No `bin/` or `plugins/` change is committed. Only this report is copied to the main checkout; no LOG/STATUS edits are made. No deployment or push occurred.DOCS: Read the complete HM62b and HM62 briefs and HM62 report, archived WORKER-RULES, HL-PRIMER and CODE-ORDER, project map, README configuration/storage/testing/vendor material, HM1 report/start recipe/instrumentation/deltas and server-log evidence, archived MANUAL/RULINGS, and MPackDB README/class/cursor API. The m588 README's coverage section explains rebuild behavior. The current MANUAL path is absent; its specified archive was used. No component or style work was performed. Missing proof is the unreachable lisbeth Chrome check; no language/runtime workaround was introduced.Request accounting: approximately 100 responses: 15 for inspection/setup, 15 for runtime/instrumentation/measurement work, 50 for long-run status and bounded waits, and 20 for recovery, cleanup and reporting. The approximate 60-response allowance was exceeded by repeated bounded waits during the real-copy boots and gate run; no additional feature work was added. Exact billed USD is unavailable from these tools. No subagents or paid external services were used.
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