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
- 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
- c8452453sync components 9a: shared Icon (icons/icons.hl), md-editor toolbar icons + single focus ring (components f4-icons ba96735)mre
- 52ba11e8sync-components: copy icons/icons.hl + README (F4); testsmre
- 138d198dmd-editor.hl: verbatim copy of components f3-mdvalue (an older text handed back is kept)mre
- 18d2df60md-editor.hl: verbatim copy of components f3-mdvalue (an outside value change is shown by the editor)mre
- f6764bedreports/H1-hydrate.mdmre
- 1bbbf0edtests/browser.mjs: wait for hydration before clicking the login button on / (device B)mre
- 6f503cfctests/cdp.mjs: HL_CPU_THROTTLE=<rate> optional CPU throttling for gate runsmre
- e17e2855re-vendor Hybriel 5406d146 (hl:web batches 9+10: #72 emits while the socket is closed delivered after reconnect, browser boot linear, faster list appends; contains int 6–14 + m406)mre
- a6ddccd2re-vendor Hybriel 6f8a0689 (int 6–11: streaming cursors, #203 index heal + close() fix, fd403 listDir/cursor fds, hl:time browser side, hl:web batches 5+6)mre
- 81e036b7docker-compose: nofile 65536 (Hybriel int 6+ boot opened >1024 files in the tracker)mre
- 5d8d2cf6deploy: backup copies index files first and *.mpack data last (hot-copy skew, hybriel #203)mre
- 58e8c02cmission 024: report, LOG, STATUS, e2e fixmre
- 50778073tests/e2e-route-marker.mjs: first paint marker, comments post/edit redrawmre
- c5203298mission 024: MainMenu marks the page from the route (layouts 0bcc629 main-menu.hl); browser-side marker removed; gate: marker in the server HTMLmre
- b1a4c270re-vendor Hybriel master f9614007: bin/ (git-ignored) and plugins wholemre
- 866397a0mission 023: theme from layouts 76f99f6 (current marker, menu count badge), components from 3794c59 (MdEditor keys); Inbox count as badge, current by address; gates and E2E; reportmre
- 7ed2e5e5deploy.sh: a gate without a 'passed,' line (check-theme) no longer ends the script silently (grep under pipefail), as gitoria/layoutsmre