Skip to content

feat(ci-product): one key vocabulary for product config - #5359

Merged
lex00 merged 1 commit into
mainfrom
ci-product-vocabulary
Nov 20, 2026
Merged

lex00 merged 1 commit into
mainfrom
ci-product-vocabulary

Conversation

@lex00

@lex00 lex00 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Closes #5343

This settles one key and one set of value words per product config setting, read from terragucci.yml, plywood.yml and yodel.config.ts as their main branches have them today.

The reference page is docs/src/content/docs/reference/ci-product-config.mdx, under Reference > CI Product Config Keys, where each table row gives a key with its value words and the chant field it maps to, and the spelling rules a new key follows come first. After the tables comes a stage section that each delivery mechanism adds its keys to, followed by the release command words, the audit entry kinds and the alias table.

The code lives in packages/core/src/ci-product-words.ts, exported through @intentius/chant/ci-product, where PRODUCT_CONFIG_WORDS holds the table the page shows. productConfigProblems(config, { product, case, scopes }) warns on each alias the product accepts and names the key; it fails an alias set beside its key and a value outside the key's words. It also checks that promotion lists distinct environment names that environments declares. PRODUCT_CONFIG_WORDS_FLOOR is NEXT_RELEASE, and the floor table is regenerated.

For INTENTIUS/terragucci#1492 and INTENTIUS/plywood#154, the promotion order key is promotion: [dev, staging, prod] in every product. plywood's environments keeps its stack-glob map, which the page lists as the alias of forge_environments. The product writes the list into the member's chant.config.ts environments. The commands are <product> promote --to <env> [--release <label>] and <product> rollback <env> --release <label>, with chant's --from, --allow-skip and --dry-run; plywood keeps rollback --env <env> as its alias. A test holds the page and the table to the same keys, aliases and words.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci-product: one key vocabulary for product config

1 participant