Skip to content

CI Product Config Keys

llms.txt lists every page for an agent

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).

  • 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_author is notAuthor, evidence.runner_key_secret is runnerKeySecret. A hyphenated part keeps its hyphen in both, as respond.wave-refused does.
  • <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.
  • off turns 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 _secret names 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 in token_env names 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, h or d: 30m, 48h, 3d. A schedule is a five-field cron line under a schedule key.
  • 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 plan and apply, plywood says preview and up. So locks.when is plan in one product and preview in another, and runner takes a map of default and the stage words.

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.

KeySetsValuechant
environments.<name>an environment’s settings, keyed by the environment’s namea map per environmentthe names in environments of the member’s chant.config.ts
promotionthe order a release moves through the environments, first to lasta list of environment namesenvironments in the member’s chant.config.ts, in order, which promotionOrder reads and chant components promote follows
forge_environments.<glob>, environments.<name>.forge_environmentthe forge deployment environment the jobs of the members a glob matches run ina 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.

A product’s bin passes these words to chant components, so each product’s release commands read the same:

CommandchantWords
<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 rollbackthe environment is the positional, and --release names the earlier release it goes back to
<product> redeploy <env>chant components redeploydeploys the release the environment runs now
<product> reject <op> <gate> --plan <digest> --reason <text>chant rejectturns down the release a stage’s gate waits on; --reason is one line, and --sign seals it
<product> pause <env> --reason <text>chant stage pausestops releases entering the stage: a promote into it exits 3, and its release waits
<product> resume <env> --reason <text>chant stage resumelets 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 --urgentpasses 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>.

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.

KeySetsValuechant
promotionthe order of the stagesa list of environment namesenvironments in chant.config.ts
environments.<name>.gatewhen the stage’s wave waits for an approvalalways, on-destructive, neverthe wave’s gate
environments.<name>.targets.<member>the target a member applies in one environment: a stack, a root, or the step’s inputs therea target name or path, or a map of the step’s inputsthe member’s step’s environments.<name> entry
replan_dependents, environments.<name>.replan_dependentsthe members whose dependents are planned again when an output they read changes after an applya list of member names or globsreplanDependents in .chant/pipeline.ts, a stage’s or defaults
cost.commandthe estimator run over each member’s plan document, which prints its monthly costa command naming {planJson}, as argv or a command lineci.cost.command and holds.cost.command
cost.formatwhat the estimator printsinfracost, chantci.cost.format and holds.cost.format
cost.currencythe currency the amounts are ina three-letter currency code such as USDci.cost.currency and holds.cost.currency
cost.approve_abovethe monthly change above which a plan needs an approval of its owna monthly amount of 0 or moreci.cost.approveAbove and holds.cost.approveAbove
risk.approve_above, environments.<name>.risk.approve_abovethe risk score above which a plan needs an approval of its owna score from 0 to 1ci.risk.approveAbove and holds.risk.approveAbove
risk.questionsthe questions the review agent answers from 0 to 1, each a reason in the risk scorea list of maps with id, text, weight (0 to 1) and approve_above (0 to 1)ci.risk.questions
environments.<name>.risk.approval_rulesthe approval rules a stage’s gate takes on top of its own when the risk is over its scorethe rules approval_rules takesa stage gate’s holds.risk.quorum in .chant/pipeline.ts
environments.<name>.approval_rulesthe approval rules of one stage, in place of approval_rulesthe rules approval_rules takesa stage gate’s quorum in .chant/pipeline.ts
environments.<name>.holda manual hold: no release is promoted into the stagetrue, or a map with reason and until, an ISO 8601 timea stage’s hold
environments.<name>.hold.descriptionwhat the person who lifts a stage’s hold reads first, shown in the plan note, the promote it refuses and workspace statusone line of textdescription of a stage’s hold
environments.<name>.freezethe freeze windows in which no release is promoted into the stagea list of maps with from, until (ISO 8601 times) and reasona stage’s freeze
environments.<name>.urgent.rolethe role whose one proven approval passes the stage’s gate on an urgent promotea role name from .chant/trust.jsona stage gate’s urgent.role
environments.<name>.pause_after_rollbacka rollback of the stage pauses it until it is resumedtrue or falsea 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 applya 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-applya 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_faila 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 approvalhold, rollbacka stage’s onVerifyFail in .chant/pipeline.ts; hold when unset
environments.<name>.failure_tolerancethe failed runs a wave of many targets lets through before the stage stopsa 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>.afterthe stages a release applies in before the stage opens for ita list of environment names; the stage before it in promotion when unseta stage’s after
environments.<name>.queuehow a stage takes releases: one at a time, a newer release waiting replacing an older onereplacea stage’s queue
release.cuta merge cuts a release once the first stage appliedtrue or false; true when the product writes a pipelinerelease.cut
release.labelthe label the merge’s release is cut witha label, or auto for the next versionrelease.label, chant release cut <label>
release.firstthe version the merge’s release takes when the member has no release yeta version such as 0.1.0; 0.1.0 when unsetrelease.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 variablea stringEnvironmentSets.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 kepta forge secret’s name, or a map with one of forge_secret, aws_secrets_manager, gcp_secret_manager, azure_key_vaultEnvironmentSets.environments.<name>.secrets
environments.<name>.secrets.<variable>.forge_secret, config_sets.<set>.secrets.<variable>.forge_secretthe forge secret a set’s secret is kept ina secret or variable nameforgeSecret of an EnvironmentSecretRef
environments.<name>.imports, config_sets.<set>.importsthe shared sets a set takes first, in ordera list of config_sets namesEnvironmentSet.imports
config_sets.<set>a shared set of config and secrets that environments importa map of config, secrets and importsEnvironmentSets.configSets
agent.wave-refused.commandthe model command that summarizes a refused wave, prompt on stdin and summary on stdouta command lineWaveSummarySpec.command (CHANT_WAVE_SUMMARY_COMMAND)
agent.wave-refused.key_secretthe secret holding the summarizing model’s keya secret or variable nameWaveSummarySpec.keyEnv (CHANT_WAVE_SUMMARY_KEY_ENV)
agent.wave-refused.timeoutthe minutes the summary command may runa whole numberWaveSummarySpec.timeout (CHANT_WAVE_SUMMARY_TIMEOUT)
agent.wave-refused.max_runsthe most refused-wave summaries per daya whole numberWaveSummarySpec.maxRuns (CHANT_WAVE_SUMMARY_MAX_RUNS)
agent.wave-refused.max_cost_usdthe most US dollars the refused-wave summaries may cost per daya number above 0WaveSummarySpec.maxCostUsd (CHANT_WAVE_SUMMARY_MAX_COST_USD)
approval_rules.<rule>.proven, approval_rules[].provena rule’s count met only by approvers a seal or a review provestrue or falseproven of a quorum rule (GateQuorumRule)
environments.<name>.canarythe canary stage, whose soak holds every stage after ittrue or falsea stage’s canary in .chant/pipeline.ts, which takes a soak with at least one check
environments.<name>.soak.durationhow long a stage’s soak checks must keep passing after its last apply before a release is promoted into the next stagea duration, or 0 to wait for the checks alonea stage’s soak.duration in .chant/pipeline.ts
environments.<name>.soak.checks[].kindwhat one soak check readshttp, prometheus, cloudwatch-alarm, command, health, drift, apply, policya soak check’s kind (SoakCheck), with that kind’s settings beside it
environments.<name>.soak.checks[].on_failwhat a failing soak check does: start the soak over once it passes again, or hold with the elapsed time keptrestart, holda soak check’s onFail; restart when unset
environments.<name>.soak.overrides[].membersthe members an override’s duration and checks apply to, in place of the soak’sa list of member names or globsa soak override’s members (SoakOverride), with its duration and checks
recheck.schedulehow often a promotion a soak holds is tried againa five-field cron linerecheck.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 digesta map with member and output, or with secret naming where a secret is kepta stage’s publish in .chant/pipeline.ts
environments.<name>.publish.<artifact>.secret.forge_secretthe forge secret a secret artifact names; the artifact holds the name, never the secreta secret or variable nameforgeSecret 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 takesa map with stage and artifacta 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 nothinga map with prompt, schema and readsa stage’s agentSteps in .chant/pipeline.ts
environments.<name>.agent_steps.<step>.promptwhat the agent step’s model is askedtext, at most 4000 charactersprompt 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 ita map with stage and artifact, or with stepreads of a stage’s agent step
environments.<name>.agent_steps.<step>.schemathe JSON Schema the agent step’s answer must match; an answer that does not fails the step and holds the stagea JSON Schema (2020-12) objectschema of a stage’s agent step
environments.<name>.agent_steps.<step>.commandthe model command the agent step runs, prompt on stdin and answer on stdouta command linecommand of a stage’s agent step
environments.<name>.agent_steps.<step>.key_secretthe secret holding the agent step’s model keya secret or variable namekeyEnv of a stage’s agent step
environments.<name>.agent_steps.<step>.timeoutthe minutes the agent step’s model command may runa whole number from 1 to 360timeout of a stage’s agent step
environments.<name>.agent_steps.<step>.max_runsthe most runs of the agent step per daya whole numbermaxRuns of a stage’s agent step
environments.<name>.agent_steps.<step>.max_cost_usdthe most US dollars the agent step’s runs may cost per daya number above 0maxCostUsd of a stage’s agent step
control.releasethe <product>-applied dispatch carries the release digest of the applied committrue or falserelease of the control settings, sent as CHANT_CONTROL_RELEASE
approval_rules.<rule>.name, approval_rules[].namea rule’s or a group’s name, shown in its progress line, the plan note and the pending fact on the ledgerlowercase letters, digits, - and _name of a quorum rule or group (GateQuorumNode)
approval_rules.<rule>.all, approval_rules[].alla group of rules met when every rule in it is met; groups nest up to three deepa list or a map of rules and groups{ all: [...] } in a quorum (GateQuorumAll)
approval_rules.<rule>.any, approval_rules[].anya group of rules met when one rule in it is met; groups nest up to three deepa 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.

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.

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: true

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.

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.

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 generate gives 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.

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.

KeySetsValuechant
apply.whenwhen a change appliesmerge, pull-requestci.workflow
apply.mergewho merges a pull request that applied before mergemanual, autochant build --pr-loop --merge
apply.merge_token_envthe variable holding the token that mergesa secret or variable name--merge-token-env
apply.merge_methodhow the merge is mademerge, squash, rebase--merge-method
apply.requiresthe checks that pass before an applya list of check namesthe pull request pipeline’s required checks
branches.<branch>the members a branch applies, by globa list of globsci.branches
labels.<label>the members a labelled pull request plans, by globa list of globsci.labels
locks.whenwhen a pull request takes its locks, in the product’s stage wordsplan, apply, preview, upci.locks
locks.grainwhat one lock coversresource, stackci.lockGrain
waves.canarythe members that apply first, in a wave of their owna list of member names or globsthe 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 aftera list of member namesthe wave order of the op-waves spec
KeySetsValuechant
gate, environments.<name>.gate, stacks.<name>.gate, waves[].gatewhen a wave waits for an approvalalways, on-destructive, nevera wave’s gate (OpWaveGatePolicy)
approval, approval.mode, waves[].approval, environments.<name>.approvalwhich approvals of a plan countledger, pr-review, sealed, pull-request, prow-labelsa wave’s approval (GateApprovalSource)
approval_rules.<rule>.count, approval_rules[].counthow many distinct people approvea whole number, at least 1count of a quorum rule (GateQuorumRule)
approval_rules.<rule>.roles, approval_rules[].rolesthe roles a counted approver holdsa list of role namesroles of a quorum rule
approval_rules.<rule>.not_author, approval_rules[].not_authora counted approver who is not the change’s authortrue or falsenotAuthor of a quorum rule
policy.enginethe policy engineconftest, opaci.policy
policy.paththe directory of policy rules in the repositorya path relative to the repository rootci.policy.path
policy.namespacethe policy package the rules sit ina package nameci.policy
policy.sourcea shared rule set from another repositorya git source at a refci.policy.source
evidence.identitythe keyless identity that signs checksoidcPipelineEvidence.identity
evidence.runner_key_secretthe secret holding the runner key that signs checksa secret or variable namePipelineEvidence.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.

KeySetsValuechant
respond.wave-refusedwhat follows a wave that applied nothing because its plan moveddiff, summary, offCiResponses["wave-refused"]
respond.apply-failedwhat follows a failed applytriage, offCiResponses["apply-failed"]
respond.descriptionthe pull request description checkcheck, offCiResponses.description
respond.driftwhat follows a drift the scheduled check findsissue, pull-request, attribute, up, offthe scheduled drift Op’s response
drift.schedulewhen the scheduled drift check runsa five-field cron linethe scheduled drift Op’s cron
decide.backendthe service that answers a gate’s questionsa backend name--decide-backend

The keys under respond are chant’s event names, hyphenated as CiResponses spells them.

KeySetsValuechant
reports.bucketwhere the jobs keep their reports and run indexan s3://, gs://, az:// or file:// URLci.reportUrl
reports.urlthe browser address the reports are read atan https:// URLthe report links in the plan note
telemetry.endpointthe OTLP/HTTP base URL traces go toa URLOTEL_EXPORTER_OTLP_ENDPOINT
telemetry.headers_secretthe secret holding the OTLP headersa secret or variable nameOTEL_EXPORTER_OTLP_HEADERS
telemetry.trace_urla 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”
KeySetsValuechant
identitythe cloud identities the jobs log in asa map per cloud, with a role per stage word and per environmentci.identity and the ci-login trade
ephemerala copy of the members per open pull requesta mapci.prEnvironment
ephemeral.ttlhow long a pull request’s copy lives after its last updatea duration such as 48hci.prEnvironment.ttl
forgethe forge the repository is ongithub, gitlab, forgejoci.forge
forge_urlthe forge’s address, for a forge on another scheme or porta URLthe forge client’s base URL
forgesthe forges the pipelines are rendered forgithub, gitlab, forgejothe generators chant ci runs
KeySetsValuechant
token_env, control.token_env, agent.token_envthe variable holding the forge tokena secret or variable namethe forge client’s token
pass.secretsthe CI secrets the jobs read as variablesa list of secret namesthe jobs’ env
pass.varsthe CI variables the jobs reada list of variable namesthe jobs’ env
env.<name>plain variables every job setsa map of name to valuethe jobs’ env
KeySetsValuechant
notify.slackthe secret holding a Slack incoming webhook’s URLa secret or variable nameNotifyConfig.slack
notify.teamsthe secret holding a Microsoft Teams incoming webhook’s URLa secret or variable nameNotifyConfig.teams
notify.webhookthe secret holding a generic webhook’s URLa secret or variable nameNotifyConfig.webhook
notify.webhook_keythe secret holding the key a generic webhook’s events are signed witha secret or variable nameNotifyConfig.key
notify.eventsthe events sentwaiting, refused, failed, driftNotifyConfig.events
notify.relay_keythe secret holding the key the relay checks Approve and Decline witha secret or variable nameNotifyConfig.relay
notify.relay_namethe relay’s name as people mention it in Teamsa nameNotifyConfig.relayName

The relay has two settings, a secret key and a plain name, so each has its own key.

KeySetsValuechant
review.key_secretthe secret holding the reviewing model’s keya secret or variable namethe review agent step’s key variable
review.commandthe model command, prompt on stdin and answer on stdouta command linethe review agent step’s command
review.timeoutthe minutes the review command may runa whole numberthe 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_secretthe secret holding the agent model’s keya secret or variable namethe agent job’s key variable
agent.commentan agent that answers a comment commandtrue, or a mapthe comment agent’s jobs
agent.driftan agent that opens a pull request for a drifted membertrue, or a mapthe drift Op’s agent
agent.alertan agent that opens a pull request for a production alert the relay recordedtrue, or a mapproductAlertAgent, the alert agent’s workflow
agent.apply-failedan agent that opens a pull request for a failed apply, beside the triage commenttrue, or a mapproductApplyFailedAgent, the failed-apply agent’s workflow, and CHANT_AGENT_FACTS=apply-failed on the apply jobs
agent.verify-failedan agent that opens a pull request when a stage’s verify or soak fails after an applytrue, or a mapproductVerifyFailedAgent, the failed-verify agent’s workflow, and agentFacts with verify-failed among its triggers on the pipeline’s jobs
agent.schedulean agent that does a recurring task on a cron and opens a pull requesta map with cron and taskproductScheduleAgent, the scheduled agent’s workflow
agent.schedule.cronwhen the scheduled agent runsa five-field cronthe scheduled agent’s schedule
agent.schedule.taskwhat the scheduled agent does on each runtext, at most 4000 charactersthe scheduled agent’s task
agent.alert.window, agent.apply-failed.window, agent.schedule.window, agent.verify-failed.windowthe minutes in which one member’s alerts, failed applies, failed verifies or scheduled runs join one agent runa whole number from 1 to 1440, 15 by defaultthe agent’s window
agent.alert.relay_key_secret, agent.apply-failed.relay_key_secret, agent.verify-failed.relay_key_secretthe secret holding the relay key the alert, failed-apply and failed-verify facts are signed and checked witha secret or variable namethe agent’s relayKeyEnv, and the pipeline jobs’ agentFacts.relayKeyEnv
control.repothe control repository told after each apply on mergehost/owner/name or a URLthe <product>-applied dispatch
KeySetsValuechant
parallelism, environments.<name>.parallelismhow many members one job applies at oncea whole numberthe wave job’s parallelism
runner, environments.<name>.runnerthe runner every job runs on, or one per stage worda label, a list of labels, a runner group, or a map of default and the stage wordsa wave’s runner
imagethe image every job runs inan image reference, or a map with namethe jobs’ container

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.

An audit line names the event that happened, in the past tense. PRODUCT_AUDIT_KINDS lists them.

KindRecordsAlso read
approval-requesteda plan that reached its gate and waits for an approval
approvedan approval of a plan’s digestapproval (terragucci)
revokedan approval or an override a commit removed from the ledgerapproval-revoked, override-revoked (terragucci)
override-requesteda policy denial that waits for an override
override-recordedan override of a denialoverride (terragucci, sql-yodeler)
override-spentan override an apply cited
applieda wave’s apply, whichever way it ended; result says howapply (terragucci)
refusedan apply the gate or a check refused
hooka hook’s outcome at a wave
recordedany 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.

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.

ProductAcceptsFor
terraguccigate: on-destroygate: on-destructive
terragucciapply.branchesbranches.<branch>
terraguccilocks: <when>locks.when
terraguccidrift: <cron>drift.schedule
terraguccioidcidentity
terragucciurlforge_url
terraguccinotify.relaynotify.relay_name
plywoodenvironments, a glob to a name or { name, url }forge_environments.<glob>
plywoodapproval_rules.<name>.quorumapproval_rules.<rule>.count
plywoodapproval_rules.<name>.roleapproval_rules.<rule>.roles
plywoodpolicy.regopolicy.path
plywoodrespond.wave_refusedrespond.wave-refused
plywoodrespond.apply_failedrespond.apply-failed
plywoodrespond.drift: nonerespond.drift: off
plywoodreports.url, a storage URLreports.bucket
plywoodtelemetry.headers_envtelemetry.headers_secret
plywoodreview_stacksephemeral
plywoodreview_stacks.ttlephemeral.ttl
plywoodforge.kindforge
plywoodforge.urlforge_url
plywoodpass, a list or a mappass.secrets
plywoodnotify.slack.webhooknotify.slack
plywoodnotify.teams.webhooknotify.teams
plywoodnotify.webhook.urlnotify.webhook
plywoodnotify.webhook.keynotify.webhook_key
plywoodnotify.onnotify.events
plywoodnotify.relaynotify.relay_key
plywoodreview.key_envreview.key_secret
plywoodagent.key_envagent.key_secret
plywoodrunnersrunner
plywoodrollback --env <env>rollback <env>
sql-yodelerci.loginidentity
sql-yodelernotify.keynotify.webhook_key
sql-yodelernotify.relaynotify.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.

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 product accepts 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;
  • promotion is an error unless it is a list of distinct environment names, each a key of environments when 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.

chant