On this page
Decision 007 · Distribution restructure: dev integrates, main publishes
The in-repo mirror of the branch-governance rule: build on dev, never main — so the
rule is visible where the crew works, not only on the strategy desk.
- Provenance: mirrors old-desk ADR 0014
(
dotfiles-agents-cowork/_structure/decisions/0014-distribution-restructure-dev-main.md, also recorded desk-side as executive-deskdecisions/0010). Owner ruling relayed on DEV-31 (2026-07-14):devwas cut frommainat452969a3b92af01089c9b0de6a0cb3493a005713(cutover-plan step 1 pulled forward, verified on the remote); build proceeds ondev. - Raised by: DEV-31 / #115 build
scope (this ADR authored as the first
skill-bundlePR) · the distribution-restructure epic (#111–#113).
Context
Consumers add this repo as a Claude Code marketplace by the owner/repo shorthand
(claude plugin marketplace add hsb3/dotfiles-agents), which reads the default branch's
generated .claude-plugin/marketplace.json. That makes the default branch a published
surface: any commit to it is immediately live for every installer. Building directly on the
published branch means half-finished work, an un-regenerated manifest, or a failed drift
guard reaches consumers before review.
The distribution restructure (#111–#113) separates the two roles the branch was conflating —
integration (where work lands and is reviewed) and publication (what consumers install).
The authority for the split is old-desk ADR 0014, but that decision lived only on the strategy
desk: docs/decisions/ in this repo stopped at 0006, so a crew member working here had no
in-repo record of which branch to target. DEV-31's planner and reviewer both flagged the
absence as a hard blocker before any build could pick a valid target branch.
Decision
dev is the integration branch; main is publish-only.
- All work — human or agent — branches off
devand opens PRs targetingdev. Branch naming and squash-merge conventions are unchanged. mainis off-limits to direct commits from humans and agents. It is the CI-published marketplace surface; it advances only by the sanctioned promotion path (dev→main), not by ad-hoc pushes.- The marketplace-manifest regeneration that republishes
mainis sequenced last, after the manifest-serialization work (#112/#113) releases — no PR regenerates or commits the root manifest until then.
This ADR is the in-repo mirror; old-desk ADR 0014 remains the authority of record. If the two ever disagree, 0014 wins and this mirror is corrected to match.
Consequences
- A valid, documented target branch exists for
skill-bundleand every subsequent build: branch fromdev, PR intodev. - CI keeps running
make cion every PR (any base) and on push tomain; the drift guards stay authoritative on both branches. - The
dev→mainpromotion becomes a deliberate, reviewed step — the point at which the regenerated marketplace manifest is published — rather than a side effect of merging a feature. - If the epic's cutover model changes (e.g.
mainis retired or renamed), this ADR is superseded by a new one and 0014 is updated first.
Affects
Branch/PR governance for all dotfiles-agents work · CLAUDE.md / AGENTS.md task
interface · CI target-branch assumptions (.github/workflows/ci.yml) · the
marketplace-manifest publish step gated on #112/#113 · the skill-bundle (DEV-31) build.