Summary
The signals_flow scenario in lib/testing/scenarios/signals.js calls activate_signal with two bugs:
- Wrong field name:
signal_id is sent instead of signal_agent_segment_id. signal_id does not exist in /schemas/3.0.0/signals/activate-signal-request.json.
- Wrong type: The fixture passes the full
SignalID object { source, agent_url, id } from get_signals rather than unwrapping the string ID. The spec types signal_agent_segment_id as string (x-entity: "signal_activation_id").
Repro
Any signals-only agent with strict schema validation. The agent will reject or silently drop the activate_signal call because the required field is absent and the value shape is wrong.
Fixture location
node_modules/@adcp/client/dist/lib/testing/scenarios/signals.js lines 82–89
Fix
-{ signal_id: signal, ... }
+{ signal_agent_segment_id: signal.id, ... }
- Rename
signal_id —> signal_agent_segment_id
- Unwrap
.id from the SignalID object before passing (pass the string, not the object)
- Verify
destination —> destinations (plural) while in this block
Schema reference
/schemas/3.0.0/signals/activate-signal-request.json
-required: ["idempotency_key", "signal_agent_segment_id", "destinations"]
-signal_agent_segment_id: { type: "string", x-entity: "signal_activation_id" }
Summary
The
signals_flowscenario inlib/testing/scenarios/signals.jscallsactivate_signalwith two bugs:signal_idis sent instead ofsignal_agent_segment_id.signal_iddoes not exist in/schemas/3.0.0/signals/activate-signal-request.json.SignalIDobject{ source, agent_url, id }fromget_signalsrather than unwrapping the string ID. The spec typessignal_agent_segment_idasstring(x-entity: "signal_activation_id").Repro
Any signals-only agent with strict schema validation. The agent will reject or silently drop the
activate_signalcall because the required field is absent and the value shape is wrong.Fixture location
node_modules/@adcp/client/dist/lib/testing/scenarios/signals.jslines 82–89Fix
signal_id—>signal_agent_segment_id.idfrom theSignalIDobject before passing (pass the string, not the object)destination—>destinations(plural) while in this blockSchema reference
/schemas/3.0.0/signals/activate-signal-request.json-
required: ["idempotency_key", "signal_agent_segment_id", "destinations"]-
signal_agent_segment_id: { type: "string", x-entity: "signal_activation_id" }