feat(backend): implement real HTTP dispatch for agent endpoints - #209
Merged
Merged
Conversation
|
@DevSolex is attempting to deploy a commit to the Jaja's projects Team on Vercel. A member of the Team first needs to authorize it. |
samsolo247
force-pushed
the
feat/issue-169-http-dispatch
branch
from
July 25, 2026 17:11
d0b5e0e to
cbffe56
Compare
The HTTP dispatch implementation (dispatch.ts, dispatch.test.ts, app.ts makeHttpDispatch, pipeline.test.ts integration suite) fully satisfies the acceptance criteria from issue Epta-Node#169: - configurable 60s timeout via AbortController - exponential backoff retry (3 attempts, 1s base delay) - retryable on 5xx/429; immediate failure on 4xx - agent endpoint lookup via AgentRegistry (cheapest-first) - unit tests: success, retry, timeout, exhaustion, non-retryable 4xx - e2e integration test with real in-process mock agent server Closes Epta-Node#169
samsolo247
force-pushed
the
feat/issue-169-http-dispatch
branch
from
July 25, 2026 17:15
cbffe56 to
c0c9887
Compare
devJaja
self-requested a review
July 26, 2026 12:44
11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #169
Replaces the broken
defaultDispatchstub inapp.ts— which always threw, causing every submitted task to immediately fail — with a real HTTP dispatch implementation wired through the agent registry.Changes
backend/src/coordinator/dispatch.ts(new)httpDispatch()sends a DAG node to an agent viaPOST <endpoint>/executeAbortController(default 60s)fetchimplementation for full testabilitybackend/src/api/app.ts(modified)makeHttpDispatch(registry)replaces the throwing stubbackend/src/coordinator/dispatch.test.ts(new)<endpoint>/executewith correct headers and body{}/executemaxRetriesbackend/tests/e2e/pipeline.test.ts(modified)HTTP dispatch integration (mock agent server)suitecreateAppviaagentRegistryonly (no customdispatch)Test results
All acceptance criteria from #169 satisfied.