Skip to content

fix(core): wire corrections write path regardless of LearningConfig::enabled#1918

Merged
bug-ops merged 3 commits intomainfrom
fix/1910-corrections-write-path
Mar 16, 2026
Merged

fix(core): wire corrections write path regardless of LearningConfig::enabled#1918
bug-ops merged 3 commits intomainfrom
fix/1910-corrections-write-path

Conversation

@bug-ops
Copy link
Owner

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

Summary

  • detect_and_record_corrections() was gated behind is_learning_enabled(), which defaults to false — making zeph_corrections Qdrant collection and user_corrections SQLite table permanently empty
  • Correction detection and persistence are memory/observability primitives independent of skill auto-improvement; only record_skill_outcomes() requires the learning gate
  • Removed !self.is_learning_enabled() early-return from detect_and_record_corrections(); moved guard to wrap only record_skill_outcomes()

Test plan

  • New regression test correction_stored_when_learning_disabled verifies corrections reach user_corrections when LearningConfig::enabled = false
  • cargo +nightly fmt --check passes
  • cargo clippy --workspace --features full -- -D warnings passes (0 warnings)
  • cargo nextest run --workspace --features full --lib --bins passes (6044 tests)

Closes #1910

bug-ops added 2 commits March 16, 2026 17:12
…enabled

detect_and_record_corrections() was gated behind is_learning_enabled(), which
defaults to false. Correction detection and persistence (SQLite + Qdrant) are
memory/observability primitives that should always run when correction_detection
is enabled (default: true). Only skill outcome recording remains behind the
learning gate.

Adds regression test correction_stored_when_learning_disabled that verifies
corrections reach the user_corrections table when enabled=false.

Closes #1910
@github-actions github-actions bot added bug Something isn't working size/M Medium PR (51-200 lines) documentation Improvements or additions to documentation rust Rust code changes core zeph-core crate and removed bug Something isn't working size/M Medium PR (51-200 lines) labels Mar 16, 2026
@bug-ops bug-ops enabled auto-merge (squash) March 16, 2026 16:14
@github-actions github-actions bot added bug Something isn't working size/M Medium PR (51-200 lines) labels Mar 16, 2026
@bug-ops bug-ops merged commit 2cd3e09 into main Mar 16, 2026
20 checks passed
@bug-ops bug-ops deleted the fix/1910-corrections-write-path branch March 16, 2026 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working core zeph-core crate documentation Improvements or additions to documentation rust Rust code changes size/M Medium PR (51-200 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(memory): zeph_corrections Qdrant collection never populated — self-learning corrections not persisted

1 participant