docs: define main/next branch model, sequencing, responsibilities, and merge process (#1214) #1215

Open
mos-dt-0 wants to merge 1 commits from mos-dt-0/stack:docs/1214-branch-process into next
Collaborator

Closes #1214. Commissioned by Jason (2026-08-13): write the main/next branch-handling process into AGENTS.md so every agent knows the route.

Base: next @ 216cd722. Docs-only — one new section, "Branch Model and Merge Process — main and next (CANONICAL)", inserted after Development Workflow.

What it codifies

  • next-first, no exceptions: every contribution (feature, fix, docs, test, policy) targets next via branch + PR; agents never commit to or merge into main.
  • main = promotion-only: receives Jason-owned reconciliation merges from next; expedited promotion is the hotfix route, never a direct commit.
  • Eight-step contribution sequence: issue → branch from next head (base SHA recorded) → evidence + hooks respected → PR to next with documented pre-existing failures → terminal-green CI on the exact head (fork pipelines need maintainer approval; approving CI ≠ approving the PR) → independent review with exact-head verification and no self-merge → pinned-head merge into next → done (promotion is not part of the contributor lifecycle).
  • Responsibilities: contributor / reviewer-merge-gate / orchestrator-adjudicator / Jason (promotions, authority grants, collaborators, tokens — agents cannot grant these to themselves or each other).
  • Divergence rule with the live lesson: #1152 landed on main without reaching next; the documented remedy is provenance-preserving transplant onto a next-based branch through normal gates, never hand-patching main.

Verification

Docs-only change; prettier --check AGENTS.md passes on the head. No code paths touched.

Closes #1214. Commissioned by Jason (2026-08-13): write the `main`/`next` branch-handling process into AGENTS.md so every agent knows the route. Base: `next` @ 216cd722. Docs-only — one new section, "Branch Model and Merge Process — `main` and `next` (CANONICAL)", inserted after Development Workflow. ## What it codifies - **next-first, no exceptions**: every contribution (feature, fix, docs, test, policy) targets `next` via branch + PR; agents never commit to or merge into `main`. - **`main` = promotion-only**: receives Jason-owned reconciliation merges from `next`; expedited promotion is the hotfix route, never a direct commit. - **Eight-step contribution sequence**: issue → branch from next head (base SHA recorded) → evidence + hooks respected → PR to next with documented pre-existing failures → terminal-green CI on the exact head (fork pipelines need maintainer approval; approving CI ≠ approving the PR) → independent review with exact-head verification and no self-merge → pinned-head merge into next → done (promotion is not part of the contributor lifecycle). - **Responsibilities**: contributor / reviewer-merge-gate / orchestrator-adjudicator / Jason (promotions, authority grants, collaborators, tokens — agents cannot grant these to themselves or each other). - **Divergence rule with the live lesson**: #1152 landed on `main` without reaching `next`; the documented remedy is provenance-preserving transplant onto a next-based branch through normal gates, never hand-patching `main`. ## Verification Docs-only change; `prettier --check AGENTS.md` passes on the head. No code paths touched.
mos-dt-0 added 1 commit 2026-08-13 17:20:25 +00:00
Commissioned by Jason 2026-08-13: agents need the branch-handling
process written down — next-first for every contribution, Jason-only
promotion merges to main, the gate sequence (issue, next-head base,
terminal-green CI on the exact head, independent review, no self-merge,
pinned-head merge), role responsibilities, and the hotfix/divergence
rules motivated by the #1152 main-only landing.
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
You are not authorized to merge this pull request.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u http://git.mosaicstack.dev/mos-dt-0/stack docs/1214-branch-process:mos-dt-0-docs/1214-branch-process
git checkout mos-dt-0-docs/1214-branch-process
Sign in to join this conversation.