Skip to content

test(qa): remove selected auth through gateway - #141974

Merged
RomneyDa merged 1 commit into
mainfrom
fix/maturity-codex-auth-profile
Sep 8, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/maturity-codex-auth-profile

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Sep 8, 2026

Copy link
Copy Markdown
Member

Summary

  • remove the selected Codex auth profile through models.authLogout
  • assert the exact persisted removal and zero aborted runs
  • retain all bounded recovery and no-app-server-turn assertions

Root cause

The maturity proof edited auth-profiles.json offline and then called secrets.reload. That did not mutate the running auth owner, so its healthy snapshot remained active and the supposedly missing-profile turn correctly completed. The test now uses the supported atomic persistence/publication boundary.

Maturity failure addressed

  • auth-profile-codex-mixed-profiles

Testing

  • pnpm format:check -- test/e2e/qa-lab/runtime/codex-auth-product-proof.e2e.test.ts
  • git diff --check
  • autoreview P0-P2: scoped clean
  • local E2E setup could not use the adjacent checkout because the shared dependency install violates package-boundary isolation; hosted CI owns the clean-install proof

Worked on by

@clawsweeper

clawsweeper Bot commented Sep 8, 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 size: XS maintainer Maintainer-authored PR labels Sep 8, 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 Sep 8, 2026
@clawsweeper

clawsweeper Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 8, 2026, 3:46 AM ET / 07:46 UTC.

ClawSweeper review

What this changes

The QA test now removes its selected credential through the Gateway logout API before checking missing-credential recovery.

Merge readiness

✅ Ready for maintainer review

The focused test repair remains useful on current main, and no blocking defects were found. The exact-head E2E completion reported in the new maintainer comment resolves the previous review’s validation concern.

Priority: P2
Reviewed head: f5afe3fb4f0a67a94e0e1fb86d1810343b7dce98

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A narrow, contract-aligned test repair with reported focused E2E success and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored test repair is exempt from the external-contributor proof gate; the new exact-head report confirms the Gateway-to-fixture E2E completed and resolves the earlier execution gap without claiming live Codex authentication.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored test repair is exempt from the external-contributor proof gate; the new exact-head report confirms the Gateway-to-fixture E2E completed and resolves the earlier execution gap without claiming live Codex authentication.
Evidence reviewed 7 items Verified introduced change: The pinned introduction diff replaces offline credential removal and secrets reload with targeted models.authLogout, asserting the removed profile and empty aborted-run list. Recovery, history-redaction, and prohibited app-server call assertions remain intact.
Existing logout contract: The handler validates selected token/OAuth profiles, removes them through their owning stores, awaits runtime credential refresh, and returns no aborted runs for targeted logout. The test uses this existing contract without changing production authorization or persistence semantics.
Current main still needs the repair: Fetched main retains the offline write followed by secrets.reload. The live REST check also confirms this PR remains open and unmerged at the reviewed head. Reading the latest release's historical file failed because a required Git object could not be retrieved; no release-fix claim is made.
Findings None None.
Security None None.

How this fits together

QA Lab exercises credential migration, Gateway chat execution, and the Codex integration using an app-server fixture. This scenario checks that removing a selected credential produces bounded recovery guidance without starting another model turn.

flowchart LR
  A[Selected test credential] --> B[Gateway logout request]
  B --> C[Credential owner stores]
  C --> D[Refresh runtime credentials]
  D --> E[Chat with selected profile]
  E --> F[Recovery message]
  E --> G[No model turn]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +8. Total +8 across 1 file.

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

Review metrics

None.

Technical review

Best possible solution:

Keep missing-credential coverage anchored to the supported credential-removal lifecycle while preserving recovery and no-model-turn assertions.

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

Yes, the focused E2E provides a concrete reproduction path, and current main still uses the obsolete offline mutation sequence; this review established the path from source without executing it.

Is this the best way to solve the issue?

Yes. Using the existing logout owner is the narrow repair and retains the test’s independent observable recovery assertions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 8ac88a1a335a.

Labels

Label justifications:

  • P2: This repairs a focused QA credential-recovery scenario without changing production behavior.
  • 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: The MEMBER-authored test repair is exempt from the external-contributor proof gate; the new exact-head report confirms the Gateway-to-fixture E2E completed and resolves the earlier execution gap without claiming live Codex authentication.

Evidence

What I checked:

Likely related people:

  • RomneyDa: 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-08T07:27:07.457Z sha f5afe3f :: blocked before merge. :: none

@RomneyDa

RomneyDa commented Sep 8, 2026

Copy link
Copy Markdown
Member Author

ClawSweeper proof gap resolved on exact head f5afe3fb4f0a67a94e0e1fb86d1810343b7dce98.

I replaced the shared/stale dependency and dist trees with isolated worktree-owned builds, used the repository-required Node 24.16.0 runtime, and ran the exact product E2E:

node scripts/run-vitest.mjs test/e2e/qa-lab/runtime/codex-auth-product-proof.e2e.test.ts

Result: 1 file passed, 2/2 tests passed. The repaired mixed-profile path completed doctor-to-SQLite-to-Gateway-to-Codex-App-Server in 41.1s; the bounded missing-profile recovery control passed in 10.0s. Full private-QA build prerequisites also completed from the exact head.

Hosted exact-head CI is green, including openclaw/ci-gate. The earlier local failure was dependency-tree contamination, not this patch.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 8, 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.

Re-review progress:

@RomneyDa
RomneyDa merged commit 4250f25 into main Sep 8, 2026
79 checks passed
@RomneyDa
RomneyDa deleted the fix/maturity-codex-auth-profile branch September 8, 2026 08:13
steipete added a commit that referenced this pull request Sep 8, 2026
* fix(qa): align auth and Workshop proofs with current owners

Backport the remaining release QA corrections without changing runtime code.
Advertise the supported model through the fake app-server catalog and assert
its Gateway visibility before revoking the selected credential. Reject every
non-handshake RPC after missing-profile recovery without demanding that the
app-server initialize first.

Expect manual proposal targets in the agent-owned workshop-skills directory
so the proof reaches stale-state persistence and apply rejection. Preserve
all current logout, account, and thread lifecycle fixture behavior.

Related: #141974

* fix(qa): refresh model discovery before catalog proof
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 9, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 9, 2026
…law#142280)

* fix(qa): align auth and Workshop proofs with current owners

Backport the remaining release QA corrections without changing runtime code.
Advertise the supported model through the fake app-server catalog and assert
its Gateway visibility before revoking the selected credential. Reject every
non-handshake RPC after missing-profile recovery without demanding that the
app-server initialize first.

Expect manual proposal targets in the agent-owned workshop-skills directory
so the proof reaches stale-state persistence and apply rejection. Preserve
all current logout, account, and thread lifecycle fixture behavior.

Related: openclaw#141974

* fix(qa): refresh model discovery before catalog proof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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