Intelligence · function
loopbackDecisionChannel
A channel with both ends in this process, for a test or a single-process host.
Explained in Agents and behaviour.
function loopbackDecisionChannel():import { loopbackDecisionChannel } from '@driftengine/ai';In depth
Not a mock. R1 withdrew mocks standing in for engine capabilities that did not exist; this
stands in for a transport, which is a thing AGENTS.md says is a caller's to supply, and it
delivers real commands with a real ordering. packages/network's seeded loopback is the same
shape of object for the same reason.
Delivery is deferred to the next drain rather than immediate, because a channel that delivered
inside replicateDecision would let a decision reach a participant in the same tick it was taken,
which no real link does and which would hide every late-arrival bug this bridge exists to notice.