gitoria

notes

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit447da53d447da53dnotes mission 014: report — remaining gates and lisbeth E2E proofmre447da53d/reports/008-revendor-97bcf128.md

5.7 KB

  1. # notes mission 008 — re-vendor Hybriel 97bcf128 — gate 64/0 (was 62/2), hybriel#170 closes the offline editor gap (branch w7, NOT pushed, NOT deployed)
  2. ## Vendor
  3. - `/media/STORAGE/claude-scratch/vendor-97bcf128/` (README.txt: sha256 of every file, build command, ldd). Built read-only: `git -C /media/STORAGE/projects/hybriel archive 97bcf128 | tar -x`, `HL_NO_PLUGINS=1 bash native/build.sh` (55 s; the plugin .so files are committed in the archive).
  4. - `bin/hybriel` sha256 `60fa02f341ffa799b41a3dbd26d76057169f786e20dae0f98bb2ca3c46c39080` — **byte-identical to vendor-0f396652** (`diff -rq bin` clean): 0f396652..97bcf128 changes only `plugins/web/WebFramework.hl` (+67 lines, `offlineFiles`, `offlineFileUrls`, `viewFileUrls`) and `plugins/web/README.md` (+3). `ldd`: "not a dynamic executable"; `file`: statically linked.
  5. - Container: debian:12-slim + libssl3 + ca-certificates (the Dockerfile of notes), notes tree with the new vendor, compose copy with own names (`k2-notes-97bcf128`, volume, image), port 8750, tmpfs /tmp, cache volume, init: HTTP 200 after ~15 s, "framework listening on 8750", `docker exec … ldd` = not a dynamic executable. Container, volume and image removed.
  6. - No local XSS patch exists in notes' plugins (`plugins/webex` does not exist; w7's plugins were identical to vendor-0f396652 before this change), so nothing to keep or drop. docker-compose.yml, Dockerfile, deploy.sh unchanged (cache volume, tmpfs, init already there).
  7. ## App change (one setting, no JS)
  8. - `project.hl`: `offlineFiles = ["/md-editor.js"]`. Without it the editor stays missing offline: (b) of hybriel#170 (keep every file route a kept page's View loads through a literal `script { src }`) does not see it, because notes loads `/md-editor.js` in the shell (`components/main.hl`), not in the page View. Measured: with 97bcf128 and no setting the gate still failed the same 2 checks (62/2); with the setting 64/0. The worker's precache list now has `/md-editor.js` (the only difference in `/__hl/sw.js`, below).
  9. - `components/styles.hl` (mobile first, found by the new 390 px checks): `button` min-height 2.75rem; `.brand` and `.back` inline-flex, min 2.75rem; `md-editor::part(button)` min-width/height 2.75rem. (shared/md-editor.js untouched.)
  10. - README: "Known gap" paragraph replaced by the `offlineFiles` note.
  11. ## Gates (ports 8740/8741, Chrome 8742–8749; ident = a copy of ident a6a874c, see below)
  12. - `tests/browser.mjs`, old (w7 HEAD eeaea98 + the same bin, old plugins): **62 passed, 2 failed** — exactly the 2 failures of report 007 ("the Markdown editor is there offline", "tables: offline … with the table").
  13. - New (97bcf128 + `offlineFiles`): **64 passed, 0 failed**, both before and after the CSS change (two runs). The two checks pass.
  14. - ident for the gate: current ident HEAD (mission 011) changed the mail sink and the gate's sign-in fails with "email and code must be strings" (identkit reads the old sink format). I used `git archive a6a874c` of ident (mission 010, the one the gate was written against) + its bin. Not a notes problem; **tests/identkit.mjs needs an update for ident ≥ 7869f57** (ident#7 delivery) — left for a later mission.
  15. - Same-output real data (`tests/realdata-baseline.mjs`, old tree vs new tree, port 8752, COPY of `notes.worldapi.org-20261019-2028.tgz` (newest) → storage/mpackdb in scratch, deleted after): 295 answers each, 178 byte-identical, 115 identical after masking, **2 different**: `0032-in-___hl_sw.js` and `0033-out-___hl_sw.js` (the generated worker). The only difference is one more entry in `precache`: `"/md-editor.js"` — intended. No API answer differs. (Run before the CSS change; the CSS change alters app.css by intent.)
  16. - Real data offline (`tests/realdata-offline.mjs`, same backup copy, extended in this mission): **12 passed, 0 failed** — 28 live notes listed, offline reload lists 28 with no socket, offline edit with real keys not on the server, synced into the SAME note, no server error, plus the 6 new 390 px checks below. The copy was deleted by the test.
  17. ## Mobile: offline pages at 390 px, measured in the DOM (no image viewed)
  18. Chrome offline (CDP page + worker), reloaded offline at 390 px, every element incl. shadow DOM measured: no visible element left < 0 or right > 390, document scrollWidth, md-editor defined, every a/button/input/textarea/select/[role=button]/[contenteditable] ≥ 44 × 44.
  19. - Result now: note page 390 scroll width, no overflow, 16 tap targets all ≥ 44; list page 390, no overflow, 31 tap targets all ≥ 44; md-editor defined offline.
  20. - **Before the CSS fix (same checks failed):** brand link 53×28, Log out 82×35, "All notes" 65×24, New note 112×42, nine md-editor toolbar buttons 32×34. Fixed as above; no overflow was ever found.
  21. - Not counted as a tap target: the editor's own hidden textarea (`md-editor > textarea`, 24 px, out of sight by design); the editable surface is the md-editor shadow part.
  22. - Not measured: ident-selector's shadow DOM (not rendered on these pages offline); the online pages at 390 (screenshots of mission 007 stand).
  23. ## Cold start
  24. Measured on a heavily loaded machine (load average 62): empty HL_CACHE_DIR → ready (HTTP 200): new tree 44.8 s and 67.4 s (2 runs), old tree 42.5 s; warm 0.6–1.0 s. Mission 006 had 10.2 s on an idle machine; the numbers here are noise from load, not a change of the compile (same binary, one more setting). Re-measure on an idle machine before deploying.
  25. ## Hybriel gaps
  26. None hit. hybriel#170 (a) works as documented; (b) does not cover a script loaded in the shell rather than the page View — by design ("a kept page's View"), noted for Arachne in case a shell script should count.
  27. ## Commits (branch w7)
  28. re-vendor 97bcf128 + offlineFiles + tap sizes + 390 px checks + README + mission/report (this commit). Nothing of mine is left listening on 8740–8759.

Branches

Latest commits

  • 447da53dnotes mission 014: report — remaining gates and lisbeth E2E proofmre
  • fd9f92c3notes mission 014: report (partial), LOG, STATUSmre
  • b2501360notes mission 014: open() sets asking=false before flush(0) (hybriel#196)mre
  • 9414ce59notes mission 014: merge theme 76f99f6, components 3794c59, strict single-press openAsk (fails on old open())mre
  • c08c655anotes 013: theme re-copied from layouts 76f99f6 (menu marks the current page), current = true on the menu item, e2e marker checks, reportmre
  • 21c8f65dnotes mission 012: STATUSmre
  • 0bbb3dd9notes mission 012: delete section of the browser gate de-flaked (openAsk: calm wait, press again when the question closes by itself); report 012mre
  • f431bdf8notes mission 011: notes on the layouts theme (ListFirst shell), styles cut, check-theme gate, E2E extended; reportmre
  • 1a8603d1notes mission 011 WIP: deploy.sh gate summary also matches check-theme, browser.mjs logout via the user menumre
  • dae2e508notes mission 011 WIP: theme dbe3de7, shell on AppHeader/MainMenu/UserMenu/Sidebar + ListFirst, styles cut to the app's own, check-theme gate, e2e auditmre
  • fd36da27notes mission 010: the note editor is the Hybriel MdEditor block (components.hybriel 1442e58, verbatim); md-editor.js, its route, script tag and offlineFiles retired; gate 66/0, realdata-offline 12/0, round-trip and Chrome E2E tests; report 010mre
  • efa92170notes tests/identkit.mjs: refuse a taken ident port, cold-wait deadline, emit, identities; mission 009 reportmre
  • f3dec0f1Merge branch 'w7'mre
  • d1cf966dre-vendor hybriel 97bcf128: offlineFiles for the editor script, 44 px taps, 390 px offline checks, mission 008mre
  • 4a610a21paths: projects moved into /media/STORAGE/projects/WorldAPI/mre
  • eeaea980report 007: say which runs included the removed checkmre
  • 8a8ad9banotes mission 007: report, LOG, STATUSmre
  • 2cce9c96code order: plain declarations where never reassigned (letcount 0 never); gate: scan every IndexedDB at log-out, soft mode for old-code runs, drop a check that could not failmre
  • 7f6a4090README: offline in Hybriel (hl:web offline, continuation, known md-editor gap); gate waits report instead of crash; realdata-offline checkmre
  • 632223f2notes#4: delete notes-offline.js and sw.js (hl:web's generated worker and kept state replace them)mre