Skip to content

chore: key branches, PRs, and decision records to the issue number #366

Open

Description

@eFAILution

Several sessions work in this repo at once, and they keep colliding: two branches grab similar names, and every decision PR appends to the same spot in .ai/decisions.yaml (and touches .ai/index.yaml), so they conflict at merge.

Let's key work to the issue number like argus does (huntridge-labs/argus#483):

  • Every change starts from an issue, one PR per issue. Big work gets sub-issues, each with its own PR.
  • Branches are <type>/<issue>-<short-description>, e.g. feat/42-component-inputs.
  • Check nobody has the issue (linked PR or */<issue>-* branch), then open a draft PR right away.
  • Closes #<issue> or Refs #<issue> on the first line of the PR.
  • New decisions go in their own file, .ai/decisions/ADR-<issue>.yaml. .ai/decisions.yaml stays but takes no new entries. Nobody hand-edits an index.
  • A CI check fails a PR whose new decision doesn't match its branch's issue, or that adds to the old file, and fails duplicate IDs. A branch with no issue number only gets a warning, so Dependabot isn't blocked.
  • AGENTS.md gets the rules, and a CLAUDE.md that's just @AGENTS.md.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions