Skip to content

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-curated sets 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 tick tags each trunk commit that passed the required CI phases ci/green/<sha>, and revokes the tag when a re-run fails
  • chant release cut compiles one green commit for every environment once, and chant release publish ships it from CI with provenance
  • chant components promote --release deploys 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 github writes the pull-request workflow under .github/workflows/, run on pull_request and on push to 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.

First step

Run it in a repository with a chant.workspace.json; without --yes it prints the diff and writes nothing.

Terminal window
npx chant ci init --workflow trunk-curated
npx chant workspace check

Set Up Trunk with Curated Releases

Or hand this step to your coding agentIt stops at a pull request or a report.
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.

ExampleWhere
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

chant