tickets
All repositories: gitoria
3.3 KB
# Mission 033 — tickets#46 + tickets#45: one login function, thin handlers, project.hl a map (worker L33)Task (Apollo's GO 2026-11-23: "Work your project's open tickets now"; ticket texts by Atlas, audit layouts.worldapi.org#6):- tickets#46 "The login logic exists twice and is not thin: lib/api.hl loginCallback and components/main.hl identLogin"- tickets#45 "project.hl contains working code: a login route lambda, a router reordering loop and a startup migration loop"NOT HIS (conductor's detail):- #46: one function in lib/users.hl does the login steps once (exchange code, ensure user, optional invite join, session user + tag); the face identLogin and the /login/callback route call it and only map the result (emit / redirect + cookie). Also thin the smaller handlers the ticket names (ticket_list on create, project-form on create, connect on confirm, settings settingsInvite) by moving their logic into the topic's lib file (L16/L17). Logins never expire: cookie stays hlsid, no TTL, nobody signed out (his rule).- #45: project.hl keeps routes and wiring only (L14): the /login/callback lambda becomes a named lib function; the migrateAll loop becomes one call of a lib/migrate.hl function; the router reordering (lastPage routes after hl:web's own urls) moves into one named lib function called from project.hl, UNLESS the vendored hl:web offers an option for route order (check plugins/web) — then use it. If it offers none, write GAP-route-order.md (minimal repro) for the conductor.- Login must still work end to end: tests/browser.mjs covers sign-in; run it.Scratch: /media/STORAGE/claude-scratch/tickets/L33/ (worktree, logs, test storage, REPORT.md). Ports 8740–8749 on loreana (check `ss -ltn`). Branch l33-thin.## Read first- /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md (in full)- /media/STORAGE/projects/hybriel/docs/HL-STANDARD.md (L14–L18, F-rules named below), /media/STORAGE/projects/hybriel/docs/HL-PRIMER.md; the vendored framework docs plugins/web/README.md (the app runs Hybriel set day38b, NOT hybriel master: use only what the vendored set has). Copy a working shape from the docs and existing app code. Give a DOCS line in the report (what the docs did not answer).- README.md (Test, deploy, "Same output"), the ticket text (curl -s -A Worker -H "Accept: text/markdown" https://tickets.worldapi.org/tickets.worldapi.org/<n>).## Rules- A refactor must not change behaviour: gates before and after, and the real-data compare (README "Same output", tests/realdata-baseline.mjs + tests/realdata-compare*.py) on a COPY of storage, never the live storage. Any intended visible change: name it in the report.- A framework gap (the vendored set cannot do it the framework way): no workaround, keep the old code, write a minimal repro (GAP-<topic>.md in scratch) and say so (F20).- Git: PR-only. Own branch, commits titled "|||PR …", no attribution lines. Push the branch; do NOT merge. Report the PR number and sha; the conductor reviews and merges. No deploy unless the conductor tells you.- All gates in README "Test" 0 failed (each test server on your own ports). A new check counts only if it fails on the old code.- Cap: $3 hard (Sol). Stop every process you started and list it (name + PID) in the report.- Report: REPORT.md in scratch, plus a short final message: PR/sha, gate numbers, real-data compare result, DOCS line, gaps, open questions.
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