chant for teams that merge to trunk and curate releases
llms.txt lists every page for an agent
For a team that merges every change to one branch without fear: a merge records the plan and deploys nothing, CI marks the commits that passed as git tags, a person cuts a release from the green commit they choose, and the release moves through each environment behind a gate bound to what changes there.
Works
chant ci init --workflow trunk-curatedsets the workspace up:ci.workflow,ci.green, environments, component stubs, and the plan, record, tick and publish jobs- A merge records the approved plan (
chant ci run record) and deploys nothing; applying on merge is an opt-in chant ci ticktags each trunk commit that passed the required CI phasesci/green/<sha>, and revokes the tag when a re-run failschant release cutcompiles one green commit for every environment once, andchant release publishships it from CI with provenancechant components promote --releasedeploys the recorded templates and artifacts in promotion order, each environment behind a gate that binds the release, the environment and the change set- Feature flags as reviewed workspace records, read by the build, so unfinished work merges switched off
- Rollback to an earlier release, revocation read from the tags, retention, and DORA metrics from the same records
Differs
By forge
--generate githubwrites the pull-request workflow under.github/workflows/, run onpull_requestand onpushto the target branch.- Both jobs use the job's own
github.token. On a pull request from a fork that token is read-only, so the plan note and the status are not posted.
--generate gitlabwrites.gitlab-ci.yml, andapplyruns one at a time per environment throughresource_group.- A CI job token cannot write merge request notes, so set a project access token with the
apiscope as the masked variableCHANT_FORGE_TOKEN. - GitLab has no check-run reader, so set
ci.green.sourcetoruns: each phase is a chant Op run with a runner key, and the tick goes in the pipeline after them.
--generate forgejowrites the GitHub workflow in the Forgejo dialect under.forgejo/workflows/: the runner label, action references by URL, and nopermissionsblock.- Forgejo workflows are GitHub-dialect, so
chant auditapplies its GitHub rules to them. - Forgejo has no check-run reader, so set
ci.green.sourcetoruns: each phase is a chant Op run with a runner key, and the tick goes in the pipeline after them.
First step
Run it in a repository with a chant.workspace.json; without --yes it prints the diff and writes nothing.
npx chant ci init --workflow trunk-curatednpx chant workspace checkSet Up Trunk with Curated Releases
Show the whole prompt
Read https://intentius.io/chant/for/releases/.
Following https://intentius.io/chant/guide/trunk-curated-setup/, run `npx chant ci init --workflow trunk-curated`, show me the diff it prints, and once I agree run it again with `--yes`.
Fill in the component stubs it writes from what this repository builds and deploys, run `npx chant workspace check` until it reports nothing for WSP151 but what needs me, and open a pull request with the changes.
Never deploy to a real cloud account or shared environment (with `chant run`, `chant components` or a platform's own CLI), approve (a pull request review, `chant approve` or `chant run approve`), override a policy denial (`chant approve policy-override`), or merge; never cut or publish a release (`chant release cut --yes` or `chant release publish`), push or delete a `ci/*` tag (`chant ci tick` pushes them), or change the value of an existing flag; never touch `.chant/allowed_signers` or `chant/lifecycle`.Proof
Example projects in the chant repository for this room, each with a README that has the commands to run it.
| Example | Where |
|---|---|
trunk-curated-floci | examples/trunk-curated-floci |
components-aws-e2e | examples/components-aws-e2e |
Then read
- Tasks
- Set Up Trunk with Curated ReleasesFrom Zero to a Promoted ReleaseTag Green CommitsLink commits to work itemsCurate a ReleaseLand Without a Pull RequestCompose a ReleaseRelease from Your WorkstationPromote a ReleaseFeature FlagsPrune chant/lifecycleRead Delivery Metrics
- Background
- Trunk and ReleasesBuild-Time ParametersState and Governance
- Reference
- chant cichant releasechant components promotechant change-setchant workspace statuschant workspace metricschant lifecycle gcWorkspace Declaration: CICI Workflows