Issue 102
process: Codify the change workflow in the repo (issue → PR → review → green → merge → deploy)
Back to our planDone
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.mdalso claims branch protection that isn't actually configured. - The
mainruleset 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.mdimports it, andCONTRIBUTING.mdsummarizes it for humans.- Agent skills in the open SKILL.md format:
.agents/skills/change-workflowand.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 Policycheck 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 & Buildalways reports, and Prettier is fixed onmain. - After merge: require
Type-check & Build,Prettier,ESLint,Dependency Audit, andPR Policyin themainruleset.
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