# Issue tracker: Forgejo Issues and specs for this repo live as issues on the Forgejo instance at . Use the `fj` CLI for all operations; it infers the repository from the `origin` remote, and `-R jeff/zig-bwgpg` names it explicitly. `fj auth status` should show `git.jcollie.dev` as the current host. The Tangled and Radicle remotes are mirrors. Their issue trackers are not where agent work is tracked. ## Conventions - **Create an issue**: `fj issue create --title "..." --body-file -` with a heredoc for multi-line bodies. Add labels with `--label a,b`. - **Read an issue**: `fj issue view --comments`, or `--json` for structured output. - **List issues**: `fj issue list --state open --json` with `--label`, `--search`, `--assignee` and `--state` (`open`/`closed`/`all`) filters; add `--paginate` for more than 30. - **Make an issue a child of a parent**: Forgejo has no sub-issues. Put `Part of #` at the top of the child body and add `- [ ] #` to a task list in the parent body (`fj issue edit --body-file -`). - **Comment on an issue**: `fj issue comment --body "..."` - **Apply / remove labels**: `fj issue edit --add-label "..."` / `--remove-label "..."` - **Close**: `fj issue comment --body "..."` then `fj issue close `. - **Anything else**: `fj api repos/jeff/zig-bwgpg/...` makes a raw authenticated request against the Forgejo API. ## Pull requests as a triage surface **PRs as a request surface: no.** _(Set to `yes` if this repo treats external PRs as feature requests; `/triage` reads this flag.)_ When set to `yes`, PRs run through the same labels and states as issues, using the `fj pr` equivalents (`fj pr view`, `fj pr list`, `fj pr comment`, `fj pr edit --add-label`/`--remove-label`, `fj pr close`). Forgejo shares one number space across issues and PRs, so a bare `#42` may be either: resolve with `fj pr view 42` and fall back to `fj issue view 42`. ## When a skill says "publish to the issue tracker" Create a Forgejo issue. ## When a skill says "fetch the relevant ticket" Read it as in **Read an issue** above. ## Wayfinding operations Used by `/wayfinder`. The **map** is a single issue with **child** issues as tickets. - **Map**: a single issue labelled `wayfinder:map`, holding the Notes / Decisions-so-far / Fog body. `fj issue create --label wayfinder:map`. - **Child ticket**: an issue linked to the map as in **Make an issue a child of a parent**. Labels: `wayfinder:` (`research`/`prototype`/`grilling`/`task`). Once claimed, the ticket is assigned to the driving dev. - **Blocking**: Forgejo's **native issue dependencies**, which show in the web UI. Add an edge with `fj api -X POST repos/jeff/zig-bwgpg/issues//dependencies -f owner=jeff -f repo=zig-bwgpg -F index=`, where `` is the blocker's issue number. List a ticket's blockers with `fj api repos/jeff/zig-bwgpg/issues//dependencies`. A ticket is unblocked when every blocker is closed. - **Frontier query**: list the map's open children (`fj issue list --state open --json`, scoped to the map's task list), drop any with an open blocker or an assignee; first in map order wins. - **Claim**: `fj issue edit --add-assignee jeff`, the session's first write. - **Resolve**: `fj issue comment --body ""`, then `fj issue close `, then append a context pointer (gist + link) to the map's Decisions-so-far.