Issue tracker: plan

Issues become their own type with a small tracker around them: /issues pages in the notes chrome, a sidebar grouped by area, four states, a priority, and commits that close them.

Issues are filed fast now, which is good, but as notes they crowd the homepage feed, the notes homes and the project sidebars. This plan makes them their own type with a small tracker around them: one I'd actually use, without turning into Jira.

What an issue is

A page of type issue, at /issues/<slug>. Its body is written the same way as now (what happens, where, why it matters, possible fix). On top of a page, an issue has:

FieldValuesFor
Stateopen, doing, done, closedwhere it is in its life
Priorityhigh, normal, lowsome issues matter, some are fluff
Areaa short name within its project, e.g. MCP, Proposals, Assetswhere it sits in the sidebar
  • Open: filed, not started. Doing: being worked on. Done: fixed, ideally by a commit. Closed: won't fix, a duplicate, or no longer true, with a one-line reason.
  • Area is one per issue, unlike tags (an issue can have many tags but needs one place in the sidebar). It's free text per project; the sidebar's sections are whatever areas a project's issues use.
  • Priority defaults to normal. It orders issues within an area: high first, low (the fluff) last, newest first within each.

Every change of state is recorded with its date, so an issue's page ends with its history: Filed Dec 5 · Doing Dec 8 · Done Dec 9 in a1b2c3d. No comments: discussion goes in the body.

Where issues show

  • /issues: every project with open issues, in the sidebar like the notes index lists projects. The page lists open issues across projects.
  • /projects/<slug>/issues: one project's issues, as its notes home is for notes.
  • /issues/<slug>: one issue, in the same documentation chrome as a note: breadcrumbs, the article, On this page, and prev/next through the sidebar's order.

The sidebar for an issue:

  • the project picker at the top, as in notes; All issues goes to /issues
  • an Open · All switch, Open by default, so the sidebar shows what's left to do
  • sections by area, each with its count, issues ordered by priority. Folding sections comes later, when a project has many areas.

Issues leave the places they crowd now: notes sidebars, notes homes, the homepage feed and Related. The homepage keeps one line on a day issues were filed (3 issues filed), linking to /issues.

Commits close issues

A commit that fixes an issue says so in a trailer:

text
Fixes: issues/proposals-cant-be-checked-first

On a push to main, a GitHub Action (like the routes sync, with its own token) reads the trailers of the pushed commits and tells goatboat: the issue goes to done, recording the commit's hash and link. Refs: issues/<slug> adds a commit to an issue's history without closing it.

This writes directly, like the routes sync, rather than as a proposal: the push to main is already Jay's approval. The agent adds the trailer when a commit fixes a filed issue.

For agents

  • propose_issue files new issues as type issue at /issues/<slug>, with an area and a priority.
  • list_issues: by project, state, area or priority (what's open in goatboat's MCP?).
  • update_issue: move an issue to doing, or closed with a reason; change its priority or area. Proposed, like any change. Done normally comes from a commit.
  • The guide topic on issues is rewritten to match.

Not doing

Assignees, due dates, estimates, boards, sprints, comments, notifications. One person works on these; the open list in priority order is the plan. Any of them can be added if it turns out to matter.

In goatboat

  • issue joins the content types.
  • An issues table, one row per issue page: its state, priority and area.
  • An issue_events table: the issue, what happened (filed, a state change, a commit), the new state or the commit's hash and link, a reason for closed, and when. The done and closed dates come from here, not stored twice.
  • API: a project's issues (or every project's) with state, priority and area, for the sidebar and lists; a sync route for the commit action.

Order

Each step works on its own:

  1. The /issues page in jaygriff-v4, pushed, so goatboat has the parent row the issues move under (a code page only exists in goatboat once it's pushed: the chicken-and-egg issue).
  2. Schema: the type and the two tables. The existing issues are converted (state from the resolved tag: done if tagged, else open; area set by hand once) and moved to /issues/<slug>, with redirects from their old paths.
  3. MCP: propose_issue updated, list_issues and update_issue added.
  4. Site: the issue sidebar and pages in the docs chrome, /projects/<slug>/issues, and issues left out of notes, the feed and Related.
  5. Commits: the trailer action, and the history on an issue's page.

To decide

  • The areas for the existing issues (about a dozen, mostly goatboat). I can propose a first set.
  • Whether doing shows anywhere besides the issue itself, e.g. a short Doing list at the top of /issues.