gitoria

notes

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit3537cf7e3537cf7eMerge branch 'vendor-day59' into mainAtlas3537cf7e/STATUS.md

18.0 KB

  1. # STATUS — notes.worldapi.org
  2. ## 2026-10-21 — notes mission 012: delete section of the browser gate de-flaked — branch w12-deflake, NOT pushed, NOT deployed
  3. Failed 3/12 on f431bdf: the delete question closes itself 14–50 ms after the press (a late ack of an earlier emit resets `asking`) — not layout, not the phone pane. Gate `openAsk` (press, calm 0.5 s, press again): 20/20, full gate 66/0, realdata-offline 12/0. App-side cause (Hybriel ack sync) open. Report reports/012-deflake-delete.md.
  4. ## 2026-10-21 — notes mission 011: layouts theme, mobile first — branch w11-theme, NOT pushed, NOT deployed
  5. theme/ verbatim from layouts dbe3de7, check-theme in the deploy gates (summary line fixed), shell on AppHeader/MainMenu/UserMenu/Sidebar, notes page on ListFirst, styles.hl cut to the app's own. browser gate 66/0 old and new (one selector: Log out via the user menu), realdata-offline 12/0, round-trip byte-identical, real-Chrome E2E 390+1280 old 30/0 → new 33/0 (user menu, sidebar, open, type, new, delete on the copy, offline). 390 audit: 0 taps<44, 0 wider, 0 inputs<16; check-theme 14 → 0. No offlineFiles needed. Report reports/011-theme.md.
  6. ## 2026-10-21 — notes mission 010: Hybriel MdEditor block — branch w10-mdeditor-theme, NOT pushed, NOT deployed
  7. md-editor.js is gone; the note editor is the block (copied verbatim from components.hybriel 1442e58, sync script, SOURCE). Gate 64/0 → 66/0, realdata-offline 12/0, 28 backup notes round-trip byte-identical (the table note too), E2E in lisbeth's Chrome 390/1280 24/0 (reload, offline). Found + fixed: a wide table widened the grid on a phone (minmax(0,1fr)). Block finding: needs a foreground tab to build its surface. Report 010.
  8. ## 2026-10-20 — notes mission 009: identkit vs current ident — branch w9-identkit, NOT pushed, NOT deployed
  9. tests/identkit.mjs only. The ident sink format for sign-in did not change (daily mail goes to <sink>.mail); old kit passes 64/0 on 8e4f435 and fa288f6. Probable real cause: a foreign process on the ident port. New kit refuses a taken port, has NOTES_COLD_MS, emit, identities; 64/0 on 8e4f435 and a6a874c. gitoria/calendar copies listed in report 009.
  10. ## 2026-10-20 — notes mission 008: re-vendor hybriel 97bcf128 — branch w7, NOT pushed, NOT deployed
  11. hl:web offlineFiles (hybriel#170): `offlineFiles = ["/md-editor.js"]` in project.hl, so the editor is there after an offline reload. Gate old 62/2 → new 64/0. Bin unchanged (sha256 60fa02f3…9080), plugins/web updated. Real-data copy: same output except the worker's precache. 390 px offline: no overflow, taps ≥ 44 px (CSS fixed). Gate needs ident a6a874c (identkit vs ident ≥ 7869f57 broken). Report 008.
  12. ## 2026-10-19 — notes mission 007 (notes#4, offline in pure Hybriel) — branch w7, NOT pushed, NOT deployed
  13. Built on hybriel 0f396652 (#166 fixed, repros re-run). notes-offline.js and sw.js deleted. `offline = [Notes]`: hl:web's
  14. worker, kept state per user, queue. Faces notesPut/notesDrop (queued), push notesChanged, notesPull on a 1 s CSS tick.
  15. Server: a run of saves of one login continues (`by` + `since`), and a loser keeps writing into its copy. Gate new
  16. 62/2: both failures are a Hybriel gap — hl:web keeps no app file route offline, so /md-editor.js is missing after an
  17. offline reload (plain textarea; repro `.scratch/w7/repro-appfile`). Old 57/0. Real-data copy: 28/28 live notes listed,
  18. the offline edit synced. Report 007.
  19. ## 2026-10-19 — notes mission 006: re-vendor hybriel 0f396652 — branch w6, NOT pushed, NOT deployed
  20. Static bin (sha256 60fa02f3…9080), plugins web/time updated. Gate 57/0 old and new; cold 10.2 s, warm 0.13 s; real-data copy same output (only ?v, seed time, new /__hl/up route, new ids/stamps, runtime modules). Report 006.
  21. ## 2026-10-19 — notes mission 005 (notes#4, offline in pure Hybriel) — branch w5: STOPPED at a Hybriel gap
  22. Nothing built; notes-offline.js and sw.js stay. hl:web a832f73b: a kept page whose `for` list is repainted while the client
  23. boots (offline reload after a push, or a list derived from `__hlQueue`) throws in rebindRow (`rowKidless` declared after
  24. `boot()`, client.hl:178/1500) and never boots. Repros `.scratch/w5/repro-rowkidless`, `repro-rehydrate`. Gate 57/0 (old). Report 005.
  25. ## 2026-10-19 — notes mission 004: re-vendor hybriel a832f73b — branch w4, NOT pushed, NOT deployed
  26. Native vendor (bin sha256 e1b53f7c…2db9), compose cache volume + tmpfs, DEPLOY_URL_WAIT. Gate 57/0 old and new; cold start 11 s; real-data copy same output (only ?v hashes, seed time, route order, new ids). Report 004.
  27. ## 2026-10-18 — notes mission 003 (#5): markdown tables — branch w1-md-tables, NOT pushed, NOT deployed
  28. `shared/md-editor.js` (the only Markdown renderer; vendored worldapi-components copy, now locally ahead of upstream) renders,
  29. types and writes GitHub pipe tables (alignment, `\|`, inline Markdown in cells, no outer pipes). Gate 50/0 → **57/0** (7 new
  30. table checks with real keys, desktop + phone + offline). Live-data copy: 27 of 28 notes render identically, the one note with
  31. tables now shows 4 tables. Upstream (worldapi-components + tickets `lib/markdown.hl`) still to do: report 003.
  32. ## 2026-10-03 — notes mission 002: code order (no behaviour change) — on main, NOT pushed, NOT deployed
  33. Commits 8cda541 (moves) · 3f8cb38 (topics, map, thin wrappers) · 47db4fc (`let`) · docs/tests. Layout: README "Files".
  34. - Counts (`python3 tests/letcount.py .`): root .hl 5 → 1; project.hl 183 → 91 lines; `let` 114 (71 never reassigned)
  35. → 34 (19 reassigned, 15 loop-bound, 0 never).
  36. - Gates (`.scratch/w085/gates.sh <label>`: browser `NOTES_GATE_PORT=8760 NOTES_GATE_IDENT_PORT=8761 NOTES_GATE_CHROME=8767-8769`,
  37. short-id-switch via a copy on 8760/8761): **50/0 + 18/0** before and after each step.
  38. - Same output (README "Test" → "Same output", live-data copy, 286 answers): old vs old 0 different; new vs old 0
  39. different except **4 intended**: `/login/failed` after a failed `/login/callback` in a browser WITH a session now shows
  40. the reason (before: "the login did not finish — try again"; the by-value `failed(req)` lost its session write). Fix =
  41. `&req`/`&server.sessions` (as tickets 010 / gitoria 002). Undo: pass `req` by value to `loginFailed` in lib/api.hl.
  42. - Removed dead notes#1 code (createNote, saveNote, noteRows, noteTextOf, subjectOf, rowOf, aliveOf — called nowhere).
  43. - A server without NOTES_STORAGE still reads `./storage/mpackdb` (40 notes, old and new).
  44. - Lessons: plain declarations in sibling blocks (`ed`, `after`, `cid`, `cp` in pushNote) work (conflict paths covered by the
  45. live-data run); the realdata run needs a fixed NOTES_PUBLIC_URL (the login href carries it) to compare two ports.
  46. - Deploy (architect): `./deploy.sh`; rsync does not delete → remove the old root `notes.hl users.hl jsoncheck.hl styles.hl`
  47. on Byrodin by hand afterwards. No data change.
  48. ## 2026-10-03 — antcolony mission 074: re-vendored Hybriel master 06617221 (plugin allocators 3a781359 + 413f60e4) — NOT deployed by me
  49. bin sha256 21059cc7…d77bdb, same plugins (old copy `.scratch/pre-074/` = 190aa11d). No app change. Gates: browser **50/0**,
  50. short-id-switch **18/0** (ports 8760–8769). Real-data copy (deleted), 0muh6o5a3kkd signed in:
  51. - 200 loads + 200 sync rounds: new 115 → 152 → 169 MB; old 116 → 192 → 217 MB.
  52. - 1000 loads + 1000 rounds: loads new 181 → 184 MB flat (old 187 → 212); rounds new 234 → 379 MB (old 274 → 465).
  53. - Split (2000 rounds each): pulls only new 177 → 210 MB (plateau); **saves only new 160 → 332 MB, old 164 → 344 MB** — the
  54. remaining growth is the save path (`notesTable.update`, mpackdb file only +1.3 MB per 1000 saves), unchanged by this vendor.
  55. Hybriel follow-up. Watch live RSS.
  56. ## 2026-10-02 — antcolony mission 072: re-vendored Hybriel master 190aa11d (GC correctness fc838894, #127) — NOT deployed by me
  57. bin sha256 860f5e61…0a23626, same plugins (old copy `.scratch/pre-072/` = 8efba065). No app change. Gates: browser **50/0**,
  58. short-id-switch **18/0** (`.scratch/w072/`). Live-data copy (40 notes, 26 alive): 200 Chrome loads + 200 sync rounds new
  59. 114 → 186 → 230 MB, old 124 → 222 → 277 MB; long run 1000+1000: 213 MB after loads, 486 MB after the sync rounds — the sync
  60. API still grows ~0.27 MB per round (pull of 26 notes + 1 push). Watch live RSS. Commands in README "Hybriel notes".
  61. ## 2026-10-02 — antcolony mission 069: re-vendored Hybriel master 8efba065 (#126 memory, #48 lambda copy) — NOT deployed
  62. `bin/hybriel` (sha256 ebf31876…5c0ad2a2, ReleaseFast from read-only `git archive master`) + the same 11 `plugins/` = master
  63. 8efba065; old copy (ff51cf46) + project.hl/README/STATUS in `.scratch/pre-069/`. No app code change.
  64. - Gate `NOTES_GATE_PORT=8720 NOTES_GATE_IDENT_PORT=8721 NOTES_GATE_CHROME=8722-8729 node tests/browser.mjs` → **50 passed,
  65. 0 failed** (`.scratch/w069/gate1.txt`; ident from its current folder, itself on 8efba065).
  66. - #48 audit: 56 lambdas (`.scratch/w069/lambdas.py`, `lambdas2.py`), none writes a parameter the caller relies on
  67. (failed/loginCallback alias `req.session`, then save it themselves; audience lambdas only read) → no `&` added.
  68. - #126 memory, live-data copy (1 user, 40 notes; deleted after), `.scratch/w069/memtest.mjs`: RSS boot / 200 Chrome loads /
  69. +200 sync rounds (full pull of 26 notes + 1 push each) / 5 s idle: new **124 / 220 / 287 / 287 MB**, old **97 / 902 / 1282
  70. / 1282 MB**. New with 1000 + 1000: 311 MB after loads, 598 MB after the API — still grows slowly (~0.1 MB per page load,
  71. ~0.3 MB per sync round), no plateau: watch live RSS after a deploy.
  72. ## 2026-10-01 — mission 001 (old 051) (notes#4, offline in pure Hybriel): STOPPED at Hybriel gaps — app unchanged
  73. notes-offline.js + sw.js stay (no file of the app changed). hl:web's `offline = [Notes]` was measured on a minimal repro
  74. (`.scratch/w051/repro/`: one page at `/` and `/p/:id`, a push-fed `count`; `node run.mjs`, ports 8762 + Chrome 8767-8769):
  75. (1) kept state is per URL — after 3 pushes on /p/1, offline `/` shows 0, /p/1 shows 3; (2) a param page never loaded as a
  76. document is "Unavailable offline" (a note made offline, or opened in-app, could not be reloaded); (3) kept state, kept
  77. documents (SSR seed = the notes) and the queue are not per user and cannot be forgotten at log out. Works: `__hlQueue`
  78. survives a reload (local edits can be re-applied from it), `e.preventDefault()` in an `on click` claims a link.
  79. Ticket texts: antcolony report w051. Gate on the unchanged app (8760/8761/8767-8769): **50 passed, 0 failed**.
  80. App-side design for when the tickets land (in the report): faces notesPut/notesDrop (statement form = queued), push
  81. `notesChanged(user, list)` with audience = same user, rows derived from notes + __hlQueue + this tab's unsent edits,
  82. server continuation rule (`by` = session tag, `from` = base) so queued saves of one device do not conflict with each other.
  83. ## 2026-10-01 — antcolony mission 048: re-vendored Hybriel master ff51cf46 — NOT deployed
  84. `bin/hybriel` (sha256 e70631f0…eff3471b, ReleaseFast from read-only `git archive master`) + `plugins/` (same 11 packages)
  85. = master ff51cf46 (#113, #115/#116, #118, client SVG namespace, hl:markdown #111); old copy (e6720b1f) in `.scratch/pre-048/`.
  86. No app change. Gate `NOTES_GATE_PORT=8732 NOTES_GATE_IDENT_PORT=8733 NOTES_GATE_CHROME=8734-8739 node tests/browser.mjs`
  87. → **50 passed, 0 failed**. Duplicate @id check (#113) on a copy of the LIVE storage (deleted after): users 1 row / 0 dup,
  88. notes 40 rows / 40 distinct / 0 dup (records = 4-byte LE total length incl. prefix + msgpack map with `id`; `<t>.id.txt` =
  89. `id,offset,len`). Workarounds: none for #115/#116/#118 in notes (module `static`s in notes.hl/users.hl are plain module
  90. members, not workarounds; the hand sort for hybriel#1 stays). SVG: no Hybriel-built SVG in the browser (md-editor.js toolbar
  91. icons are plain-JS innerHTML) → no namespace check added. `tests/short-id-switch.mjs` not run (fixed ports 8720/8721).
  92. ## 2026-10-01 — antcolony mission 046: installable app (PWA) + own icons — built, NOT deployed
  93. `project.hl`: `appThemeColor` = token `darker` (the header, rgb(15, 20, 25); rule changed from the accent mid-mission), `appBackgroundColor` = `dark`, `appIcons` (192/512,
  94. any + maskable), `appTouchIcon`, `appFavicon`; file routes for `icons/*` and a real `/favicon.ico` (was `direct ""`).
  95. hl:web serves `/__hl/manifest.webmanifest` and links it + apple-touch-icon + theme-color from every head.
  96. **No `offline = [...]`** on purpose: it would make hl:web register `/__hl/sw.js` for scope `/` over notes' own `/sw.js`
  97. (same scope, one replaces the other). Offline stays notes' own (sw.js + notes-offline.js, notes#2) until notes#4.
  98. Icon: a note page (folded corner, text lines) with a pencil writing the last line; `icons/icon.svg` source, PNGs via
  99. rsvg-convert (README "PWA"). Images looked at: Loreana `/tmp/w046-notes/` (icon-48/192/512, sheet.png, maskable-preview,
  100. gate-pwa-phone-offline.png). Gate: `NOTES_GATE_PORT=8720 NOTES_GATE_IDENT_PORT=8721 NOTES_GATE_CHROME=8722-8726 node
  101. tests/browser.mjs` → **50 passed, 0 failed** (42 old + 8 new: head links, manifest, icons, Chrome manifest/installability,
  102. one worker = /sw.js, offline reload of `/` shows the shell). Signed out there is no worker (notes-offline.js only
  103. registers it when signed in) — unchanged behaviour.
  104. ## 2026-09-26 — antcolony mission 039: ident#23 short ids — switch tool + gate, NOT deployed
  105. `users.hl`: the exchange answer is checked with the new `isIdentId` (lower-case letters/digits, 1–64) instead of
  106. `isHex(…, 64)`, which refused ident#23's short ids (`a68sz`) — without it nobody could log in after the switch (shown on
  107. tickets, whose code antcolony mission 039 could not change). New `tools/migrate-short-ids.hl` (users.identity old → short id via
  108. ident `POST /api/migrate-ids`, idempotent, never `finish`, prints `users seen / mapped / already short / unmapped /
  109. conflicts / failed`, key/secret from env only; non-zero exit on refusal/failed write/conflict). New gate
  110. `node tests/short-id-switch.mjs` (ports 8720/8721; old ident `ident.worldapi.org/.scratch/pre-023-ident` → data → copies →
  111. new ident → control copy = NEW empty user → tool twice → same user + same data, old session too): **18 passed, 0 failed**.
  112. `tests/browser.mjs` (ident#23 in the folder, ports 8730-8739): 42 passed, 0 failed. Docker proof of the runbook command
  113. (fake .env, copy): `.scratch/m039-docker-proof.sh`.
  114. Runbook (architect, one go for all four apps): Loreana `antcolony-docs/docs/short-id-switch.md`. Deploy this code BEFORE
  115. ident#23 (accepts old ids too). Not deployed.
  116. ## 2026-09-26 — antcolony mission 037: re-vendored Hybriel master e6720b1f
  117. `bin/hybriel` + `plugins/` = hybriel master e6720b1f (includes #103/#104, #105 f15a2f7f, #106, #94 c12065d8); old copy
  118. (13ef4f9b) in `.scratch/pre-037/`. No local patch, no app change. Gate `node tests/browser.mjs`: 42 passed, 0 failed.
  119. Dev server (`~/scratch-037/hashcheck.sh notes.worldapi.org NOTES /`, port 8720): `hl-runtime.js`, `web/client.js`, `app.css`
  120. all `?v=39f4c3bb5bd56621` (immutable), bare app.css no-cache, 0 unhashed refs. Not deployed.
  121. ## 2026-09-25 — antcolony mission 035: re-vendored Hybriel master 13ef4f9b
  122. `bin/hybriel` + `plugins/` from hybriel master 13ef4f9b (old copy `.scratch/pre-035/`). No local patch existed.
  123. Gate (`NOTES_GATE_PORT=8720 NOTES_GATE_IDENT_PORT=8721 NOTES_GATE_CHROME=8722-8729 node tests/browser.mjs`): 42 passed,
  124. 0 failed before, on 9d608332 (2 runs) and on 13ef4f9b. Dev server: `/__hl/app.css?v=<hash>`, `hl-runtime.js?v=`,
  125. `web/client.js?v=` (immutable); bare `/__hl/app.css` → no-cache. sw.js caches by full URL, so `?v=` needs no change.
  126. Not deployed (architect).
  127. ## Ticket notes#1 — notes with a sidebar and the Markdown editor (2026-09-25) — built, not deployed
  128. Built: ident login (button + selector), sidebar by subject / last edited first, note on the right in `<md-editor>`,
  129. New note, Delete note (with a question), live sidebar across tabs, phone layout (list, then note), storage in
  130. `storage/mpackdb/`. `node tests/browser.mjs`: 33 checks green (own ident copy, real Chrome, 390 and 1280 px
  131. screenshots in `.scratch/gate-*.png`) — login, create, heading via "# ", edit moves to top, second tab follows,
  132. reload and server restart keep everything, another user sees nothing and cannot save/delete, size limit,
  133. delete with "Keep", phone and desktop layout, logout. `./deploy.sh --dry-run --skip-tests --target <dir>` shows a
  134. clean file list (no storage, no `.env`).
  135. Not done / next: the first deploy is the architect's (README "First deploy"). Not built because the concept does not ask: JSON / Markdown API, search,
  136. folders, display names.
  137. ## Ticket notes#2 — notes offline, synced when back online (2026-09-25) — built, not deployed
  138. Built: the notes area is now client-side (`notes-offline.js`): IndexedDB copy per user, edits written there first, sent
  139. to `/api/notes`, pulled every 10 s / on online / on tab focus; `sw.js` keeps the page so a reload works offline; a note
  140. made offline gets its server id at the first push; conflicts: later edit wins, the other version is kept as a copy;
  141. deletes are tombstones; log out sends the unsent and wipes the browser copy. The old hl faces for save/create/delete
  142. and the `notesChanged` push are gone (old components in `.scratch/old/`). `node tests/browser.mjs`: 42 checks green —
  143. real Chrome, the server really stopped for "offline" (reload, edit, new note offline; back online → server and second
  144. device; two devices editing one note → copy; delete; other user; phone/desktop; log out wipes).
  145. Not done: the service worker needs https (worldapi.org has it); no update-available prompt; Back button does not step
  146. through notes (replaceState); a note is compared by its edit time from the device's clock (large clock skew can make
  147. the "wrong" version the copy — nothing is lost).
  148. ## 2026-10-21 notes mission 013 (w-theme-76f99f6): theme 76f99f6 — done in part, not deployed
  149. See reports/013-theme-76f99f6.md (gates/E2E gaps listed there).
  150. - 014 theme-sync-196: PARTIAL, branch w14-theme-sync-196, see reports/014-theme-sync-196.md
  151. ## 2026-10-21 — notes mission 015: re-vendor f9614007 + route marker — branch w15-revendor-197, NOT pushed, NOT deployed
  152. Gates old=new (66/12/5/0), current = true kept, E2E new 39/0. reports/015-revendor-197.md

Branches

Latest commits

  • 3537cf7eMerge branch 'vendor-day59' into mainAtlas
  • c13d188b|||PR Vendor Hybriel day59Atlas
  • 24c95433Merge branch 'notes17-ghost-note' into mainAtlas
  • ae1075b2Preserve rejected drafts during note ID adoptionAtlas
  • 383cce23|||PR Prevent saved local edits from restoring deleted notesAtlas
  • 99ca1cf6Merge branch 'vendor-day56' into mainAtlas
  • 649cef37|||PR Vendor Hybriel day56Atlas
  • aadd0abcMerge branch 'hl-standard-2' into mainAtlas
  • 52ffac9f|||PR Keyboard and reload checks for the notes gate (HL-STANDARD F21, F5)Atlas
  • 617ee8c0Merge branch 'hl-standard' into mainAtlas
  • 452458ee|||PR Type the function parameters of notes' own .hl files (HL-STANDARD L10)Atlas
  • 23758cd6Re-vendor complete Hybriel plugins and runtime to day44mre
  • 5d7cc700Backup tar: --hard-dereference, so mpackdb sidecars are never stored as hard links (Tracker's finding)mre
  • 3e07b1cfVendor complete Hybriel day39 plugin sources and librariesmre
  • d7366702Check session cookie flags after login and assert anonymous GET stays cookielessmre
  • 16bc8fd8Re-vendor Hybriel day38b with the mpackdb store-open race fixmre
  • d860dc2dnotes#12: the markup names its own rules instead of hand-written class strings: the selected row is `aria-current="page"` (the list-first theme rule styles it, no class), the delete question is `Style.pAsk` and follows its own `open` attribute (bound to `asking`), the error line is `Style.pMessage` (body once in lib/looks.hl, rule in notes.hl, main.hl and loginfailed.hl). The CSS declarations are the same, only selectors changed (.ask -> p.ask, .ask.open -> p.ask[open], .message -> p.message); the pages look the same (AE 0 at 4 sizes). main.hl's selectorClass in/out stays (login.js reads it).mre
  • 2e7f8664notes#13: the list and back links pass the note key from the loop (emit pick(e, r.key)) instead of writing data-note into the View and reading it back with getAttribute; the two window.history.replaceState calls and the identcode e.target.value read stay (hl:web has no replace-navigation, a bound hidden input is not adopted on a script's change event), see NO13 reportmre
  • 4dc98282notes#15: a deleted note made in this tab leaves the list at once (the delete now removes this tab's edit under every key the row has: local id, server id); gate: browser.mjs notes#15 section, red on the old codemre
  • e4e7402fnotes#11: plain declarations instead of let for variables never reassigned (components/notes.hl 3, lib/jsoncheck.hl 5, lib/util.hl 2, tools/migrate-short-ids.hl 8)mre