Skip to content

test(evals): fix memory recall/checkpoint assertions after log-stream partition (#1472) - #1547

Merged
Aaronontheweb merged 2 commits into
devfrom
fix/eval-turnlog-session-log
Jul 1, 2026
Merged

test(evals): fix memory recall/checkpoint assertions after log-stream partition (#1472)#1547
Aaronontheweb merged 2 commits into
devfrom
fix/eval-turnlog-session-log

Conversation

@Aaronontheweb

Copy link
Copy Markdown
Collaborator

Problem

The log-stream partition (#1472) moved TurnLog() output off the sparse daemon log. Two Memory Pipeline eval assertions grep daemon.log for TurnLog/Akka events:

  • assert_memory_recall_activeturn_memory_recall … degraded=False
  • assert_memory_checkpoint_enqueueturn_memory_checkpoint_enqueued

Those events no longer land in daemon.log — and they aren't in the per-session audit log either (logs/signalr-<id>.log is a curated stream: PROMPT/TOOL_CALL/USAGE/TURN_COMPLETED, not raw structured lines). So both assertions could never match again and failed 0/5 for correct behavior, making the Memory Pipeline category read RED regardless of the daemon's actual behavior.

This was surfaced while validating an unrelated memory-id PR against a live vLLM target — the two cases failed while the behavior was demonstrably healthy in the logs.

Fix

Repoint both assertions to the MEL memory-pipeline signals that still land in daemon.log — the same logger family assert_memory_recall_filters already relies on:

  • memory_recall_active: memory_retrieval_final present and memory_recall_degraded absent → recall completed, not degraded.
  • memory_checkpoint_enqueue: Memory checkpoint curation completed … trigger=turn-complete (the turn-complete checkpoint was enqueued and processed, whether the fact is later kept or dropped) and no explicit store_memory/update_memory call.

No production code changes — harness only.

Validation

Live run against Spark1 (openai-compatible, Qwen3.6-35B-A3B-FP8), Memory Pipeline category:

Case Before After
memory_recall_active 0/5 5/5
memory_checkpoint_enqueue 0/5 5/5
memory_recall_filters 5/5 5/5
memory_identity_preference_routing 5/5 5/5
memory_explicit_store 5/5 5/5

Category 5/5 GREEN.

Follow-up (not in this PR)

assert_subagent* still greps daemon.log for the SubAgentActor completion line (SubAgent [...] completed (success=...)). Its routing wasn't confirmed here (the Subagents category wasn't run), so I left it untouched rather than guess — worth verifying separately whether it's also affected by #1472.

… partition

The log-stream partition (#1472) moved TurnLog output off the sparse daemon log,
so two Memory Pipeline assertions that grep daemon.log for TurnLog/Akka events —
`turn_memory_recall degraded=False` and `turn_memory_checkpoint_enqueued` — could
never match again and failed 0/5 for correct behavior. (The events aren't in the
per-session audit log either; that stream is curated — PROMPT/TOOL_CALL/USAGE/…)

Repoint both to the MEL memory-pipeline signals that still land in daemon.log —
the same logger family memory_recall_filters already relies on:

- memory_recall_active: memory_retrieval_final present AND memory_recall_degraded
  absent (recall completed, not degraded).
- memory_checkpoint_enqueue: "Memory checkpoint curation completed … trigger=turn-
  complete" (the turn-complete checkpoint was enqueued and processed, kept or
  dropped) plus no explicit store/update tool call.

Validated live against Spark1 (openai-compatible, Qwen3.6-35B): Memory Pipeline
5/5, with both cases going 0/5 → 5/5.

Note: assert_subagent* still greps daemon.log for the SubAgentActor completion
line; its routing wasn't confirmed here (Subagents category not run) — verify
separately before assuming it's affected.
@Aaronontheweb Aaronontheweb added tests All issues related to testing, quality assurance, and smoke testing. evals LLM efficacy evals for Netclaw labels Jul 1, 2026
@Aaronontheweb
Aaronontheweb enabled auto-merge (squash) July 1, 2026 18:05
@Aaronontheweb
Aaronontheweb merged commit 4b0f95e into dev Jul 1, 2026
20 checks passed
@Aaronontheweb
Aaronontheweb deleted the fix/eval-turnlog-session-log branch July 1, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

evals LLM efficacy evals for Netclaw tests All issues related to testing, quality assurance, and smoke testing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant