gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmain5d144817Merge branch 'records-t40' into mainTicketsmain/missions/028-purge-94.md

4.1 KB

  1. # 028 — One-time purge of miserit-anthar#94 (identity rule)
  2. TASK (his words, through Apollo, unchanged): "my real identity and alter ego are to be strictly split always … be careful not writing anything down".
  3. Apollo's order (2026-11-02): one-time idempotent purge of miserit-anthar#94 in lib/migrate.hl; test on a copy; ships with the day38 deploy.
  4. ## Secrecy (binding)
  5. - Never write the ticket's subject, summary, comments, attachment names or any name/URL from it anywhere: not in code, commits,
  6. logs, test output, REPORT.md or chat. Identify it only as "miserit-anthar#94" (project slug + number -> project id + number).
  7. - Do not print its record. If you must check content, check by ids and counts only. Names in code/commit: "#94, identity rule".
  8. ## Read first
  9. - /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md (all).
  10. - /media/STORAGE/projects/hybriel/docs/HL-PRIMER.md, /media/STORAGE/projects/hybriel/docs/CODE-ORDER.md, the mpackdb plugin README. Copy a working shape from the docs and from lib/migrate.hl; DOCS line in the report.
  11. - README sections "Projects, members, roles" (Migration), "Markdown, editing", "Comments", attachments, "Event stream for programs", the subscriptions/delta section, "Test"; lib/migrate.hl, lib/tickets.hl, lib/stream.hl, lib/comments.hl, lib/attachments.hl, lib/subscriptions*.hl.
  12. ## What to build (NOT HIS: Tickets' and Apollo's reading)
  13. - In lib/migrate.hl (runs at every start), a one-time idempotent step that removes EVERYTHING of that ticket: the ticket record, its history events, its stream rows (/api/events replay), comments, comment-changes, attachments (records AND files on disk), relations/links pointing to it from other tickets (remove only the link entries, keep the other tickets), and any delta/subscription data that holds its content. Find every table that references a ticket id: list them in the report.
  14. - Numbering: the project's next number must not reuse 94; other tickets unchanged. Second start = no-op (no rewrite of any file). Compact the tables it changed, as the existing migration does.
  15. - Work in a git worktree on branch `purge-94` under /media/STORAGE/claude-scratch/tickets/P94/. Commit there; do NOT merge into main, do NOT push, do NOT deploy. Tickets ships it with the day38 deploy.
  16. ## Test (on a copy only)
  17. - HOLD: no tool may run against the live store (mpackdb bug until day38). Test data: either a fixture you build with a fake project "miserit-anthar" (several tickets, #94 with comments, an edit, a comment edit+delete, an attachment, a relation to/from another ticket, a subscription) or a read-only file copy of byrodin's storage: `rsync -a byrodin:/CONTAINERS/projects/tickets.worldapi.org/storage/ <scratch>/live-copy/` (plain file copy, never open the original with any program). Prefer the fixture; if you also use the copy, never print #94's content.
  18. - Show: before/after counts per table for #94 (> 0 → 0), the ticket page / API / Markdown / /api/events answer 404 or no trace of it (grep the copy's files for #94's ticket id → 0 hits), other tickets byte-identical in their API JSON before vs after, new ticket gets 95+ (or next after max), second start rewrites no file (mtime/sha check). Gates on the branch: node tests/browser.mjs, tests/events.mjs, tests/security.mjs, node theme/check-theme.mjs . — 0 failed. A new check counts only if it fails on the old code.
  19. - Ports: loreana 8740–8749 only (check `ss -ltn` first; gate env vars in README "Test").
  20. ## Backups (report only, change nothing)
  21. - List which deploy backup files contain #94: byrodin deploy-backups and loreana /media/STORAGE/.../deploy-backups and /media/SLOW1TB2/deploy-backups/tickets.worldapi.org (find the dirs; read-only). Decide by #94's creation date vs backup date and/or grepping for #94's internal ticket id (never its text). Do not delete or modify anything there.
  22. ## Rules
  23. - About 60 requests cap. No attribution lines in commits. Stop every process you started and list it (name + PID) in the report.
  24. - Report: /media/STORAGE/claude-scratch/tickets/P94/REPORT.md — diff summary, commit hash on purge-94, tables touched, test evidence, gate results, backup list, DOCS line. Then a short final message.

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