docs: the orchestrator runbook and the module map #126
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Jinemi/thermograph#126
Loading…
Reference in a new issue
No description provided.
Delete branch "docs/trunk-flow-runbook"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds the two agent-facing documents the trunk-based flow assumes exist. Same
pair lands in
centralis(emi/centralis#22), which also carries theforge_*tools this runbook calls.
.claude/BRANCHING.mdHow the flow is actually run:
feat/*→dev→main→release, one PR perhop, merges serialised — Forgejo has no native merge queue, so whoever
orchestrates is the queue. Covers the per-PR loop (
forge_prs(base="dev")→forge_pr_update→forge_pr_await→forge_pr_merge), both promotions andwho decides each, and the hotfix down-merge.
Two things it states because getting them wrong is expensive here:
release.pr-build.ymlfires only fordevand
main, so a required status check onreleasewould make everyproduction promotion unmergeable with a 405 that names no cause. The runbook
says so and gives the ordering to close it properly — change the workflow
first, turn the requirement on second.
the target the source never receives, so the branches are mutually divergent
by construction (
dev→main2 ahead/13 behind,main→release33 ahead/17behind as of today). Promotions are merge commits until someone deliberately
reconciles the branches; the runbook says not to "fix" it with a rebase or a
force-push.
It also carries the FE/BE consequence:
deploy.ymlrolls only the domains apush touched, so a hotfix on one side leaves the other running something older —
check
/api/versionbefore calling it live end to end..claude/ownership.mdWhich tasks may run concurrently, seamed along the four domains — which is a
real seam, since
deploy.ymlalready checks per-leg whether a push touched thatdomain. Plus the shared spine that must be serialised:
.forgejo/workflows/**(CI lives only in the root, so every domain routes through the same files),
env-topology.sh, the deploy entry points, theCLAUDE.mdfiles.Names the recurring collisions rather than leaving them to be rediscovered: a
schema change spans
backend/alembicand whatever reads the column, and if thepayload shape moves it is
PAYLOAD_VERand the frontend too — one task, not twoconcurrent ones.
infra/deploy/secrets/andinfra/deploy/are one ownerbetween them.
Scope
Documentation only — no code, no workflow, no infra change. Nothing here alters
what deploys or how.
Test evidence
Nothing executable to run. Verified instead that every file the two documents
reference exists on this branch —
infra/deploy/env-topology.sh,.forgejo/workflows/pr-build.yml,.claude/ownership.md— since the rootCLAUDE.md's standing rule is that these files may only name things that are
real. The divergence figures quoted were measured with
branch_diffagainst thelive repo on 2026-07-26, not estimated.
Files touched
.claude/BRANCHING.md(new),.claude/ownership.md(new),CLAUDE.md(afour-line pointer to both).