Skip to content

fix(test): vision_integration registers adapter as Arc, not Box - #1640

Merged
joelteply merged 1 commit into
canaryfrom
fix/vision-integration-arc-register
Jun 16, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/vision-integration-arc-register

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

What

AdapterRegistry::register takes Arc<dyn AIProviderAdapter> (ai/adapter.rs:575), but tests/vision_integration.rs:182 still passed a Box → E0308. Fixed to Arc::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-run surfaced 7 "broken" test files. Investigation:

  • 6 were not bugs — architecture_demand_pull_cognition, airc_remote_inference_end_to_end, architecture_killer_loop_burst_cognition, persona_command_inbound_pump, persona_respond_replay, llamacpp_metal_throughput use fixture-gated instrumentation (compute_calls / compute_call_count / HeuristicInferenceAdapter, all #[cfg(any(test, feature = "test-fixtures"))]). They simply require --features test-fixtures to compile (the canonical test invocation). With that feature the whole --no-run suite is clean.
  • 1 was a real bug — this Box→Arc, now fixed.

Also confirmed: the cargo test -p continuum-core --lib red 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

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]>
@joelteply
joelteply merged commit 582012b into canary Jun 16, 2026
4 checks passed
@joelteply
joelteply deleted the fix/vision-integration-arc-register branch June 16, 2026 01: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