Skip to content

Demo smoke findings: list-shaped selector answers, env-resolved stream backend - #33

Merged
andre-merzky merged 1 commit into
develfrom
fix/demo-wire-findings
Aug 30, 2026
Merged

Demo smoke findings: list-shaped selector answers, env-resolved stream backend#33
andre-merzky merged 1 commit into
develfrom
fix/demo-wire-findings

Conversation

@andre-merzky

Copy link
Copy Markdown
Member

First live run of the servicified AmSC demo (radical-collaboration/amsc#5 run_me_service.py) against a local broker surfaced two framework bugs:

  1. Selector answers arrive as lists. DEMO_Agent registers its model selector as a @flow.function_task; the (investigator_id, model_kwargs) tuple comes back over the wire as a JSON list, the runtime's tuple-only check let the whole list through as the id, and the twin died with unhashable type: 'list'. The pair is now recognized in both spellings. Parametrized unit test covers tuple and list through a full agent-selection round trip.

  2. PubSubConfig.resolve() never read DT_STREAM_BACKEND. Every external producer using ChannelPublisher.open(channel) with the default config — both demo sensors — got a ZMQ backend regardless of deployment and could not reach the orbit data plane. The kind now resolves from the environment like the rest of the stack; unset stays zmq.

Local: 180 unit + 30 integration passed.

🤖 Generated with Claude Code

https://claude.ai/code/session_016Npyz3Hbnwos12ESsdJ2YU

- a SciAgent selector that runs as a remote function task gets its
  (investigator_id, model_kwargs) pair back as a JSON list -- the wire
  has no tuples -- and the runtime then took the whole list for the id
  and failed the twin with "unhashable type: 'list'".  Both spellings
  now mean the pair.
- `PubSubConfig.resolve()` ignored DT_STREAM_BACKEND, so an external
  producer using `ChannelPublisher.open(channel)` always opened ZMQ and
  could not reach an orbit-data-plane deployment.  The kind now comes
  from the environment like everywhere else; unset stays zmq.

Both found running the servicified AmSC demo (radical-collaboration/
amsc#5) against a live local broker.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016Npyz3Hbnwos12ESsdJ2YU
@andre-merzky
andre-merzky merged commit 3f828bc into devel Aug 30, 2026
2 checks passed
@andre-merzky
andre-merzky deleted the fix/demo-wire-findings branch August 30, 2026 23:40
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