Skip to content

feat(config): enable 8 validated settings by default (#2101)#2109

Merged
bug-ops merged 1 commit intomainfrom
feat-issue-2101-update-config-defaults-based-on
Mar 22, 2026
Merged

feat(config): enable 8 validated settings by default (#2101)#2109
bug-ops merged 1 commit intomainfrom
feat-issue-2101-update-config-defaults-based-on

Conversation

@bug-ops
Copy link
Owner

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

Summary

Closes #2101. Enables 8 runtime settings by default, each validated through 37-61 live CI sessions without issues.

Changes

Setting Old Default New Default Sessions
memory.semantic.temporal_decay_enabled false true (half_life=30d) 48
memory.semantic.mmr_enabled false true (lambda=0.7) 48
memory.semantic.importance_enabled false true (weight=0.15) 37
tools.anomaly.enabled false true 43
tools.audit.enabled false true (stdout) 43
cost.enabled false true (max_daily=0/unlimited) 43
autosave_assistant false true (min_length=20) 61
vector_backend "qdrant" "sqlite" 61

Additionally fixes a bug where max_daily_cents = 0 immediately exhausted the budget instead of meaning "unlimited".

Files Changed

  • config/default.toml + crates/zeph-config/config/default.toml — updated values
  • crates/zeph-config/src/memory.rsVectorBackend default → Sqlite, semantic fields default → true
  • crates/zeph-config/src/root.rsautosave_assistant default → true
  • crates/zeph-config/src/features.rsCostConfig enabled → true, max_daily_cents → 0
  • crates/zeph-tools/src/config.rsAnomalyConfig/AuditConfig enabled → true, tests updated
  • crates/zeph-core/src/cost.rs — budget guard: > 0 check makes 0 mean unlimited
  • crates/zeph-core/src/agent/builder.rs — test now explicitly sets anomaly.enabled=false

Test plan

  • cargo +nightly fmt --check — pass
  • cargo clippy --workspace --features full -- -D warnings — pass (0 warnings)
  • cargo nextest run --workspace --features full --lib --bins — 6365 passed, 15 skipped
  • Existing Qdrant users: set vector_backend = "qdrant" explicitly in config (behavioral change documented in CHANGELOG)

Based on 37-61 live CI sessions without issues, the following settings
are now enabled by default:

- memory.semantic: temporal_decay (half_life=30d), mmr (lambda=0.7),
  importance scoring (weight=0.15)
- tools: anomaly detection, audit logging (stdout)
- cost tracking (max_daily_cents=0, unlimited)
- autosave_assistant (min_length=20)
- vector_backend changed from qdrant to sqlite (zero-dependency default)

Also fix cost budget guard: max_daily_cents=0 now correctly means
unlimited instead of immediately exhausting the budget.
@github-actions github-actions bot added enhancement New feature or request size/M Medium PR (51-200 lines) documentation Improvements or additions to documentation rust Rust code changes core zeph-core crate config Configuration file changes and removed size/M Medium PR (51-200 lines) labels Mar 22, 2026
@bug-ops bug-ops enabled auto-merge (squash) March 22, 2026 01:40
@bug-ops bug-ops merged commit b0796e0 into main Mar 22, 2026
25 checks passed
@bug-ops bug-ops deleted the feat-issue-2101-update-config-defaults-based-on branch March 22, 2026 01:47
bug-ops added a commit that referenced this pull request Mar 22, 2026
…vior

Adds check_budget_unlimited_when_max_daily_cents_is_zero to cover the
case where max_daily_cents=0 means unlimited — the fix in #2109 was
correct but lacked a test for this code path.

Closes #2110
bug-ops added a commit that referenced this pull request Mar 22, 2026
…vior (#2111)

Adds check_budget_unlimited_when_max_daily_cents_is_zero to cover the
case where max_daily_cents=0 means unlimited — the fix in #2109 was
correct but lacked a test for this code path.

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

Labels

config Configuration file changes core zeph-core crate documentation Improvements or additions to documentation enhancement New feature or request rust Rust code changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update config defaults based on 61 CI sessions of live validation

1 participant