notes
All repositories: gitoria
5.7 KB
# 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)## Vendor- `/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).- `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.- 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.- 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).## App change (one setting, no JS)- `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).- `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.)- README: "Known gap" paragraph replaced by the `offlineFiles` note.## Gates (ports 8740/8741, Chrome 8742–8749; ident = a copy of ident a6a874c, see below)- `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").- New (97bcf128 + `offlineFiles`): **64 passed, 0 failed**, both before and after the CSS change (two runs). The two checks pass.- 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.- 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.)- 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.## Mobile: offline pages at 390 px, measured in the DOM (no image viewed)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.- 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.- **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.- 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.- Not measured: ident-selector's shadow DOM (not rendered on these pages offline); the online pages at 390 (screenshots of mission 007 stand).## Cold startMeasured 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.## Hybriel gapsNone 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.## Commits (branch w7)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
- 3a8bc0d2N5: empty Table-button table is written as a real pipe table (MdEditor 4bd1112, plain copy); gate tests/table-button.mjs; reportmre
- c16bd443N5: step 1 report (tables pass locally; his DASHBOARD note has no delimiter row)mre
- 6091320anotes: MdEditor 7437e32 (surface drawn at once when the page is claimed); gate measures claim-to-text on 5 note loads at 1280 and 390mre
- 0aa9277enotes: move each component's styles into its own Style block (shell and header selector in main.hl, list, editor frame and delete question in notes.hl); styles.hl keeps the theme inherit, the accent and the message colour; .gitignore ignores a bin symlink too; tests/shots.mjs for the pixel comparemre
- 9ba01de3notes: write the standby service out in full so the boot gate can read the main servicemre
- 98cab40anotes: standby service on its port plus 10 and a deploy that hands over through it without a gapmre
- 1fadb473notes gate: the editor table now has 1 px cell lines from the notes thememre
- 8762115cnotes: take the components e54f83a (paste as Markdown, text typed before the editor is built is kept, Table button); table lines come from the notes thememre
- ac23e194ident#31: the selector's sign-in returns to the page the user started on (return attribute = the login callback with next), gate checkmre
- 2804f0d3Merge branch 'iw-ident-widget'mre
- 52d8d242notes: e2e script checks Log out and the selector in the header instead of the user menumre
- e5abf7b7notes header: the selector alone top right plus Log out as before the theme missions; the user icon is gonemre
- a2e343aeident selector back in the header (creator 2026-10-24): selector top right signed in and out on phone and desktop, no second Log in button, new gate checks (WIP: gates not re-run after the last edits)mre
- 7a889b82notes: MdEditor with the Table button, typed pipe rows and the theme's table look (components mt-tables); a table note is named by its header words; gate checks that fail on mainmre
- b96c7f70theme: sync from layouts 4994037 (list rows stack, td word-keep, heading code, edited tap target)mre
- 6140e6a0sessions last 99 years (creator 2026-10-23: logins never expire; only sign out ends them)mre
- cb7e6469deploy: security gate (tests/security.mjs)mre
- 774bf34bnotes security: CSRF guard on /api/notes, new session at login, Secure cookie, uploadMax 0, login rate limit, nosniff, face payload check; tests/security.mjs; SN reportmre
- ef18a68fsync components.hybriel 214c318: MdEditor on a phone, two even toolbar rows of 44 px targets, label 15 px, table head 16 px (E2)mre
- c37488b1MN report: alignment updatemre