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
- 81f10e4eident selector back in the header (creator 2026-10-24): selector top right signed in and out on phone and desktop, no second Log in button, new gate checks (WIP: gates not re-run after the last edits)mre
- f51029abMerge branch 'sy-sync'mre
- eae6e8c7sync components.hybriel 4922f9c: comments like / Edit / Delete / 'edited' are 44 px targets; gate: 'edited' hit-area padding, thread targets check (SY)mre
- 0de4750btheme: sync from layouts 4994037 (list rows stack, td word-keep, heading code, edited tap target)mre
- 4eeb7bfeST2 report wordingmre
- 2558f56cst2-sec: keep the hlsid session cookie name (no one is signed out), Secure flag only; gate: a cookie issued by main stays signed in; ident stub serves selector.js; security.mjs in deploy GATESmre
- ea2e440esecurity audit (ST): JSON body cap, relation rights, login session rotation, __Host- Secure cookie, API security headers, CSP+referrer meta, /connect cap, one-line subjects, tests/security.mjs, reportmre
- 7c8c2282sessions last 99 years (creator 2026-10-23: logins never expire; only sign out ends them)mre
- b6277497report MT-mobile, LOGmre
- 6709398blist paging: the newest rows come first (the sorted array was not used); filter rows hide their scrollbar; gate checks the ordermre
- 31736a80gate: member-name check fails on the old row layout toomre
- e03ae537gate: the phone checks run on without the Show more button (so old code reports every failed check)mre
- adf7f132gate: 390 px checks for the mobile audit fixes (row number, filters, field widths, Edit, member names, relation taps, paging)mre
- 28e9c938ticket list: draw the newest 50 rows and a Show more button (500 rows were a 2-4 s first paint, 740 KB, a 90 000 px phone page)mre
- ccebb0c7mobile: ticket number stays on one line, filter chips one scrolling row, fields full width under their caption, Edit/action buttons, member names whole, 44 px relation linksmre
- f2dc7741gate: the phone toolbar is two even rows (E2)mre
- 20f7c33async components.hybriel 214c318: MdEditor on a phone, two even toolbar rows of 44 px targets, label 15 px, table head 16 px (E2)mre
- d74a5482sync components.hybriel 134b4e3: MdEditor builds an editor put into the page at once, redraws a surface put in anew (F5, hybriel#211)mre
- 9d02c540sync components.hybriel 6b0936a: the 'edited' foldable drops the theme's border and marginmre
- 22751914sync components.hybriel 8d79ff7: bubble hugs its content, quiet 'edited' label; gate checksmre