Skip to content

test(live): retry GPT-5.6 nonce mismatches - #134520

Merged
RomneyDa merged 1 commit into
extended-stable/2026.6.33from
fix/extended-stable-2026-6-35-gpt56-nonce
Aug 31, 2026
Merged

RomneyDa merged 1 commit into
extended-stable/2026.6.33from
fix/extended-stable-2026-6-35-gpt56-nonce

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Backports the bounded tool-read nonce retry from main commit 699a1c0 (#104939).

Full validation job 99667587058 received successful OpenAI responses from gpt-5.6-luna, but a tool-read reply contained an earlier well-formed nonce pair. The frozen test treated that first mismatch as terminal even though the existing loop already supports three bounded attempts.

This wires only GPT-5.6 / gpt-5.6-* into that existing retry policy; it remains fail-closed after three misses. No product runtime behavior changes.

Proof:

@clawsweeper

clawsweeper Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XS maintainer Maintainer-authored PR labels Aug 31, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 31, 2026
@clawsweeper

clawsweeper Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 7:01 PM ET / 23:01 UTC.

ClawSweeper review

What this changes

The PR lets the gateway live-test suite retry a well-formed but wrong nonce response for openai/gpt-5.6 and its tier variants before failing coverage.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open for explicit maintainer handling: this MEMBER-authored, maintainer-labeled extended-stable backport is coherent and has no introduced correctness finding. The retry remains bounded and preserves terminal failure after three misses; exact-head CI is still running.

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

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A small, well-scoped test reliability backport with direct unit coverage of the new model-key boundary and no identified correctness defect.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored test-only PR is exempt from the external-contributor real-behavior-proof gate. The body cites a failed release job, but its live log was not retrievable in this review environment; exact-head CI remains the relevant validation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored test-only PR is exempt from the external-contributor real-behavior-proof gate. The body cites a failed release job, but its live log was not retrievable in this review environment; exact-head CI remains the relevant validation.
Evidence reviewed 6 items Introduced retry classification: The introduced helper keeps the existing skip policy intact while additionally selecting only the bare GPT-5.6 ID and hyphenated GPT-5.6 variants for retry.
Bounded failure behavior: The live suite supplies the new eligibility only to the existing tool-read and exec/read retry helpers; both helpers refuse to retry at the configured third attempt, so persistent mismatches still fail.
Supported model boundary: Repository documentation identifies the bare GPT-5.6 reference and the Sol, Terra, and Luna variants; the predicate covers those documented hyphenated variants while excluding gpt-5.60.
Findings None None.
Security None None.

How this fits together

Gateway live tests run a local authenticated Gateway against configured model providers and verify that a model read the generated nonce note. The retry policy decides whether a mismatched reply gets stricter follow-up probes or fails release-validation coverage.

flowchart LR
  A[Configured model profile] --> B[Gateway live suite]
  B --> C[Local Gateway and client]
  C --> D[Tool-read nonce probe]
  D --> E{Expected nonce pair?}
  E -->|yes| F[Coverage passes]
  E -->|no, retry eligible| G[Stricter follow-up probe]
  G --> D
  E -->|no, exhausted| H[Coverage fails]
Loading

Decision needed

Question Recommendation
Should this extended-stable live-validation backport land after the exact-head checks complete? Land after exact-head CI: Merge the bounded test-only backport once the remaining checks pass for the reviewed head.

Why: The protected maintainer label and release-branch target require an authorized maintainer decision even though the source review found no patch defect.

Before merge

  • Resolve merge risk (P1) - Exact-head CI is still in progress, and the reviewer could not inspect the cited failed-job log or upstream commit from this offline promisor checkout.
Agent review details

Security

None.

PR surface

Tests +24. Total +24 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 25 1 +24
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 25 1 +24

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Land the narrow backport only after exact-head CI completes, retaining separate retry eligibility so repeated nonce mismatches remain release-blocking.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Land the narrow backport only after exact-head CI completes, retaining separate retry eligibility so repeated nonce mismatches remain release-blocking.

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

No live reproduction was available to the reviewer. Source does establish that the old eligibility rejects a well-formed GPT-5.6 mismatch immediately, whereas the introduced path retries it within the existing three-attempt bound.

Is this the best way to solve the issue?

Yes. Separating retry eligibility from skip eligibility is the narrowest fit: adding GPT-5.6 to the skip policy would incorrectly conceal failures after all attempts are exhausted.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This is a narrow release-validation reliability fix with limited blast radius and no product-runtime behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored test-only PR is exempt from the external-contributor real-behavior-proof gate. The body cites a failed release job, but its live log was not retrievable in this review environment; exact-head CI remains the relevant validation.

Label justifications:

  • P2: This is a narrow release-validation reliability fix with limited blast radius and no product-runtime behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored test-only PR is exempt from the external-contributor real-behavior-proof gate. The body cites a failed release job, but its live log was not retrievable in this review environment; exact-head CI remains the relevant validation.

Evidence

What I checked:

  • Introduced retry classification: The introduced helper keeps the existing skip policy intact while additionally selecting only the bare GPT-5.6 ID and hyphenated GPT-5.6 variants for retry. (src/gateway/gateway-models.profiles.live.test.ts:1689, 5305fa813885)
  • Bounded failure behavior: The live suite supplies the new eligibility only to the existing tool-read and exec/read retry helpers; both helpers refuse to retry at the configured third attempt, so persistent mismatches still fail. (src/gateway/gateway-models.profiles.live.test.ts:3529, 5305fa813885)
  • Supported model boundary: Repository documentation identifies the bare GPT-5.6 reference and the Sol, Terra, and Luna variants; the predicate covers those documented hyphenated variants while excluding gpt-5.60. Public docs: docs/providers/openai.md. (docs/providers/openai.md:75, 5305fa813885)
  • Codex dependency boundary: This suite explicitly assigns every candidate the OpenClaw runtime for direct provider/API-key validation, so the introduced test-policy predicate does not depend on the native Codex app-server contract. (src/gateway/gateway-models.profiles.live.test.ts:3141, 5305fa813885)
  • Feature-history routing: History identifies Peter Steinberger's earlier GPT-5.6 nonce-retry work; the local sparse checkout could read commit metadata but not the historical blob after network resolution failed. (src/gateway/gateway-models.profiles.live.test.ts:1689, a74fb334a77a)
  • Current-main inspection limitation: origin/main resolves to the supplied current-main SHA, but its required file blob and the cited upstream commit were absent from this promisor checkout and could not be fetched because GitHub DNS resolution failed. This does not change the protected-item keep-open result. (ef0c88338c2a)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • RomneyDa: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Wait for the remaining exact-head CI checks before merging.

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.

@RomneyDa
RomneyDa merged commit 659df81 into extended-stable/2026.6.33 Aug 31, 2026
105 checks passed
@RomneyDa
RomneyDa deleted the fix/extended-stable-2026-6-35-gpt56-nonce branch August 31, 2026 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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.

1 participant