Skip to content

fix(tests): memory_recall_accuracy compiles again — 16 tests that ran NOWHERE for days (#407) - #2289

Merged
joelteply merged 1 commit into
canaryfrom
fix/407-memory-recall-test-persona-ref
Aug 14, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/407-memory-recall-test-persona-ref

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

What was actually broken

The memory API moved from &str to &PersonaRef — load_corpus, multi_layer_recall and consciousness_context all take the typed ref now. This test file kept handing them the bare PERSONA_ID literal, so the test binary stopped compiling: 12 × E0308 across 12 call sites.

Why it looked like a Windows problem and wasn't

job command builds test binaries?
macOS cargo test -p continuum-core --lib no
Windows cargo check -p continuum-core --lib --tests yes

Only the second builds --tests. So only Windows went red — for days, on every canary push — and the tracking card (#407) reads "Continuum Windows CI has been RED."

It was never Windows-specific, and it was never a failing test. The binary did not compile on any platform; cargo check -p continuum-core --tests reproduces all 12 errors on macOS in one command.

The part that matters: all 16 of these tests — semantic recall, associative recall by tags, cross-context, decay-resurface, multi-layer convergence, corpus replacement, recall performance — had not executed anywhere. A red Windows column reads as a platform quirk. What it actually meant was that a whole recall-accuracy suite was dark.

The fix

One persona() constructor beside PERSONA_ID; the 12 sites pass &persona(). The id string still lives in exactly one place, and the six struct fields that legitimately want a String still use PERSONA_ID.into() — untouched. The one call that deliberately passes an unknown persona to assert an error keeps doing exactly that, now typed.

Verified

cargo check -p continuum-core --tests          # clean (was 12 errors)
cargo test -p continuum-core --test memory_recall_accuracy
    16 passed; 0 failed

Compiling was not the bar — they pass.

Scope

Only core/continuum-core/tests/memory_recall_accuracy.rs. Note for anyone reproducing: cargo fmt -p continuum-core reformats ~15 unrelated files on current canary, so the crate is not rustfmt-clean; that churn was reverted and is not in this diff.

Unblocks the Windows column for every open PR — it is the only failure on #2286, #2287 and #2288, none of which touch this file.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

… NOWHERE for days (#407)

The memory API moved from `&str` to `&PersonaRef` — `load_corpus`,
`multi_layer_recall` and `consciousness_context` all take the typed ref now (an
identity is a type, not loose text). This test file kept handing them the bare
`PERSONA_ID` literal, so the test binary stopped compiling: 12 × E0308 across 12
call sites.

WHY IT LOOKED LIKE A WINDOWS PROBLEM AND WASN'T. The macOS job runs
`cargo test -p continuum-core --lib` — lib only. The Windows job runs
`cargo check -p continuum-core --lib --tests`. Only the second one builds test
binaries, so only Windows went red, for days, on every canary push, and the card
that tracked it (#407) reads "Continuum Windows CI has been RED". It was never
Windows-specific and it was never a failing test: the binary did not compile on
any platform, and `cargo check --tests` reproduces all 12 errors on macOS in one
command. Meanwhile all 16 of these tests — semantic recall, associative recall by
tags, cross-context, decay-resurface, multi-layer convergence, corpus replacement
— had not executed anywhere. A red Windows column read as a platform quirk;
what it actually meant was that a whole recall-accuracy suite was dark.

Fix: one `persona()` constructor beside `PERSONA_ID`, and the 12 sites pass
`&persona()`. The id string still lives in exactly one place, and the struct
fields that legitimately want a `String` still use `PERSONA_ID.into()` — six of
those, untouched. The one call that deliberately passes an unknown persona to
assert an error keeps doing exactly that, now typed.

Verified: `cargo check -p continuum-core --tests` clean (was 12 errors), and
`cargo test -p continuum-core --test memory_recall_accuracy` → 16 passed, 0 failed.
Compiling was not the bar; they pass.

This unblocks the Windows column for every open PR — it is the only failure on
#2286, #2287 and #2288, none of which touch this file.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit a161749 into canary Aug 14, 2026
5 checks passed
@joelteply
joelteply deleted the fix/407-memory-recall-test-persona-ref branch August 14, 2026 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant