tickets
All repositories: gitoria
3.4 KB
# Mission 007 (old 014) — tickets: edit tickets (#8), Markdown (#6), robust gate (#11)One-shot worker. The architect verifies your report and deploys; you do NOT deploy or touch Byrodin.## Read first1. Tickets (send a `user-agent` header; Cloudflare blocks default script agents):`GET https://tickets.worldapi.org/api/projects/tickets.worldapi.org/tickets/8`, `/6`, `/11`.2. `loreana:/media/STORAGE/projects/tickets.worldapi.org/` `CONCEPT.md` (source of truth), `README.md`, `STATUS.md`.3. `/CONTAINERS/projects/antcolony/README.md` — conventions (JSON writes, Markdown text fields, Markdown readview), lessons.## Hybriel (standard block)Read `/CONTAINERS/projects/antcolony/docs/hybriel-for-app-workers.md` first (note hybriel#32: webex re-createselements and re-runs scripts; #31 forged face sessions). Report new Hybriel findings under "Hybriel issues";do not edit that guide.## Scope1. **#8 (creator): "Make tickets editable by its author."** The author of a ticket (the logged-in user whocreated it) can edit its subject and summary — web UI and API (token). The history stays append-only: anedit is a new event that keeps the previous values. Tickets created before the login existed have only anauthor string (no user): decide the smallest consistent rule (e.g. nobody edits them, or only the creator)and list it. Anyone else → refused (403 in the API).2. **#6: Markdown.**- The UI renders Markdown in text fields (summary, comments, state notes): headings, lists, code (inline +blocks), links, emphasis — **safely**: no raw HTML, no scripts, `javascript:` links refused.- Read view for LLMs: `Accept: text/markdown` on the ticket GET endpoints returns a compact Markdown document(single ticket with its full history; list endpoints one line per ticket). JSON responses unchanged.3. **#11: gate robust under load.** The "ident down" phase must not race page loads (console checkERR_CONNECTION_REFUSED on selector.js), and waits must not time out when other browsers run on the machine.Prove it: run the gate 3 times in a row green while a second headless Chrome load runs (e.g. a loop loadingpages), and report the runs.## Rules- Develop in `loreana:/media/STORAGE/projects/tickets.worldapi.org` via `.scratch/dev-m014`, copy back whengreen. Own ident instance only (mail sink), never the live ident, never real mail.- Another worker is changing ident right now: read ident's code only, don't touch `/media/STORAGE/projects/ident.worldapi.org`beyond starting your own test instance from it as the gate already does.- No git. No `.env` access. Don't touch Byrodin. Don't POST to the live tickets server. Only kill your own PIDs.Clean up headless Chromes (`--disable-gpu`). Only open copies of mpackdb stores. Scratch only in the app's`.scratch/` (NOT the architect's scratchpad on Byrodin).- If any action is refused by the permission system, don't retry or work around it; report it.- A test is the whole process: real browsers + API. Live data (existing tickets/events) must survive: nomigration step if avoidable. Screenshots at 390px and 1280px (edit form, a Markdown-rich ticket), look at them.- Update `README.md` / `STATUS.md`. Do NOT edit `CONCEPT.md`.## Report (final answer, this structure)```## Done## Verified (each: command run + observed output)## Not verified / open## Hybriel issues (repro, observed, expected)## Questions for the creator## Running (URL, PID, log path)```
Branches
Latest commits
- 31cabfccmission 021: E2E script, report, LOG, STATUSmre
- 6aea8683editor look: .empty rule only for p.empty, files off where tickets has no upload, state note one line, events test scrolls the editor into view; synced md-editor (components d702d76+6f27ad3); gate 377/0, events 52/0mre
- dce6ffa6Merge branch 'w28-deflake'mre
- 536092a1tickets (mission 019): de-flake the m016 comment clicks (B: unliked) — calmClick waits until the button stops moving; test only, no app changemre
- 9c5fd42amission 020: attachments E2E proof (lisbeth Chrome, real-data copy), reportmre
- 1206404fREADME attachments, report 018, LOG/STATUSmre
- 3d9e7f3ctests: m017 gate fixes (list count, waits before delete clicks); gate 373/0mre
- dd41d5bcre-sync components 15be2ac; mission 018mre
- 420ad1bbtickets (mission 017 WIP, tickets#27): comment attachments — lib/attachments.hl (storage/attachments, limits, type by content, members-only GET /api/attachments/:id, delete drops, edit keeps), multipart POST …/comments (lib/multipart.hl), Respond block in FilesUpload (blocks verbatim from components w27c 1f8d79d), gate m017 checks written (not yet run); report, LOG, STATUSmre
- a7a1380dmission brief 017mre
- f83d9c0dtickets (mission 016): report reports/016-comments-block.md, LOG, STATUS, README gate countmre
- eef80f55tickets (mission 016): comments through the shared Comments block (layouts#2) — edit (author, earlier versions kept), delete (author, asks; leaves one line in the history), like (members, toggle) on the server (lib/comments.hl, append-only tables), faces + API …/comments/:comment/{edit,delete,like}, push commentChanged; every run of comments is a block in place in the history; Markdown fields on the Hybriel MdEditor (shared/md-editor.js retired: it took over the block's <md-editor>); blocks copied verbatim from components.hybriel 9db927d (tools/sync-components.sh); gates browser 351/0 (old 326/0), events 52/0 (old 52/0)mre
- eb7aeeb9mission brief 016mre
- e4c34759paths: projects moved into /media/STORAGE/projects/WorldAPI/mre
- 26efb23freport w6-events (events test)mre
- c6bfab04mission 015: re-vendor Hybriel 0f396652 (static build), reportmre
- b7ec5981mission brief 015mre
- 5dc68731docker-compose: init: true (hybriel#156, PID 1 ignored SIGTERM, every restart waited 10 s)mre
- 8a460b16mission 014: Apollo's 'stream opened right after the start gets no live events' is not a tickets bug — events.mjs checks early streamsmre
- 6309ca81mission brief 014mre