Repository navigation
fix(qa): keep target-none heartbeat scenario deterministic - #124380
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 11:35 PM ET / August 16, 2026, 03:35 UTC. ClawSweeper reviewWhat this changesThe PR changes the real-Gateway QA fixture to set Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open: this is a focused, maintainer-authored QA repair with no correctness or security finding. Current main’s omitted fixture target resolves to Priority: P2 Review scores
Verification
How this fits togetherQA Lab starts a real Gateway with isolated configuration and invokes cron, task, and heartbeat RPCs. The heartbeat target controls whether the completed turn records an internal-only result or tries to resolve a delivery route before the scenario reads flowchart LR
A[QA scenario fixture] --> B[Gateway configuration]
B --> C[Heartbeat wake RPC]
C --> D{Heartbeat target}
D -->|none| E[Internal-only outcome]
D -->|owner| F[Owner route lookup]
E --> G[Last-heartbeat assertion]
F --> G
Before merge
Agent review detailsSecurityNone. PR surfaceTests 0. Total 0 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Merge the explicit fixture setting after normal exact-head maintainer checks; retain the product default of Do we have a high-confidence way to reproduce the issue? Yes—source-reproducible: current main omits the target, the resolver defaults that omission to Is this the best way to solve the issue? Yes. Setting the existing explicit internal-only mode in the fixture is the narrow owner-boundary repair; changing the product default or weakening the assertion would test a different contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a0498f7a9c8a. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready maintainer proof for head
|
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where the
gateway-rpc-automationQA scenario deterministically failed on current main because its success contract requires an internal-only heartbeat outcome, but the E2E fixture omittedheartbeat.targetand therefore inherited the currentownerdefault.Related history: #118966 introduced the real-Gateway E2E while the implicit target was still
none; #119027 madeagent-runtime.session-heartbeat-target-nonea primary QA contract. The deliberate default changes in #121892 and #121988 preserved explicitnonebut made the fixture's omission observable asno-route.Why This Change Was Made
The fixture now sets
heartbeat.target: "none"explicitly at the owner boundary. Production heartbeat defaults and behavior remain unchanged, and the existing structured assertion continues to requireskipped,target-none, the operator-facing message, and the provider reply preview.User Impact
No runtime or user-visible product behavior changes. Maintainers regain deterministic current-main QA evidence for cron RPCs, wake-to-heartbeat execution, task control, and the explicit target-none heartbeat contract.
Evidence
gateway-rpc-automationexecuted 1 scenario, passed 0, failed 1 ontbx_01m048rpnbpqf6et9t2fa6y9ez(Actions run 31923602773).tbx_01m0492h8y1regmq7k9zzdamx7(Actions run 31923819097).qa coverage --match gateway-rpc-automation --jsonresolved exactlygateway-rpc-automation; 58 scenario-catalog tests and 1 native-E2E-routing test passed.git diff --check, runtime import cycles, and Madge cycles passed.AI-assisted: yes. The root cause, history, fixture ownership, test value, and exact candidate proof were reviewed before publication.