Repository navigation
Description
Summary
5 of 11 cases in packages/junior-evals/evals/memory/workflows.eval.ts are red. The evals themselves have been audited and are correct (see below) — the reds document real misbehavior on the live memory write/forget tool paths: during the turn the agent narrates that persistence failed or is unavailable ("nothing was written to an external store", "the memory skill isn't available", "could not remove the preference"). Passive extraction, recall/injection, and read paths work.
Failing cases (post-audit):
- explicit first-person preference → agent says memory not persisted (rubric fail condition "do not say the memory failed to save" fires correctly)
- first-person opinion with rewritten wording → agent explicitly refuses persistence
- explicit shared task procedure → 0.50, frames shared knowledge as a "preference" (borderline)
- passive operational knowledge recall → 0.50, first claims no relevant memory then recovers (partial)
- forget a remembered preference → agent says it could not remove it
Why "green on main" was an illusion
The file had the same fixture bug as multi-actor-provenance.eval.ts (fixed on the #773 Track 1 branch): label-suffixed thread_ts values (e.g. "17000000.memory-explicit") fail parseSlackMessageTs, so the runtime keyed memories by per-message messageTs while the eval's readMemories filtered on the thread-based sourceKey. Every positive DB assertion could never match and every no-store assertion passed vacuously. The fixtures are now valid (17000000.000001…000011), the assertions are meaningful for the first time, and one case ("organic conversation teaches a task procedure") went green purely from the fixture fix.
Classification (provisional)
The live tool wiring (tools.ts, plugin tool registration, live requester derivation) is untouched by the #773 Track 1 branch — only passive extraction, session-log provenance, the run projection, and the actor rename changed. So these reds are most consistent with a pre-existing bug that vacuous assertions had been masking, not a #773 regression. Definitive verdict: run cases 1 and 5 on the committed baseline (stash or a main checkout) — that is the first step of this issue.
Eval audit notes (already applied on the branch)
- Fixtures: fixed (valid Slack ts).
- DB assertions: now non-vacuous, scoped by sourceKey/scope/subjectType — contract-level, no extraction-internal leakage (no overfitting).
- Rubrics: fail conditions are precise and fired against genuine non-persistence narration, not over-read.
- Scenarios: realistic and satisfiable.
Per maintainer policy: red-but-correct evals stay red; do not relax them to green. Fix the product behavior.
First steps
- Baseline run of cases 1 and 5 against main to confirm pre-existing vs Audit actor/instruction provenance across plugins #773-branch regression.
- Instrument the live
createMemory/removeMemorytool path in the eval environment (why does the agent see the tool as unavailable/failing?). - Fix the product path; cases must go green without touching the eval file.
Found during #773 Track 1 verification.
Activity
fix(evals): Repair memory eval fixtures, rubrics, and scenarios
feat(chat)!: Bind per-message actor provenance through runs, plugins,…
dcramer commentedon Jul 8, 2026
Deferred tool discovery plan
Current working hypothesis: the memory workflow failures are primarily a discoverability problem, not necessarily a memory storage failure. Memory tools are registered as deferred plugin tools, so the model only reaches them if it already knows to call
searchToolsand thenexecuteTool. That path is too implicit.Proposed direction:
searchToolsandexecuteTooldirectly for now.sourceas the stable grouping concept for deferred catalog tools. Examples:memory, futuremcp:sentry, futuremcp:linear. Avoid separate model-facing terms like namespace/domain/owner for the same concept.searchToolsdescription to advertise deferred sources, not every tool. Example:source?: string | nullfilter tosearchToolsalongsidequeryandmax_results.source: search all deferred catalog tools;source: "memory": search/list only memory tools;sourcewhen searching a single source. For cross-source searches, include only compact per-toolsource: "memory", not expanded plugin/MCP metadata.memorywith a short description likeLong-term memory storage, recall, listing, and removal.mcp:<provider>) in the same catalog later, while current MCP activation rules can remain separate until we fold them in.Verification plan:
Codex prior art: Codex's
tool_searchdescription advertises that tools are available from known sources and that some tools may need discovery. Junior should adopt that source-advertising pattern, but keepexecuteToolas the execution bridge because Junior does not currently load newly discovered tools into the next model turn.dcramer commentedon Jul 8, 2026
should be good here now.. still need to merge mcp into it but future