Repository navigation
test(qqbot): delivery trace goldens for replace-mode streaming and reply budget - #104582
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 11, 2026, 1:45 PM ET / 17:45 UTC. Summary PR surface: Source +55, Tests +457. Total +512 across 6 files. Reproducibility: not applicable. as a user-facing bug; the patch defect is reproducible from source by following Review metrics: none identified. Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Add a distinct direct message-tool/channel-send trace event that intentionally exercises Do we have a high-confidence way to reproduce the issue? Not applicable as a user-facing bug; the patch defect is reproducible from source by following Is this the best way to solve the issue? No, not in its current form: extending the shared trace harness is the right strategy, but overloading Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 49ff54e63af5. Label changesLabel justifications:
Evidence reviewedPR surface: Source +55, Tests +457. Total +512 across 6 files. View PR surface stats
Acceptance criteria:
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (1 earlier review cycle)
|
d70f5b8 to
a51704c
Compare
|
Merged via squash.
|
Related: #104318
What Problem This Solves
Extends the delivery trace harness (#104478) to qqbot — the budget-constrained REPLACE-mode streaming channel. QQ enforces ≤5 replies per inbound msg_id server-side, and typing renewals spend the same budget, making this the reference case for v2's budget/credential sequencing.
Why This Change Was Made
Five golden scenarios drive the real engine wiring (StreamingController, gateway typing on the core keepalive loop post-#104438, outbound dispatch, budget-limited sends) with mocked QQ API: REPLACE-mode stream lifecycle; budget exhaustion (initial notify + exactly 3 renewals then reserve silence; passive→proactive flip at the limiter); final-only; cancel; media interrupt (session close → media send → fresh stream session). Budget spends are first-class golden events. Warts pinned as oracles — most notably that the gateway static-final path sends without consulting the reply limiter at all (9 passive spends against the 5 cap; flagged separately as a likely production bug), typing budget and ReplyLimiter double-booking the same server budget, and cancelled runs still sealing the stream with a DONE re-send.
User Impact
None at runtime — test infrastructure; two real defect candidates surfaced and tracked separately.
Evidence
tbx_01kx91xb5n4z4kkqmzs7c27qs9: full qqbot suite +pnpm check:changedgreen (one earlier lease died mid-hydration, infra); trace-only re-verifytbx_01kx928q7zknkmp9gvmxmawbak5/5 — Linux verify-mode golden stability.