/gaia-config-test
user-facingWhat it does
/gaia-config-test edits the test_execution section of .gaia/config/project-config.yaml. The test_execution section maps the three test tiers (tier_1, tier_2, tier_3) to pipeline placements (local, ci-pre-merge, ci-post-merge, deployment, post-deploy). The editor preserves all YAML comments and formatting outside the edited section. Every edit goes through a diff preview and confirmation gate before writing.
When to use it
- You need to add, remove, or modify entries in the
test_executionconfiguration section. - You set up a new project and need to configure the
test_executionsection.
Prerequisites
- project-config.yaml must exist. Run
/gaia-initto create one if missing.
How to invoke
/gaia-config-test
/gaia-config-test --tier 1
/gaia-config-test --tier 2 --placement ci-pre-merge
What it does step by step
- Locate project-config.yaml Resolves the configuration file path.
- Extract the test_execution section Reads the current test_execution block. If the section is missing, offers to scaffold a default.
- Present edit menu Shows the current test_execution configuration and an operation menu (add, remove, edit, view, exit).
- Apply operation Collects the new values and validates them. Placement values must be one of: local, ci-pre-merge, ci-post-merge, deployment, post-deploy.
- Diff preview and confirmation Shows a unified diff of what will change. You must confirm before anything is written.
- Write back Writes only the modified section, preserving all other content byte-for-byte.
- Suggest validation Recommends running
/gaia-config-validateto confirm the file still passes schema validation.
Inputs
| Input | Source | Description | Example |
|---|---|---|---|
--tier | Argument (optional) | Tier to edit (1, 2, or 3). | /gaia-config-test --tier 1 |
--placement | Argument (optional) | Placement value: local, ci-pre-merge, ci-post-merge, deployment, or post-deploy. | /gaia-config-test --placement local |
Outputs
| Output | Location | Description |
|---|---|---|
| Updated test_execution section | .gaia/config/project-config.yaml | The modified test_execution configuration. |
Example session
> /gaia-config-test
Current test_execution configuration:
tier_1:
placement: local
runner: vitest
Operations: [s] set key [r] remove key [v] view [x] exit
> s
Key: e2e.adapter
Value: playwright-e2e
Diff preview:
test_execution:
tier_1:
placement: local
runner: vitest
+ e2e:
+ adapter: playwright-e2e
Apply this edit? [y/n]
> y
Test_execution section updated. Run /gaia-config-validate to verify.
What to run next
/gaia-config-validate-- validate the modified configuration file./gaia-config-show test_execution-- view the section after editing.
Troubleshooting
test_execution section not found
The section does not exist in your config file. The command offers to scaffold a default:
test_execution:
tier_1:
placement: local
tier_2:
placement: ci-pre-merge
tier_3:
placement: ci-post-mergeEdit cancelled
You chose not to apply the edit. The file remains unchanged.