Skip to content
SprecherEast
Issue 102

process: Codify the change workflow in the repo (issue → PR → review → green → merge → deploy)

Back to our plan
Done
ciprocesstoolingpriority: high

Type

process

Problem

On 2026-10-17 code was changed directly on the production server (Payload SMTP email). It went outside GitHub, with no issue, PR, CI run, or review.

Nothing in the repo prevents this, and no tool-agnostic rule says how changes must be made:

  • The rules live in Claude-only files. .claude/rules/git-workflow.md also claims branch protection that isn't actually configured.
  • The main ruleset requires no status checks, and Repository admin can bypass it at any time.
  • Prettier is red on main (MIGRATION.md, docs/memory/vps.md), so "all green" isn't possible today.

Proposed fix

Make the workflow part of the repository itself, so it doesn't depend on any AI tool's memory:

  • AGENTS.md (the open standard most coding agents read) as the single source of rules. CLAUDE.md imports it, and CONTRIBUTING.md summarizes it for humans.
  • Agent skills in the open SKILL.md format: .agents/skills/change-workflow and .agents/skills/pr-review, with pointer copies in .claude/skills/ so Claude Code finds them.
  • Issue forms (bug, feature, task, infra) whose Type/Area/Priority answers become labels (issue-labels.yml). Allowed values live in .github/label-policy.json.
  • A PR template and a PR Policy check that fails without a linked, labeled issue or with empty template sections.
  • issue-fix-summary.yml, which comments on the issue with how it was fixed when the PR merges.
  • CI Type-check & Build always reports, and Prettier is fixed on main.
  • After merge: require Type-check & Build, Prettier, ESLint, Dependency Audit, and PR Policy in the main ruleset.

Acceptance criteria

  • A PR without a linked, labeled issue, or with an empty template section, fails PR Policy.
  • The required checks are enforced on main.
  • Any agent, not just Claude, gets the rules from the repo (AGENTS.md).
  • A merged PR leaves a fix summary on its issue.

Area

ci, tooling

Priority

high

See it on GitHub, opens in a new tab