ident
All repositories: gitoria
9.6 KB
# Report 013 — re-vendor ce6f2e0a + stopgap (#193) removed — worker B6, branch w13-revendor-193 (NOT merged, NOT deployed)**Deploy-ready: NO** — two Hybriel gaps below (MPackDB copy of a live store; MainMenu built late has no route). The app change itself (steps 2/3) is done and proven.## 1. Vendor (plugins committed; bin/ git-ignored, same build zig-out of ce6f2e0a, 13:29)- bin/hybriel sha256 eb5b4b29685fcc6a33327646e934296d6e46dfbda2d0df1e620a5b2c5d4f79e1 (was 60fa02f3…39080)- bin/hlc.o 0aab0e40ae6effb507b569a58d1c98c04f85c315cb069c48eb5ad89d7f7bc0d9 (was 37457b8d…5b8d)- bin/libhlrt.a 490378b070cf27c43113dcc1dd5de1c5dbd37773d5a9ea29458f1504b61f4ad1 (was 2ec0ac28…f2cf)- bin/hlrt/ replaced whole (sha256 of the sorted per-file sha list 26f6ceb1ee30e36d6850e2b42dd1e87deb2c6bfa7c017350987fe36635921bf6)- plugins/ core crypto data fetch fs http http1 mpackdb proc smtp time web replaced whole from hybriel master (24 files changed, as C7's).- theme/shell/main-menu.hl re-copied from layouts 0bcc629 (MainMenu reads the route; the shell passes no `current`).## Gates (own ports 8720–8729 via tools/rungate.sh, IDENT_COLD_MS=150000; logs atlas-evidence/B6/gates/)| gate | old (main, old bin) | new (final) ||---|---|---|| browser | 152/0 (012); the NEW tests on old code: 60 passed / 3 failed (the 3 new in-place checks) | **157/0** (152 + 5 new checks) || apps | 107/0 (012) | 107/0 || selector | 99/0 (012) | 99/0 || migration | 33/0 (012, rerun by me 33/0) | 33/0 || iplimit | 39/0 (012) | 39/0 || notify | **130/0** (my run) | **119/11 — Hybriel regression** || delivery | **49/0** (my run) | **46/3 — same regression** || check-theme | – | 0 problems (38 files) |(selector/apps/migration/iplimit/notify/delivery last run on the commit before the two last small edits — browser gate + E2E rerun after them.)### HYBRIEL REGRESSION on ce6f2e0a (notify, delivery): a store copied while a server has it open reads back with superseded rowstools/dump-store.hl (used by notify.mjs / delivery.mjs on a cpSync copy of the running server's store) now returns every version of an updated row and deleted rows (e.g. settings with 5 rows of the same id; "5 notifications" → 6; mailSent false). Log line of the new mpackdb: "the meta belongs to another data file (inode …, N bytes); its 3 tombstones are not applied". Cause (README #176): the meta is tied to the data file's inode; a copy has a new inode, so the tombstones are dropped. A copy taken after a clean close is fine. Minimal repro: .scratch/writer.hl + reader.hl in this branch: `D=<dir> bin/hybriel writer.hl` (put, 2×update, put, delete, then sleeps 20 s with the table open), copy the dir meanwhile, `D=<copy> bin/hybriel reader.hl` → 4 rows instead of 1 (old plugin: 1). Consequence beyond the gates: **restoring a backup tar taken from a running server (new inodes) resurrects old row versions and deleted rows.** Not worked around; gates NOT edited.### Gap 2 (Hybriel, small): the MainMenu built on the client after an emit has no routeServer-rendered pages mark the current page from the route (gate check: aria-current on /). But right after the IN-PLACE sign-in the shell's `if (shellIn) { MainMenu … }` is created on the client and its `route` is null, so no item is marked until the next navigation (the sidebar mark after a tap on Apps works). Kept as a known-gap check in tests/e2e-theme.mjs ("IN PLACE after the sign-in the main menu marks Identities"), not worked around (no `current` passed).## 2. The stopgap removed (components/home.hl, main.hl)- All `window.location.assign(homeUrl)` stopgap lines gone (verify, closeForm, saveForm, doSignOut, doSignOutAll; none left: grep stopgap = 0).- main.hl: `route = null` declared, MainMenu gets no `current`; new `on shellSession(email)` sets shellEmail/shellIn; home.hl emits `shellSession(r.account.email)` after a verify (first login too — the welcome form stays in place), `shellSession('')` after Sign out and Sign out everywhere. The notices are back: "Identity saved." / "Identity created." (also at the welcome save), "Signed out on every device."- Three things the stopgap had hidden, found by the E2E and fixed in .hl: (a) "Sign out everywhere" pushes `signedOutAll` to every open page of the account INCLUDING the caller, whose page reloaded and lost the notice → the caller tells its shell it is signed out first (restored on error) and the shell reloads only if it still thinks it is signed in; (b) the server dropped the caller's own session, so the next "Send me a code" on the same page did nothing → signOutAll keeps this browser's session (user cleared, like Sign out), every other session is dropped (epoch bumped as before); (c) signing out in place from the /code page left the code form beside the email form → `askCode = false`.- Gate/E2E checks that FAIL on old code (proved: new tests on the old tree): browser.mjs "sign out (in place, no reload): header has no user menu…" (old: stale), "B first login (in place…) header already has the user menu" (old: stale), "B saved: Identity saved. notice" (old: reload, notice missing; aborts at 90 s timeout); e2e old tree: 10/12, FAILs "after Sign out … NO user menu", "after Sign out everywhere … notice". A reload loses the page's `window.__m` marker, so each check proves "no reload". New: browser 157/0; E2E 390 26/26, 1280 25/25 (+1 known gap each), console errors 0, 390 audit taps<44 0 / inputs<16 0 / wider 0 / text<14 0.- Not covered: the OTHER device's page after a sign-out-everywhere (shell reloads while shellEmail != ''): one tab only in lisbeth; tests/signoutall.mjs (two browsers) was not run (its ports are outside my slot).## 3. E2E in lisbeth's Chrome (lock, one about:blank tab, own tunnel, copy of ident.worldapi.org-20261019-2203.tgz, sink mail; servers/tunnel outside the lock)Real mouse/key events. New 390: sign-in typed + code from the sink, user menu + main menu right after (no reload), #whoami, main menu mark (known gap), edit identity → "Identity saved.", sidebar, Apps tap (sidebar marks Apps), user menu + Escape, app registration/secret/invite, Sign out (menu gone, email form only), user-menu Sign out, sign in, Sign out everywhere (notice + no menu + no code form), first login welcome (menu already there, Skip in place). 1280 the same. Old tree 390 and 1280 (stopgap): 10/12, the two checks above fail.Evidence /media/STORAGE/claude-scratch/atlas-evidence/B6/: e2e-{new,old}-{390,1280}.log, PNGs new-390-*, new-1280-*, old-390-*, old-1280-*. Looked at: new-390-signed-out-all (email form + green "Signed out on every device.", brand-only header; the first version showed a leftover code form — fixed, see (c)), new-390-identity-saved (header with ☰ and user icon, notice scrolled above the list; list with the edited nickname "E2E390"), old-390-signed-out-all (email form, no notice), new-1280-signed-in-inplace (header Identities/Inbox/Apps + user icon right after sign-in, no mark on Identities = the known gap).Rate limit: the address limit ("too many codes were sent to this address") stopped the first 1280 run → one fresh data copy and server per width.## CleanupOwn servers, tunnel and Chrome killed by PID; ss 8720–8729 empty (8731 is not mine); data copies deleted; worktrees B6/old and B6/s1 are scratch (not in the branch).Files: tests/browser.mjs, tests/e2e-theme.mjs, components/home.hl, components/main.hl, theme/shell/main-menu.hl, plugins/, .scratch/writer.hl+reader.hl.# Addendum — B8 re-vendor of Hybriel master f9614007 (#200 sendPush, #202 mpackdb copy fix) — same branch w13-revendor-193bin/ is git-ignored; plugins/ (the same 11 dirs as before, no .zig-cache) committed. Build zig-out of 2026-10-21 18:48.- bin/hybriel sha256 9d957fed77d0bd7f0bfeb3b90beb358b524d24d555f63578d3340ecd63706b65- bin/hlc.o cf4fb7d3e37f7aa59b9124aa1bd1a97fb929688870ee5c7ae1c718621793f65d- bin/libhlrt.a 868266c424b96cb71fb937ef8d97c601164bf5e0b4fc422e589a44fb1944babb- bin/hlrt/ (sha256 of the sorted per-file sha list) 2e26de1849583dec91ce411214f311b01b0295c948bebf967558facef880b1ff- plugins/mpackdb/libmpackdb.so 6fb3b9d68a94720dd3466afef95cdc5cd32081d5bd11be384606a97b0da06d05 = the expected #202 fix (matches)- plugins/ whole tree (sorted per-file sha list) dedeb6be77a2de9505de34e4b00d7195de2820d6c52194e1f7b4ca00335c9713## Gates (own ports 8720–8729; B8 logs: atlas/B8/logs/)browser 157/0 · apps 107/0 · selector 99/0 · migration 33/0 · iplimit 39/0 (first run 38/1 "browser B: the code signs in (first login: the welcome form)" — load flake, rerun 39/0; first log wt-iplimit-run1.log) · **notify 130/0 · delivery 49/0 (the regression of ce6f2e0a is fixed by #202)** · check-theme 38 files, 0 problems.## E2E (lisbeth Chrome, lock, servers + tunnel outside the lock, one copy of the 20261019-2203 backup per width, sink mail)- 1280: 25/25, known gap 1/1 open, console errors 0.- 390: first run FAIL (2 checks: "NO MOUSEDOWN reached the page after click on #signout" → timeout, load flake; kept as e2e-new-390-run1-FAILED.log); rerun on a fresh copy 26/26, known gap 1/1 open (client MainMenu after in-place sign-in has no route — Arachne W54, batch 4), console errors 0, audit taps<44 0 / inputs<16 0 / wider 0 / text<14 0.- Looked at: new-390-signed-out-all (brand-only header, email form, green "Signed out on every device.", no code form); new-1280-signed-in-inplace (header Identities/Inbox/Apps + user icon right after the in-place sign-in, 5 real identities, no mark on Identities = the known gap).- Evidence /media/STORAGE/claude-scratch/atlas-evidence/B8/ (e2e-new-{390,1280}.log, PNGs).**Deploy-ready: YES** (the two Hybriel gaps of the first report: gap 1 fixed by #202; gap 2 = the known MainMenu-route gap, kept as a known-gap check, cosmetic).Cleanup: own servers/tunnel killed by PID, ss 8720–8739 (8731 foreign) empty, data copies deleted.
Branches
Latest commits
- 4ca2ed20404 page in the shell (viewport, status 404, way home); phone: account actions live in the user menu so the open menu covers nothing; mobile gate; signoutall waits for a cold startmre
- 9baad745tests: browser gate waits for the reloaded document (offline reload race under CPU throttle); HL_CPU_THROTTLE knobmre
- b96796bdtests: wait for hydration before real clicks after a navigation (H2)mre
- 9722964fre-vendor Hybriel 5406d146 (hl:web batches 9+10: #72 emits while the socket is closed delivered after reconnect, browser boot linear, faster list appends; contains int 6–14 + m406)mre
- c9b196c9tests/iplimit: wait for the welcome form itself after B's first login (identities list renders before it); mission 017 reportmre
- 72e0f587ident#26: identity page with "Used in" (app, since, last use, Notif. chip, empty state); lastLogin recorded at exchange; gates + lisbeth E2E; mission 016 reportmre
- 94576fbcident#26 WIP: identity page /identity/:iid with "Used in" (app, since, last use, Notif. chip), lastLogin recorded at exchange, "Used in…" link on the identities list; apps gate 4b, e2e-usedin.mjsmre
- 349cb502tests/invites: wait for hydration on the code page before entering the code (native GET submit raced the welcome form); mission 015 reportmre
- d1bf4720tests: no hard-coded ports — every gate's ports and fixture origins come from <GATE>_PORT / _CHROME env (defaults unchanged; Bob/fixture origins follow, selector cookie name too)mre
- 6280c92fre-vendor Hybriel 6f8a0689 (int 6–11: streaming cursors, #203 index heal + close() fix, fd403 listDir/cursor fds, hl:time browser side, hl:web batches 5+6)mre
- 147744bftests/migration: the fixture app origin follows MIGRATION_GATE_TESTAPP_PORT (oldstore-009 OLD_TESTAPP)mre
- 48cd36bctests/migration: ports from env (MIGRATION_GATE_PORT, MIGRATION_GATE_TESTAPP_PORT); 8395/8396 were taken by a foreign servermre
- 3d9b2fd8docker-compose: nofile 65536 (Hybriel int 6+ boot opened >1024 files in the tracker)mre
- 19b7e3c3deploy: backup copies index files first and *.mpack data last (hot-copy skew, hybriel #203)mre
- c8a596f4re-vendor Hybriel 66c3db71 (web batch 4); e2e: main menu marked after in-place sign-in is a normal check; report 014mre
- 8f3dc1ectests: delivery allow-list for the stopped server's network errors uses the gate port, not 8700mre
- 9cc8eddftests: notify and iplimit gate Chrome ports from env (NOTIFY_GATE_CHROME, IPLIMIT_GATE_CHROME_A/B)mre
- d6da2d02tests: delivery and migration gate ports from env (DELIVERY_GATE_PORT, DELIVERY_GATE_CHROME, MIGRATION_GATE_CHROME) — hard-coded 8700-8719 collided with a worker during deploymre
- 7276a008ident mission 013: re-vendor Hybriel master f9614007 (#200, #202 mpackdb copy fix); gates and e2e rerunmre
- e13e30c3ident mission 013: report, mission, repro, LOGmre