Skip to content

fix(gateway): refuse to republish a worker-pushed request.dispatched - #641

Merged
V3RON merged 3 commits into
mainfrom
bug/434
Oct 16, 2026
Merged

V3RON merged 3 commits into
mainfrom
bug/434

Conversation

@V3RON

@V3RON V3RON commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Closes #434

Status

Implement: done (1/1 green) Review: not run Hardware: n/a Gate: not run / Next: review round 1

Done when

  • The triage regression test is in the PR and green after the fix — src/gateway/service.test.ts.

Assumptions

none

Review

Spec review: 0 blocking, 0 fixed, 0 notes. Code review: 0 blocking, 0 fixed, 0 notes. Claims review: 1 blocking, 1 fixed, 0 notes.
Rounds: 1. Tokens: n/a.

Fresh-context round 1 later ran on the merged head 48ddc8b1 (separate sessions, each
reading its own brief from .agents/briefs/ with calibration, over a head built by
review-inputs.sh): spec, code and claims reviews, 0 findings, 0 blocking, 0 notes.
Nothing reopened.

Fixed unreviewed (text only, no round):

  • claims: src/gateway/worker-link.ts:560 said a forged dispatch lands "where the usage figures
    read them as its own" — ADR 0016's reader is not built, so the present tense was false.
  • fix check (13999be4..48ddc8b1): manual step 6 wrapped to two lines and broke its 150-line
    budget, failing src/docs-manuals.test.ts in CI; reflowed to one line, that file green
    locally, the claim's three names unchanged.

Written by an agent.

V3RON added 2 commits October 16, 2026 19:36
1 failing -> 0 failing.

`request.dispatched` joins `GATEWAY_OWN_EVENTS`, so a worker's push of the
name is dropped instead of appended to the gateway's event history, where
ADR 0016's usage figures read it as a dispatch this gateway decided. The
three claims that recorded the gap follow: the guard's comment, the
`request.granted` row in `docs/internal/EVENTS.md`, and step 6 of the
gateway manual.
The CI run of the previous head failed `src/docs-manuals.test.ts`: step 6,
one line on main, wrapped to two when `request.dispatched` joined the list
of dropped names, and the budget is 150 lines.
@V3RON
V3RON marked this pull request as ready for review October 16, 2026 18:43
@V3RON
V3RON merged commit 661e19c into main Oct 16, 2026
43 checks passed
@V3RON
V3RON deleted the bug/434 branch October 16, 2026 18:44
@V3RON
V3RON restored the bug/434 branch October 16, 2026 19:44
@V3RON
V3RON deleted the bug/434 branch November 6, 2026 07:09
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.

Gateway republishes a worker-pushed request.dispatched into its history

1 participant