Repository navigation
fix(test): materialize OpenAI live auth profile - #129759
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 11:19 PM ET / August 26, 2026, 03:19 UTC. ClawSweeper reviewWhat this changesThe PR stores the injected OpenAI live-test key in disposable SQLite auth state before profile-first model discovery, then selects that generated profile explicitly. Regression provenancePossible regression — suspected (reproduction). No predecessor PR is attributed. Merge readinessKeep open for protected maintainer handling. Current main still performs profile-first OpenAI selection without first materializing the injected credential; the exact PR head addresses that test-harness gap with disposable state and targeted coverage. Priority: P1 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherGateway live validation discovers provider models and credentials before starting an isolated gateway run. Its selected auth profiles determine which models become runnable candidates for the release-check prompt suite. flowchart LR
A[Injected release credential] --> B[Disposable live-test state]
B --> C[SQLite auth profile]
C --> D[Profile-first model discovery]
D --> E[Runnable OpenAI candidate]
E --> F[Gateway prompt validation]
Decision needed
Why: The patch is a focused repair with no blocking finding, but the maintainer label requires explicit human handling and the live harness has advanced since the PR base. Before merge
Agent review detailsSecurityNone. PR surfaceTests +158. Total +158 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Rebase this focused test-only repair, preserve disposable pre-discovery auth staging, and rerun the exact-head OpenAI validation before landing. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the path: profile-first OpenAI discovery with an empty isolated auth store yields no candidate despite an injected key; the linked trusted pre-fix and exact-head runs cover that scenario. Is this the best way to solve the issue? Yes. Persisting the generated profile in the disposable discovery store is the narrow owner-boundary repair; an environment fallback would contradict the existing profile-first contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 4b0f71264450. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
|
@clawsweeper re-review\n\nThe head changed materially after the active review began. Exact-head trusted OpenAI API-key-default proof is now green: https://github.com/openclaw/openclaw/actions/runs/32922170925/job/98038199357 |
|
🦞👀 I queued a lightweight read-only assist pass. It will post a separate answer comment and will not edit the durable ClawSweeper review comment or trigger close, merge, repair, label, or branch changes. Request: re-review\n\nThe head changed materially after the active review began. Exact-head trusted OpenAI API-key-default proof is now green: https://github.com/openclaw/openclaw/actions/runs/32922170925/job/98038199357 |
|
@clawsweeper re-review The head changed materially after the active review began. Exact-head trusted OpenAI API-key-default proof is green: https://github.com/openclaw/openclaw/actions/runs/32922170925/job/98038199357 |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
ClawSweeper assist: The exact-head trusted OpenAI API-key-default job is green, but a full correctness re-review is still needed to confirm the prior P1 isolation concern is resolved. Evidence:
Suggested next action: request Source: #129759 (comment) |
|
@clawsweeper re-review Exact head 9c28cc3 resolves the prior P1 by entering disposable state before discovery and proving the ambient auth store remains unchanged. Trusted exact-head OpenAI API-key-default live proof: https://github.com/openclaw/openclaw/actions/runs/32923111099/job/98040942215 |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
* fix(test): materialize OpenAI live auth profile * fix(test): stage OpenAI auth before discovery * fix(test): bind prepared OpenAI live profile * fix(test): prepare live auth before model generation * test(gateway): isolate live auth discovery state
Summary
OPENAI_API_KEYinto the selected gateway live harness's isolated SQLite auth store before profile-first discoveryRoot cause
Release Checks injected
OPENAI_API_KEY, but the gateway live harness only loaded existing SQLite auth rows. OpenAI live selection intentionally uses profile-first auth, so an empty CI store produced zero runnable candidates before the gateway's later per-run isolation step.The selected gateway harness now prepares the credential in its auth-profile store and persists it through the canonical SQLite owner before candidate lookup. Runtime auth remains profile-only; this does not add an environment fallback. Keeping this in the selected harness is required because release validation deliberately executes orchestration from a separate trusted-main checkout.
Evidence
OPENCLAW_LIVE_TEST=0 pnpm test:live:gateway-profiles— 146 passed, 2 skippedbbd102ace765bbc6ac2a5578a9f8cf0671969134: https://github.com/openclaw/openclaw/actions/runs/32922170925/job/98038199357pnpm check:changed -- test/helpers/stage-live-auth-profiles.ts test/helpers/stage-live-auth-profiles.test.ts— all relevant gates pass through test-root typecheck; unrelated existingscripts/github/release-validation-campaign.d.mts:31no-explicit-anyfailure in the repository-wide scripts lint laneThe trusted exact-head live jobs remain the proof of the masked release credential's validity.
Scope
Exact-head isolation proof
9c28cc393cc5b3986e7b72aaa485b1e23b39aa41: trusted OpenAI API-key-default live lane passed after moving discovery into disposable state.