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:
- 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:
Fixes: issues/proposals-cant-be-checked-firstOn 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_issuefiles new issues as typeissueat/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
guidetopic 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
issuejoins the content types.- An
issuestable, one row per issue page: its state, priority and area. - An
issue_eventstable: 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:
- The
/issuespage 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). - Schema: the type and the two tables. The existing issues are converted (state from the
resolvedtag: done if tagged, else open; area set by hand once) and moved to/issues/<slug>, with redirects from their old paths. - MCP:
propose_issueupdated,list_issuesandupdate_issueadded. - Site: the issue sidebar and pages in the docs chrome,
/projects/<slug>/issues, and issues left out of notes, the feed and Related. - 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.
Related
- Changing one passage of a page means resending its whole bodyAn update proposal replaces a page's entire body, so an agent fixing one paragraph has to send every other paragraph back unchanged.
- Proposals can't build on their own changesA proposal can't create a page and its children, a project and its pages, or a section and the notes that go in it: everything it refers to must exist first.
- Phase 2 plan: assets as a libraryPhase 2 makes assets a searchable library of files in R2, plus a record of where each file is used, so any image or video can fill any role and an agent can find files by what they show. What changes in goatboat and the site, with before and after examples.
- Projects, media and schema: the planTwo phases to approve. Phase 1: subprojects and stage for projects, plus the schema audit's content cleanup. Phase 2: media as files and their uses, so any image or video can fill any role. What changes in the database, goatboat and the site, and what Jay needs to decide.