# Issue tracker: todo.txt

Issues for this repo live in `todo.txt` at the repo root, one task per line in
[todo.txt format](https://github.com/todotxt/todo.txt). Completed tasks move to
`done.txt`. Anything longer than a line lives under `.scratch/`. Several
sub-projects share the file; the `+project` tag says which one a line belongs
to.

## Line format

    (B) 2026-09-19 Reject placements outside the zone +api +test status:needs-triage id:12 spec:.scratch/rebuild/spec.md

- optional priority `(A)`–`(Z)`, then the creation date, then the text
- `+project`: one or more component tags (list below)
- `@context`: optional, free (`@container`, `@browser`, `@owner-question`)
- `id:NN`: required, stable. Allocate max+1 across `todo.txt` **and** `done.txt`.
  Skills refer to tickets by id, never by line number.
- `status:<role>`: triage state (see `triage-labels.md`); absent = untriaged
- `spec:<path>` / `note:<path>`: the body, under `.scratch/<slug>/`
- completed: `x 2026-09-20 2026-09-19 …` (done date, then creation date),
  moved to `done.txt`. `wontfix` lines are completed the same way, keeping
  `status:wontfix`.

Never renumber, reorder or rewrite existing lines except to change their tags.

## Projects

`+api` (signet-api) · `+worker` (signetd) · `+render` (render, pdfw, ttf) ·
`+client` (www) · `+pim` · `+dam` · `+schema` (sql) · `+ops` (etc/,
Containerfile, install) · `+docs` · `+test`

## Long-form content

`.scratch/<slug>/spec.md` for specs, `notes.md` for comments and research,
`map.md` for wayfinder maps. The todo line is the index; the file is the body.
`todo.txt`, `done.txt` and `.scratch/` are committed with the code.

## When a skill says "publish to the issue tracker"

Append one line per ticket to `todo.txt`: next id, today's date, projects, the
status the skill asks for (default `status:needs-triage`), and `spec:` when a
body was written.

## When a skill says "fetch the relevant ticket"

`grep -n 'id:NN\b' todo.txt done.txt`, then read the `spec:`/`note:` files
the line points at.

## Comments

Append under `## Comments` in the ticket's `notes.md`, dated; add `note:` to
the line if it had none.

## Wayfinding operations

Used by `/wayfinder`. The **map** is `.scratch/<effort>/map.md` (Notes /
Decisions-so-far / Fog) plus one todo line `type:map`.

- **Child ticket**: a todo line with `map:<map id>` and
  `type:<research|prototype|grilling|task>`; the question is the line text or
  its `note:` file.
- **Blocking**: `blockedby:NN,NN`. Unblocked when every listed id is in
  `done.txt`.
- **Frontier**: open lines with `map:<id>`, no unresolved `blockedby`, no
  `owner:`; lowest id wins.
- **Claim**: add `owner:<user>` and save before any work.
- **Resolve**: answer under `## Answer` in the child's `notes.md`, complete the
  line into `done.txt`, then append a context pointer (gist + path) to the
  map's Decisions-so-far.
