Skip to content

fix(qa): align auth and Workshop proofs with runtime contracts - #142280

Merged
steipete merged 2 commits into
mainfrom
codex/release-qa-fixture-backports
Sep 8, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/release-qa-fixture-backports

Conversation

@steipete

@steipete steipete commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Related: #141974

What Problem This Solves

Release QA still expects Workshop proposals beneath the session workspace and requires app-server initialization even when a missing selected credential is rejected earlier. Its fake app-server also returns an invalid empty object for model discovery. These stale assumptions keep the proofs from exercising the current ownership contracts reliably.

Why This Change Was Made

Carry the remaining QA corrections from release preparation: advertise the supported model and verify its catalog visibility through explicit refresh, require zero non-handshake RPCs after credential removal, and assert the agent-owned Workshop target before proving manual-install staleness and apply rejection. The logout path and current account/thread fixtures from main are preserved.

User Impact

No runtime behavior changes. Maintainers regain coverage of auth recovery and Workshop proposal ownership without prescribing when the app-server must initialize.

Evidence

  • Personally checked the Codex model-list protocol and current OpenClaw catalog/Workshop owners.
  • Full changed-file checks and independent P2 review passed.
  • Isolated Linux Gateway/mock-Codex E2E: all 3 cases passed on the reviewed source, with zero operational RPCs after selected-profile removal. Testbox run.
  • Replayed the original Workshop expectation and confirmed the old-path assertion fails; the corrected proof reaches stale persistence and apply rejection.
  • Adapted model discovery to current main’s documented models.list refresh: true publication boundary after a passive-read readiness failure; no polling or timeout increase.
  • Local auth baseline passed; the local Workshop baseline hit startup timeouts on the loaded host, so its causal proof ran on isolated Linux.

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
@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: S maintainer Maintainer-authored PR labels Sep 8, 2026
@steipete
steipete marked this pull request as ready for review September 8, 2026 15:35
@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, 11:41 AM ET / 15:41 UTC.

ClawSweeper review

What this changes

Updates QA fixtures and assertions to exercise explicit model discovery, credential-removal recovery, and agent-owned Workshop skill targets.

Merge readiness

✅ Ready for maintainer review

Keep open: these focused QA corrections remain absent from fetched main and preserve meaningful recovery and stale-proposal coverage. No introduced correctness defect was found; the maintainer-protected PR is not eligible for cleanup closure.

Priority: P2
Reviewed head: 7f55cb2c79276ba697eaa54b9dc762ad811f8476

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-supported correction that retains meaningful behavioral assertions and introduces no identified defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer-designated QA PR is exempt from external-contributor proof. Its reported Gateway/mock-Codex and Workshop runs match the changed scenarios, but the linked cancelled earlier-head run could not independently establish their results because log access was blocked.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer-designated QA PR is exempt from external-contributor proof. Its reported Gateway/mock-Codex and Workshop runs match the changed scenarios, but the linked cancelled earlier-head run could not independently establish their results because log access was blocked.
Evidence reviewed 9 items Introduced scope and continued necessity: The host-pinned merge-base delta contains only the three QA files. Comparing those files with fetched main shows the same remaining fixture and assertion corrections; unrelated endpoint drift is not attributed to this PR.
Explicit catalog publication boundary: Current main awaits deferred catalog loading with refreshFullCatalog when models.list receives refresh: true. The added assertion uses this existing boundary before pinning the session profile.
Recovery invariant retained: Runtime auth preparation rejects an absent user-pinned profile before execution. The revised test awaits terminal error, lifecycle events, and persisted recovery state, then rejects every non-handshake RPC rather than requiring app-server initialization.
Findings None None.
Security None None.

How this fits together

These QA tests drive OpenClaw’s Gateway through model discovery, credential removal, and skill proposal operations. They check the resulting catalog, recovery messages, persisted proposal state, and outbound Codex requests.

flowchart TD
  A[Isolated QA setup] --> B[Gateway requests]
  B --> C[Model discovery and credential owner]
  C --> D[Fake Codex server]
  C --> E[Recovery and request assertions]
  B --> F[Agent Workshop owner]
  F --> G[Stale proposal and apply rejection]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +28. Total +28 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 40 12 +28
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 40 12 +28

Review metrics

None.

Technical review

Best possible solution:

Keep these proofs aligned with the existing catalog-publication and agent-ownership contracts while retaining terminal recovery, zero operational RPC, and stale-apply assertions.

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

Yes, from source: fetched main expects a workspace Workshop target that contradicts the current owner and supplies no valid model-list response. The focused E2E cases were inspected but not run here.

Is this the best way to solve the issue?

Yes. Updating the existing fixture and assertions follows current runtime contracts without adding production seams, retries, or longer timeouts.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: Repairs useful release-QA coverage with a bounded test-only change and 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: The maintainer-designated QA PR is exempt from external-contributor proof. Its reported Gateway/mock-Codex and Workshop runs match the changed scenarios, but the linked cancelled earlier-head run could not independently establish their results because log access was blocked.

Label justifications:

  • P2: Repairs useful release-QA coverage with a bounded test-only change and 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: The maintainer-designated QA PR is exempt from external-contributor proof. Its reported Gateway/mock-Codex and Workshop runs match the changed scenarios, but the linked cancelled earlier-head run could not independently establish their results because log access was blocked.

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)
  • Peter Steinberger: 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.

@steipete
steipete merged commit 26680b7 into main Sep 8, 2026
172 checks passed
@steipete
steipete deleted the codex/release-qa-fixture-backports branch September 8, 2026 15:49
@steipete

steipete commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 8, 2026
* commit '04869ae4899ad0524c3287759798362b0d62fef8': (677 commits)
  fix(release): pin Kova census refresh (#142104)
  fix: doctor read-only database inspections time out on large agent databases (#142179)
  docs: align v2026.9.3 framing with release announcement (#142307)
  fix(ui): discover models when default-model pickers open (#142105)
  fix(ci): keep Docker upgrade seed baseline older than target (#142273)
  refactor(tests): reuse named OAuth credential fixtures (#142272)
  fix(ci): keep mobile release helpers out of source checks (#142115)
  chore(ui): refresh control ui locales (#142147)
  fix(active-memory): explain why recall was skipped (#138658)
  fix(media): preserve converted images with HEIC filenames (#142263)
  docs: add v2026.9.3 release notes (#142277)
  fix(ui): retire picker focus listeners together (#142258)
  fix(ui): keep menu hover colors consistent across themes (#142243)
  fix(release): keep changelog credits within verified history (#142261)
  fix: keep tool-finalizer placeholders private in message-only groups (#138645)
  perf(tui): carry prepared URL membership through rendering (#142262)
  test(ui): await activity cache imports before teardown (#142282)
  fix(qa): align auth and Workshop proofs with runtime contracts (#142280)
  feat(xai): use one curated catalog and concrete setup default (#142136)
  refactor(outbound): reuse prepared sendability facts (#142252)
  ...
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: 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.

1 participant