gitoria

notes

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitba1e73f8ba1e73f8notes: a sent edit is done once the server's version is not older, so a second writer's text shows in the first tab; gate: two writers both waysmreba1e73f8/reports/015-revendor-197.md

4.4 KB

  1. # Report 015 — re-vendor f9614007 + route marker (#197) — worker J6, branch w15-revendor-197 (NOT merged/deployed)
  2. ## Vendor (bin/ is git-ignored; from hybriel native/zig-out, static build 18:48 = f9614007)
  3. - bin/hybriel 9d957fed77d0bd7f0bfeb3b90beb358b524d24d555f63578d3340ecd63706b65 (was 60fa02f3…)
  4. - bin/libhlrt.a 868266c424b96cb71fb937ef8d97c601164bf5e0b4fc422e589a44fb1944babb (was 2ec0ac28…)
  5. - bin/hlc.o cf4fb7d3e37f7aa59b9124aa1bd1a97fb929688870ee5c7ae1c718621793f65d (was 37457b8d…); bin/hlrt/ replaced.
  6. - plugins/ (core crypto data fetch fs http http1 mpackdb proc time web — the same 11 dirs) replaced whole from hybriel; identical to f9614007 for these dirs (master only moved in plugins/markdown since).
  7. ## Gates (ports 8740–8751; old = main 447da53 + old bin in wt-old, new = branch; own HL_CACHE_DIR; logs J6/wt/logs)
  8. | gate | old | new |
  9. | browser.mjs | 66/0 (old-browser.log, run at 8750–8759, before the narrower port range arrived) | 66/0 (new-browser2.log; `grep TypeError` 0). Run 1: 41/1 "B follows the delete" timeout (rerun once → 66/0) |
  10. | realdata-offline (backup 0132) | 12/0 | 12/0 |
  11. | e2e-roundtrip (28 notes) | 5/0 | 5/0 |
  12. | check-theme | — | 21 files, 0 problems |
  13. Final tree (with 3 new server-HTML checks): browser 69/0 three times (final1–3.log). The "B follows the delete" timeout appeared again once in the experiment run without current = true (see below); 2 of ~8 new-tree runs, 0 of 1 old run — an open point (machine overloaded; passes on rerun; not reproduced in the 3 final runs).
  14. ## Route marker (#197) — `current = true` STAYS
  15. theme/shell/main-menu.hl re-copied verbatim from layouts 0bcc629. The route marks an item with href '/' only on the page '/' itself (by design: '/' is not "above" other pages). Experiment, `current = true` removed: server HTML of '/' marked; '/note/abc123def456' and '/login/failed' NOT marked (`class="" aria-current="false"`). components/main.hl keeps `current = true` with a comment saying so. New gate checks (tests/browser.mjs): plain fetch of /, /note/<id>, /login/failed → both menus (header + sidebar) carry aria-current="page" and class current in the server's HTML before any script. Shown to FAIL without current = true (nocurrent.log: 42 passed, 3 failed — the two non-'/' pages + the flake), pass with it.
  16. ## E2E in lisbeth's Chrome (tests/e2e-chrome.mjs, flock -o, tunnels outside the lock, ONE about:blank tab, real keys/clicks, 390 then 1280)
  17. - NEW: **39 passed, 0 failed** (e2e-new5.log): list → note (editor has content) → typing heading/bold/list/table → save → reload → offline edit → online → server has it → delete question opens and stays → delete; user menu + Escape; sidebar; menu marks the page on list, on a note, and after a real click on the item (sidebar at 390, header at 1280). 390 audit: 0 taps < 44, no overflow.
  18. - Earlier new runs (e2e-new, new2–4) failed at different steps with the tab showing a signed-out page: cause = the shared Chrome's cookie jar. Cookies ignore ports, so another worker's app on 127.0.0.1 overwrote/lost `notessid`; fix: tests/e2e-chrome.mjs honours `E2E_HOST` (run with `E2E_HOST=localhost`, own jar; API calls stay on 127.0.0.1). With it the run is green. Not a code bug (the old tree failed the same way before the fix).
  19. - OLD (wt-old) with E2E_HOST=localhost: 2 runs, both crashed (once "no #sidebar main-menu a", once "menu item leads to the list", the tab showing a signed-out page) — inconclusive, the shared Chrome was busy with other workers (tabs of other apps open); not repeated. OLD with 127.0.0.1: 12/2 (first run).
  20. - Shots (atlas-evidence/J6/): new-{390,1280}-{1-list,1b-user-menu,1c-sidebar,1d-note,1e/1f-menu…,1g-menu-after-click,2-typed,3-reloaded,4-offline,5a-delete-ask,5-end,audit-*}.png; old-390-* partial. LOOKED AT: new-390-5a-delete-ask (note with heading, table, list, toolbar; "Delete this note for good? Delete / Keep" open below, nothing overflowing) and new-1280-1f-menu-on-note (list left, editor with the note, header "Notes" with the accent underline = marked on a note page).
  21. ## Cleanup
  22. My two ssh -R tunnels killed; no server of mine left; ports 8740–8751 and 9223 (my -L) checked empty; data copies deleted by the tests; wt-old worktree kept for the merger to remove: `git worktree remove --force /media/STORAGE/claude-scratch/atlas/J6/wt-old`.
  23. ## Deploy-ready: yes (code + vendor; not deployed). bin/ must be vendored on the target (git-ignored). Open point: the rare "B follows the delete" timeout.

Branches

Latest commits

  • ba1e73f8notes: a sent edit is done once the server's version is not older, so a second writer's text shows in the first tab; gate: two writers both waysmre
  • c69ef9ebsync components.hybriel 134b4e3: MdEditor builds an editor put into the page at once, redraws a surface put in anew (F5, hybriel#211)mre
  • 2eb783f5sync components 9a: shared Icon (icons/icons.hl), md-editor toolbar icons + single focus ring (components f4-icons ba96735)mre
  • 4dd46dadsync-components: copy icons/icons.hl + README (F4); testsmre
  • c92e4a0ftests/e2e-outside.mjs: real-Chrome E2E, a note pushed from another device while open, then typingmre
  • 0516b4ccmd-editor.hl: verbatim copy of components f3-mdvalue (an older text handed back is kept)mre
  • 38cc11ecmd-editor.hl: verbatim copy of components f3-mdvalue (an outside value change is shown by the editor)mre
  • 3e7e79f5reports/H1-hydrate.mdmre
  • d98775e8tests/browser.mjs: wait for hydration before the clicks after a goto('/') (tables new note, phone sidebar)mre
  • 1f3198b6tests/cdp.mjs: HL_CPU_THROTTLE=<rate> optional CPU throttling for gate runsmre
  • 39cf9fdfre-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
  • db07aa84tests: short-id-switch ports from env (NOTES_SWITCH_IDENT_PORT/_PORT), defaults unchangedmre
  • ef9f9feere-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
  • 5485467cdocker-compose: nofile 65536 (Hybriel int 6+ boot opened >1024 files in the tracker)mre
  • 86ea4a85deploy: backup copies index files first and *.mpack data last (hot-copy skew, hybriel #203)mre
  • edeab20fnotes mission 015: mission, report, LOG, STATUSmre
  • 542a0383notes mission 015: e2e-chrome E2E_HOST (own cookie jar in the shared Chrome)mre
  • 8b30f510notes mission 015: main-menu from layouts 0bcc629, current = true kept (route marks only /), server-HTML marker checksmre
  • 84b574c4notes mission 015: re-vendor plugins from hybriel f9614007 (incl. web, #117)mre
  • 447da53dnotes mission 014: report — remaining gates and lisbeth E2E proofmre