Repository navigation
Description
Problem
The devkit scaffold + release cycle assume every consumer uses a dev branch with a dev → release/X.Y.Z → main gitflow plus sync-main-to-dev. This fits versioned-release repos (commit-action, sync-issues-action, devkit itself) but NOT trunk-style repos — surfaced by the exo-pet/exo-fleet rollout (a NixOS fleet repo that deploys from main), where provisioning created a dev branch and the full release apparatus the repo has no use for. See PR exo-pet/exo-fleet#230.
Goal
A per-consumer DEVKIT_WORKFLOW knob (gitflow | trunk, empty ⇒ gitflow, the unchanged default) selecting the branching/release model.
- gitflow (default, unchanged):
devintegration branch; cutrelease/X.Y.Zfromdev; RC train; finalize merges tomain+ tag;sync-main-to-devback-merges todev. - trunk (opt-in):
feature|bugfix|chorestraight tomain; releases STILL happen but cutrelease/X.Y.Zfrommain, RC on it, merge back intomain+ tag. Only thedevbranch andsync-main-to-devdisappear.
Key findings (verified)
devis mechanically load-bearing in exactly two scaffolded workflows:prepare-release.yml(freeze + fork base) andsync-main-to-dev.yml(omit in trunk). The whole tag/build/publish/promote chain (release-core.yml,release-publish.yml,promote-release.yml) is ALREADYrelease/* → mainand dev-free — no changes needed there.- Every
devreference inprepare-release.ymlis a plain branch literal (incl. the [BUG] prepare-release can branch release/X.Y.Z at pre-freeze dev SHA (read-after-write race) #617 read-after-write guard), so trunk is a precise anchored literal render, not a structural rewrite → no workflow twin (avoids the [BUG] Candidate release fails draft/approval gate — release-core.yml template missing #902 guard #1095 drift class).
Architecture (decided)
Scaffold-time render, everything — realized entirely at install time (mirrors the DEVKIT_MODE structural precedent), NO resolve-toolchain runtime wiring, NO inert workflow files, NO twin. on: trigger branch filters are static YAML that can't be runtime-conditional, which is itself why scaffold-time is the only coherent single mechanism.
Scope
Devkit capability only. exo-fleet #230 merges as-is on dev now; retrofitting exo-fleet/org-config to trunk + a trunk-aware ruleset bootstrap (#522) are separate follow-ups. Targets 1.5.0; the in-flight 1.4.0 promote is independent and not blocked.
Sub-issues (ordered 0 → 1 → {2,3} → 4 → 5)
- workflow-model spike: prove trunk release cut-from-main + scaffold render #1206 — SPIKE: prove release cut-from-main + merge-back + tag with no dev; prove scaffold render+exclude without breaking preview/CI + release workflows hard-coupled to the container image regardless of DEVKIT_MODE #991 bats
- workflow-model: DEVKIT_WORKFLOW manifest key + read/writeback + guards #1207 — manifest key
DEVKIT_WORKFLOW+ read/writeback + guards - workflow-model: scaffold render core (render_workflow_model + sync-main-to-dev exclude + preview mirror) #1208 — scaffold render core (
render_workflow_model()+ copy-exclude/prunesync-main-to-dev+--forcepreview mirror) - workflow-model: install.sh --workflow flag + dev-branch creation gating #1209 — install.sh
--workflowflag + dev-branch creation gating - workflow-model: tests (test_workflow_model.py + bats + parametrize dev-assuming suites) #1210 — tests (
test_workflow_model.py+ bats + parametrize dev-assuming suites) - workflow-model: docs + ADR + plan doc #1211 — docs + ADR + plan doc
Full design plan retained by the maintainer (scaffold-time render; anchored literal render of prepare-release; compose-not-combine mode × model axes).
Activity
feat(workspace): add DEVKIT_WORKFLOW knob (gitflow default / trunk op…
chore(release): merge dev into release/1.4.0 to unfreeze workflow-mod…
c-vigo commentedon Jul 20, 2026
Implemented via PR #1212, shipped in 1.4.0 via unfreeze PR #1215.
chore: bump devkit pin to 1.4.0-rc5
chore: release 1.4.0 (#284)
chore: release 1.4.0 (#1186)
feat(devkit): switch to trunk workflow model (#64)
feat(scaffold): sync-issues target-branch + schedule knobs (#1228) (#…
feat(workspace): manifest-driven scaffold feature opt-outs (DEVKIT_FE…
fix(workspace): render the branch guard from the workflow model both …