Repository navigation
fix(receiver): wait for a slot before refusing a delivery - #95
Open
tbhb-agent wants to merge 2 commits into
Open
tbhb-agent wants to merge 2 commits into
tbhb-agent wants to merge 2 commits into
Conversation
Generated-by: LLM effort=high;harness=codex:0.171.0;model=openai:gpt-6.2-sol;session=sha-256-64:f4928d57ebb9943e;surface=exec
Generated-by: LLM effort=medium;harness=claude-code:2.1.330;model=anthropic:claude-sonnet-5-5;session=sha-256-64:6507fa80a17e0653;started_at=2026-11-15T17:24:44Z;surface=cli
This branch has not been deployed
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.
Why
In 17 hours the receiver answered 503 to 395 deliveries because all 16 body slots were busy. GitHub doesn't retry a failed delivery, and nothing repairs lost workflow job or check run events. Bursts from one CI run arrive in the same millisecond. A short wait clears most of them.
Behavior change
Decisions
slotWait, set to the 8 seconds from the task.MaxInFlightand the body limit keep their values, so the body memory bound is unchanged.Deviations from the task
None.
Needs human judgment
Whether to spool bodies to disk later, to free a slot while a body arrives. This change leaves that out.
Risk
Tier 1. The signature check and the store write are unchanged. Under load a connection can wait up to 8 seconds longer.
Verification
bazelisk test //internal/receiver/...passes in a clean worktree.pr_sizereports 195 of 400 code lines.Human steering
None so far.
Opened-by: LLM effort=medium;harness=claude-code:2.1.330;model=anthropic:claude-sonnet-5-5;session=sha-256-64:6507fa80a17e0653;surface=cli
Generated-by: LLM effort=high;harness=codex:0.171.0;model=openai:gpt-6.2-sol;session=sha-256-64:f4928d57ebb9943e;surface=exec
Assisted-by: LLM effort=medium;harness=claude-code:2.1.330;model=anthropic:claude-sonnet-5-5;session=sha-256-64:6507fa80a17e0653;surface=cli