CI Product Config Keys
terragucci, plywood and sql-yodeler each read a config file of their own (terragucci.yml, plywood.yml, yodel.config.ts) and map it onto the same chant mechanisms. This page holds the key for each setting, its value words, and the chant field it maps to, so a setting has one spelling in every product. The same table ships in code as PRODUCT_CONFIG_WORDS from @intentius/chant/ci-product, with productConfigProblems, which checks a product’s config against it (Checking a config).
How keys are spelled
Section titled “How keys are spelled”- A key is written here in snake_case and dotted, as a YAML config spells it. A TypeScript config spells each part in camelCase:
approval_rules.<rule>.not_authorisnotAuthor,evidence.runner_key_secretisrunnerKeySecret. A hyphenated part keeps its hyphen in both, asrespond.wave-refuseddoes. <name>in a key stands for any key of a map, and[]for any item of a list.- Value words are lower case and hyphenated:
on-destructive,pr-review,pull-request. offturns a response off. A setting that is absent is off, and a key added to this page is off until a config sets it.- A key ending in
_secretnames the forge secret (or GitLab CI/CD variable) holding a credential, such as a model key, OTLP headers or a webhook’s URL. A key ending intoken_envnames the variable holding a forge token. The value is the name, and the credential itself is never written in the config. - A duration is a whole number and a unit,
m,hord:30m,48h,3d. A schedule is a five-field cron line under aschedulekey. - Settings for one environment sit under
environments.<name>, keyed by the environment’s name. - Where a value names a stage of the pull request pipeline, it takes the product’s own stage word from its words: terragucci and sql-yodeler say
planandapply, plywood sayspreviewandup. Solocks.whenisplanin one product andpreviewin another, andrunnertakes a map ofdefaultand the stage words.
Environments and stages
Section titled “Environments and stages”A stage is an environment in promotion order. A release cut from what the first environment applied moves through the rest in that order, each behind its own gate.
| Key | Sets | Value | chant |
|---|---|---|---|
environments.<name> | an environment’s settings, keyed by the environment’s name | a map per environment | the names in environments of the member’s chant.config.ts |
promotion | the order a release moves through the environments, first to last | a list of environment names | environments in the member’s chant.config.ts, in order, which promotionOrder reads and chant components promote follows |
forge_environments.<glob>, environments.<name>.forge_environment | the forge deployment environment the jobs of the members a glob matches run in | a name, or { name, url } | a wave’s environment in the op-waves spec |
promotion is its own key in every product. It lists each environment once, with no patterns, and in a product with an environments map every name it lists is a key of that map. The product writes the list into the member’s chant.config.ts environments, which is where chant components promote reads the step before --to. sql-yodeler’s waves already lists one environment per wave in order, and sql-yodeler reads that order as its promotion order.
In plywood, environments maps a stack glob to a forge deployment environment. That map is forge_environments here, and the promotion order is promotion.
Promote, roll back and redeploy
Section titled “Promote, roll back and redeploy”A product’s bin passes these words to chant components, so each product’s release commands read the same:
| Command | chant | Words |
|---|---|---|
<product> promote --to <env> [--release <label>] | chant components promote | --to is the environment deployed to. --from defaults to the environment before it in promotion. --release is a release’s label or digest, and the deploy reads that release’s templates for --to. |
<product> rollback <env> --release <label> | chant components rollback | the environment is the positional, and --release names the earlier release it goes back to |
<product> redeploy <env> | chant components redeploy | deploys the release the environment runs now |
<product> reject <op> <gate> --plan <digest> --reason <text> | chant reject | turns down the release a stage’s gate waits on; --reason is one line, and --sign seals it |
<product> pause <env> --reason <text> | chant stage pause | stops releases entering the stage: a promote into it exits 3, and its release waits |
<product> resume <env> --reason <text> | chant stage resume | lets releases in again; the newest release that waited is the one that enters |
<product> promote --to <env> --release <label> --urgent --reason <text> | chant components promote --urgent | passes the stage’s gate on its urgent rule |
Promote, roll back and redeploy take --dry-run, which prints the plan and changes nothing. A product whose words map a comment command onto reject (commands: { reject: "reject" }) takes /<product> reject [--stage <stage>] <reason> on a pull or merge request. The comment job records it under the author’s forge identity (github:<login>), after the write-access check it makes before any command, when the stage’s approval mode takes that identity: ledger, pr-review and pull-request do. The rejection binds the digest on the stage gate’s pending fact. A sealed stage, a gate identity.gates names, or a stage whose rules all need a proven approver records nothing, and the reply gives the reject line to run with --sign, rejectLine from @intentius/chant/ci-product, filled from the product’s reject template. With several stages waiting, --stage names one. The job reads .chant/pipeline.ts in CHANT_PIPELINE_DIR (default the job’s directory) at the default branch. Words that map no command onto reject answer the comment with the reject line. A promote that skips an environment of promotion is refused unless it passes --allow-skip. The words are PRODUCT_RELEASE_WORDS in code.
In plywood, rollback --release <label> --env <env> is the alias for the positional. The positional reads as an environment with --release, and names a stack without it, as in plywood rollback <stack> --digest <d>.
Stage keys
Section titled “Stage keys”Keys that set how a stage behaves sit in this section, under environments.<name> when they differ per environment. Each key is added to this table, and to PRODUCT_CONFIG_WORDS, in the chant pull request that adds its mechanism, before any product reads it.
| Key | Sets | Value | chant |
|---|---|---|---|
promotion | the order of the stages | a list of environment names | environments in chant.config.ts |
environments.<name>.gate | when the stage’s wave waits for an approval | always, on-destructive, never | the wave’s gate |
environments.<name>.targets.<member> | the target a member applies in one environment: a stack, a root, or the step’s inputs there | a target name or path, or a map of the step’s inputs | the member’s step’s environments.<name> entry |
replan_dependents, environments.<name>.replan_dependents | the members whose dependents are planned again when an output they read changes after an apply | a list of member names or globs | replanDependents in .chant/pipeline.ts, a stage’s or defaults |
cost.command | the estimator run over each member’s plan document, which prints its monthly cost | a command naming {planJson}, as argv or a command line | ci.cost.command and holds.cost.command |
cost.format | what the estimator prints | infracost, chant | ci.cost.format and holds.cost.format |
cost.currency | the currency the amounts are in | a three-letter currency code such as USD | ci.cost.currency and holds.cost.currency |
cost.approve_above | the monthly change above which a plan needs an approval of its own | a monthly amount of 0 or more | ci.cost.approveAbove and holds.cost.approveAbove |
risk.approve_above, environments.<name>.risk.approve_above | the risk score above which a plan needs an approval of its own | a score from 0 to 1 | ci.risk.approveAbove and holds.risk.approveAbove |
risk.questions | the questions the review agent answers from 0 to 1, each a reason in the risk score | a list of maps with id, text, weight (0 to 1) and approve_above (0 to 1) | ci.risk.questions |
environments.<name>.risk.approval_rules | the approval rules a stage’s gate takes on top of its own when the risk is over its score | the rules approval_rules takes | a stage gate’s holds.risk.quorum in .chant/pipeline.ts |
environments.<name>.approval_rules | the approval rules of one stage, in place of approval_rules | the rules approval_rules takes | a stage gate’s quorum in .chant/pipeline.ts |
environments.<name>.hold | a manual hold: no release is promoted into the stage | true, or a map with reason and until, an ISO 8601 time | a stage’s hold |
environments.<name>.hold.description | what the person who lifts a stage’s hold reads first, shown in the plan note, the promote it refuses and workspace status | one line of text | description of a stage’s hold |
environments.<name>.freeze | the freeze windows in which no release is promoted into the stage | a list of maps with from, until (ISO 8601 times) and reason | a stage’s freeze |
environments.<name>.urgent.role | the role whose one proven approval passes the stage’s gate on an urgent promote | a role name from .chant/trust.json | a stage gate’s urgent.role |
environments.<name>.pause_after_rollback | a rollback of the stage pauses it until it is resumed | true or false | a stage’s pauseAfterRollback |
environments.<name>.hooks.<when> | the commands a stage runs around its waves at one moment: before anything reads live state, before or after the plan, after the gate decides, before or after the apply | a list of hooks, each a map with command (a list of arguments), name, on_failure (fail or approve), per_run and targets; <when> is before-observe, before-plan, after-plan, after-gate, before-apply or after-apply | a stage’s hooks in .chant/pipeline.ts: before.observe, before.plan, after.plan, after.gate, before.apply and after.apply, run after the pipeline’s own hooks |
environments.<name>.on_verify_fail | a stage’s answer to a failed verify after a promote or a failed check of its soak: hold as applied, or request the rollback to its previous release, which waits for an approval | hold, rollback | a stage’s onVerifyFail in .chant/pipeline.ts; hold when unset |
environments.<name>.failure_tolerance | the failed runs a wave of many targets lets through before the stage stops | a whole number of runs, or a share of the wave’s runs such as 10% | a stage’s failureTolerance, a wave’s failureTolerance |
environments.<name>.after | the stages a release applies in before the stage opens for it | a list of environment names; the stage before it in promotion when unset | a stage’s after |
environments.<name>.queue | how a stage takes releases: one at a time, a newer release waiting replacing an older one | replace | a stage’s queue |
release.cut | a merge cuts a release once the first stage applied | true or false; true when the product writes a pipeline | release.cut |
release.label | the label the merge’s release is cut with | a label, or auto for the next version | release.label, chant release cut <label> |
release.first | the version the merge’s release takes when the member has no release yet | a version such as 0.1.0; 0.1.0 when unset | release.first, chant release cut auto --first <version> |
environments.<name>.config.<variable>, config_sets.<set>.config.<variable> | a plain value the stage’s jobs get as a variable | a string | EnvironmentSets.environments.<name>.config |
environments.<name>.secrets.<variable>, config_sets.<set>.secrets.<variable> | a secret the stage’s jobs get as a variable, named by where it is kept | a forge secret’s name, or a map with one of forge_secret, aws_secrets_manager, gcp_secret_manager, azure_key_vault | EnvironmentSets.environments.<name>.secrets |
environments.<name>.secrets.<variable>.forge_secret, config_sets.<set>.secrets.<variable>.forge_secret | the forge secret a set’s secret is kept in | a secret or variable name | forgeSecret of an EnvironmentSecretRef |
environments.<name>.imports, config_sets.<set>.imports | the shared sets a set takes first, in order | a list of config_sets names | EnvironmentSet.imports |
config_sets.<set> | a shared set of config and secrets that environments import | a map of config, secrets and imports | EnvironmentSets.configSets |
agent.wave-refused.command | the model command that summarizes a refused wave, prompt on stdin and summary on stdout | a command line | WaveSummarySpec.command (CHANT_WAVE_SUMMARY_COMMAND) |
agent.wave-refused.key_secret | the secret holding the summarizing model’s key | a secret or variable name | WaveSummarySpec.keyEnv (CHANT_WAVE_SUMMARY_KEY_ENV) |
agent.wave-refused.timeout | the minutes the summary command may run | a whole number | WaveSummarySpec.timeout (CHANT_WAVE_SUMMARY_TIMEOUT) |
agent.wave-refused.max_runs | the most refused-wave summaries per day | a whole number | WaveSummarySpec.maxRuns (CHANT_WAVE_SUMMARY_MAX_RUNS) |
agent.wave-refused.max_cost_usd | the most US dollars the refused-wave summaries may cost per day | a number above 0 | WaveSummarySpec.maxCostUsd (CHANT_WAVE_SUMMARY_MAX_COST_USD) |
approval_rules.<rule>.proven, approval_rules[].proven | a rule’s count met only by approvers a seal or a review proves | true or false | proven of a quorum rule (GateQuorumRule) |
environments.<name>.canary | the canary stage, whose soak holds every stage after it | true or false | a stage’s canary in .chant/pipeline.ts, which takes a soak with at least one check |
environments.<name>.soak.duration | how long a stage’s soak checks must keep passing after its last apply before a release is promoted into the next stage | a duration, or 0 to wait for the checks alone | a stage’s soak.duration in .chant/pipeline.ts |
environments.<name>.soak.checks[].kind | what one soak check reads | http, prometheus, cloudwatch-alarm, command, health, drift, apply, policy | a soak check’s kind (SoakCheck), with that kind’s settings beside it |
environments.<name>.soak.checks[].on_fail | what a failing soak check does: start the soak over once it passes again, or hold with the elapsed time kept | restart, hold | a soak check’s onFail; restart when unset |
environments.<name>.soak.overrides[].members | the members an override’s duration and checks apply to, in place of the soak’s | a list of member names or globs | a soak override’s members (SoakOverride), with its duration and checks |
recheck.schedule | how often a promotion a soak holds is tried again | a five-field cron line | recheck.schedule in .chant/pipeline.ts, which renders a recheck-<stage> job per stage running components promote --pending |
environments.<name>.publish.<artifact> | a release artifact the stage publishes once it applied, kept with the release digest | a map with member and output, or with secret naming where a secret is kept | a stage’s publish in .chant/pipeline.ts |
environments.<name>.publish.<artifact>.secret.forge_secret | the forge secret a secret artifact names; the artifact holds the name, never the secret | a secret or variable name | forgeSecret in a stage’s publish |
environments.<name>.reads.<variable> | an artifact of an earlier stage that the stage’s deploy gets in a variable, from the release it takes | a map with stage and artifact | a stage’s reads in .chant/pipeline.ts |
environments.<name>.agent_steps.<step> | an agent step of the stage: a model’s reading of the release it takes, with an answer of a declared shape, which approves nothing and applies nothing | a map with prompt, schema and reads | a stage’s agentSteps in .chant/pipeline.ts |
environments.<name>.agent_steps.<step>.prompt | what the agent step’s model is asked | text, at most 4000 characters | prompt of a stage’s agent step |
environments.<name>.agent_steps.<step>.reads.<input> | what the agent step reads, by the name its prompt shows it under: an artifact an earlier stage published for the same release, or the answer of a step before it | a map with stage and artifact, or with step | reads of a stage’s agent step |
environments.<name>.agent_steps.<step>.schema | the JSON Schema the agent step’s answer must match; an answer that does not fails the step and holds the stage | a JSON Schema (2020-12) object | schema of a stage’s agent step |
environments.<name>.agent_steps.<step>.command | the model command the agent step runs, prompt on stdin and answer on stdout | a command line | command of a stage’s agent step |
environments.<name>.agent_steps.<step>.key_secret | the secret holding the agent step’s model key | a secret or variable name | keyEnv of a stage’s agent step |
environments.<name>.agent_steps.<step>.timeout | the minutes the agent step’s model command may run | a whole number from 1 to 360 | timeout of a stage’s agent step |
environments.<name>.agent_steps.<step>.max_runs | the most runs of the agent step per day | a whole number | maxRuns of a stage’s agent step |
environments.<name>.agent_steps.<step>.max_cost_usd | the most US dollars the agent step’s runs may cost per day | a number above 0 | maxCostUsd of a stage’s agent step |
control.release | the <product>-applied dispatch carries the release digest of the applied commit | true or false | release of the control settings, sent as CHANT_CONTROL_RELEASE |
approval_rules.<rule>.name, approval_rules[].name | a rule’s or a group’s name, shown in its progress line, the plan note and the pending fact on the ledger | lowercase letters, digits, - and _ | name of a quorum rule or group (GateQuorumNode) |
approval_rules.<rule>.all, approval_rules[].all | a group of rules met when every rule in it is met; groups nest up to three deep | a list or a map of rules and groups | { all: [...] } in a quorum (GateQuorumAll) |
approval_rules.<rule>.any, approval_rules[].any | a group of rules met when one rule in it is met; groups nest up to three deep | a list or a map of rules and groups | { any: [...] } in a quorum (GateQuorumAny) |
A product writes one component per member and puts each environment’s target in its step’s environments map, keyed by environment name. Before the step’s capability sees its input, chant merges the entry for the run’s environment over the step’s own input, so promote --to staging applies the staging target and records it under staging, and rollback and redeploy pick the target of the environment they act on. An environment the map does not name is refused before anything runs, and the refusal lists the environments it names. A pull request’s environment pr-<n> takes its template environment’s entry.
{ kind: "pulumi-up", dir: "infra/shop", environments: { dev: { stack: "acme/shop/dev" }, staging: { stack: "acme/shop/staging" }, prod: { stack: "acme/shop/prod" }, },}A terraform-apply step sets root and vars the same way: environments: { staging: { root: "envs/staging/network", vars: { region: "us-east-2" } } }. The mechanism ships as STEP_ENVIRONMENTS_KEY and componentsForEnvironment from @intentius/chant/components, and a product feature-detects it on STEP_ENVIRONMENTS_FLOOR.
Planning dependents again
Section titled “Planning dependents again”When a member applies and an output another member reads comes out changed, that reader holds a value from before. Once a wave applied, its job runs the replan step for the runs it applied when replanDependents in the spec it read at base names one of them. The step digests each applied member’s outputs and compares them with the digests the member’s last apply recorded in <env>/outputs.jsonl on chant/lifecycle. Then it lists the members that read a changed output. Reads come from the places the waves are ordered by. A step’s stackOutput() is one. A Terraform root’s terraform_remote_state of another root is another, as is a Pulumi program’s StackReference.
An output the engine marks sensitive (a Terraform output with sensitive = true) or secret (a Pulumi secret) gets no digest. The record names it, and it counts as changed every time its member applies, so its readers are listed on each apply. A digest of a short secret could be guessed back, and a Pulumi secret’s value never reaches the job.
For a member that replan_dependents names, its dependents are planned as a pull request’s members are planned. The plan waits at the gate pr-apply-replan under the op replan-<env>. The pending fact and the note both name the upstream member and the outputs that changed at that commit. The plan applies through the dependent’s own pipeline once someone approves it at its gate, and the step itself applies nothing. When the key is unset, no step runs and the rendered jobs are the same files.
A pipeline whose applies run outside chant run wave runs the same step as a command after its apply: chant components replan --env <env> --component <member>[,<member>], with --gate (default pr-apply) and --op. It reads replanDependents from .chant/pipeline.ts on the default branch.
stages: [{ name: "prod", waves: [/* ... */], replanDependents: ["network", "shared/*"] }]The mechanism ships as replanAfterApply from @intentius/chant/components, and a product feature-detects it on UPSTREAM_REPLAN_FLOOR.
Release artifacts
Section titled “Release artifacts”A stage names the values it publishes for each release under environments.<name>.publish, and a later stage names what it reads of them under environments.<name>.reads. The product maps both onto the stage’s publish and reads in .chant/pipeline.ts with pipelineFromConfig, which renames a secret’s snake_case keys (aws_secrets_manager, json_key) to the set’s words. The pipeline reference gives the rules.
environments: dev: publish: endpoint: { member: cluster, output: endpoint } db_password: { secret: { aws_secrets_manager: "arn:aws:secretsmanager:us-east-2:111111111111:secret:dev/db" } } staging: reads: TF_VAR_dev_endpoint: { stage: dev, artifact: endpoint }control: repo: github.com/acme/control op: deploy release: trueCost estimate
Section titled “Cost estimate”The cost keys set one estimate for the plan note, the policy and the wave. A product writes them into the workspace declaration’s ci.cost, which pr-plan and pr-apply read at base, and into the op-waves spec’s holds.cost. The estimator runs once per member whose plan changes something, over the plan document its step wrote: terraform show -json for a terraform-apply member, the preview JSON for a pulumi-up member. {planJson} is a copy of that file with its sensitive values replaced by [redacted], and {target} the member. The estimator runs without the forge tokens in its environment, so a product’s own after-plan hook is not needed for either; COST_REDACTED_FLOOR from @intentius/chant/ci-product names the first release that does both. The note shows each member’s monthly change and the sum, and the policy reads the same record as input.cost, with a wave’s run’s own figures as input.cost.member. cost.approve_above only adds approvals: a plan over it, or with a member the estimator could not price, needs an approval of its own digest, and a wave over it waits whatever its gate says. Nothing about the estimate lets a plan apply without an approval. With no cost keys, no estimate runs. The record and its note lines ship as estimateCosts, costEstimateLines and policyCost from @intentius/chant/ci-product, for a product that plans by itself and hands chant its own plan note (PrPlanNote.cost), and a product feature-detects them on COST_ESTIMATE_FLOOR.
Change risk
Section titled “Change risk”The risk keys score each change from 0 to 1 and let the score ask for more approvals. A product writes risk.approve_above and risk.questions into the workspace declaration’s ci.risk, which pr-plan and pr-apply read at base, and a stage’s risk keys into its gate’s holds.risk in .chant/pipeline.ts. The review agent answers each question on the pull request, and an answer over the question’s approve_above asks for an approval as the score does. Over approve_above, a pull request’s plan needs an approval of its own digest, and a stage’s wave waits whatever its gate says and takes the stage’s risk.approval_rules on top of its own: { count: 2 } asks for a second approver, { count: 1, roles: [sre] } for a named role. Below the score, the gate behaves as it does with no risk keys. A release carries the score its first stage’s waves made, and a promote into a later stage reads it under that stage’s risk keys the same way; a product feature-detects this on RELEASE_RISK_FLOOR from @intentius/chant/pipeline. With no risk keys, no score is made. How the score is made, reason by reason, is on Change Risk. The record and its note lines ship as scoreChangeRisk and changeRiskLines from @intentius/chant/ci-product, and a product feature-detects them on CHANGE_RISK_FLOOR.
A product that reads the hold, freeze, failure tolerance, stage approval rules and release keys writes them into the member’s .chant/pipeline.ts with pipelineFromConfig and pipelineSource from @intentius/chant/pipeline, and its ci --check runs checkPipelineFile. See Pipeline.
Config and secret sets
Section titled “Config and secret sets”Each environment has one set of config and secrets that its stage’s jobs get as variables, under environments.<name> beside its targets. config holds plain values. secrets holds where each secret is kept, and the config file holds no secret: a forge secret’s name (a GitLab CI/CD variable’s on GitLab), or a map naming an AWS Secrets Manager secret (with json_key for one key of a JSON secret, and region), a Google Secret Manager secret (projects/<project>/secrets/<secret>, with /versions/<version> or the latest), or an Azure Key Vault secret’s URL. Shared sets sit under config_sets.<set>, and imports lists the shared sets a set takes first, in order; the set’s own values replace theirs. An environment’s set imports shared sets, and no other environment’s, so the staging set holds staging’s values and the shared ones.
config_sets: common: config: { LOG_LEVEL: info } secrets: { SENTRY_DSN: SENTRY_DSN }environments: staging: imports: [common] config: { REGION: us-east-2 } secrets: DB_PASSWORD: STAGING_DB_PASSWORD API_KEY: { aws_secrets_manager: "arn:aws:secretsmanager:us-east-2:111111111111:secret:staging/api", json_key: key } prod: imports: [common] config: { REGION: us-east-1 } secrets: { DB_PASSWORD: PROD_DB_PASSWORD }chant picks an environment’s set with the lookup a step’s environments uses, so a pull request’s environment pr-<n> takes its template’s set, and an environment the sets do not name is refused before anything runs. Each generator hands a stage’s jobs that stage’s set: the config as variables, the forge secrets as passed secrets, and the store secrets read in the job after its cloud login, with the identity ci.identity gives that stage, so a staging job reads what the staging identity may read.
- In a pipeline (
.chant/pipeline.ts),chant pipeline generategives the first stage’s wave jobs the first stage’s set and apply identity, and each later stage’s promote job its own stage’s. - In an Op waves spec, each wave takes the set of the spec’s
labels.Env, or else of the wave’s name. Before merge a wave’s plan job runs the pull request’s code with the wave’s variables, so a set that holds secrets is refused there. - In the pull request pipeline, the apply and record jobs take the set. The plan job runs the pull request’s code and gets the config alone.
chant reads the sets from ci.environmentSets in the workspace declaration, beside ci.identity, in chant build --pr-loop and chant pipeline generate, and a product that calls the generators in process passes them as the environmentSets option. Each job also gets CHANT_ENV_SET, the set’s record: every variable, the set it came from and the imports that led there, and for a secret the place it is kept, without its value. chant ci run redacts each secret the record names from the run’s events, its record on the ledger, its report and the note posted from it, whatever the variable’s name. On GitHub and Forgejo the store read masks each value before the runner prints a line.
The mechanism ships as resolveEnvironmentSet and environmentSetJobInputs from @intentius/chant/components, and a product feature-detects it on ENVIRONMENT_SETS_FLOOR.
Refused wave summary
Section titled “Refused wave summary”respond.wave-refused: summary turns the summary on, and the agent.wave-refused keys set the model it runs. The note holds the diff diff posts with a model’s summary above it; a run past a limit, or one that fails, posts the diff alone and says the summary was skipped. Each summary is one run record under op <product>-refused-wave with its prompt digest and cost, and max_runs and max_cost_usd count those records over the last day. The command defaults to the review command with --output-format json, the key to ANTHROPIC_API_KEY, the timeout to 10 minutes. A product passes the keys as waveSummary of its op waves spec or pull request loop, and chant’s generated apply and wave jobs carry them as CHANT_WAVE_SUMMARY_* variables with the model’s key: on GitHub and Forgejo from the secret key_secret names, on GitLab as the CI/CD variable of that name. With diff or off the jobs carry none of them. The summary approves nothing and changes no exit code. A product feature-detects it on WAVE_REFUSED_SUMMARY_FLOOR.
| Key | Sets | Value | chant |
|---|---|---|---|
apply.when | when a change applies | merge, pull-request | ci.workflow |
apply.merge | who merges a pull request that applied before merge | manual, auto | chant build --pr-loop --merge |
apply.merge_token_env | the variable holding the token that merges | a secret or variable name | --merge-token-env |
apply.merge_method | how the merge is made | merge, squash, rebase | --merge-method |
apply.requires | the checks that pass before an apply | a list of check names | the pull request pipeline’s required checks |
branches.<branch> | the members a branch applies, by glob | a list of globs | ci.branches |
labels.<label> | the members a labelled pull request plans, by glob | a list of globs | ci.labels |
locks.when | when a pull request takes its locks, in the product’s stage words | plan, apply, preview, up | ci.locks |
locks.grain | what one lock covers | resource, stack | ci.lockGrain |
waves.canary | the members that apply first, in a wave of their own | a list of member names or globs | the first wave of the op-waves spec, marked canary: its soak, the environment’s soak unless the wave has its own, holds every wave after it |
waves.after.<name> | the members one member applies after | a list of member names | the wave order of the op-waves spec |
Approval and policy
Section titled “Approval and policy”| Key | Sets | Value | chant |
|---|---|---|---|
gate, environments.<name>.gate, stacks.<name>.gate, waves[].gate | when a wave waits for an approval | always, on-destructive, never | a wave’s gate (OpWaveGatePolicy) |
approval, approval.mode, waves[].approval, environments.<name>.approval | which approvals of a plan count | ledger, pr-review, sealed, pull-request, prow-labels | a wave’s approval (GateApprovalSource) |
approval_rules.<rule>.count, approval_rules[].count | how many distinct people approve | a whole number, at least 1 | count of a quorum rule (GateQuorumRule) |
approval_rules.<rule>.roles, approval_rules[].roles | the roles a counted approver holds | a list of role names | roles of a quorum rule |
approval_rules.<rule>.not_author, approval_rules[].not_author | a counted approver who is not the change’s author | true or false | notAuthor of a quorum rule |
policy.engine | the policy engine | conftest, opa | ci.policy |
policy.path | the directory of policy rules in the repository | a path relative to the repository root | ci.policy.path |
policy.namespace | the policy package the rules sit in | a package name | ci.policy |
policy.source | a shared rule set from another repository | a git source at a ref | ci.policy.source |
evidence.identity | the keyless identity that signs checks | oidc | PipelineEvidence.identity |
evidence.runner_key_secret | the secret holding the runner key that signs checks | a secret or variable name | PipelineEvidence.runnerKeySecret |
approval_rules is a list in terragucci and a map of named rules in plywood; the keys inside a rule are the same in both.
Responses and drift
Section titled “Responses and drift”| Key | Sets | Value | chant |
|---|---|---|---|
respond.wave-refused | what follows a wave that applied nothing because its plan moved | diff, summary, off | CiResponses["wave-refused"] |
respond.apply-failed | what follows a failed apply | triage, off | CiResponses["apply-failed"] |
respond.description | the pull request description check | check, off | CiResponses.description |
respond.drift | what follows a drift the scheduled check finds | issue, pull-request, attribute, up, off | the scheduled drift Op’s response |
drift.schedule | when the scheduled drift check runs | a five-field cron line | the scheduled drift Op’s cron |
decide.backend | the service that answers a gate’s questions | a backend name | --decide-backend |
The keys under respond are chant’s event names, hyphenated as CiResponses spells them.
Reports and telemetry
Section titled “Reports and telemetry”| Key | Sets | Value | chant |
|---|---|---|---|
reports.bucket | where the jobs keep their reports and run index | an s3://, gs://, az:// or file:// URL | ci.reportUrl |
reports.url | the browser address the reports are read at | an https:// URL | the report links in the plan note |
telemetry.endpoint | the OTLP/HTTP base URL traces go to | a URL | OTEL_EXPORTER_OTLP_ENDPOINT |
telemetry.headers_secret | the secret holding the OTLP headers | a secret or variable name | OTEL_EXPORTER_OTLP_HEADERS |
telemetry.trace_url | a link to one trace, with {trace_id} | a URL holding {trace_id} | the trace link in the plan note |
Identity, review environments and the forge
Section titled “Identity, review environments and the forge”| Key | Sets | Value | chant |
|---|---|---|---|
identity | the cloud identities the jobs log in as | a map per cloud, with a role per stage word and per environment | ci.identity and the ci-login trade |
ephemeral | a copy of the members per open pull request | a map | ci.prEnvironment |
ephemeral.ttl | how long a pull request’s copy lives after its last update | a duration such as 48h | ci.prEnvironment.ttl |
forge | the forge the repository is on | github, gitlab, forgejo | ci.forge |
forge_url | the forge’s address, for a forge on another scheme or port | a URL | the forge client’s base URL |
forges | the forges the pipelines are rendered for | github, gitlab, forgejo | the generators chant ci runs |
Secrets and variables
Section titled “Secrets and variables”| Key | Sets | Value | chant |
|---|---|---|---|
token_env, control.token_env, agent.token_env | the variable holding the forge token | a secret or variable name | the forge client’s token |
pass.secrets | the CI secrets the jobs read as variables | a list of secret names | the jobs’ env |
pass.vars | the CI variables the jobs read | a list of variable names | the jobs’ env |
env.<name> | plain variables every job sets | a map of name to value | the jobs’ env |
Notify
Section titled “Notify”| Key | Sets | Value | chant |
|---|---|---|---|
notify.slack | the secret holding a Slack incoming webhook’s URL | a secret or variable name | NotifyConfig.slack |
notify.teams | the secret holding a Microsoft Teams incoming webhook’s URL | a secret or variable name | NotifyConfig.teams |
notify.webhook | the secret holding a generic webhook’s URL | a secret or variable name | NotifyConfig.webhook |
notify.webhook_key | the secret holding the key a generic webhook’s events are signed with | a secret or variable name | NotifyConfig.key |
notify.events | the events sent | waiting, refused, failed, drift | NotifyConfig.events |
notify.relay_key | the secret holding the key the relay checks Approve and Decline with | a secret or variable name | NotifyConfig.relay |
notify.relay_name | the relay’s name as people mention it in Teams | a name | NotifyConfig.relayName |
The relay has two settings, a secret key and a plain name, so each has its own key.
Agents and review
Section titled “Agents and review”| Key | Sets | Value | chant |
|---|---|---|---|
review.key_secret | the secret holding the reviewing model’s key | a secret or variable name | the review agent step’s key variable |
review.command | the model command, prompt on stdin and answer on stdout | a command line | the review agent step’s command |
review.timeout | the minutes the review command may run | a whole number | the review agent step’s timeout |
agent.key_secret, agent.comment.key_secret, agent.drift.key_secret, agent.alert.key_secret, agent.apply-failed.key_secret, agent.schedule.key_secret, agent.verify-failed.key_secret | the secret holding the agent model’s key | a secret or variable name | the agent job’s key variable |
agent.comment | an agent that answers a comment command | true, or a map | the comment agent’s jobs |
agent.drift | an agent that opens a pull request for a drifted member | true, or a map | the drift Op’s agent |
agent.alert | an agent that opens a pull request for a production alert the relay recorded | true, or a map | productAlertAgent, the alert agent’s workflow |
agent.apply-failed | an agent that opens a pull request for a failed apply, beside the triage comment | true, or a map | productApplyFailedAgent, the failed-apply agent’s workflow, and CHANT_AGENT_FACTS=apply-failed on the apply jobs |
agent.verify-failed | an agent that opens a pull request when a stage’s verify or soak fails after an apply | true, or a map | productVerifyFailedAgent, the failed-verify agent’s workflow, and agentFacts with verify-failed among its triggers on the pipeline’s jobs |
agent.schedule | an agent that does a recurring task on a cron and opens a pull request | a map with cron and task | productScheduleAgent, the scheduled agent’s workflow |
agent.schedule.cron | when the scheduled agent runs | a five-field cron | the scheduled agent’s schedule |
agent.schedule.task | what the scheduled agent does on each run | text, at most 4000 characters | the scheduled agent’s task |
agent.alert.window, agent.apply-failed.window, agent.schedule.window, agent.verify-failed.window | the minutes in which one member’s alerts, failed applies, failed verifies or scheduled runs join one agent run | a whole number from 1 to 1440, 15 by default | the agent’s window |
agent.alert.relay_key_secret, agent.apply-failed.relay_key_secret, agent.verify-failed.relay_key_secret | the secret holding the relay key the alert, failed-apply and failed-verify facts are signed and checked with | a secret or variable name | the agent’s relayKeyEnv, and the pipeline jobs’ agentFacts.relayKeyEnv |
control.repo | the control repository told after each apply on merge | host/owner/name or a URL | the <product>-applied dispatch |
| Key | Sets | Value | chant |
|---|---|---|---|
parallelism, environments.<name>.parallelism | how many members one job applies at once | a whole number | the wave job’s parallelism |
runner, environments.<name>.runner | the runner every job runs on, or one per stage word | a label, a list of labels, a runner group, or a map of default and the stage words | a wave’s runner |
image | the image every job runs in | an image reference, or a map with name | the jobs’ container |
Stage words
Section titled “Stage words”The stage and verb words a product shows people (plan or preview, apply or up, the comment commands, the status prefix) are its CiProductWords, passed to chant with each command; see @intentius/chant/ci-product. A config key never spells a stage word into its name: identity holds a role per stage word, as runner and locks.when hold one.
Audit entry kinds
Section titled “Audit entry kinds”An audit line names the event that happened, in the past tense. PRODUCT_AUDIT_KINDS lists them.
| Kind | Records | Also read |
|---|---|---|
approval-requested | a plan that reached its gate and waits for an approval | |
approved | an approval of a plan’s digest | approval (terragucci) |
revoked | an approval or an override a commit removed from the ledger | approval-revoked, override-revoked (terragucci) |
override-requested | a policy denial that waits for an override | |
override-recorded | an override of a denial | override (terragucci, sql-yodeler) |
override-spent | an override an apply cited | |
applied | a wave’s apply, whichever way it ended; result says how | apply (terragucci) |
refused | an apply the gate or a check refused | |
hook | a hook’s outcome at a wave | |
recorded | any other event a product records, named in product_kind |
The report store’s audit line, chant.audit/v1, takes its kind from this table; see the report store’s schemas.
Spellings each product accepts
Section titled “Spellings each product accepts”Where a product spelled a setting another way, it keeps reading its spelling beside the key above. productConfigProblems reports each as a warning that names the key, and reports a spelling set beside its key as an error. An alias with a shape reads as the key only in that shape; in plywood, reports.url is the bucket when it holds a storage URL.
| Product | Accepts | For |
|---|---|---|
| terragucci | gate: on-destroy | gate: on-destructive |
| terragucci | apply.branches | branches.<branch> |
| terragucci | locks: <when> | locks.when |
| terragucci | drift: <cron> | drift.schedule |
| terragucci | oidc | identity |
| terragucci | url | forge_url |
| terragucci | notify.relay | notify.relay_name |
| plywood | environments, a glob to a name or { name, url } | forge_environments.<glob> |
| plywood | approval_rules.<name>.quorum | approval_rules.<rule>.count |
| plywood | approval_rules.<name>.role | approval_rules.<rule>.roles |
| plywood | policy.rego | policy.path |
| plywood | respond.wave_refused | respond.wave-refused |
| plywood | respond.apply_failed | respond.apply-failed |
| plywood | respond.drift: none | respond.drift: off |
| plywood | reports.url, a storage URL | reports.bucket |
| plywood | telemetry.headers_env | telemetry.headers_secret |
| plywood | review_stacks | ephemeral |
| plywood | review_stacks.ttl | ephemeral.ttl |
| plywood | forge.kind | forge |
| plywood | forge.url | forge_url |
| plywood | pass, a list or a map | pass.secrets |
| plywood | notify.slack.webhook | notify.slack |
| plywood | notify.teams.webhook | notify.teams |
| plywood | notify.webhook.url | notify.webhook |
| plywood | notify.webhook.key | notify.webhook_key |
| plywood | notify.on | notify.events |
| plywood | notify.relay | notify.relay_key |
| plywood | review.key_env | review.key_secret |
| plywood | agent.key_env | agent.key_secret |
| plywood | runners | runner |
| plywood | rollback --env <env> | rollback <env> |
| sql-yodeler | ci.login | identity |
| sql-yodeler | notify.key | notify.webhook_key |
| sql-yodeler | notify.relay | notify.relay_key |
sql-yodeler keeps its CI settings under ci in yodel.config.ts (ci.evidence, ci.respond, ci.forges), and the keys above apply inside it.
Checking a config
Section titled “Checking a config”import { productConfigProblems, PRODUCT_CONFIG_WORDS_FLOOR } from "@intentius/chant/ci-product";
const problems = productConfigProblems(config, { product: "plywood" });// [{ level: "warning", path: "respond.wave_refused", key: "respond.wave-refused",// message: "is accepted as respond.wave-refused, the vocabulary's key" }]productConfigProblems(config, { product, case, scopes }) reads the parsed config:
- each spelling of the table above that
productaccepts is a warning naming the key; - a spelling set beside its key is an error;
- a value outside a key’s words, or a secret name, URL, duration or cron line in the wrong form, is an error;
promotionis an error unless it is a list of distinct environment names, each a key ofenvironmentswhen the config has that map.
case: "camel" reads a TypeScript config’s camelCase keys, and scopes: ["ci"] also reads the keys under ci, as sql-yodeler keeps them. A key this page does not list is the product’s own and is not read. productConfigWord(key) returns one row of the table. A product feature-detects all of this on PRODUCT_CONFIG_WORDS_FLOOR.