Skip to content

fix(test): restore thinking route auth fixtures - #149049

Merged
fuller-stack-dev merged 1 commit into
mainfrom
fix/thinking-runtime-auth-fixture
Sep 15, 2026
Merged

fuller-stack-dev merged 1 commit into
mainfrom
fix/thinking-runtime-auth-fixture

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Related: #149005

What Problem This Solves

Fixes six runtime-preparation thinking tests failing before their route assertions after model lookup switched to the runtime auth-store reader.

User Impact

No product behavior changes. Restores the existing platform/subscription route coverage needed to validate the cleanup-owner repair.

Why This Change Was Made

Supply the fixture's existing auth store through loadAuthProfileStoreForRuntime, the reader adopted by #148860. The six cases, their order, real runtime-preparation composition, and assertions remain unchanged. Production delta: zero; test delta: one line.

This complements #149039, which updates other model/image fixtures and does not touch this standalone thinking fixture.

Evidence

  • Baseline: all six cases fail with selected-profile-unavailable errors in the original compact-large-8 job. The fixture and resolver are unchanged between that CI merge and this branch's base.
  • Pinned oxfmt 0.66.0 and git diff --check pass; scoped autoreview and independent source review report no actionable findings.
  • Candidate execution is pending ordinary PR CI; this code-only checkout has no compatible dependency install.
  • The native harness is stubbed in this composition test. Direct Codex source inspection at 414782450952a196bbb64b1605a458c2531c47b6 covered codex-rs/app-server-protocol/src/protocol/common.rs:18 and codex-rs/app-server-protocol/src/protocol/v2/account.rs:17; this is not native Codex execution proof.

@vincentkoc vincentkoc self-assigned this Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added the agents Agent runtime and tooling label Sep 15, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review September 15, 2026 11:49
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Sep 15, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review exact head 0b92a1f. One fixture reader binding preserves the six existing thinking route assertions. Original CI records all six failures; candidate ordinary CI is running. No production or native Codex behavior change.

@clawsweeper

clawsweeper Bot commented Sep 15, 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 exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 8:18 AM ET / 12:18 UTC (Revision 2).

ClawSweeper review

What this changes

Updates the thinking-route tests to supply their existing credential fixtures through the runtime auth-store reader.

Merge readiness

✅ Ready for maintainer review

The fixture repair remains necessary on fetched main, preserves the existing assertions, and has no actionable review findings. The relevant CI shard now passes at the pinned head; discussion confirms this PR is the coordinated prerequisite for ongoing repairs.

Priority: P3
Reviewed head: 0b92a1ffb63d58207c44f6a99d58f01efadeffa8

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A narrow, source-supported fixture repair with preserved assertions and successful relevant CI.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored fixture repair changes no production behavior or authority boundary; the relevant pinned-head CI shard passed, and native execution proof is outside its scope.
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 fixture repair changes no production behavior or authority boundary; the relevant pinned-head CI shard passed, and native execution proof is outside its scope.
Evidence reviewed 8 items Pinned introduced change: The verified base-to-head diff adds only the runtime-reader binding at line 51; all six cases, their order, assertions, and production code remain unchanged. The diff whitespace check passed.
Source-supported fixture failure: resolveDynamicModelAuthProfile calls loadAuthProfileStoreForRuntime and rejects an explicitly selected profile absent from that store. The test supplies its profiles only in memory, so binding the current reader restores the intended test input without bypassing route resolution.
Still absent from fetched main: Fetched main retains only ensureAuthProfileStore in this partial mock. Its model registry resolver is identical to the reviewed head, so the fixture mismatch remains.
Findings None None.
Security None None.

How this fits together

Runtime preparation combines the selected model, credential profile, and thinking settings before an agent runs. These tests verify that Platform and subscription routes retain their distinct thinking behavior.

flowchart LR
  A[Selected credential profile] --> C[Runtime preparation]
  B[Test credential store] --> D[Runtime auth reader]
  D --> C
  C --> E[Platform or subscription route]
  E --> F[Thinking behavior assertions]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +1. Total +1 across 1 file.

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

Review metrics

None.

Root-cause cluster

Relationship: canonical
Canonical: #149049
Summary: This PR owns the remaining thinking-fixture repair; adjacent fixture work and dependent production repairs do not supersede it.

Members:

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

Technical review

Best possible solution:

Keep the production runtime reader and restore the existing fixture input while preserving all route assertions.

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

Yes, source inspection identifies the fixture-reader mismatch behind the six reported failures; the corresponding candidate CI shard now passes. This review did not execute tests locally.

Is this the best way to solve the issue?

Yes. Supplying the same fixture store through the current reader repairs setup without weakening assertions or reverting the production read-only behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 92877d15de1f.

Labels

Label changes:

  • add P3: This is a focused test-fixture correction with no production 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 fixture repair changes no production behavior or authority boundary; the relevant pinned-head CI shard passed, and native execution proof is outside its scope.

Label justifications:

  • P3: This is a focused test-fixture correction with no production 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 fixture repair changes no production behavior or authority boundary; the relevant pinned-head CI shard passed, and native execution proof is outside its scope.

Evidence

What I checked:

Likely related people:

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

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 (1 earlier review cycle)
  • reviewed 2026-09-15T11:55:39.191Z sha 0b92a1f :: needs maintainer review before merge. :: none

@steipete

Copy link
Copy Markdown
Contributor

Confirming this is the remaining red-main symptom after #148860: checks-node-compact-large-8 still fails the six runtime-preparation.thinking.test.ts:202 cases (selected openai:platform / openai:subscription unavailable through model.registry-resolution.ts:256) on every PR head rebased onto main after #149004 and #149023 — e.g. #148910's run 34964522328. Three campaign PRs (#148910, #148968, #148995) resume landing as soon as this merges; a parallel lane on our side stopped in favor of this PR.

@fuller-stack-dev

Copy link
Copy Markdown
Member

Tracking #149049 as the canonical prerequisite for #85308, not creating a competing fixture patch. #85308 exact head e0155c7 reproduces the same six thinking-route failures in job 104369101354. Its thinking fixture and model resolver are byte-identical to main 80936b0; the one-line runtime-loader mock here matches that failure.

I am preserving your authorship and current writer/review custody. I will integrate the landed prerequisite into #85308 and rerun its exact-head gates. If canonical landing needs maintainer help once this PR's required review/CI settles, I can carry the existing PR through the native path without a replacement branch.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 Sep 15, 2026
@fuller-stack-dev

fuller-stack-dev commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

Tracking this as the canonical prerequisite for #146645. Its exact-head CI reproduces the same six thinking-route failures in job 104374165539; the config repair itself has completed real published-updater/systemd qualification.

The clean review of 0b92a1ffb63d58207c44f6a99d58f01efadeffa8 and passing relevant shard support this one-line fixture correction. I am preserving Vincent’s authorship and existing writer/landing custody, with no competing patch. I will integrate the landed prerequisite into #146645. If no native landing operation is active after the remaining checks settle, I can carry this existing PR through the supported maintainer workflow.

Update: the required exact-head CI gate is now successful, and raw job104368721924 confirms all six unchanged cases pass. Native review setup is complete in an isolated maintainer checkout; I am carrying this existing head through artifact validation, prepare and pinned-head merge. No branch/source change is planned. I will recheck live state before dispatch so an existing completed or accepted landing is not repeated.

@fuller-stack-dev
fuller-stack-dev merged commit ed264cc into main Sep 15, 2026
166 checks passed
@fuller-stack-dev

Copy link
Copy Markdown
Member

Merged via squash.

@fuller-stack-dev
fuller-stack-dev deleted the fix/thinking-runtime-auth-fixture branch September 15, 2026 12:25
roboclaw-bot added a commit that referenced this pull request Sep 15, 2026
Include upstream UI setup and thinking auth fixture fixes from #149023 and #149049 without additional production auth changes. Preserve the reviewed Android palette repair and source-only locale boundary.

Co-authored-by: IWhatsskill <[email protected]>
roboclaw-bot added a commit to VACInc/openclaw that referenced this pull request Sep 15, 2026
Merge upstream through ed264cc to include the already-landed runtime preparation auth fixture fix (openclaw#149049), preserving the contributor branch ancestry.

Co-authored-by: VACInc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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.

3 participants