Skip to content

fix(qa): include pinned gateway restart in core runtime proof - #118009

Merged
RomneyDa merged 2 commits into
mainfrom
fix/qa-runtime-pair-gateway-restart-pin
Aug 6, 2026
Merged

RomneyDa merged 2 commits into
mainfrom
fix/qa-runtime-pair-gateway-restart-pin

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Aug 2, 2026

Copy link
Copy Markdown
Member

Closes #118006

What Problem This Solves

Fixes an issue where the scheduled canonical live core runtime-pair workflow silently omitted gateway-restart-multi-live because the broad lane requests the moving openai/gpt-5.6-luna default while this declared core member intentionally requires openai/gpt-5.4.

That left a false coverage claim: neither the OpenClaw nor Codex cell exercised the three-restart scenario, even though the catalog counted it in the core runtime-pair lane.

Why This Change Was Made

The existing scheduled live core runtime-pair job now runs one additional targeted, blocking pair after its unchanged broad advisory lane/report. Both cells receive openai/gpt-5.4; the command has no --allow-failures, and its output lives under the job's existing artifact root.

This is the best fix because history shows the scenario was introduced by #105126 as runtimeParityTier: live-only, so its pair intent and explicit GPT-5.4 contract are deliberate. The change preserves the moving broad-lane default, provider/model and channel-driver orthogonality, canonical selector behavior, and the single scenario declaration. Removing runtimePairLane: core would discard intended coverage; repinning the scenario to GPT-5.6 would violate its live contract; changing selector/planner semantics would race draft #116446 at exact head 1885109ec45d5c954d7619956217c99c76a88026 and would be the wrong owner boundary.

The targeted suite already creates isolated gateway/runtime state, so it safely shares the canonical job's checkout, build, credentials, runner, timeout, and upload instead of duplicating the workflow lane.

Direct Codex contract audit used sibling openai/codex revision 2e1607ee2fa8099a233df7437adee5f16a741905:

  • codex-rs/app-server-protocol/src/protocol/v2/thread.rs:56-65,167-175 — thread/start accepts the requested model/provider and returns the realized model/provider; provider-model fallback defaults off.
  • codex-rs/models-manager/src/manager.rs:150-179,483-518 and manager_tests.rs:281-382 — explicit models are preserved unless fallback is explicitly enabled.
  • codex-rs/core/src/client.rs:824-907 — the resolved model slug is sent on the provider request.
  • codex-rs/model-provider-info/src/lib.rs:280-299, model-provider/src/auth.rs:267-279, and app-server/src/bespoke_event_handling.rs:901-941,1442-1467 — missing credentials and terminal provider errors fail rather than no-op or fulfill coverage.

User Impact

No end-user runtime behavior or defaults change. Maintainers regain honest scheduled evidence for the pinned core restart scenario: both runtimes must complete it on live OpenAI GPT-5.4, and missing credentials, model unavailability, or either cell failing makes the targeted proof fail.

Evidence

  • Exact-head node scripts/run-vitest.mjs extensions/qa-lab/src/scenario-catalog.runtime-pair.test.ts: 4/4 passed.
  • Exact-head node scripts/run-vitest.mjs test/scripts/package-acceptance-workflow.test.ts: 141/141 passed.
  • Exact-head actionlint .github/workflows/qa-live-transports-convex.yml: passed.
  • Exact-head targeted formatting and git diff --check: passed.
  • Blacksmith Testbox changed gate: passed in 6m32s (tbx_01kz1db6gzs92h312ce7dw5qy0, run 30751751225); proof is patch-identical to the final rebase, whose two intervening main commits touched unrelated workflow/UI files.
  • Exact-head branch autoreview: clean, no accepted/actionable findings; TruffleHog clean.
  • Production TypeScript delta: +0/-0. Workflow: +19/-0; tests: +63/-0.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Aug 2, 2026
@clawsweeper

clawsweeper Bot commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 6, 2026, 6:43 AM ET / 10:43 UTC.

ClawSweeper review

What this changes

Adds a blocking scheduled QA run of the three-restart gateway scenario with GPT-5.4 pinned for both OpenClaw and Codex, plus selection and workflow-order regression coverage.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

This PR is still necessary: current main excludes the pinned GPT-5.4 restart scenario from the moving-model core lane. The prior ordering blocker is fixed at the current PR head, but protected maintainer review is needed for scheduled-model capacity and the unavailable direct Codex-source audit.

Priority: P2
Reviewed head: a2d29df3978970af3fd810a190913d9d919736a7
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The repaired ordering and source boundary are sound, but the required direct Codex audit and a funded successful scheduled-equivalent run remain unavailable.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer PR is exempt from the external-contributor proof gate; its supplied live attempt showed visible quota failure rather than a successful completion.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer PR is exempt from the external-contributor proof gate; its supplied live attempt showed visible quota failure rather than a successful completion.
Evidence reviewed 5 items Current-main root cause: The scenario is a core runtime-pair flow requiring live-frontier, OpenAI, and GPT-5.4; lane selection filters core members through provider/model eligibility, so the moving scheduled model omits it.
Exact-head repair and prior finding: The PR head puts the blocking pinned pair before the failure-capable advisory report; its YAML-parsing workflow test asserts the pinned models, no allow-failures flag, and that ordering.
Failure propagation contract: The CLI sets a failing exit code for failed or skipped scenarios unless allow-failures is set; the existing unit test proves allow-failures keeps the broad lane exit clear, allowing the newly moved pinned step to run before reporting.
Findings None None.
Security None None.

How this fits together

QA Lab selects declared runtime-pair scenarios only when their provider and model requirements match the scheduled lane. The scheduled workflow runs both runtimes and stores their evidence artifacts for maintainers.

flowchart LR
  A[Scenario catalog] --> B[Provider and model eligibility]
  B --> C[Scheduled core QA lane]
  C --> D[Pinned restart pair]
  D --> E[OpenClaw and Codex]
  E --> F[Artifacts and advisory report]
Loading

Decision needed

Question Recommendation
Should this scheduled QA job permanently spend GPT-5.4 capacity on a blocking OpenClaw/Codex restart pair now that the broad lane remains advisory? Accept the pinned blocking pair: Merge the repair and ensure the scheduled credential has enough GPT-5.4 capacity for the new required evidence.

Why: The code repair is narrow, but accepting a permanent paid live-model gate and its quota-failure behavior is an operational maintainer choice.

Before merge

  • Resolve merge risk (P1) - The only observed real run exhausted quota, so scheduled proof will intentionally fail until the OpenAI credential has GPT-5.4 capacity.
  • Resolve merge risk (P1) - The required sibling Codex source checkout is unavailable, so this review does not verify the Codex provider/model contract or claim proof sufficiency.
Agent review details

Security

None.

PR surface

Tests +67, Config +19. Total +86 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 67 0 +67
Docs 0 0 0 0
Config 1 19 0 +19
Generated 0 0 0 0
Other 0 0 0 0
Total 3 86 0 +86

Review metrics

Metric Value Why it matters
Production versus proof delta production +0, workflow +19, tests +67 All added lines are a bounded scheduled-proof invocation and its regression assertions; no application runtime code grows.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #118006
Summary: This PR is the linked candidate repair for the pinned runtime-pair selection defect.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Accept the required live gate (recommended)
    Merge after confirming the scheduled OpenAI credential is expected to sustain the added GPT-5.4 pair and exact-head checks finish.
  2. Pause for successful capacity proof
    Hold the PR until a funded scheduled-equivalent run demonstrates successful completion of both runtime cells.

Technical review

Best possible solution:

Keep the narrow in-job pinned pair, restore sufficient scheduled GPT-5.4 capacity, and complete a direct Codex-source audit before accepting it as durable cross-runtime coverage.

Do we have a high-confidence way to reproduce the issue?

Yes—source establishes the mismatch: the core member requires GPT-5.4 while the scheduled broad lane uses its moving model, and the resolver excludes model mismatches. The read-only review did not execute the live suite.

Is this the best way to solve the issue?

Yes for the QA owner boundary: a separate explicit pinned invocation preserves the broad lane and existing selector semantics. Direct Codex-source verification remains unavailable in this environment.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against a3b09821488d.

Labels

Label changes:

  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer PR is exempt from the external-contributor proof gate; its supplied live attempt showed visible quota failure rather than a successful completion.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This fixes a bounded but recurring scheduled QA coverage gap for an existing restart-recovery scenario.
  • merge-risk: 🚨 automation: The PR changes GitHub Actions step ordering and failure propagation for a blocking live runtime-pair check.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer PR is exempt from the external-contributor proof gate; its supplied live attempt showed visible quota failure rather than a successful completion.

Evidence

What I checked:

  • Current-main root cause: The scenario is a core runtime-pair flow requiring live-frontier, OpenAI, and GPT-5.4; lane selection filters core members through provider/model eligibility, so the moving scheduled model omits it. (qa/scenarios/runtime/gateway-restart-multi-live.yaml:41, a3b09821488d)
  • Exact-head repair and prior finding: The PR head puts the blocking pinned pair before the failure-capable advisory report; its YAML-parsing workflow test asserts the pinned models, no allow-failures flag, and that ordering. (.github/workflows/qa-live-transports-convex.yml:376, a2d29df39789)
  • Failure propagation contract: The CLI sets a failing exit code for failed or skipped scenarios unless allow-failures is set; the existing unit test proves allow-failures keeps the broad lane exit clear, allowing the newly moved pinned step to run before reporting. (extensions/qa-lab/src/cli.runtime.ts:1059, a3b09821488d)
  • Feature provenance: The restart scenario originates from the merged repeated-restart proof, while a later merged refactor canonicalized runtime-pair lanes. (qa/scenarios/runtime/gateway-restart-multi-live.yaml:6, 1a946dba78f6)
  • Codex audit infrastructure gap: Repository policy requires this reviewer to inspect sibling ../codex before a Codex contract or proof-sufficiency verdict; that checkout is absent and DNS prevented cloning it.

Likely related people:

  • RomneyDa: Authored the current repair and the prior merged runtime-pair lane canonicalization. (role: recent QA runtime-pair contributor; confidence: high; commits: 19d17bc3c45a, 1327574acff5, a2d29df39789; files: extensions/qa-lab/src/runtime-pair-lane-selection.ts, .github/workflows/qa-live-transports-convex.yml)
  • steipete: The merged repeated-restart QA scenario and its GPT-5.4 contract date to the related scenario introduction. (role: original scenario contributor; confidence: high; commits: 1a946dba78f6; files: qa/scenarios/runtime/gateway-restart-multi-live.yaml)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Inspect the required sibling Codex source before treating the provider/model contract as verified.
  • Run the exact scheduled-equivalent pair with funded GPT-5.4 capacity and retain redacted output showing both cells complete.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (4 earlier review cycles)
  • reviewed 2026-08-02T15:02:09.926Z sha 1327574 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-03T05:12:21.408Z sha 1327574 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-05T01:22:49.142Z sha 1327574 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-05T12:28:09.952Z sha 1327574 :: needs changes before merge. :: [P1] Run the pinned pair before the failure-capable report

@RomneyDa

RomneyDa commented Aug 2, 2026

Copy link
Copy Markdown
Member Author

ClawSweeper rank-up follow-through for exact head 1327574acff5e3588f361175d0e566061756c914:

  • Direct Codex audit is complete at sibling revision 2e1607ee2fa8099a233df7437adee5f16a741905. The exact request/realization/fallback contracts checked are documented in the PR body, including codex-rs/app-server-protocol/src/protocol/v2/thread.rs:56-65,167-175, codex-rs/app-server/src/request_processors/thread_processor.rs:930-1030,1270-1283,1331-1406, codex-rs/models-manager/src/manager.rs:150-179,483-518, and codex-rs/core/src/client.rs:824-907.
  • I attempted the exact scheduled-equivalent blocking command after a clean private-QA build. Blacksmith Testbox cannot forward the OpenAI secret, and direct AWS Crabbox authentication was unavailable, so repository policy routed this trusted-source proof to the isolated local fallback.
  • Both runtime cells selected gateway-restart-multi-live, passed its live provider=openai model=gpt-5.4 auth=env-api-key precondition, and launched real execution. OpenClaw recorded a realized provider=openai model=gpt-5.4 model snapshot/provider response. The Codex cell launched the packaged real codex app-server with the same exact model request.
  • The available live key returned credit_balance_exhausted / insufficient_quota. The blocking invocation therefore failed honestly: aggregate passed=0 failed=1 skipped=0; both OpenClaw and Codex cells failed, the runtime pair failed, and coverage was not fulfilled. Total runtime was 635 seconds, within the existing 45-minute job cap.
  • The redacted local evidence bundle is 16 KiB, SHA-256 1f46f533153e3f2ee6ada107732919c528844e537a96e4ac3e16200610294212, and passed both exact-key and TruffleHog scans. A successful live completion still requires a funded/replaced scheduled credential; I am not treating this unavailable-credential result as a pass or no-op.

No tracked change followed this proof attempt; the reviewed head remains exact.

@RomneyDa

RomneyDa commented Aug 3, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@RomneyDa

RomneyDa commented Aug 5, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 5, 2026
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 6, 2026
@RomneyDa
RomneyDa merged commit 8c64ca2 into main Aug 6, 2026
127 checks passed
@RomneyDa
RomneyDa deleted the fix/qa-runtime-pair-gateway-restart-pin branch August 6, 2026 10:52
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 7, 2026
…aw#118009)

* fix(qa): run pinned gateway restart runtime pair

* fix(qa): run pinned pair before advisory report
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: qa-lab maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Pinned GPT-5.4 gateway restart core runtime-pair member is silently excluded

1 participant