Repository navigation
fix(tests): memory_recall_accuracy compiles again — 16 tests that ran NOWHERE for days (#407) - #2289
Merged
Merged
Conversation
… 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was actually broken
The memory API moved from
&strto&PersonaRef—load_corpus,multi_layer_recallandconsciousness_contextall take the typed ref now. This test file kept handing them the barePERSONA_IDliteral, so the test binary stopped compiling: 12 ×E0308across 12 call sites.Why it looked like a Windows problem and wasn't
cargo test -p continuum-core --libcargo check -p continuum-core --lib --testsOnly 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 --testsreproduces 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 besidePERSONA_ID; the 12 sites pass&persona(). The id string still lives in exactly one place, and the six struct fields that legitimately want aStringstill usePERSONA_ID.into()— untouched. The one call that deliberately passes an unknown persona to assert an error keeps doing exactly that, now typed.Verified
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-corereformats ~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