Skip to content

fix(sensor): deliver subscription signals to via refs#200

Merged
mikehostetler merged 1 commit into
mainfrom
fix/pr-198-sensor-delivery-test
Mar 14, 2026
Merged

fix(sensor): deliver subscription signals to via refs#200
mikehostetler merged 1 commit into
mainfrom
fix/pr-198-sensor-delivery-test

Conversation

@mikehostetler

Copy link
Copy Markdown
Contributor

Summary

  • follow up to feat(plugin): support static subscriptions and fix documentation #198
  • replace the sleep-based subscription delivery test with an eventually_state/3 assertion against agent-visible state
  • resolve registry via refs before sensor delivery so plugin subscription sensors can actually reach AgentServer
  • add a focused runtime regression test for via tuple delivery

Why

Strengthening the test from #198 exposed that subscription sensors were started with a registry via ref, but Jido.Sensor.Runtime only delivered directly to pids and otherwise fell through to generic async dispatch. The previous test masked that because it never asserted agent-side delivery.

Verification

  • MIX_ENV=test mix test test/jido/sensor/runtime_test.exs
  • MIX_ENV=test mix test test/jido/agent_server/plugin_subscriptions_test.exs

@mikehostetler mikehostetler force-pushed the fix/pr-198-sensor-delivery-test branch from 4835fb6 to 864f739 Compare March 14, 2026 20:10
@mikehostetler mikehostetler merged commit 2fe1402 into main Mar 14, 2026
6 checks passed
@mikehostetler mikehostetler deleted the fix/pr-198-sensor-delivery-test branch March 14, 2026 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant