Skip to content

fix(config): add [security.guardrail] stub to default.toml for migrate-config#2161

Merged
bug-ops merged 2 commits intomainfrom
fix/2158-guardrail-migration
Mar 23, 2026
Merged

fix(config): add [security.guardrail] stub to default.toml for migrate-config#2161
bug-ops merged 2 commits intomainfrom
fix/2158-guardrail-migration

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Mar 23, 2026

Summary

  • --migrate-config was not injecting commented [security.guardrail] defaults for configs that have [security] but no [security.guardrail] section
  • Root cause: the reference config/default.toml had no [security.guardrail] entry; the migration logic can only inject what exists in the reference
  • Fix: add [security.guardrail] with all default field values and comments to config/default.toml; no migration code changes required

Fixes #2158.

Test plan

  • cargo nextest run --config-file .github/nextest.toml --workspace --lib --bins — all 6003 tests pass including migrate::tests::security_without_guardrail_gets_guardrail_commented
  • cargo +nightly fmt --check — clean
  • cargo clippy --workspace -- -D warnings — clean

bug-ops added 2 commits March 23, 2026 14:48
…h-skills

Add crates/zeph-skills/skills -> ../../.zeph/skills symlink so build.rs
and bundled.rs reference $CARGO_MANIFEST_DIR/skills instead of the
brittle ../../.zeph/skills traversal.
…e-config

Configs with [security] but no [security.guardrail] section were not
getting the guardrail commented defaults injected by --migrate-config.
The migration logic derives its reference from default.toml; the stub
was simply absent, so nothing could be injected.

Adds [security.guardrail] with all default field values and comments.
No migration code changes required.

Fixes #2158.
@github-actions github-actions bot added documentation Improvements or additions to documentation skills zeph-skills crate rust Rust code changes bug Something isn't working config Configuration file changes size/S Small PR (11-50 lines) labels Mar 23, 2026
@bug-ops bug-ops enabled auto-merge (squash) March 23, 2026 14:49
@bug-ops bug-ops merged commit d9a092f into main Mar 23, 2026
25 checks passed
@bug-ops bug-ops deleted the fix/2158-guardrail-migration branch March 23, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working config Configuration file changes documentation Improvements or additions to documentation rust Rust code changes size/S Small PR (11-50 lines) skills zeph-skills crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(config): migration does not add guardrail keys for configs without [security.guardrail]

1 participant