gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Branchf2-api-bugs26117255|||PR apps API: review comments on files with spaces in their namemref2-api-bugs/missions/W60-cleanup-logic.md

4.5 KB

  1. # W60 — gitoria audit clean-ups, logic part (#28 #29 #30 #32 #33)
  2. TASK: the five audit tickets below; none changes how a page looks or what it does for a user. Read each ticket whole (GET with `Accept: text/markdown`, no token needed for reading; do not write to tickets):
  3. https://tickets.worldapi.org/api/projects/gitoria.worldapi.org/tickets/<n>
  4. Line numbers in the tickets are old (2026-10-26); find the current places with grep.
  5. ## Read first
  6. - /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md (all), RULINGS.md in the same folder.
  7. - /media/STORAGE/projects/hybriel/docs/HL-PRIMER.md, docs/CODE-ORDER.md. /media/STORAGE/projects/hybriel/COMPONENTS.md: members and handlers, forms (`value =` bound members), keyed lists (`@` property, list.upsert, one-argument remove). plugins/web/README.md line ~280 for `__hlOnline`. Copy a working shape from the docs; the app's own components/sshkeys.hl and tokens.hl show the bound-member form. A gap → stop on that item, minimal repro, DOCS line; no workaround, no hand-written JavaScript.
  8. - README.md "Test" and deploy.sh GATES.
  9. ## Work (one commit per ticket, message starts with `gitoria#<n>:`)
  10. - #32: one copy of each helper in lib/util.hl with the limit as an argument; git.hl uses envOr. No behaviour change.
  11. - #30: keyed rows + list.upsert / one-argument remove wherever a handler rebuilds a list by hand (grep `next = [`; includes files the ticket does not name). Review question: rows are identified by id, never position; order on screen stays as it is now (a new row first, if that is today's order; if upsert cannot keep that order, report it instead of working around it).
  12. - #28: bound members instead of `e.target.elements` / `.value = ''` in all components/*.hl (list, tickets, main, pull, orglist, settings and any other grep finds). login.js stays untouched by his explicit rule. A value not cleared on failure today stays uncleared on failure.
  13. - #29: remove netProbe, the animation, netTick, the `offline` polling; use the framework's `__hlOnline` member. Same note text and place. Update or remove the comment explaining the old workaround. Prove it: Chrome offline emulation in the plain tab shows the note, back online hides it.
  14. - #33: lib/users.hl holds the one login function (session, tag, retire of the old session); lib/tickets.hl holds connect state; lib/api.hl and the main.hl face only check input, call, answer.
  15. HARD LIMITS: logins never expire; never rename cookies, add prefixes or TTLs, or sign anyone out. The one intended change: the face path now also retires an old session like loginCallback does. Check it does not sign out another open tab of the same user in a way that it does not today; if it would, keep the face's behaviour, and report this as a decision for the conductor.
  16. ## Proof
  17. - Each changed behaviour has a gate that fails on old code (extend tests/, name the negative control). Tests act like a human with real clicks and keys.
  18. - All gates, LC_ALL=C: `node theme/check-theme.mjs .`, `node tests/browser.mjs`, every entry in deploy.sh GATES: 0 failed. A flake: rerun once, report it.
  19. - Whole path in his Chrome on lisbeth :9223 (`ssh -f -N -L 9223:127.0.0.1:9223 lisbeth`, stop that tunnel after): one own plain tab (Target.createTarget without browserContextId), closed in finally, browser.disconnect(); never clear cookies/cache; other tabs untouched; test app on your ports on test storage reached through the tunnel as the rules describe. Forms: create repo, add/remove key + token, member add, ticket form: field cleared, row appears once, second visit right. Sizes 390 and 1280.
  20. - Screenshots of those pages before/after at 390 and 1280: no visible change.
  21. ## Environment
  22. - `git worktree add /media/STORAGE/claude-scratch/gitoria/W60/wt -b w60-cleanup main` from the app root. bin/ and plugins .so are not in git: copy as README "Hybriel (vendored)" says, or symlink bin/ from the app root. All files under /media/STORAGE/claude-scratch/gitoria/W60/. Never deploy, push, merge, or touch byrodin, .env, live data.
  23. - Ports 8720-8739 only; check `ss -ltn` first. Stop every process you started and list them (name + PID).
  24. - No attribution lines in commits.
  25. - Budget: cap ~60 requests. At the cap commit what is proven, report what is left, and stop. If short, finish in this order: #32, #30, #28, #29, #33.
  26. ## Report
  27. reports/W60-REPORT.md in the worktree (committed): commits, per ticket what changed, gate numbers + negative controls, Chrome evidence, gaps, DOCS line, processes, the final `curl -s 127.0.0.1:9223/json/list` page list. Short final message. Then STOP.

Branches

Latest commits

  • 26117255|||PR apps API: review comments on files with spaces in their namemre
  • b8796cecMerge branch 'f1-broken-json' into mainGitoria
  • 2f2959c5|||PR apps API: broken JSON body gives 400 invalid_json, not 500mre
  • f7c6ca07Merge branch 'ident-chooser-selector' into mainGitoria
  • 691abb8e|||PR tests: find ident identity choice without the removed .choose classmre
  • 16a3530fMerge branch 'heap-revert' into mainGitoria
  • 220a80e0|||PR Remove temporary /__heap route and heap helper; logmre
  • 13f0c342Merge branch 'hl25-records' into mainGitoria
  • a002ecb7|||PR records: HL25 report, heap helper, logmre
  • 2492a55cTemporary keyed /__heap route for the live memory snapshotmre
  • fefaedd2log: tracker PR-only, HL25 startedmre
  • 21aa57calog: parkmre
  • e9f950a8reports: G25c soakmre
  • a7783686log: deploy 9f41ffcmre
  • 9f41ffc1log: W30b mergedmre
  • bef635c1Merge branch 'w30b'mre
  • 15b996a5Org list: keyed rows by @id, newest first, concat instead of hand loopmre
  • c4f6d9e3reports: G25c growth huntmre
  • b88e39f1log: privacy cleanup donemre
  • bfd7826ddocs: neutral example organisation namemre