Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

fix(observer): ignore historical lock diagnostics in health (#3920)

Qin Haojie41f638fbe42c
diff --git a/openviking/service/debug_service.py b/openviking/service/debug_service.py
index 47d696895..1e792d2d3 100644
--- a/openviking/service/debug_service.py
+++ b/openviking/service/debug_service.py
@@ -180,17 +180,17 @@ class ObserverService:
waiting = snapshot.get("waiting_locks", 0)
stale = snapshot.get("stale_locks_removed", 0)
conflicts = snapshot.get("conflicts", [])
- has_errors = bool(conflicts) or stale > 0
lines = [
f"Active locks: {active}",
f"Waiting locks: {waiting}",
f"Stale locks removed: {stale}",
f"Conflicts: {len(conflicts)}",
]
+ # Conflicts and stale removals are retained diagnostics, not current failures.
return ComponentStatus(
name="lock",
- is_healthy=not has_errors,
- has_errors=has_errors,
+ is_healthy=True,
+ has_errors=False,
status="\n".join(lines),
)