Repository navigation
fix(test): vision_integration registers adapter as Arc, not Box - #1640
Merged
Merged
Conversation
AdapterRegistry::register takes Arc<dyn AIProviderAdapter> (ai/adapter.rs:575), but vision_integration.rs still passed a Box — E0308, the one genuine stale-test breakage in the continuum-core test suite. Fixed to Arc::new (fully qualified, no new import). Found while sweeping all test-suite compile errors: the other 6 "broken" test files (architecture_demand_pull_cognition, airc_remote_inference_end_to_end, architecture_killer_loop_burst_cognition, etc.) were NOT bugs — they use fixture-gated instrumentation (compute_calls/compute_call_count, HeuristicInferenceAdapter, all #[cfg(any(test, feature = "test-fixtures"))]) and simply require `--features test-fixtures` to compile. With that feature the whole `cargo test -p continuum-core --no-run` suite is now clean. Co-Authored-By: Claude Opus 4.8 <[email protected]>
This was referenced Nov 1, 2026
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
AdapterRegistry::registertakesArc<dyn AIProviderAdapter>(ai/adapter.rs:575), buttests/vision_integration.rs:182still passed aBox→E0308. Fixed toArc::new(fully qualified, no new import). This was the one genuine stale-test breakage in the continuum-core test suite.Context — the full "investigate all errors" sweep
Running
cargo test -p continuum-core --no-runsurfaced 7 "broken" test files. Investigation:architecture_demand_pull_cognition,airc_remote_inference_end_to_end,architecture_killer_loop_burst_cognition,persona_command_inbound_pump,persona_respond_replay,llamacpp_metal_throughputuse fixture-gated instrumentation (compute_calls/compute_call_count/HeuristicInferenceAdapter, all#[cfg(any(test, feature = "test-fixtures"))]). They simply require--features test-fixturesto compile (the canonical test invocation). With that feature the whole--no-runsuite is clean.Also confirmed: the
cargo test -p continuum-core --libred on PR #1636 was a CI flake — #1635 (identical bridge_protocol Rust) and #1639 (same + more) both pass that check; #1636 added only a bash commit on top, which can't break a cargo build.Verified locally:
cargo test -p continuum-core --no-run --features metal,accelerate,test-fixtures→ all test binaries compile, zero errors.🤖 Generated with Claude Code