Repository navigation
Small follow-ups: undelivered audit reporting, review app.fetch, Worker header counts (#875, #889) - #897
Merged
Conversation
…lare Worker The Worker passed empty header counts, so a repeated scalar header parameter or a repeated Content-Type read as absent and the duplicate refusals never fired. It now applies the same rule as a fetch-only embedded host: a joined value containing a comma counts as two lines. The helper moves to a Node-free header-counts.ts so the Worker closure stays free of node: imports. Tests: test/cloudflare.test.ts, and three raw-socket cases in the workerd parity script (all identical on workerd and Node). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…as egress (#889) The outbound-network-call signal matched any `fetch(`, so Hono's `app.fetch(request)` in a trusted function read as an outbound call. The global fetch (bare or via globalThis/window/self/global), http(s).request/get and a member .fetch with a URL argument still count; a member call on a receiver imported or built from an imported name is in-process and skipped; any other member .fetch is still reported with a note that it may be in-process. Definitions named fetch and comments no longer match. The ecosystem proof now asserts the absence of the false positive. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…eeps up (#875) Operator commands write audit events into the outbox, but only a serving process's drain delivers them. The store's audit producer now records when the drain last kept up (an ack, or a peek that found the outbox empty) in a new one-row store_audit_drain table (schema version 3), at most every 10 s. Every urlcode-store command that records events (members add|remove, reassign, ownerless-assign, ownerless-delete on an audit: true collection; not a dry run) adds undeliveredEvents for the collections it touched, lastAuditDrain, and a warning when events wait and no drain has kept up in the last 60 s or ever. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Three small fixes, one commit each.
1. Store audit delivery (#875 item 3, option B)
store_audit_draintable.undeliveredEventsper touched collection andlastAuditDrainto their report. They also add awarningwhen events are waiting and nothing has drained within 60 s, or ever. The commands aremembers add|remove,reassignandownerless-*.2. Review no longer reports an in-process
app.fetch(request)as egress (#889 item 7)fetch,http(s).request/get, and any member.fetchgiven a URL literal ornew URL(..fetchon an imported app or router object, such as Hono'sapp.fetchor itty-router..fetch.fetchno longer matches, and comments are ignored.3. Cloudflare header counts
headerCounts: {}, so a repeated header read as 0.header-counts.ts, re-exported fromhost-request.ts.Evidence (macOS, Node 26)
npm run verifypasses: 1161 root tests, store 132,test:ecosystem12/12.npm run test:packagepasses.npm run test:workerd: every response is identical, including 3 new header cases.A store migration renumbering may be needed if the store JSON Schema rework lands first.
🤖 Generated with Claude Code