gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit090ee809090ee809tickets: every component's styles in its own nested Style {} block; styles.hl keeps only the theme inherit, the accent and the site-wide rules (tickets#36)mre090ee809/STATUS.md

65.9 KB

  1. ## 2026-10-21 — worker X2: mission 022, tickets on the layouts theme (step 1) — NOT deployed, NOT merged (branch w30-theme)
  2. - Theme copy dbe3de7 + theme shell (AppHeader/MainMenu/UserMenu/Sidebar/ContentFirst), styles cut to the app's own, check-theme 0 in deploy gates. 390 audit: 0 taps<44, 0 inputs<16, nothing wider; gates 377/0 + 52/0; E2E in lisbeth's Chrome 11/11. See reports/022-theme.md.
  3. - Open: text<14px inside vendored components (time, comment-like, source-switch); desktop denser by theme design.
  4. ## 2026-10-20 — worker I2: mission 017, image / file attachments in comments (tickets#27) — WIP, STOPPED (quota), NOT deployed, NOT merged (branch w27; components w27c 1f8d79d)
  5. - Done (untested end to end): lib/attachments.hl + lib/multipart.hl, addComment with files, delete drops / edit keeps, JSON rows carry
  6. `attachments` only when present, Markdown view lists them, GET /api/attachments/:id (members only), the Respond block in FilesUpload.
  7. - Gates: tickets browser old 351/0, new run stopped at 144/0; events not run; components old 343/0, new 356/1 (a typing check). Real data: not done.
  8. - Next: report reports/017-image-attachments.md "Next steps".
  9. ## 2026-10-20 — worker A2: mission 016, comments through the Comments block (layouts#2) — NOT deployed, NOT merged (branch wc)
  10. - Ticket page: every run of comments is one shared Comments block in its place in the history (components/comments/ +
  11. md-editor/, verbatim from components.hybriel 9db927d, tools/sync-components.sh); the comment form = the block's form.
  12. Edit (author; earlier versions fold out), delete (author; asks; leaves "… commented (deleted …)"), like (members; toggle);
  13. server lib/comments.hl (comment-changes + comment-likes tables, append only, no migration); faces + API
  14. `…/comments/:comment/{edit,delete,like}`; push `commentChanged`; event stream unchanged.
  15. - shared/md-editor.js removed from the app (it took over the block's <md-editor>): every Markdown field is the Hybriel MdEditor.
  16. - Gates: browser 326/0 → 351/0 (+21 m016), events 52/0 → 52/0, connect 60/0; old code / a rights mutant fail the new checks.
  17. Real data (backup 2026-10-20 02:16): JSON 922/922 byte-identical; Chrome: all 401 tickets (650 comments) the same old vs new, no overflow at 390 px. Report reports/016-comments-block.md.
  18. - Open: block wish (count / form switches); pre-existing: the ticket page seed carries the user's own ident id (`me`).
  19. ## 2026-10-19 — worker w14: mission 014, "stream opened right after the start gets no live events" — NOT A BUG, NOT merged (branch w14-events-start)
  20. - Apollo's journal: the early stream (00:56:03) got 142 + 143 live and delivered them at 00:58:18 — his subscriber batches other
  21. actors' events for 120 s (BATCH); his restart at 00:58:39 resumed after 143 (no replay). No code change.
  22. - tests/events.mjs +4 checks (first request retried from process start, one right after, one later → a comment within 2 s):
  23. 52/0 warm + cold on c116146; a mutant that drops the first stream fails it (Apollo's symptom). browser 326/0, connect 60/0,
  24. short-id 19/0. Report reports/014-events-after-start.md.
  25. ## 2026-10-19 — worker w13: mission 013, pipe tables on ticket pages + re-vendor hybriel a832f73b — NOT deployed, NOT merged (branch w13-md-tables)
  26. - lib/markdown.hl: GitHub pipe tables with notes#5's rules (alignment, `\|`, inline Markdown in cells, optional outer pipes, a
  27. pipe line without a delimiter row stays text); components/markdown.hl `<markdown-table><table>` (`data-align`); styles: 1px
  28. grey lines, no colour, the box scrolls sideways (`contain: inline-size`), the page never. API JSON / text/markdown unchanged.
  29. md-editor.js untouched (its visual mode does not know tables; its "Markdown source" view types them).
  30. - Vendor hybriel master a832f73b: bin/hybriel sha256 `e1b53f7ce687f5afbe3db34bcda69958f56e730571e4841923c9c8eb3d272db9`
  31. (+ libhlrt.a, hlc.o unchanged, hlrt/; plugins unchanged); docker-compose.yml HL_CACHE_DIR=/root/.hybriel/cache (in the volume).
  32. Cold 25.0 s, warm 1.5 s, after a new root file 1.4 s (#151 fixed).
  33. - Gates (8740–8759): browser 326/0 (+11 tables; on the old code the first table check fails), events 48/0, connect 60/0,
  34. short-id 19/0. Real data (backup 2026-10-18 10:39, copy): 2,562/2,562 answers the same old vs new — no existing text holds a
  35. table (1,906 texts + 12 descriptions scanned). Report reports/013-md-tables.md.
  36. ## 2026-10-18 — worker w9 (2nd pass): re-vendored to hybriel master 9f912f3b — gates green, NOT deployed, NOT merged (branch w9-hybriel)
  37. - Vendor (README "Vendored Hybriel"): bin/hybriel sha256 `7421907868ac07d8a7d08296b083c6f8b20407d0e099ce4bebbf7ae053d9060a`
  38. (= the hybriel checkout's own 9f912f3b build), bin/libhlrt.a, bin/hlc.o, bin/hlrt/, plugins/ (unchanged since edfd400a). #146
  39. fixed → lib/api.hl's 12 `emit client` live pushes compile as they are. No `x = emit …` in a static (#149) here.
  40. - Cold start (hybriel#148): ~23 s on Loreana, warm ~1.5 s. tests wait up to `TICKETS_COLD_MS` (120 s) for every start (server,
  41. ident, seed, import, events-client); deploy.sh GATES = browser.mjs + events.mjs, URL check up to `DEPLOY_URL_WAIT` (120 s);
  42. docker-compose.yml: `/tmp` tmpfs (exec) + named volume `hybriel-cache` on /root/.hybriel (container check: cold 27 s, warm 2.4 s).
  43. - tests/events-client.hl stops at EVENTS_MAX inside a chunk (a slow-starting client got the replay AND the next live event in
  44. one chunk and printed 4); connect.mjs takes TICKETS_CONNECT_APP_PORT / TICKETS_CONNECT_CHROME.
  45. - Gates (slot 8720–8739): browser.mjs 315/0 (warm) and 315/0 (every start cold, HL_NO_BUILD_CACHE=1); events.mjs 48/0 (cold);
  46. connect.mjs 60/0; short-id-switch.mjs 19/0. Real data (deploy backup 2026-10-17 22:37, a copy): old 0e8a41c vs new, 2,425
  47. reads + 72 writes identical after masking `?v=` hashes, the offline seed's `at` and the ORDER of the seed's route list
  48. (hl:web now lists its own routes first); event stream on the copy: comment + state change on #26 arrive (6 ms).
  49. Report reports/w9-hybriel.md.
  50. ## 2026-10-18 — worker w9: re-vendor hybriel master edfd400a, SSE by name (hybriel#144) — BLOCKED (superseded by the 2nd pass above)
  51. - lib/stream.hl imports `sseStart, sseSend, sseAlive` from 'hl:http1' (booleans); project.hl's `useTransport` hand-over is gone.
  52. - Vendor: bin/hybriel + bin/libhlrt.a + bin/hlc.o + bin/hlrt/ (the interpreter is gone — the binary compiles the app; README
  53. "Vendored Hybriel") + plugins/ of edfd400a. Old vendor (06617221) in `.scratch/pre-w9/` of the w9 worktree.
  54. - tools/import.hl: plain declarations instead of `let` twice (hybriel-native refuses it in a body with a closure).
  55. - **BLOCKED**: hybriel-native refuses `emit client` in a static (lib/api.hl, 12 live pushes) → the server does not compile;
  56. events.mjs and the gate fail at start. Scratch copy with those emits neutralised: events 48/0, gate 254 ok up to the first
  57. live-push check. Repros `.scratch/w9/repro-emit-static/`, `.scratch/w9/repro-let-twice/`. Report reports/w9-hybriel.md.
  58. ## 2026-10-17 — worker w6: ticket #26, the event stream for programs (`GET /api/events`, SSE) — NOT deployed by me
  59. A program subscribes once with a Bearer token and gets every change live (created, comment, state, edit, assign, link) as
  60. Server-Sent Events over the app's own hl:http1 server; filters project (several, slug or id), assignee (name / id / me),
  61. notMine; a project key (tktc_) sees only its project; each event has a monotonically increasing id (`stream` table, `*n`),
  62. `Last-Event-ID` / `?after=` replays what was missed exactly once; hl:http1 sends a `:` keep-alive every 5 s. README "Event
  63. stream for programs (ticket #26)" (incl. what the Byrodin nginx vhost needs: nothing new).
  64. - Files: new lib/stream.hl (topic), lib/tickets.hl (`recordEvent` after every write), lib/events.hl (`eventRecord`), lib/api.hl
  65. (`getEvents`, thin), lib/api-helpers.hl (`unauthorizedFor`), project.hl (route, index line, `useTransport` = the 3 native SSE
  66. calls); tests/events.mjs + events-seed.hl + events-client.hl (a Hybriel subscriber); README.
  67. - Tests (ports 8790–8799): `node tests/events.mjs` **48 passed, 0 failed** (browser comment / state change by clicks and key
  68. presses arrive in 14–21 ms; 2-minute idle stream: 25 keep-alives, largest gap ≤ 6 s, still delivers); the same through an
  69. nginx 1.27 with the Byrodin vhost's `location /` block (EVENTS_VIA): **48/0**; gate `tests/browser.mjs` **315 passed, 0 failed**.
  70. connect.mjs not run (its Chrome ports 8703–8709 are hardcoded, outside my range; the key path it covers is unchanged).
  71. - Lessons: hl:http1's SSE family has no .hl wrapper; a static cannot call `__native`, and hl:web's browser build compiles what
  72. a component's server faces reach (tickets.hl → stream.hl), so a class method with `__native` there breaks the page build
  73. (repro `.scratch/w6/repro-native-browser/` in the main checkout). `from` is a reserved word (not a variable name).
  74. `"\n"` is not an escape: a newline is written as itself (`static newline = "⏎"`).
  75. - Open: numbering starts with the first write after the deploy (older history has no stream id); no backfill.
  76. ## 2026-10-04 — mission 012: ticket #25 API part — a project by its id (`/api/projects/<id>/…`) — NOT deployed by me
  77. Every `/api/projects/<x>/…` route takes the slug (also an old one) or the project's id (its 12-char record id, e.g.
  78. `0mufbw18nsuj` = tickets.worldapi.org; `GET /api/projects` → `details[].id`). Tickets stay under their project; no new global
  79. `/api/tickets/<x>`. All existing paths answer as before. Pages unchanged. README "Short URLs (ticket #25)".
  80. - Files: lib/projects.hl `slugOfRef` (id → current slug, slug first), lib/api.hl `slugOf(route)` in `byNumber` + the 7 route functions
  81. under /api/projects/:slug (all 16 routes), tests/browser.mjs (+22 "ids (#25)" checks; PWA list count +1), new tests/projectids-realdata.py.
  82. - Tests (ports 8760–8764, 8767–8769): gate **315 passed, 0 failed** (`.scratch/w091/gate.sh <out>`); control = the same gate
  83. on the old code: 286 passed, 13 failed (exactly the id checks) then stops; connect.mjs (`.scratch/w091/connect.sh <out>`)
  84. **60 passed, 0 failed** ×2 (a first run timed out once at the connect page's new-project field — UI, untouched; flake).
  85. Real-data copy (Byrodin 2026-10-04 ~05:00, deleted after): `tests/projectids-realdata.py` old :8763 vs new :8764 →
  86. 1,484 answers identical, 772 slug-vs-id answers identical, unknown id 404, **0 FAILED** (README "Project ids on real data").
  87. letcount: never-reassigned `let` 0.
  88. - Open: deploy (`./deploy.sh`, architect); no data change. t.py / watch.py may switch to ids when wanted.
  89. ## 2026-10-03 — mission 011: ticket #25 short URLs (web part) — NOT deployed by me, API part waits for the creator
  90. Pages: project `/<slug>`, ticket `/<slug>/<number>`; `/projects/<slug>`, `/projects/<slug>/<n>`, `/projects/<slug>/tickets/<n>` and
  91. `/tickets/<old n|uuid>` answer 301 to them (current slug; nothing named → 404). API paths unchanged; the page links in its rows
  92. (`href`, `projectHref`, Markdown URL lines) are the short ones. Reserved slugs (`lib/projects.hl reservedSlugs`) refused at
  93. creation and slug change. Details + why the slug routes are moved behind hl:web's own urls: README "Short URLs (ticket #25)".
  94. - Files: project.hl (routes, the reorder after `new WebFramework`), lib/util.hl (hrefs), lib/api.hl + api-helpers.hl (301s),
  95. lib/projects.hl (reserved), components settings / ticket / ticket_list (links, comments), tests/browser.mjs (+44 checks),
  96. tests/connect.mjs (2 page URLs), new tests/shorturls-realdata.mjs.
  97. - Tests (ports 8760–8764, 8767–8769): gate **293 passed, 0 failed** (249 before; `.scratch/w083/gate.sh <out>`); connect.mjs
  98. (temp copy, app URL :8762, Chrome 8767–8769, `.scratch/w083/connect.sh <out>`) **60 passed, 0 failed**; control without the
  99. reorder: 35 passed, 15 failed. Live-data copy (Byrodin 2026-10-03 ~20:20, deleted after): `tests/shorturls-realdata.mjs`
  100. **187 passed, 0 failed** (11 projects, 20 tickets, every old form + followed); the ticket's own test (`/tracker.worldapi.org`,
  101. `/tracker.worldapi.org/31`, both old forms 301) by curl; API old vs new: 1,348 answers, 0 different beyond the page links.
  102. Collisions with reserved names on live data: none (no old slugs either). letcount: never-reassigned `let` 0.
  103. - Open: the API part (`/api/tickets/<x>`, `/api/projects/<id>`) — the creator must say whether `<x>` is a global id.
  104. After the deploy: links in old messages keep working by 301; t.py / watch.py use the API, unaffected.
  105. ## 2026-10-03 — mission 010: code order (antcolony docs/code-order.md), no behaviour change — NOT deployed by me
  106. Commits on main 97e269b (moves), e9d5c61 (one lib/ file per topic, project.hl = map, thin routes/faces), a75e027 (`let`), + docs.
  107. - Root: 14 `.hl` → only `project.hl` (621 → 144 lines: index comment, config, routes, audience). Layout + import order: README "Files".
  108. - `store.hl` split: `lib/projects.hl` (projects, members, roles), `lib/tickets.hl` (tickets + relations, all their writes,
  109. `removeMember` incl. the unassign, `ticketRights`), `lib/events.hl` (history; `putEvent`), `lib/tickets-helpers.hl` (state names,
  110. ref / relation view / filter links). `lib/util.hl` = old localtime.hl + the copies of env / storage dir / countOf / first /
  111. merged / sorts / text checks that were in store.hl and users.hl. The API routes moved from project.hl to `lib/api.hl`
  112. (auth, filters, Accept, HTML page in `lib/api-helpers.hl`); invite checks (`mayInvite`) and the invite join (`joinByInvite`)
  113. moved out of project.hl / the settings face into `lib/invites.hl`. `import.hl` → `tools/import.hl`, `styles.hl` → `components/`.
  114. - `let`: 680 → 219 (136 reassigned + 83 re-bound in a loop body); 456 → plain declarations (`tests/letcount.py .` → never-reassigned 0).
  115. - Tests (ports 8750–8759): gate **249 passed, 0 failed**; connect.mjs (temp copy, app URL :8752, Chrome 8753–8759) **60 passed,
  116. 0 failed**; live-data copy (README "Test" → "Same output", copy of Byrodin storage 2026-10-03 19:3x): 2,172 reads (every page
  117. signed in as az5b2 + signed out, every API read JSON + Markdown, refusals) **0 different** (1,460 byte-identical, 712 differ
  118. only by source positions / hashes / seed time), 72 write answers (API + faces) **0 different**; tools/fix-import-summaries on
  119. a copy = same output as the old tree (10 fixed, 40 fine); tools/import.hl reads `import/tickets` by default (gate).
  120. Default storage path checked: a server started WITHOUT TICKETS_STORAGE reads `storage/mpackdb` of the app (11 projects).
  121. - Found on the way (Hybriel, not app bugs): see Lessons (loop-body declarations, instance inside a copied hybrid, import cycles).
  122. ## 2026-10-03 — antcolony mission 074: re-vendored to hybriel master 06617221 (plugin allocators 3a781359 + 413f60e4) — NOT deployed by me
  123. bin sha256 21059cc7…d77bdb, same plugin set (old copy `.scratch/pre-074/` = 190aa11d). No app code change. Gate (ports in README
  124. "Vendored Hybriel") → **249 passed, 0 failed**; connect.mjs (temp copy, 8760–8769) → **60 passed, 0 failed**. Real-data memory
  125. (`.scratch/w074/mem.mjs`, LONG=1, 69 URLs): new 315 → 335 → 312 → 315 MiB after 5700 pairs, swap 0, ~31–38 ms per pair —
  126. **flat now** (072's slow growth is gone); old 190aa11d 319 → 743 MiB, 40–47 ms per pair.
  127. ## 2026-10-02 — antcolony mission 072: re-vendored to hybriel master 190aa11d (GC correctness fc838894, #126 closure scopes, #127) — NOT deployed by me
  128. bin sha256 860f5e61…0a23626, same plugin set (old copy `.scratch/pre-072/` = 7eea0d32). No app code change. Gate (same ports as below)
  129. → **249 passed, 0 failed**; `tests/connect.mjs` (temp copy, app URL :8722, Chrome 8723–8729, ports 8720/8721) → **60 passed, 0 failed**.
  130. Real-data memory (`.scratch/w072/mem.mjs`, SSR page + API read pairs over 69 URLs): new 315 MiB boot → 355 (200) → 418 (1200) →
  131. 706 MiB (5700), ~29 ms per pair, flat timing; old 697 → 1365 → 1719 MiB, ~79 ms per pair. Still slow growth (~0.065 MiB/pair,
  132. was 0.26 on 7eea0d32) — watch live RSS after the deploy.
  133. ## 2026-10-02 — antcolony mission 069: re-vendored to hybriel master 7eea0d32 (#126 memory, #48 lambda copy) — NOT deployed
  134. bin sha256 f0d3019f…fcc4bc734a0, plugins core crypto data fetch fs http http1 mpackdb proc time web (old copy `.scratch/pre-069/`).
  135. #48 fix: `migrate.hl` migrate* lambdas take `&log` (first gate run without it: 248/1 "migration: … log says what was migrated").
  136. Gate (ports 8720–8729): `TICKETS_GATE_PORT=8720 TICKETS_GATE_IDENT_PORT=8721 TICKETS_GATE_EXCHANGE_PORT=8722 TICKETS_GATE_CHROME_A=8723-8724
  137. TICKETS_GATE_CHROME_B=8725-8726 TICKETS_GATE_CHROME_C=8727-8729 node tests/browser.mjs` → **249 passed, 0 failed** (ident's current folder works again).
  138. `tests/connect.mjs` (temp copy, app URL :8722, Chrome 8723–8729, `TICKETS_CONNECT_PORT=8720 TICKETS_CONNECT_IDENT_PORT=8721`) → 60/60.
  139. Memory (copy of live storage, `.scratch/w069/mem.mjs <tag> <tree> <port>`, LONG=1 for more rounds; one round = N SSR pages + N API reads):
  140. RSS old 73267707 / new 7eea0d32 — boot 1541 / 701 MiB, after 200: 2654 / 1114, after 1200: 2874 / 1679, after 2700: 3173 / 2445,
  141. after 4200: 2403 / 2840 MiB. Boot and the first 2700 clearly lower, but new still grows ~0.26 MiB per load pair at 4200 (no plateau seen) →
  142. watch live RSS after a deploy (`docker stats --no-stream | grep tickets` on Byrodin; live was 8.76 GiB on 2026-10-02 before).
  143. ## 2026-10-01 — antcolony mission 048 (2nd try): re-vendored to hybriel master 73267707 (≥ 4850d798, #122 fixed) — NOT deployed
  144. bin sha256 9707e0cc…a81be534f, plugins core crypto data fetch fs http http1 mpackdb proc time web (old copy `.scratch/pre-048/`).
  145. #122 repro `.scratch/w048/repro/` (`node repro.mjs bin/hybriel`, port 8732, Chrome 8735–8739) → stays "you may edit" after the face.
  146. Gate (ports 8732–8739, ident snapshot — README "Test" → "Ident for the gate"):
  147. `TICKETS_GATE_IDENT_DIR=$PWD/.scratch/w048/ident-snap TICKETS_GATE_PORT=8732 TICKETS_GATE_IDENT_PORT=8733 TICKETS_GATE_EXCHANGE_PORT=8734
  148. TICKETS_GATE_CHROME_A=8735-8735 TICKETS_GATE_CHROME_B=8736-8736 TICKETS_GATE_CHROME_C=8737-8739 node tests/browser.mjs` → **249 passed, 0 failed**
  149. (3 runs; all 4 "once:" checks green incl. bob once in settings). `tests/connect.mjs` (temp copy, Chrome 8735–8739, app URL :8734) → 60/60.
  150. With ident's CURRENT folder (ident itself on master) the gate stops at "ident /code page" — an ident issue, not tickets.
  151. Removed: `migrate.hl` `compactNow()` block (#110) — master 249/0 without it; 837fe120 without it fails (control). Nothing else to remove
  152. (no #115/#116 statics, no #118 detours); no client-built SVG. Duplicate @id: counter `.scratch/w048/dupcount.py <storage dir>` (validated on
  153. an injected dup); this try's live tar was spent on a framing bug in the first version — numbers from the first try this morning: 0 everywhere.
  154. ## 2026-10-01 — antcolony mission 048: re-vendor to hybriel master ff51cf46 STOPPED (Hybriel bug) — restored to 837fe120
  155. Tried master ff51cf46 (ReleaseFast, read-only archive): gate 212 passed, 1 failed — settings "Save" turns the admin page into
  156. "Only an admin of the project can open its settings". CAUSE (hl:web, 0b17f65b + 64527baa): after ANY face that takes `session`,
  157. WebFramework.hl answers with `ack.sync` built from `mount(key, {}, s, …)` — the component re-mounted WITHOUT its route params, so
  158. every server reference site reading session (`isAdmin = … isAdminOf(project.id, me)`) is computed with `projectSlug = null` →
  159. false, and the browser takes it. Minimal repro: `.scratch/w048/repro/` (`node repro.mjs <bin>` in a tree with master's plugins:
  160. "you may edit" → "you may not edit" after a face; 837fe120 keeps it). Restored `bin/` + `plugins/` from `.scratch/pre-048/`;
  161. gate on the restored copy (ports 8732–8739, A/B one port each) → 245 passed, 0 failed. Logs: `.scratch/w048/`.
  162. Live data (copy, deleted): no duplicate @id in any table (#113). migrate.hl compactNow() workaround (hybriel #110, master has it)
  163. KEPT — not provable without the new binary. Not deployed.
  164. Follow-up (lead: since 64527baa a session face also syncs session-derived members → a handler that appends the face's row shows
  165. it twice, as in gitoria): tickets never appends a face's answer to a synced list (comments/state events arrive by push into `events`,
  166. which reads no session; list/inbox upsert by id; tokens/members/choices are replaced from the answer). Gate +4 "once:" checks
  167. (comment once in A and B, state change once, bob once in the settings members). 837fe120: 249 passed, 0 failed. Master copy
  168. (throwaway): the 3 comment/state ones green, members unreachable (stops at the settings bug) — `.scratch/w048/gate-once-*.txt`.
  169. ## 2026-10-01 — antcolony mission 046: installable app (PWA) + own icons — NOT deployed, awaiting architect / creator
  170. Done: `project.hl` (appIcons, appTouchIcon, appFavicon, theme = header darker rgb(15, 20, 25), `offline = [ TicketList ]`, icon routes,
  171. real `/favicon.ico`), `components/main.hl` + `styles.hl` (the "You are offline" note via the net-probe animation tick),
  172. `icons/` (ticket stub, svg source + PNGs + ico), gate part "PWA" in `tests/browser.mjs` (README "PWA", "Test").
  173. Gate (ports 8750–8759, command in README "Test") → **245 passed, 0 failed** (was 233); `tests/connect.mjs` 60/60 (run on a
  174. temp copy with Chrome 8757–8759). Looked at: icon 48/192/512 + maskable crop, 390 px online/offline shots — /tmp/w046-tickets/ on Loreana.
  175. Gate race fixed: "inbox follows the state change live" failed ~1/5 (API write overtook the tab's hello; the worker's extra
  176. requests widened the window) → `connected()` now waits for a pong after the hello. 12 runs green (6 on 8740–8749, 6 on 8750–8759).
  177. Open: offline `/` shows the list as last loaded (stale by design); verify install on a real phone after deploy.
  178. ## 2026-09-26 — ticket #23: connect protocol documented for app workers
  179. New `docs/connect-apps.md` (steps, exchange, key headers, create-ticket / comment / state calls); linked from the README. No code change.
  180. # STATUS
  181. ## 2026-09-26 — ticket #21: connect an app to a project (gitoria's tickets) — NOT deployed
  182. Done: `connections.hl` + `components/connect.hl` + routes (`/connect`, `/connect/:nonce`, `/api/connect/exchange`, `…/connections`, `…/connections/remove`), the
  183. connections line + Disconnect on the project page, per-project key `tktc_…` (create / comment / state only, roles of the NAMED person via
  184. `X-Tickets-Identity`). README section "Connecting an app to a project". `node tests/connect.mjs` → 60 passed, 0 failed. NOT run: the old gate
  185. `tests/browser.mjs` / `short-id-switch.mjs` (they need a copy of ident's code, `ident.worldapi.org` is not on this machine); the only shared-code
  186. change is `apiAuth` in `project.hl` (token users behave as before — checked in the new gate). Gitoria's side (button "Connect tickets", storing the key,
  187. sending the events) is gitoria's ticket. On Byrodin set `TICKETS_CONNECT_ORIGINS` only if a non-worldapi.org app must connect.
  188. ## 2026-09-26 — ticket #22: every event in the API carries `userId` — NOT deployed
  189. `store.hl eventRowOf` adds `userId` (the users @id of the author; `''` for events from before the login). `author` (display name) unchanged. Checked with a real write on a fresh store (`.scratch/m22/t.hl`: user, project, ticket, comment): both events show `userId` = the author's users @id. Not covered by the gate.
  190. ## 2026-09-26 — ticket #20: projects as own data, members, roles, new states — NOT deployed (architect: together with the scheduler update)
  191. Took over the unfinished worker session s-20260926T1044-278e20 (store/projects/members/settings/invites/inbox code was written, the gate not run).
  192. Fixed: the migration's replaced records left tombstones and the page realm's second open compacted the files under the first handle (every slug
  193. lookup 404'd after the first page render) → `migrate.hl` compacts the changed tables. Gate: `tests/browser.mjs` → 233 passed, 0 failed (roles,
  194. states + aliases, inbox, project create / settings / slug change / members / invite accepted through ident, layouts of the new pages);
  195. `tests/short-id-switch.mjs` (ports 8706/8707) → 19 passed, ported to the roles. The migration was also run on a copy of the dev store (5 projects,
  196. 47 tickets: 38 open, 9 done). Parked: the old browser checks (`tests/browser-pre20-parked.txt`). Not done: live push of a role change to an open page
  197. (a page needs a reload after an admin changes its role), the "answered" state of #19 is gone (replaced by these states).
  198. ## 2026-09-26 — antcolony mission 036: on hybriel master 837fe120 (hl:web, no local patch) — NOT deployed, awaiting architect
  199. Still carries the UNDEPLOYED #19 state (see Byrodin STATUS: never deploy tickets before #19 is decided).
  200. Switched: plugins/webex + both LOCAL PATCHes gone → master's plugins/web; `'hl:web'` / `'hl:web/css'` imports;
  201. NativeWebSocketServer/bindHost gone (hl:web reads HL_HOST); /login/callback uses `req.session` (still mints +
  202. Set-Cookie when the browser has none); `realSession()` gone (`session == null`); `encode` = `encodeURIComponent`;
  203. import.hl `after` = `a > b`; jsoncheck accepts a VALID \u surrogate pair (lone ones still 400 — JSON.parse still
  204. aborts on them, checked with the new binary); shared/tokens.hl = ident's/gitoria's hl:web copy. Gate: the 12 forged
  205. checks accept hl:web's own refusal (ack `ok:false`, "the `session` parameter is filled by the server"); surrogate cases
  206. updated (+2 checks: pair passes, high+non-low refused). `node tests/browser.mjs` → **423 passed, 0 failed** (incl.
  207. the #104 text-order check "the form says which ticket it opened"), no Chrome left. Served page:
  208. `/__hl/{hl-runtime.js,web/client.js,app.css}?v=ead0a6f2dfc83077`, 0 unhashed refs, hashed = immutable, bare = no-cache.
  209. Backup of the old state: `.scratch/pre-036/` (bin, plugins, src, tests). Kept: jsoncheck, localtime, hand sorts,
  210. login.js guard (JS untouched).
  211. ## 2026-09-25 — antcolony mission 035: re-vendor to hybriel master 13ef4f9b STOPPED (Hybriel bug) — code NOT touched (only this note)
  212. Probe in a copy (loreana `~/scratch-035/tickets-probe` deleted; recipe: rsync without .env/storage, bin+plugins from master,
  213. `'hl:webex'`→`'hl:web'`, `'hl:webex/css'`→`'hl:web/css'`, gitoria's `shared/tokens.hl`): gate 408 passed, 13 failed. (1) HYBRIEL
  214. BUG: an element built in the browser when its `if` turns true puts a child element BEFORE the bound text: `p { notice " " a {…} }`
  215. in ticket_list.hl renders `<a>open it</a>Opened hybriel #1. ` (server render is right). Repro: loreana
  216. `~/scratch-035/repro/home-textorder.hl`. (2) 12 forged-session checks expect an app `{error}`; hl:web now refuses the extra
  217. argument itself (ack `ok:false`) → the checks must accept that. Workarounds to drop at the real re-vendor: webex LOCAL PATCHes,
  218. NativeWebSocketServer listener (HL_HOST), realSession(), charCodeAt ordering, jsoncheck surrogate refusal (#15), hand URL encoders.
  219. ## 2026-09-25 — ticket #19 "answered" state — awaiting architect (deploy) / creator
  220. New state `answered`. When the creator comments on a ticket in `awaiting creator`, the store (`addComment`)
  221. also writes a state event → `answered` (goes back to whoever asked, leaves the inbox). Other users' comments
  222. change nothing; "confirmed" stays "tested, works". The asker sets `awaiting creator` again as before.
  223. API POST comments and the page face push both events; state badge colour + filter added. Gate: new #19 checks.
  224. DECISIONS.md not touched (architect/librarian).
  225. ## 2026-09-24 — ticket #12 Markdown source view (antcolony mission 025) — awaiting architect (deploy) / creator
  226. Follow-up to mission 009 (old 024): the creator asked (ticket #12, after "awaiting creator") for "a switch
  227. source / markdown at the bottom" to copy/paste or hand-edit the raw Markdown.
  228. Done (worker; edited `/media/STORAGE/projects/WorldAPI/worldapi-components/md-editor.js` directly — a plain
  229. JS asset, no `.hl` dev-server-reload risk — then `cp` into `shared/md-editor.js` here; no tickets
  230. `.hl`/faces/API/data changed, so nothing else needed a dev-copy round-trip):
  231. - `<md-editor>` gets a footer row at the bottom with a "Markdown source" button: swaps the visual
  232. editor for a plain textarea with the raw Markdown (copy/paste or hand-editing), "Visual editor"
  233. swaps back (re-parses the text). Same `input`/`change` events, Ctrl+Enter still sends the form.
  234. Hidden together with the toolbar when `toolbar="none"`. Details: worldapi-components README
  235. "Source view" / STATUS antcolony mission 025.
  236. - Component test (worldapi-components) → **81 passed, 0 failed** (72 before + 9 new checks), 83
  237. with `ORACLE_APP`. Screenshot `worldapi-components/.scratch/test/md-editor-source-view.png`.
  238. - This app's gate `node tests/browser.mjs` (ports 8700-8729, this session's range) → **418 passed,
  239. 0 failed**, unchanged from mission 009 (old 024) (no new tickets-side checks added — the feature lives
  240. entirely in the vendored component; the existing `#12` checks already cover the enhanced/standalone
  241. editors and keep passing with the new footer present).
  242. How to verify (ports 8700-8749 only):
  243. ```bash
  244. cmp /media/STORAGE/projects/WorldAPI/worldapi-components/md-editor.js shared/md-editor.js && echo same
  245. cd /media/STORAGE/projects/WorldAPI/worldapi-components && HL_CHROME=/opt/google/chrome/chrome node test/run.mjs # 81 passed
  246. cd /media/STORAGE/projects/WorldAPI/tickets.worldapi.org
  247. TICKETS_GATE_PORT=8700 TICKETS_GATE_IDENT_PORT=8701 TICKETS_GATE_EXCHANGE_PORT=8702 \
  248. TICKETS_GATE_CHROME_A=8710-8719 TICKETS_GATE_CHROME_B=8720-8729 node tests/browser.mjs # 418 passed
  249. ```
  250. Manual (creator): open a ticket → Comment field → click "Markdown source" at the bottom → the box
  251. becomes a plain textarea with the Markdown → edit it → click "Visual editor" → it renders again.
  252. Not deployed (Byrodin container untouched, live app on tickets.worldapi.org still the pre-mission-025
  253. version); the architect deploys with `./deploy.sh` after the creator confirms.
  254. ## 2026-09-24 — ticket #12 Markdown editor (mission 009 (old 024)) — awaiting architect (deploy) / creator
  255. Done (worker; developed in `.scratch/dev-m024`, copied back, NOT deployed):
  256. - New project `/media/STORAGE/projects/WorldAPI/worldapi-components/` with `<md-editor>` (its README/STATUS/test).
  257. - Vendored as `shared/md-editor.js`, route `/md-editor.js`, script in the shell; new-ticket summary, edit
  258. summary, comment and state note (input → textarea rows 1) wrapped in `mdEditor { textarea {…} }`;
  259. `styles.hl` sets the `--md-*` tokens. Faces/API/data unchanged. README "Markdown editor".
  260. - Gate `node tests/browser.mjs` → **418 passed, 0 failed** (402 old + 16 new `#12` checks; dev copy and main folder).
  261. - Component test (in worldapi-components, with this app's markdown.hl as oracle) → 72 passed, 0 failed.
  262. - Old files before the copy-back: `.scratch/m024/pre-copy-backup/`.
  263. How to verify (ports 8800-8849 only):
  264. ```bash
  265. cd /media/STORAGE/projects/WorldAPI/tickets.worldapi.org
  266. cmp shared/md-editor.js ../worldapi-components/md-editor.js && echo same
  267. bash .scratch/m024/gate-tickets.sh .scratch/m024/g.txt; tail -2 .scratch/m024/g.txt # 418 passed (ports 8810-8812, Chromes 8835-8844)
  268. cd ../worldapi-components && ORACLE_APP=../tickets.worldapi.org HL_CHROME=/opt/google/chrome/chrome node test/run.mjs # 72 passed
  269. ps -eo pid,args | grep [h]l-browser-tier | grep remote-debugging-port=88 # empty
  270. ```
  271. Screenshots: `.scratch/gate-{phone,desktop}-mdeditor.png`, `.scratch/gate-phone-newticket-mdeditor.png`,
  272. `../worldapi-components/.scratch/test/md-editor-{phone,desktop}.png`.
  273. Manual (creator): open a ticket → Comment: type `**bold**` → it turns bold; tap B / list on the phone;
  274. Ctrl+Enter sends; Edit → the summary shows formatted, Save.
  275. Lessons: `<md-editor>` is form-associated, so a wrapping `<label>` activates IT (not the textarea);
  276. Hybriel's JSON.stringify sorts object keys (compare key-sorted); a `<textarea>` turns CR LF into LF
  277. when its value is set by script.
  278. ## 2026-09-24 — design tokens AS DESCRIBED (ticket antcolony#3, antcolony mission 021) — awaiting architect (deploy) / creator
  279. antcolony Mission 018 (generated `':root'` copy + sync.sh) was REJECTED by the creator; antcolony mission 021 replaces it.
  280. Done (worker; developed in `.scratch/dev-m021`, copied back, NOT deployed):
  281. - `shared/tokens.hl` = hand-written webex `var()` tokens (`static dark = var('rgb(25, 30, 35)')`, semantic
  282. `colorText = var(light)` …, incl. `colorAccentText` moved here from the app), verbatim copy of
  283. `/media/STORAGE/projects/WorldAPI/worldapi-tokens/tokens.hl`. `styles.hl` member-imports them and uses them as
  284. members; sets only `colorAccent = var(purple)`. README "Design tokens".
  285. - webex LOCAL PATCH (antcolony mission 021, hybriel#39) in `plugins/webex/WebFramework.hl`; XSS patch kept.
  286. - Old files: `.scratch/m021/pre-copy-backup/` (styles.hl, shared/tokens.hl, WebFramework.hl); antcolony mission 018's
  287. worldapi-tokens folder (sync.sh, tokens.css, generated tokens.hl): `tickets.worldapi.org/.scratch/m021/worldapi-tokens-m018-backup/`.
  288. - Rendered colours unchanged: `/__hl/app.css` after `:root` byte-identical old vs new (in `:root` only
  289. the order of `--color-accent-text` / the app's `--color-accent` changed); Chrome computed colours
  290. of every element + every token, tickets list/inbox/state/ticket/you + ident home/code/account/apps/inbox,
  291. 390 + 1280: 23 passed, 0 failed.
  292. - Gate `node tests/browser.mjs` (ports remapped: `.scratch/m021/gate-tickets.sh`) → **402 passed, 0 failed** (dev copy and main folder).
  293. - Deploy simulation (deploy.sh excludes + debian:12-slim container): same app.css, byte-identical.
  294. How to verify (ports 8850-8879 only; scripts in tickets.worldapi.org/.scratch/m021 unless noted):
  295. ```bash
  296. cd /media/STORAGE/projects/WorldAPI/tickets.worldapi.org
  297. for a in tickets ident; do cmp /media/STORAGE/projects/WorldAPI/worldapi-tokens/tokens.hl ../$a.worldapi.org/shared/tokens.hl && echo same $a; done
  298. bash .scratch/m021/cmpup.sh up; node .scratch/m021/cmpstyles.mjs; bash .scratch/m021/cmpup.sh down # 23 passed (old code: <app>/.scratch/m021/old-<app>)
  299. IDENT_GATE_DIR=/media/STORAGE/projects/WorldAPI/ident.worldapi.org bash .scratch/m021/gate-tickets.sh .scratch/m021/g.txt; tail -2 .scratch/m021/g.txt # 402 passed
  300. cd /media/STORAGE/projects/WorldAPI/ident.worldapi.org; bash .scratch/m021/gate-ident.sh . .scratch/m021/gates-main # 6 suites green
  301. bash /media/STORAGE/projects/WorldAPI/tickets.worldapi.org/.scratch/m021/deploysim.sh <tickets dir> <ident dir> # needs cmpup's run/main-*.css
  302. ps -eo pid,args | grep [h]l-browser-tier # empty
  303. ```
  304. Screenshots: `tickets.worldapi.org/.scratch/m021/shots/<app>-<old|new>-<page>-<390|1280>.png`.
  305. Lesson: an imported `static` var() token works only with the antcolony mission 021 webex patch; tokens.hl changes need a restart.
  306. ## 2026-09-24 — shared design tokens (ticket antcolony#3, antcolony mission 018) — REJECTED by the creator, superseded by antcolony mission 021
  307. Done (worker; developed in `.scratch/dev-m018`, copied back, NOT deployed):
  308. - Tokens now come from `shared/tokens.hl` (generated from layouts `tokens.css` by
  309. `/media/STORAGE/projects/WorldAPI/worldapi-tokens/sync.sh`, vendored like plugins/); `styles.hl` inherits it and
  310. sets only the accent (README "Design tokens"). Old copy of `styles.hl`: `.scratch/m018/pre-copy-backup/`.
  311. - Every rendered colour unchanged: `/__hl/app.css` after `:root` byte-identical old vs new; computed
  312. colours of every element (tickets list/inbox/state/ticket/you, ident home/code/account/apps/inbox, 390 +
  313. 1280) old == new in Chrome.
  314. - Gate `node tests/browser.mjs` → **402 passed, 0 failed** (dev copy and main folder).
  315. How to verify (ports 8850-8879 only):
  316. ```bash
  317. cd /media/STORAGE/projects/WorldAPI/tickets.worldapi.org
  318. /media/STORAGE/projects/WorldAPI/worldapi-tokens/sync.sh --check # ok ×3
  319. bash .scratch/m018/cmpup.sh up; node .scratch/m018/cmpstyles.mjs; bash .scratch/m018/cmpup.sh down # 23 passed (old code in .scratch/m018/old-*)
  320. IDENT_GATE_DIR=/media/STORAGE/projects/WorldAPI/ident.worldapi.org bash .scratch/m018/gate-tickets.sh /tmp/g.txt; tail -2 /tmp/g.txt # 402 passed
  321. cd /media/STORAGE/projects/WorldAPI/ident.worldapi.org; bash .scratch/m018/gate-ident.sh . .scratch/m018/gates-main # 6 suites green (ports remapped copies)
  322. bash /media/STORAGE/projects/WorldAPI/tickets.worldapi.org/.scratch/m018/deploysim.sh <tickets dir> <ident dir> # deploy rsync + container: same app.css
  323. ps -eo pid,args | grep [h]l-browser-tier # empty
  324. ```
  325. Screenshots: `tickets.worldapi.org/.scratch/m018/shots/<app>-<old|new>-<page>-<390|1280>.png`.
  326. Lesson: a `var()` token of hl:webex/css can't cross an `inherit` (second instance) — use literal `':root'` strings.
  327. ## 2026-09-24 — ticket #4 (mission 008 (old 017)): parent / child + blocked-by — awaiting architect (deploy) / creator
  328. Done (worker; developed in `.scratch/dev-m017`, copied back, NOT deployed to Byrodin):
  329. - **Relations** (README "Relations"): a ticket has ≤ 1 parent and any number of blockers, across
  330. projects; parent page lists children + states, child shows "Part of …"; "Blocked by" / "Blocks" on
  331. both sides. New table `storage/mpackdb/links.*` (created empty — no migration); every change is a
  332. history event `kind:"link"` on the child / blocked ticket.
  333. - **Who may**: the author of either ticket or the creator (legacy tickets without author: only the
  334. creator or the other ticket's author). No self-links, no loops (also transitive), no duplicates.
  335. - **Parent state**: `allChildrenConfirmed` (children exist and all `confirmed`) → page "all children
  336. confirmed (n)" (green) / "k of n children confirmed"; the parent's state is never changed.
  337. - **API**: `POST …/parent {parent}` (`""` removes), `POST …/blocked-by {add}|{remove}`, both URL
  338. forms; rows (list + single) carry `parent`, `children`, `blockedBy`, `blocks` (refs with states),
  339. `allChildrenConfirmed`. Markdown view: Parent / Children / Blocked by / Blocks blocks + list-line tails.
  340. - **Web**: forms "Parent ticket" (Set / Remove) and "Blocked by" (Add, Remove per row) for logged-in
  341. users; live push `ticketsRelated` after relation writes, state changes and edits.
  342. - Gate ports configurable (`TICKETS_GATE_CHROME_A/B` new); a `connected()` wait added before the
  343. pre-existing token "Revoke" click (it flaked once on the bare SSR button).
  344. - Gate `node tests/browser.mjs` → **402 passed, 0 failed** (dev copy 3× in a row, main folder 3×).
  345. How to verify:
  346. ```bash
  347. cd /media/STORAGE/projects/WorldAPI/tickets.worldapi.org
  348. bash .scratch/m017/gate.sh .scratch/m017/g.txt; tail -2 .scratch/m017/g.txt # gate on ports 8800-8819 (or plain node tests/browser.mjs)
  349. ps -eo pid,args | grep [h]l-browser-tier # empty
  350. bash .scratch/m017/compat.sh # old vs new code on store copies: JSON equal minus the 5 new keys, Markdown identical, .mpack unchanged
  351. node .scratch/m017/identmigrate.mjs # rehearsal on a store COPY: ident #3–#8 under ident #1 (creator token 201 ×6, non-creator 403)
  352. ```
  353. Look at `.scratch/gate-{phone,desktop}-{parent,blocked}.png`.
  354. For the architect (after the deploy): link the ident pieces —
  355. `for n in 3 4 5 6 7 8; do curl -s -XPOST -H "Authorization: Bearer $TOKEN" -d '{"parent":"ident.worldapi.org#1"}' https://tickets.worldapi.org/api/projects/ident.worldapi.org/tickets/$n/parent; done`
  356. — ident #1 and #3–#8 were opened BEFORE the login (authors "import" / "architect" as text), so only
  357. the CREATOR's token may (a non-creator gets 403, rehearsed). Check: `curl -s -H 'Accept: text/markdown' https://tickets.worldapi.org/api/projects/ident.worldapi.org/tickets/1 | head -20`.
  358. Manual (creator): open a ticket you opened → "Parent ticket" field → `ident.worldapi.org#1` → Set parent;
  359. the parent page lists it under "Children".
  360. Lessons (mission 008 (old 017)):
  361. - `from` is reserved in Hybriel (parse error "Expected parameter name") — known (hybriel#22), bit again.
  362. - A gate click right after `goto` + `waitForSelector` can hit the SSR button before hydration → wait for
  363. the socket (`connected()`) before any click.
  364. - Loreana ports 8821 and 8830 are taken by other software (llama-server) — inside the 8800-8849 range.
  365. ## 2026-09-24 — tickets #8 (edit) + #6 (Markdown) + #11 (gate under load), mission 007 (old 014) — awaiting architect (deploy) / creator
  366. Done (worker; developed in `.scratch/dev-m014`, copied back, NOT deployed to Byrodin):
  367. - **SECURITY, found on the way (pre-existing, live too)**: hl:webex writes the page state (user
  368. text) into an inline `<script>` unescaped → a summary / comment containing
  369. `</script><img src=x onerror=…>` executes in every viewer's browser. Reproduced on the pre-m014
  370. code (`.scratch/m014/old-app`, probe ticket via `.scratch/m014/xssprobe.hl` on a store COPY →
  371. `xsscheck.mjs` `__pwned = 1`); fixed by a one-line LOCAL PATCH in `plugins/webex/WebFramework.hl`
  372. (`<` → `\u003c` in the seed) → `__pwned = undefined`, page hydrates. Deploy soon; ident and
  373. every other hl:webex app vendor the same code (hybriel issue to file).
  374. - **#8 editing** (README "Markdown, editing"): the author edits subject + summary (web "Edit",
  375. API `POST …/edit`); legacy tickets (no user on the created event): only the creator; else 403.
  376. Edit = history event `kind:"edit"` with old + new values, pushed live.
  377. - **#6 Markdown**: `markdown.hl` + `components/markdown.hl` render summary / comments / state
  378. notes safely (text nodes only, `safeHref`); `mdview.hl` = `Accept: text/markdown` on the ticket
  379. GETs. JSON unchanged (old vs new code on copies of the store: every GET byte-identical).
  380. - **#11 gate**: page waits × `TICKETS_GATE_SLOW` (default 3); console check before ident stops,
  381. browsers parked on `about:blank` during "ident down".
  382. - Gate `node tests/browser.mjs` → **335 passed, 0 failed** (dev copy and main folder).
  383. How to verify:
  384. ```bash
  385. cd /media/STORAGE/projects/WorldAPI/tickets.worldapi.org
  386. node tests/browser.mjs # 335 passed; look at .scratch/gate-{phone,desktop}-{edit,markdown}.png
  387. ps -eo pid,args | grep [h]l-browser-tier # empty
  388. bash .scratch/m014/compat.sh # JSON DUMPS IDENTICAL, 47 tickets md+page 200, .mpack unchanged
  389. # #11 under load: a dev server on a store COPY (:8374), then
  390. node .scratch/m014/load.mjs http://127.0.0.1:8374 4 6 & # 4 Chromes x 6 tabs; kill %1 afterwards
  391. node tests/browser.mjs # 3x green (logs .scratch/m014/gate-load-*.txt, gate-heavy-*.txt)
  392. # old code under the same load: .scratch/m014/old-app → 274/1 (ERR_CONNECTION_REFUSED selector.js), 3 of 3 runs
  393. ```
  394. Manual (creator): open a ticket you opened after the login → "Edit" (top, under the dates) →
  395. change subject / summary (Markdown) → Save: the history shows "edited the ticket" with the
  396. previous version folded. `curl -H 'Accept: text/markdown' https://tickets.worldapi.org/api/projects/tickets.worldapi.org/tickets/6`.
  397. Old files before the copy-back: `.scratch/m014/pre-copy-backup/` (+ `.scratch/m014/old-app/plugins`).
  398. Lessons (mission 007 (old 014)):
  399. - A `#events li` selector (CSS or test) also hits the `<li>` of a Markdown list inside an event:
  400. use `#events > li`.
  401. - Hybriel string literals DO decode `\uXXXX` but not `\\`: a literal backslash is `'\u005c'`.
  402. - Never embed user text in an inline `<script>` without escaping `<` (webex did — see above).
  403. ## 2026-09-24 — tickets #9 + #10 (mission 006 (old 012)): login banner after logout, button returns to the page — awaiting architect (deploy) / creator
  404. Done (worker; developed in `.scratch/dev-m012`, copied back, NOT deployed to Byrodin):
  405. - **#9 cause (reproduced in headless Chrome, own ident + tickets, `.scratch/m012/repro.mjs`)**:
  406. hl:webex re-creates the shell header — `<ident-selector>` AND the `<script>` elements — every
  407. time the login state flips (login, logout); the browser runs the re-inserted `/login.js` again,
  408. and every run added one more `ident-login` listener to the (new) selector. After a logout the
  409. selector carried 2 listeners → one choice = 2 `change`s on `#identcode` = 2 `identLogin` faces =
  410. 2 exchanges of the SAME code at ident (200, then 400 "unknown or already used code" → banner).
  411. The first exchange had logged the session in as the chosen identity (B). Not identity-specific:
  412. A → Log out → A again showed the banner too; the first selector login after a page load never
  413. does (one listener) — that is why "with A alone" it never appeared. Navigation is NOT the cause
  414. (after an in-app click list → ticket, login.js had not run again); list, ticket page reached by
  415. click and ticket page loaded directly all showed it (old code: exchanges `[200, 400]`).
  416. - **Fix** `login.js`: installs once per document, `ident-login` listener on `document`, current
  417. `#selector` looked up each time (MutationObserver on the whole document), each code handed on
  418. once. After: exactly one exchange, no banner, logged in as B (all 3 scenarios).
  419. - **#10** the button returns to the page: `login.js` adds `?next=<path+query>` to the button's
  420. return URL at the click; `project.hl` `safeNext` + `/login/callback` → 302 there (same-origin
  421. path only, else `/`). ident keeps the return URL's query and appends `&ident_code=`.
  422. - Gate `node tests/browser.mjs` → **275 passed, 0 failed** (+25: #9 path with an exchange-counting
  423. proxy, #10 table + browser). With the OLD `login.js` the new #9/#10 checks FAIL (negative control).
  424. How to verify:
  425. ```bash
  426. cd /media/STORAGE/projects/WorldAPI/tickets.worldapi.org
  427. node tests/browser.mjs # 275 passed; grep '#9\|#10' in the output
  428. ps -eo pid,args | grep [h]l-browser-tier # empty
  429. SCEN=ticket-nav node .scratch/m012/repro.mjs # "B login: exchanges=1 ..." ; banner null
  430. SCEN=list node .scratch/m012/repro.mjs .scratch/m012/old-app # the OLD login.js: "B login: exchanges=2", banner
  431. ```
  432. Old files before the copy-back: `.scratch/m012/pre-copy-backup/`. Gate logs `.scratch/m012/gate-*.txt`.
  433. Manual (creator): log in with the selector, Log out, choose another identity → no red banner,
  434. top right the other identity; log out on a ticket page, "Log in with ident" → back on that page.
  435. ## 2026-09-24 — ticket #7 (mission 005 (old 011)): login via ident — awaiting architect (deploy) / creator
  436. Done (worker; developed in `.scratch/dev-m011`, NOT deployed to Byrodin):
  437. - **Login** (README "Login (ident)"): ident's selector top right + "Log in with ident" button;
  438. the server exchanges the one-time code (`users.hl` exchangeCode, IDENT_API_KEY/SECRET) for the
  439. per-app identity id; `login.js` bridges the selector's `ident-login` event into the shell's
  440. face `identLogin` (no reload); `/login/callback` for the button. Logout resets the selector.
  441. - **Users** `storage/mpackdb/users.*` (identity id → display name, asked once at the first login,
  442. cannot be changed afterwards), **tokens** `storage/mpackdb/tokens.*` (sha256 only; `/you`:
  443. create / list / revoke; `Authorization: Bearer` on every API write, else 401).
  444. - **Reading public, writing needs a login** (web faces check the REAL session, #31; API 401).
  445. No author field (API `author` → 400 naming it); events store `user`, old events keep their
  446. author. **Confirm/reject only by `TICKETS_CREATOR_IDENTITY`** (unset = nobody; API 403).
  447. - `/you` shows the user's own per-app id (for TICKETS_CREATOR_IDENTITY) + tokens.
  448. - `import.hl` needs `TICKETS_TOKEN`. `docker-compose.yml`: `IDENT_EXCHANGE_URL=http://127.0.0.1:45002`
  449. (key/secret/creator come from `.env`, loaded by the runtime).
  450. - Gate `node tests/browser.mjs` → **250 passed, 0 failed** (own ident on :8353 from a copy of
  451. ident's code without `.env`, mail sink; see README "Test").
  452. - Live-store compatibility: old code (`.scratch/dev-m010`) and new code each on a COPY of
  453. `storage/mpackdb`, every GET dumped → byte-identical (`.scratch/m011/compat.sh`); old
  454. `.mpack` files unchanged; `users.*`/`tokens.*` appear empty. No migration step.
  455. For the architect (deploy): `.env` on Byrodin must have `IDENT_API_KEY` / `IDENT_API_SECRET`
  456. (creator set them). After the deploy: the creator logs in, opens `/you`, the architect sets
  457. `TICKETS_CREATOR_IDENTITY=<id>` in `.env`, restarts; the creator (identity "Architect") creates
  458. the architect's token on `/you`. Until then NOBODY can confirm/reject, and every API client
  459. (the architect's scripts, import) needs a token — writes without one are 401 from the deploy on.
  460. How to verify:
  461. ```bash
  462. cd /media/STORAGE/projects/WorldAPI/tickets.worldapi.org
  463. node tests/browser.mjs # 250 passed; screenshots .scratch/gate-*-{signedout,name,loggedin,tokens}.png
  464. ps -eo pid,args | grep [h]l-browser-tier # empty
  465. bash .scratch/m011/compat.sh # DUMPS IDENTICAL (old vs new code on copies of storage/mpackdb)
  466. ```
  467. Manual (dev): own ident + tickets: `bash .scratch/m011/devup.sh` (ident :8358 from
  468. `.scratch/m011/ident` = copy WITHOUT .env, mail sink `.scratch/m011/run/mail.txt`; tickets :8359
  469. with `.scratch/m011/run/app.env`; `node .scratch/m011/devsetup.mjs` registers the app first).
  470. Query users/tokens: only on a COPY (#40): `cp -a storage/mpackdb /tmp/c` + a small hl script
  471. (`MPackDB(file = '/tmp/c/users.db', primaryKey = '@id', indexes = ['!identity'])`).
  472. ## 2026-09-24 — deploy readiness (ident mission 006 (old 010)) — awaiting architect (first deploy)
  473. Done (worker; NOT deployed to Byrodin):
  474. - `project.hl`: builds the listener itself so `HL_HOST=127.0.0.1` binds loopback (hl:webex
  475. ignores HL_HOST); `TICKETS_WATCH=0` = no dev watcher. Defaults unchanged (0.0.0.0, watcher on).
  476. - `docker-compose.yml` (container `tickets.worldapi.org`, 127.0.0.1:45003) + `deploy.sh`
  477. (README "Deploy").
  478. - Gate `node tests/browser.mjs` → 164 passed, 0 failed (dev copy `.scratch/dev-m010` and live folder).
  479. - Tested on Loreana only: local deploy into a directory + the container there (only
  480. 127.0.0.1:45003 listens, URL 200, fake storage marker untouched), and behind a local TLS
  481. nginx in real Chrome: page + wss socket, no http:// URLs (ident `.scratch/m010/`).
  482. How to verify:
  483. ```bash
  484. cd /media/STORAGE/projects/WorldAPI/tickets.worldapi.org
  485. node tests/browser.mjs # 164 passed
  486. bash -n deploy.sh && ./deploy.sh --dry-run --target /tmp/ticketsdeploy-test # LOCAL dir only
  487. ```
  488. For the architect: the vhost needs WebSocket Upgrade headers and `proxy_pass http://127.0.0.1:45003`.
  489. ## 2026-09-24 — ticket #38 (mission 004 (old 008)): per-project numbers, UUID keys, storage/mpackdb/ — awaiting creator
  490. Done (worker, not yet confirmed by the creator):
  491. - **UUID keys** (`@id`) in all three tables, files in `storage/mpackdb/{projects,tickets,events}.*`.
  492. Ordering from stored times: lists by `updated`, history by (`created`, `seq`), projects by `created`.
  493. - **Per-project numbers** from 1; URL `/projects/<project>/<number>`; slug = project name as is
  494. (new names: letters, digits, `. _ -` only). List, inbox, ticket page, pushes, notice link use it.
  495. - **Old global numbers** kept as `oldNumber`: page shows "formerly #n", `/tickets/<n>` → 301,
  496. `/api/tickets/<n>[/comments|/state]` still work (also with the UUID). New tickets: no old number.
  497. - **API** per-project form `/api/projects/<slug>/tickets[/<number>[/comments|/state]]` (GET/POST),
  498. rows carry `project`, `number`, `href`, `apiHref`, `oldNumber`. `ticket.id` is now the UUID.
  499. - **Migration** `tools/migrate-008.hl` (idempotent) of the live data, deployed 2026-09-24:
  500. old tables stay in `storage/tickets-*` (untouched, md5-checked), full backup
  501. `.scratch/storage-backup-<ts>`, logs + before/after dumps in `.scratch/deploy-008-<ts>/`
  502. (`deploy-008.sh`, compare `cmp008.py`). Rehearsed on a copy first (`.scratch/rehearse.sh`).
  503. - Gate: `node tests/browser.mjs` → **164 passed, 0 failed** (in `.scratch/dev` before deploy).
  504. Test: gate (see README "Test"), then
  505. `python3 .scratch/cmp008.py .scratch/deploy-008-*/before.jsonl .scratch/deploy-008-*/after.jsonl`
  506. and open http://192.168.178.75:8350/tickets/38 (→ /projects/tickets.worldapi.org/5).
  507. Known gaps: new tickets have no global number, so `/api/tickets/<n>` works only for the
  508. migrated #1–#40 (use the UUID or the per-project form). Numbers are max+1 (a deleted ticket's
  509. number would be reused — there is no delete). Project names stay case-sensitive.
  510. ## 2026-09-24 — ticket #15 (mission 003 (old 004)): required author, 400 on invalid JSON, list lines — awaiting creator
  511. Done (worker, not yet confirmed by the creator):
  512. - **`author` required** on `POST /api/tickets`, `/comments`, `/state` → 400 `{error, field:"author"}`
  513. when missing/empty (`api.hl` required lists + `store.hl` `authorMissing`, so web faces too).
  514. Web forms: name fields removed, they write as `creator` until ident exists. Stored data unchanged.
  515. - **Invalid JSON → 400 `{error:"invalid JSON at character N"}`** (no source path) via
  516. `jsoncheck.hl` before `JSON.parse` — WORKAROUND for hybriel #12, remove when fixed. It also
  517. refuses `\uD800`–`\uDFFF` escapes (hl JSON.parse refuses even valid pairs → would be 500).
  518. - **Import list lines**: `ticketfile.hl` keeps `- ` / `* ` / `1. ` lines as own lines (`\n`),
  519. wrapped lines still joined; page shows them as separate lines (pre-wrap). #1–#5 have no lists
  520. → nothing to migrate.
  521. - Gate: `node tests/browser.mjs` → **119 passed, 0 failed** (in `.scratch/dev` before deploy).
  522. - Deploy 2026-09-24: backup + before/after API dumps in `.scratch/` (see `deploy-004.sh`).
  523. Known gaps: a body that passes jsoncheck but that hl JSON.parse still refuses would 500
  524. (none known besides surrogates). Nested list indentation is dropped. A wrapped line that
  525. happens to start with `12. ` is taken as a list item (same as Markdown).
  526. ## 2026-09-24 — ticket #10 (mission 002): strict API, Vienna time, paragraph import — awaiting creator
  527. Done (worker, not yet confirmed by the creator):
  528. - **Strict API** (`bodyError` in `api.hl`): every POST body must be a JSON object; unknown
  529. field / missing or empty required field / non-string value → 400 `{ error, field }`,
  530. nothing written. Semantic refusals (state, project name) carry `field` too. `POST /api/projects` → 405.
  531. - **Local time**: all shown times (pages + API `created`/`updated`/`when`) are Europe/Vienna
  532. (`localtime.hl`, userland EU DST rule — hl:time has no time zones). Storage stays epoch ms.
  533. - **Import**: `ticketfile.hl` joins hard-wrapped lines, blank line = new paragraph (`\n\n`).
  534. - **One-off data fix** 2026-09-24 00:11: `tools/fix-import-summaries.hl` rewrote only `summary`
  535. of #1–#5 (server stopped, backup `.scratch/storage-backup-20260924-001142`). Ids, states,
  536. `updatedMs`, events unchanged — compared API dumps `.scratch/{before,after}-full-20260924-001142.json`.
  537. - Gate: `node tests/browser.mjs` → **93 passed, 0 failed** (2026-09-24, run in a copy before deploy).
  538. Known gaps: invalid JSON → 500 (no way to catch `JSON.parse` in Hybriel; nothing written).
  539. `author` stays optional (defaults to `anonymous`). Vienna rule is correct from 1996 on only.
  540. Running: dev server on :8350, PID in `server.pid`, log `server.log`, data `storage/mpackdb/`.
  541. ## 2026-09-23 — MVP (AntColony ticket 0001, mission 001)
  542. Done (worker, not yet confirmed by the creator):
  543. - Data: projects, tickets (id, project, subject, summary, state, source, created, updated),
  544. append-only events (created / comment / state, free-text `author`). Six states.
  545. - Pages `/`, filters `/project/:p`, `/state/:s`, both; `/tickets/:id`; `/inbox`; new-ticket form.
  546. - Live push of comments / state changes / new tickets to every open browser (web AND API writes).
  547. - JSON API (list/get/create/comment/state/projects), import command (idempotent by file name).
  548. - Dark WorldAPI tokens, accent #c586c0, danger #f44747; works at 390px and 1280px.
  549. - Gate then: 57 passed.
  550. ## How to verify
  551. ```bash
  552. cd /media/STORAGE/projects/WorldAPI/tickets.worldapi.org
  553. node tests/browser.mjs # the gate (see README "Test")
  554. node tests/connect.mjs # the connect gate (ports: README "Vendored Hybriel" / a temp copy)
  555. # a refactor: tests/realdata-baseline.mjs old vs new + tests/realdata-compare*.py (README "Test" → "Same output")
  556. python3 tests/letcount.py . # code order: root .hl files, project.hl lines, misused let
  557. ps -eo pid,args | grep [h]l-browser-tier # must print nothing afterwards
  558. curl -s http://127.0.0.1:8350/api/tickets | jq '.tickets[] | {project, ref, oldNumber, state, subject}'
  559. curl -s -XPOST -d '{"text":"x","bogus":"1"}' http://127.0.0.1:8350/api/tickets/1/comments # → 400 naming bogus (nothing written)
  560. curl -s -XPOST -d '{bad' http://127.0.0.1:8350/api/tickets/1/comments # → 400 invalid JSON at character 1
  561. curl -si http://127.0.0.1:8350/tickets/38 | grep Location # → /projects/tickets.worldapi.org/5
  562. node .scratch/checklive.mjs # read-only real-Chrome look at :8350: list/history times == Intl Vienna, #1/#2 summaries one paragraph
  563. ```
  564. Then open http://192.168.178.75:8350 in two browsers, comment in one, watch the other.
  565. ## Open / next
  566. - ~~No users~~ — done by ticket #7 (mission 005 (old 011)): creator-only confirm/reject via TICKETS_CREATOR_IDENTITY.
  567. - Not deployed (Byrodin container, nginx vhost, DNS) — out of MVP scope.
  568. - Project filter chips / datalist of a list page do not grow live when a NEW project appears
  569. (a reload shows it); ticket rows do.
  570. - No delete of tickets or comments; comments cannot be edited (only subject + summary, ticket #8).
  571. - Keywords in comments (`/confirm`, `/reject`, …) are the scheduler's job, not implemented here.
  572. - Hybriel limits met (worked around): no time zones in hl:time (localtime.hl), no catch for
  573. JSON.parse (jsoncheck.hl → 400), JSON.parse refuses \u surrogate escapes, no list `concat()` (NotCallable), no string escapes ("\r" is 2 chars).
  574. - Older Hybriel limits met (worked around): no string ordering / no list `sort()` (import sorts by
  575. char codes). (mpackdb `*id` from 0 no longer matters: UUID keys since #38.)
  576. ## Lessons
  577. - (mission 010) A plain declaration (`x = 1`, no `let`) is a CONSTANT: inside a for/while body Hybriel refuses it on the
  578. 2nd pass ("Cannot reassign immutable variable") — a variable declared in a loop body keeps `let`. A constant can still be
  579. mutated (`out.push`, `o.k = v`). Inside a component, `x = …` in a handler assigns the MEMBER `x` if there is one.
  580. - (mission 010) A hybrid that holds an instance (the request with `req.session`) keeps the handle through ONE call, but
  581. copied into a SECOND call the instance is copied too: writes to the session were lost (the gate's logins failed).
  582. `/login/callback` therefore gets `&req` and `&server.sessions` from project.hl. Instances as call arguments are copied
  583. anyway — pass `&` when the callee must change the original.
  584. - (mission 010) Imports must not form a cycle ("Cyclic member import"): lib/ imports only downwards (README "Files").
  585. - (mission 011) hl:web APPENDS its own routes (`/__hl/…`, `/components/<file>.hl` modules) to the app's table during
  586. `new WebFramework(…)`, and the first match answers: a catch-all like `/:slug/:number` anywhere in the app's table eats
  587. them (the page answered /__hl/app.css with HTML). Fix in project.hl: move such routes to the end of `server.router.routes`
  588. after the construction; keep them IN the table, or hl:web serves no module for their component (a component only
  589. mounted by a route added later had none: `/components/ticket.hl` → HTML). Upstream: hl:web should match its own urls first.
  590. - (mission 011) `setsid cmd &` started from a `( … )` subshell forks: `$!` is not the server's PID (a stale server kept
  591. the port and the next run silently talked to it). Start test servers as `(… exec ./bin/hybriel …) &` and check the
  592. port is free afterwards (`ss -ltn`).
  593. - (mission 010) An HTML page's seed carries source positions (`site`, `Markdown@135:54` mount keys): moving lines changes
  594. the bytes without changing the output — tests/realdata-compare.py masks them.
  595. - (mission 006 (old 012)) hl:webex re-creates elements of a View when an `if` block before/around them
  596. flips — including `script { src }`: the browser EXECUTES a re-inserted script again, and custom
  597. elements lose their internal state (the selector forgets the chosen name). A plain script in a
  598. View must be idempotent (guard per document) and must not hold element references.
  599. - (mission 005 (old 011)) A called function's PARAMETER NAMED LIKE AN ENTRY of the object literal it is
  600. called from reads that entry: `{ id = e.id author = nameOfUser(e.user) }` with
  601. `nameOfUser = (id) => …` got the EVENT's id. Compute such calls before the literal, avoid
  602. parameter names like `id` (Hybriel issue reported in mission 005 (old 011)).
  603. - (mission 005 (old 011)) hl:mpackdb `update(key, rec)` on an `@id` table with a record WITHOUT `id`
  604. stores it without the key: `fetch(key)` is null afterwards (the unique index still finds it)
  605. and the next update fails `CorruptRecord`. Always pass the whole record with `id`.
  606. - (mission 005 (old 011)) hl:webex cannot listen to a custom DOM event (`ident-login`): a plain script
  607. (`login.js`) writes the value into a hidden input and fires `change`.
  608. - (mission 005 (old 011)) A failed hl:fetch (connection refused) is an `Error` event; only a root
  609. `on Error(e)` in the ENTRY file (project.hl) absorbs it — one in the imported users.hl did not.
  610. - (mission 005 (old 011)) hl:webex ships every component member AND `session.user` to the browser:
  611. keep the identity id out of members and out of the session (only on /you, on purpose).
  612. - (mission 005 (old 011)) `rsync --exclude 'server.*'` also drops `plugins/*/server.hl` — anchor it (`/server.*`).
  613. - Hybriel resolves RELATIVE file paths (mpackdb too) against the ENTRY SCRIPT's directory,
  614. not the cwd: a tool in `tools/` must get an absolute `TICKETS_STORAGE`.
  615. - Saving a `.hl` file reloads the running dev server (watcher): develop in a copy
  616. (`.scratch/dev`, gate there), stop the server, then copy files in.
  617. - `JSON.parse` of a JSON array gives a Hybrid with `.length`; of an object `.length` is null.
  618. - A function route's request has `req.query` (parsed object); `req.path` carries NO query string.
  619. - `emit client …` inside a function route (API) works: with an `audience` entry it fans out to
  620. every admitted connection that has a listener mounted.
  621. - A selector group in `styles.hl` must be ONE quoted key (`'input,\ntextarea' { … }`); a bare
  622. `input, textarea` is a parse error.
  623. - Function PARAMETERS are immutable in Hybriel (`i = i + 1` on a param is a runtime error):
  624. copy into a `let` first (jsoncheck.hl).
  625. - `google-chrome` is not on PATH on Loreana; the gate uses `/opt/google/chrome/chrome`.
  626. - Opening an hl:mpackdb table REWRITES its index/meta files (`*.txt`, `*.meta.json`,
  627. `*.idxstate.json`) even with `compact = false`; only `.mpack` stays. Migrate from a COPY
  628. when the originals must stay byte-identical (deploy-008.sh does).
  629. - mpackdb `@id` keys are 12-char strings (`0mufbphip3w7`); a missing indexed field is fine
  630. (`*oldNumber` on new tickets); `!path` unique index refuses duplicate numbers.
  631. - A non-literal `static` in project.hl reads null in function routes (hybriel #16): API helpers
  632. in project.hl are plain members, not statics.
  633. ## 2026-09-24 — DEPLOYED (architect)
  634. - LIVE is now https://tickets.worldapi.org on Byrodin (/CONTAINERS/projects/tickets.worldapi.org). The live data was moved there.
  635. - This Loreana folder is DEVELOPMENT only; its storage/ is a stale copy. Dev servers were stopped. Update live with ./deploy.sh.
  636. ## 2026-09-24 — ticket #16: tidy relations block out of the edit handlers — awaiting creator
  637. Done (worker, not yet confirmed by the creator):
  638. - `components/ticket.hl`: the relations init block (`rel`, `hasRelations`, `hasParent`, …,
  639. `parentDraft`, `blockerDraft`, `linkMessage` — 16 lines) had been pasted verbatim into
  640. `startEdit`, `cancelEdit` and `saveEdit` too (ticket #4 code landing inside the ticket #8 edit
  641. handlers). Removed the three copies; the component's own init block (still there) is the only
  642. place that sets them. No behaviour change intended — clicking Edit/Cancel/Save no longer resets
  643. `parentDraft`/`blockerDraft`/`linkMessage` mid-edit, which was a side effect of the paste, not a
  644. feature. 489 → 441 lines.
  645. - Gate: `node tests/browser.mjs` → **418 passed, 0 failed**, run on this folder with
  646. `TICKETS_GATE_PORT=8700 TICKETS_GATE_IDENT_PORT=8701 TICKETS_GATE_EXCHANGE_PORT=8702
  647. TICKETS_GATE_CHROME_A=8703-8704 TICKETS_GATE_CHROME_B=8705-8706` (own storage in
  648. `.scratch/gate-store`, own ident, no live data touched). Includes the full #4 relations suite
  649. and #8 edit suite, both still green.
  650. - Not deployed (deploy.sh is the architect's job).
  651. Test: gate above, then open a ticket with relations on the live site and click Edit — the
  652. relations panel keeps showing normally, editing subject/summary still works.
  653. ## 2026-10-20 — worker S: mission 015, re-vendor Hybriel 0f396652 (static) — gates green, NOT deployed, NOT merged (branch wv)
  654. - bin/ (sha256 60fa02f3…) + plugins/ replaced; no other change. browser 326/0 old and new, events 52/0 old and new; real data same. Report reports/015-revendor-0f396652.md.
  655. ## 2026-10-20 — worker J2: mission 018 (tickets#27 attachments, part 2) — gates green (373/0, events 52/0, components 357/0), NOT deployed/merged; E2E in lisbeth Chrome + real-data copy still to do (see reports/018)
  656. ## 2026-10-20 — worker J3: mission 020, final proof of tickets#27 — PASS, ready for Atlas to deploy (branch w27 1206404 + commit; components 15be2ac)
  657. - Real data copy (backup 20261020-1224): 409 tickets' JSON byte-identical old vs new (signed in and out). E2E in lisbeth's Chrome, 390 + 1280: 17/17; shots in /media/STORAGE/claude-scratch/atlas/J3/shots/.
  658. - Caveat: real Ctrl+V can't be driven (clipboard not fillable over CDP) — a paste event with a File was used. Report reports/020-attachments-e2e.md.
  659. ## 2026-10-20 — worker N2: mission 019, de-flake "B: unliked" — branch w28-deflake, NOT deployed, NOT merged
  660. - Test flake (click landed before the layout settled), not an app bug; tests/browser.mjs calmClick only. browser 351/0 x8, events 52/0. Report reports/019-deflake-unliked.md.
  661. ## 2026-10-20 — worker Q2: mission 021 (md editor look) — branch w29-mdeditor-look, NOT deployed, NOT merged
  662. - Dashed frame on empty editors gone, no dead File button, rows honoured, phone toolbar one row. Gate 377/0, events 52/0, E2E old vs new. Report reports/021-mdeditor-look.md.
  663. ## 2026-10-21 — worker H4: mission 023, theme 76f99f6 + components 3794c59 — NOT deployed, NOT merged (branch w31-theme-sync)
  664. - Inbox count is a badge, marker on the current page (set in the browser from the address); gates 382/0 + 52/0, check-theme 0; E2E in lisbeth Chrome 15/0 (old 1/14). Open: marker appears after hydration (no route in the shell on the server).
  665. - Mission 024: Hybriel f9614007, route-based menu marker (server HTML), see reports/024-revendor-197.md; branch w32-revendor-197.

Branches

Latest commits

  • 090ee809tickets: every component's styles in its own nested Style {} block; styles.hl keeps only the theme inherit, the accent and the site-wide rules (tickets#36)mre
  • d395763ftickets: ident-access gate ports 8769/8768 (8797 is taken on loreana)mre
  • afb9a403tickets: an ident access key (Authorization: Bearer idt_…) works in the API (ident#27 app side): lib/ident-access.hl copied from components, read keys GET only, ident down 503; gate tests/ident-access-tickets.mjsmre
  • 48c1ba79tickets: md-paste-files gate with the file manager casesmre
  • f04afc43tickets: MdEditor from components 59704ce (a file manager copy still attaches, pipe rows, tickets#49)mre
  • 06599fa0tickets: MdEditor from components b0f1ec2 (a clipboard with text always pastes the text, tickets#49); real Ctrl+V gatemre
  • 2e1b116ftickets: re-vendor Hybriel master acaceaf3 (framework ec8d6c1d): plugins/web patch queue while a page is built, anonymous session cookies refresh; gate waits for the comment editors to draw (W174) and clicks the form editor when it stands still; security gate: main's code runs on its own binary, lazy-session cookie checksmre
  • 361bc0fetickets: re-vendor Hybriel 7a684920 (WIP, not deployed); on Error exits 1 at startup; migrate passes its log by reference; gate checks follow lazy sessions and the 413 refusalmre
  • 8a69999cident#28: /login/callback never signs out the session it finds; a valid code puts the user on the same sessionmre
  • 337e9b21tickets#37: a comment's files are open to everyone who can read the commentmre
  • 1800600ftickets: write the standby service out in full so the boot gate can read the main servicemre
  • 8179d287tickets: standby service on its port plus 10 and a deploy that hands over through it without a gapmre
  • 0398145ctickets: the table grid rule is marked functional for check-thememre
  • 40fddc20tickets takes components e54f83a: tables get thin grey lines from the theme, desktop toolbar stays one row with the Table button, F4 check counts 11 buttonsmre
  • c1b77d61tickets#35: text typed before the editor is built is taken in once by the build (the input handler no longer writes it to the field first, which doubled the first letters); the gate failure shows the surfacemre
  • 32bf1873tickets#35: the gate types right after the load with the CPU slowed, no waitingmre
  • 64ea9ca2tickets#35: text typed into the reply editor before the page has finished starting is kept; the gate types right after loadmre
  • ccd3a327tickets: the security gate expects frame-src to be exactly the ident address (the sign-in frame), still no wildcard or selfmre
  • 4348dbabident#31: the selector's sign-in returns to the page the user started on (return attribute = the login callback with next), gate checkmre
  • 66ef3005Merge branch 'iw-ident-widget'mre