gitoria
All repositories: gitoria
2.0 KB
# W30b — org list without hand loop (follow-up of gitoria#30)Task line (ticket #30 title, Atlas audit 2026-10-26): "Lists are rebuilt by hand in handlers instead of keyed records with upsert and remove".#30 is done and live; its worker left one hand loop: components/list.hl line ~138 `for (x of orgs) { if (x.slug != r.org.slug) { next.push(x) } }` (createOrgIt's orgs list; reports/W30-REPORT.md says orgs have no id). Line ~156 `repos = [row, for (x of repos) { x }]` — check whether that is the documented whole-list form or can be `[row].concat(repos)` (Arachne 2026-11-08: shorter equivalent; check that rows keep their DOM nodes if switched).Read first, fully: /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md; /media/STORAGE/projects/hybriel/docs/HL-PRIMER.md; /media/STORAGE/projects/hybriel/docs/CODE-ORDER.md; COMPONENTS.md section "List rendering" (rowKey paragraph); SPEC.md "Looking records up by the `@` property: `upsert` and `remove`". reports/W30-REPORT.md shows the shape used for the other lists. Copy a working shape from the docs; a gap → DOCS line in the report.## Work (git worktree `../gitoria-W30b`, branch w30b from main; copy main's bin/ (day52, not in git); never edit LOG.md/STATUS.md; ports 8720-8739 only, `ss -ltn` first, port 8700 taken: GITORIA_GATE_* variables as in reports/V52-REPORT.md)1. Give org rows their @ key (the org's slug or id: what identifies an org server-side; check the server data). Replace the hand loop with upsert / one-arg remove / whole-list write newest first, as the docs say.2. Extend tests/browser.mjs: creating an org puts it where the list order says, existing org row nodes are kept, a second visit shows the same order.3. Gates (LC_ALL=C): `node theme/check-theme.mjs .`, `node tests/browser.mjs`, every gate in deploy.sh's GATES list, all 0 failed.4. Commit on branch w30b (subject without "#N"). Do NOT merge, push or deploy.## Reportreports/W30b-REPORT.md (≤15 lines): old → new shape, @ key, checks added, gate numbers, DOCS lines. Then stop. Budget ~40 requests.
Branches
- f1-broken-json
- f2-api-bugs
- gp-gate-ports
- heap-revert
- hl25-records
- ident-chooser-selector
- mainmain branch
- p51-public-pr-reads
- records-1112
- s25-no-session-on-login-error
- v59
- w52-person-approval
- w52b-approval-followup
- w52c-header-phone
- w53-pulls-speed-pr
- w54-repo-rename-pr
- w55-rename-org
- w56-owner-members
- w62-pr-close
- w63-force-push
- w64-org-slash
Latest commits
- eefa2dbcRepo setting: refuse direct pushes to the main branch (pre-receive over HTTPS and ssh)mre
- 25309981log: STOP and paused workers 2026-11-08mre
- 5286803alog: worker briefs and reports of 2026-11-08mre
- 85c86605log: 2026-11-08 Arachne on list shapemre
- cb634512log: 2026-11-08 keyed lists livemre
- 07c98d4aLists: keyed rows with @id, remove(id) and one whole-list assignment instead of hand-rebuilt loopsmre
- 0db0d81elog: 2026-11-08 day52 live, W30 startedmre
- b05f6d92tests/status: the gate's 3 s app token expired during the restart; it lives 60 s like status-keyedmre
- 1e8f4f0avendor: Hybriel set-day52 (fault-path leak fix #335, keyed rows #331)mre
- f5f0fb7blog: 2026-11-08 day50/#29 live, H25 correction, V52 startedmre
- dc77fb95main: offline note from __hlOnline, tick removed (#29)mre
- 37a86d93tests/reviews: seeded fake hook's DNS failures are not server errors (flaky gate)mre
- 07ab845bvendor: Hybriel set-day50 (run() leak fix #335)mre
- 71b2fa4blog: hybriel#335mre
- bd94cc7elog: #25 cause found (run() leak)mre
- 565cb508log: H25 round 1mre
- 90a0af84log: H25 startedmre
- 87bd53b8mission H25mre
- 71a746cflog: day48 livemre
- bf568e14log: V48 mergedmre