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
- 0814ce6bTickets conductor: brief 025 tickets#36 style formmre
- 1b6916c4Tickets conductor: Atlas handover tickets#36mre
- aab95226Tickets conductor: worldapi-conductor paths, deploy blocker = read-only diskmre
- 6372b06dTickets conductor: worker port slotmre
- 836af31cTickets conductor: token pathsmre
- b03f11b6Tickets conductor: CONDUCTOR.md (project part), short STATUS.md, old STATUS to archive/2026-10-31mre
- a4123831tickets#42: the /connect and /login/callback error pages are app pages: the function routes redirect to /connect/failed/<code> and /login/failed/<code> (components/problem.hl, sentences in lib/problems.hl), htmlPage and its hand-written stylesheet are gone; gate tests/error-pages.mjsmre
- cefc7b4atickets: a startup error prints its message before exit 1 (hybriel#247)mre
- 99bd6570tickets: lib/migrate.hl writes no table of another topic any more: projects.hl rewriteSlug / addProjectNamed / hasMembers, tickets.hl moveToProject / ticketRecords / ticketRecordsOf, events.hl renameStates / eventRecords / eventRecordsOf; the migration calls them (tickets#47)mre
- b57161e3tickets: the markup names its own rules (Style.pMessage, Style.olTickets, ...) instead of hand-written class strings that copy a stylesheet rule; the shared bodies sit in lib/looks.hl (tickets#38)mre
- f767b24dtickets: 111 needless let became plain declarations (3 in ticket.hl, ticket_list.hl, comments.hl and 108 never-reassigned, not captured loop-body ones); the 212 really reassigned lets stay (tickets#44)mre
- 16c0d3b5tickets: the modal window is phone first: the full-screen sheet is the base rule, the centred window sits in the min-width 60rem block (tickets#39)mre
- 090ee809tickets: every component's styles in its own nested Style {} block; styles.hl keeps only the theme inherit, the accent and the site-wide rules (tickets#36)mre
- d395763ftickets: ident-access gate ports 8769/8768 (8797 is taken on loreana)mre
- afb9a403tickets: an ident access key (Authorization: Bearer idt_…) works in the API (ident#27 app side): lib/ident-access.hl copied from components, read keys GET only, ident down 503; gate tests/ident-access-tickets.mjsmre
- 48c1ba79tickets: md-paste-files gate with the file manager casesmre
- f04afc43tickets: MdEditor from components 59704ce (a file manager copy still attaches, pipe rows, tickets#49)mre
- 06599fa0tickets: MdEditor from components b0f1ec2 (a clipboard with text always pastes the text, tickets#49); real Ctrl+V gatemre
- 2e1b116ftickets: re-vendor Hybriel master acaceaf3 (framework ec8d6c1d): plugins/web patch queue while a page is built, anonymous session cookies refresh; gate waits for the comment editors to draw (W174) and clicks the form editor when it stands still; security gate: main's code runs on its own binary, lazy-session cookie checksmre
- 361bc0fetickets: re-vendor Hybriel 7a684920 (WIP, not deployed); on Error exits 1 at startup; migrate passes its log by reference; gate checks follow lazy sessions and the 413 refusalmre