tickets
All repositories: gitoria
4.1 KB
# 028 — One-time purge of miserit-anthar#94 (identity rule)TASK (his words, through Apollo, unchanged): "my real identity and alter ego are to be strictly split always … be careful not writing anything down".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.## Secrecy (binding)- Never write the ticket's subject, summary, comments, attachment names or any name/URL from it anywhere: not in code, commits,logs, test output, REPORT.md or chat. Identify it only as "miserit-anthar#94" (project slug + number -> project id + number).- Do not print its record. If you must check content, check by ids and counts only. Names in code/commit: "#94, identity rule".## Read first- /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md (all).- /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.- 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.## What to build (NOT HIS: Tickets' and Apollo's reading)- 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.- 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.- 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.## Test (on a copy only)- 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.- 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.- Ports: loreana 8740–8749 only (check `ss -ltn` first; gate env vars in README "Test").## Backups (report only, change nothing)- 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.## Rules- About 60 requests cap. No attribution lines in commits. Stop every process you started and list it (name + PID) in the report.- 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
- bc3bdecerecords: day38b live, #94 purgedmre
- f6c5aa0dMerge main (records)mre
- e23d42acconnect gate: wait for hydration before clicking Disconnectmre
- a5d45d00records: D38 cause, GOmre
- 19eeb938records: D38 gates, two day38b failuresmre
- f8e42a85Re-vendor tickets to Hybriel set day38b (1e554d7)mre
- 51645016Merge purge-94 (#94, identity rule)mre
- 94d6ca2arecords: D38 startedmre
- 9df09aacmission 029: day38b re-vendor + deploymre
- d2834f65records: #94 backup planmre
- 4467d8cbrecords: #94 purge readymre
- aa2d124eREADME: the #94 purge gatemre
- e843ff7cOne-time purge of miserit-anthar#94 (#94, identity rule): idempotent step in lib/migrate.hl, fixture gate tests/purge94.mjsmre
- 506a4efdmission 028: #94, identity rulemre
- 78c7f48eRefine mpackdb holdmre
- 3d7d89c8Record mpackdb hold until day38mre
- f1bf7195#51 done; my subscription idmre
- 9870b945status: #51 proof greenmre
- e92173c6log: #51 live push proofmre
- 72d87041log: Hermes push livemre