gitoria

ident

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmain0f6d1592Merge branch 'f18b-shell-session' into mainIdentmain/reports/013-revendor-193.md

9.6 KB

  1. # Report 013 — re-vendor ce6f2e0a + stopgap (#193) removed — worker B6, branch w13-revendor-193 (NOT merged, NOT deployed)
  2. **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.
  3. ## 1. Vendor (plugins committed; bin/ git-ignored, same build zig-out of ce6f2e0a, 13:29)
  4. - bin/hybriel sha256 eb5b4b29685fcc6a33327646e934296d6e46dfbda2d0df1e620a5b2c5d4f79e1 (was 60fa02f3…39080)
  5. - bin/hlc.o 0aab0e40ae6effb507b569a58d1c98c04f85c315cb069c48eb5ad89d7f7bc0d9 (was 37457b8d…5b8d)
  6. - bin/libhlrt.a 490378b070cf27c43113dcc1dd5de1c5dbd37773d5a9ea29458f1504b61f4ad1 (was 2ec0ac28…f2cf)
  7. - bin/hlrt/ replaced whole (sha256 of the sorted per-file sha list 26f6ceb1ee30e36d6850e2b42dd1e87deb2c6bfa7c017350987fe36635921bf6)
  8. - plugins/ core crypto data fetch fs http http1 mpackdb proc smtp time web replaced whole from hybriel master (24 files changed, as C7's).
  9. - theme/shell/main-menu.hl re-copied from layouts 0bcc629 (MainMenu reads the route; the shell passes no `current`).
  10. ## Gates (own ports 8720–8729 via tools/rungate.sh, IDENT_COLD_MS=150000; logs atlas-evidence/B6/gates/)
  11. | gate | old (main, old bin) | new (final) |
  12. |---|---|---|
  13. | 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) |
  14. | apps | 107/0 (012) | 107/0 |
  15. | selector | 99/0 (012) | 99/0 |
  16. | migration | 33/0 (012, rerun by me 33/0) | 33/0 |
  17. | iplimit | 39/0 (012) | 39/0 |
  18. | notify | **130/0** (my run) | **119/11 — Hybriel regression** |
  19. | delivery | **49/0** (my run) | **46/3 — same regression** |
  20. | check-theme | – | 0 problems (38 files) |
  21. (selector/apps/migration/iplimit/notify/delivery last run on the commit before the two last small edits — browser gate + E2E rerun after them.)
  22. ### HYBRIEL REGRESSION on ce6f2e0a (notify, delivery): a store copied while a server has it open reads back with superseded rows
  23. tools/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.
  24. ### Gap 2 (Hybriel, small): the MainMenu built on the client after an emit has no route
  25. Server-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).
  26. ## 2. The stopgap removed (components/home.hl, main.hl)
  27. - All `window.location.assign(homeUrl)` stopgap lines gone (verify, closeForm, saveForm, doSignOut, doSignOutAll; none left: grep stopgap = 0).
  28. - 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."
  29. - 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`.
  30. - 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.
  31. - 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).
  32. ## 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)
  33. 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.
  34. 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).
  35. 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.
  36. ## Cleanup
  37. Own 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).
  38. 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.
  39. # Addendum — B8 re-vendor of Hybriel master f9614007 (#200 sendPush, #202 mpackdb copy fix) — same branch w13-revendor-193
  40. bin/ is git-ignored; plugins/ (the same 11 dirs as before, no .zig-cache) committed. Build zig-out of 2026-10-21 18:48.
  41. - bin/hybriel sha256 9d957fed77d0bd7f0bfeb3b90beb358b524d24d555f63578d3340ecd63706b65
  42. - bin/hlc.o cf4fb7d3e37f7aa59b9124aa1bd1a97fb929688870ee5c7ae1c718621793f65d
  43. - bin/libhlrt.a 868266c424b96cb71fb937ef8d97c601164bf5e0b4fc422e589a44fb1944babb
  44. - bin/hlrt/ (sha256 of the sorted per-file sha list) 2e26de1849583dec91ce411214f311b01b0295c948bebf967558facef880b1ff
  45. - plugins/mpackdb/libmpackdb.so 6fb3b9d68a94720dd3466afef95cdc5cd32081d5bd11be384606a97b0da06d05 = the expected #202 fix (matches)
  46. - plugins/ whole tree (sorted per-file sha list) dedeb6be77a2de9505de34e4b00d7195de2820d6c52194e1f7b4ca00335c9713
  47. ## Gates (own ports 8720–8729; B8 logs: atlas/B8/logs/)
  48. 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.
  49. ## E2E (lisbeth Chrome, lock, servers + tunnel outside the lock, one copy of the 20261019-2203 backup per width, sink mail)
  50. - 1280: 25/25, known gap 1/1 open, console errors 0.
  51. - 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.
  52. - 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).
  53. - Evidence /media/STORAGE/claude-scratch/atlas-evidence/B8/ (e2e-new-{390,1280}.log, PNGs).
  54. **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).
  55. Cleanup: own servers/tunnel killed by PID, ss 8720–8739 (8731 foreign) empty, data copies deleted.

Branches

Latest commits

  • 0f6d1592Merge branch 'f18b-shell-session' into mainIdent
  • 19868218|||PR ident#39 shell reads its session member instead of a cross-file emitmre
  • 5d1b3fedMerge branch 'v61-day61' into mainIdent
  • 83faeb15|||PR ident: vendor Hybriel day61mre
  • b2572b34Merge branch 'v59-day59' into mainIdent
  • 67cf016d|||PR ident: vendor Hybriel day59mre
  • 600c043dMerge branch 'v58-day58' into mainIdent
  • 365f8c80|||PR ident: vendor Hybriel day58mre
  • 585126e5Merge branch 'f16-setf' into mainIdent
  • 953bf03a|||PR ident setF mirror dropped (hybriel#370)mre
  • a1419d9cMerge branch 'f15-navigate' into mainIdent
  • 3b3e451f|||PR ident#36 navigate to the app instead of location.assignmre
  • e36f4516Merge branch 'f14-online' into mainIdent
  • 2c5eac91|||PR ident#38 online state without probe timermre
  • bf1980f2Merge branch 'v56-day56' into mainIdent
  • 62ae0adf|||PR ident: vendor Hybriel day56mre
  • 0d18abc4Merge branch 'f13-avatar' into mainIdent
  • 2a99730a|||PR ident#37 avatar in hlmre
  • fa4ed25bMerge branch 'f11-upsert' into mainIdent
  • 8f3d9bc9|||PR ident#42 keyed upsert and removemre