tickets
All repositories: gitoria
2.6 KB
# Mission 040 — tickets#43: keyed list updates the day72 way (worker K40)Task (Apollo 2026-11-24, verbatim): "then #43 keyed lists the documented day72 way."tickets#43 (Atlas, audit): "Lists are rebuilt by copying loops on every live event instead of keyed upsert and remove" — components/ticket.hl ticketEvent and commentChanged, components/ticket_list.hl place, components/inbox.hl place (read the ticket: curl -s -A Worker -H 'Accept: text/markdown' https://tickets.worldapi.org/api/projects/tickets.worldapi.org/tickets/43).NOT HIS (conductor's detail):- The documented way (/media/STORAGE/projects/hybriel/COMPONENTS.md around "Rows are keyed by the entry's id" ~l.1680, and SPEC.md upsert/remove): rows keyed by `id` (or `@id`); a changed record in place = `upsert(record)` or a field write; a removed one = `remove(id)`; a new or moved row in newest-first order = ONE assignment of the whole list in order (`list = [row].concat(rest)`, limit by slice), existing keyed rows keep their nodes. No element-by-element copy loops (F18).- Behaviour must stay the same: order (newest changed on top), the list limit, live updates in other tabs (tests/events.mjs, tests/browser.mjs). Add a check that fails on the old code if one is possible (e.g. a row node keeps its identity across a live event: mark the node in the DOM and see it survive).- Real-data compare is not needed (no server output change); say if server output changes.Scratch /media/STORAGE/claude-scratch/tickets/K40/. Ports 8750–8759 (Chrome too). Branch k40-lists. Cap $2.## Rules- Read /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md (in full), /media/STORAGE/projects/hybriel/docs/HL-STANDARD.md (F18–F20, L-rules), and PROCEDURES.md in the repo. Copy a working shape from the docs; give a DOCS line.- Worktree from origin/main in your scratch dir; bin/ is untracked: `cp -a <repo>/bin <worktree>/bin` (day72, sha 69f9421a…).- Never edit LOG.md, STATUS.md or missions/ (conductor records). Report files go into your scratch dir only.- PR-only: own branch, commits "|||PR …", no attribution lines; push the branch (gitoria opens the PR); do NOT merge.- Gates (README "Test"), each with your own ports: browser, events, security, move, dialogs (DIALOG_PORT, its debug port), signin-return (TICKETS_SIGNIN_PORT, TICKETS_SIGNIN_CHROME), error-pages, connect, theme/check-theme.mjs. short-id-switch fails on main too (missing fixture): skip it. A new check counts only if it fails on the old code.- You cannot see your spend: work steadily to the end; the conductor tells you if you near the cap.- Stop every process you started and list it (name + PID). Report in ≤8 lines + REPORT.md in scratch.
Branches
Latest commits
- 5d144817Merge branch 'records-t40' into mainTickets
- 44ee6f06|||PR records: #43 #45 livemre
- b8fdeee9Merge branch 'p39-routes' into mainTickets
- a0187a0a|||PR Remove redundant route-order loopmre
- 369e4b9cMerge branch 'k40-lists' into mainTickets
- 9af8e780|||PR Use keyed list mutations for live ticket updatesmre
- 610d8e8aMerge branch 'records-t39' into mainTickets
- 32bcdf24|||PR records: GO P39 K40mre
- 4123c6d1Merge branch 'records-t38' into mainTickets
- cd3641a1|||PR records: day72 deploy live, tickets closedmre
- 7d44d852Merge branch 'records-t37' into mainTickets
- 926f7061|||PR records: merges, D36 deploymre
- bf58534eMerge branch 'l33-final' into mainTickets
- 759a9ac3|||PR thin login (tickets#46, #45): merge main, route entry cleanupmre
- 239436d8Merge remote-tracking branch 'origin/main' into l33-finalmre
- 5822cb3aMerge branch 'o34-clean' into mainTickets
- 0870653c|||PR offline note from __hlOnline, no polling (tickets#41)mre
- 14cf96b4Merge branch 'records-t36' into mainTickets
- 07749fa1|||PR records: day72 + #40 mergedmre
- ecd7e226|||PR Consolidate login and move handler logic into topic libraries (partial)mre