Skip to content

feat(memory): wire five_signal consolidation daemon, Prometheus metrics, and causal goal entity#4418

Merged
bug-ops merged 2 commits into
mainfrom
4402-five-signal-wiring
May 18, 2026
Merged

feat(memory): wire five_signal consolidation daemon, Prometheus metrics, and causal goal entity#4418
bug-ops merged 2 commits into
mainfrom
4402-five-signal-wiring

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented May 18, 2026

Summary

Test plan

  • 10194 workspace tests pass (cargo nextest run --workspace --features desktop,ide,server,chat,pdf,scheduler --lib --bins)
  • 3 regression tests added: sync_five_signal_exports_counters, sync_five_signal_no_double_count, compute_none_goal_returns_empty_map
  • cargo +nightly fmt --check clean
  • cargo clippy -p zeph-memory -p zeph --features desktop,ide,server,chat,pdf,scheduler -- -D warnings clean
  • RUSTFLAGS="-D warnings" cargo check --workspace --features full clean

Closes #4402, #4404, #4405

@github-actions github-actions Bot added documentation Improvements or additions to documentation memory zeph-memory crate (SQLite) rust Rust code changes dependencies Dependency updates enhancement New feature or request size/L Large PR (201-500 lines) labels May 18, 2026
@bug-ops bug-ops enabled auto-merge (squash) May 18, 2026 19:27
@bug-ops bug-ops force-pushed the 4402-five-signal-wiring branch from 67bfc4d to da08349 Compare May 18, 2026 19:27
bug-ops added 2 commits May 18, 2026 21:42
…cs, and causal goal entity

#4402: register ConsolidationHandler with zeph-scheduler at bootstrap under
TaskKind::Custom("five_signal_consolidation") when
memory.five_signal.consolidation_daemon.enabled = true. Previously the daemon
was fully implemented but never scheduled, making FR-010/FR-011/FR-012 dead code.

#4404: export FiveSignalMetrics to Prometheus via spawn_metrics_sync_with_five_signal.
Adds four counters (five_signal_recall_total, consolidation_daemon_runs_total,
consolidation_promoted_total, consolidation_demoted_total) with delta tracking to
prevent double-counting. Requires prometheus feature.

#4405: thread goal_entity_id from call sites through recall_routed,
recall_routed_async, recall_merge_and_rank, and apply_five_signal_scoring to
CausalDistanceComputer::compute. Previously hardcoded None meant the causal
distance signal was always zero regardless of config. Existing call sites pass
None; future callers supply TurnContext.current_goal_entity_id per FR-006.

Closes #4402, #4404, #4405
@bug-ops bug-ops force-pushed the 4402-five-signal-wiring branch from 85c356b to 4246fac Compare May 18, 2026 19:42
@bug-ops bug-ops merged commit 6f00bfc into main May 18, 2026
32 checks passed
@bug-ops bug-ops deleted the 4402-five-signal-wiring branch May 18, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependency updates documentation Improvements or additions to documentation enhancement New feature or request memory zeph-memory crate (SQLite) rust Rust code changes size/L Large PR (201-500 lines)

Projects

None yet

1 participant