Project Defaults (Lightweight Config)
Project Defaults (Lightweight Config)
Use a local project config to avoid repeating the same gait gate eval flags.
Default lookup path:
.gait/config.yaml
Command flags:
--configto load a custom config file--no-configto disable config lookup for one command
Minimal Example
gate:
policy: examples/policy/base_high_risk.yaml
profile: oss-prod
key_mode: prod
private_key: examples/scenarios/keys/approval_private.key
credential_broker: stubWith this file present, the repeated command becomes:
gait gate eval --intent examples/policy/intents/intent_delete.json --jsonSupported `gate` Defaults
policyprofilekey_modeprivate_keyprivate_key_envapproval_public_keyapproval_public_key_envapproval_private_keyapproval_private_key_envrate_limit_statecredential_brokercredential_env_prefixcredential_refcredential_scopescredential_commandcredential_command_argscredential_evidence_pathtrace_path
Guardrails
- CLI flags always override config values.
- Missing default
.gait/config.yamlis ignored. - Missing explicit
--configreturns an input error. - Keep sensitive key files out of git and prefer
*_envoptions in shared repos.
Hardened OSS Template
Use the hardened template for production starts:
mkdir -p .gait
cp examples/config/oss_prod_template.yaml .gait/config.yamlTemplate path:
examples/config/oss_prod_template.yaml
Migration Notes (Permissive -> Strict)
- Set
gate.profile: oss-prod. - Set
gate.key_mode: prodand move key material to env-backed sources. - Configure
mcp_servewith token auth and strict verdict status. - Add retention TTL values (
trace_ttl,session_ttl,export_ttl). - Validate with
gait doctor --production-readiness --json.