Skip to content

test(ui): add credentials primary QA proof - #118790

Merged
vincentkoc merged 3 commits into
mainfrom
qa-control-ui-credentials-20260803
Aug 3, 2026
Merged

vincentkoc merged 3 commits into
mainfrom
qa-control-ui-credentials-20260803

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 3, 2026 •

Copy link
Copy Markdown
Member

Refs #118783

What Problem This Solves

The Control UI device-pairing and token/password-auth taxonomy IDs lacked
executable primary QA proof. A YAML mapping alone could not show that an
operator can complete pairing or that the browser submits the selected
credential and renders a visible accepted or rejected outcome.

Why This Change Was Made

This adds two focused QA scenarios backed by real Chromium tests. Pairing uses
the existing operator-flow test; credential proof inspects token and password
selection at the browser-to-Gateway connect boundary and asserts visible
success, rejection, and recovery states.

The Gateway is mocked only to make browser credential consumption deterministic.
This PR does not claim server-side token or password validation and makes no
production changes.

The branch was merged forward to current main without rebasing after exact-head
hosted security-fast exposed an old merge ref using vulnerable
brace-expansion 5.0.8. The new head contains the canonical 5.0.9 lock state;
the PR delta remains the same three QA/test files with production LOC 0.

User Impact

No runtime behavior changes. Maintainers gain durable, executable primary proof
for:

  • control-ui.device-pairing
  • control-ui.token-password-auth

Evidence

  • Focused Chromium pairing test: pass at exact head
  • Focused Chromium token/password test: pass at exact head
  • Coverage ownership maps each taxonomy ID to one runnable Playwright scenario
  • Durable screenshots, video, and credential-free behavior summaries retained
  • QA suite: pass, 2/2 scenarios at exact head
  • qa-evidence.json: schema v2; both primary IDs pass and both refs equal
    baa63bff943637607437b4c665f9a8b088c2ecb6
  • git diff --check: pass
  • Scoped pnpm format:check: pass
  • Fresh Codex autoreview: clean; no accepted/actionable findings
  • Exact reviewed head: baa63bff943637607437b4c665f9a8b088c2ecb6
  • Production LOC delta: 0

Blacksmith Testbox was unavailable because the local Blacksmith CLI was not
authenticated. Per root validation policy, trusted-source proof used a clean
disposable exact-head checkout with isolated dependencies and Node 26.4.0; no
shared-worktree dependencies were reconciled.

Evidence paths:

  • .artifacts/qa-e2e/control-ui-credentials-suite-baa63bf/qa-evidence.json
  • .artifacts/qa-e2e/control-ui-credentials-suite-baa63bf/qa-suite-report.md
  • .artifacts/control-ui-e2e/mobile-pairing/
  • .artifacts/control-ui-e2e/control-ui-credentials/

ClawSweeper before-merge disposition:

  • Exact-head hosted CI is fully green with zero pending or failed checks.
  • The proof claim remains explicitly browser-boundary only; this PR does not
    claim server-side token or password validation.
  • External review was requested from @steipete. No external approval arrived
    before landing; the campaign owner/author is the current owner and recent
    author of the Control UI credential, login-gate, pairing, and E2E-helper
    surfaces. ClawSweeper found no defect on the exact head, production LOC is
    zero, and the external-contributor proof gate does not apply.

Observed follow-up: AUTH_PASSWORD_MISMATCH currently uses the generic
network login-gate recovery classification. The raw mismatch reason and
recovery steps remain visible, so rejection proof is valid; changing production
classification is intentionally outside this disjoint test-only slice.

Assistance

  • AI-assisted
  • No agent transcript attached, per campaign scope

@vincentkoc vincentkoc self-assigned this Aug 3, 2026
@clawsweeper clawsweeper Bot added 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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Aug 3, 2026
@clawsweeper

clawsweeper Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 3:01 PM ET / 19:01 UTC.

ClawSweeper review

What this changes

Adds two Control UI QA scenario records and a Chromium test that verifies token/password credential submission, rejection, and recovery against a deterministic mocked Gateway.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep open for ordinary Control UI owner review. This member-authored, maintainer-labeled PR adds a focused test-only primary-QA slice; the current branch has no equivalent credentials scenario files, the Chromium test exercises the intended browser boundary, and no patch defect was found.

Priority: P3
Reviewed head: baa63bff943637607437b4c665f9a8b088c2ecb6

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-aligned QA patch with a clean browser-boundary test and no identified correctness or security defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The external-contributor proof gate does not apply to this member-authored PR; its supplied exact-head CI state includes completed real-behavior proof for the Chromium QA path.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor proof gate does not apply to this member-authored PR; its supplied exact-head CI state includes completed real-behavior proof for the Chromium QA path.
Evidence reviewed 5 items Focused browser coverage: The new Chromium test first rejects an unauthenticated connect, then verifies token-only and password-only connect payloads, visible rejection recovery, and successful reconnect without mounting the application shell during rejection.
Scenario-to-runner contract: Both new scenario records declare Playwright execution and a matching test-name pattern; QA Lab installs Chromium and forwards the declared path and pattern to the UI E2E Vitest configuration.
Production boundary matches the assertion: The current browser Gateway client selects token, bootstrap token, password, and stored-device credentials before constructing the connect plan, so checking the browser-to-Gateway connect payload is the right boundary for this test-only slice.
Findings None None.
Security None None.

How this fits together

The Control UI login gate collects an operator-selected token or password and passes it to the browser Gateway client, which builds the Gateway connect request. QA Lab scenario records select the focused Chromium test and retain evidence for release-confidence coverage.

flowchart LR
  A[Operator credentials] --> B[Control UI login gate]
  B --> C[Browser Gateway connect request]
  C --> D[Mocked Gateway outcome]
  D --> E[Visible connected or recovery state]
  E --> F[Chromium QA evidence]
  F --> G[QA scenario catalog]
Loading

Before merge

  • Resolve merge risk (P1) - Four compact checks were still in progress for the current PR head in the supplied status snapshot; merge should wait for the exact-head required checks and a Control UI owner review.
  • Resolve merge risk (P1) - The mocked Gateway proves browser credential consumption and visible recovery, not server-side token or password validation; the scenario scope should remain documented as browser-boundary QA.
  • Complete next step (P2) - This member-authored, maintainer-labeled PR needs normal Control UI owner review and completion of the current-head checks, not an automated repair lane.
Agent review details

Security

None.

PR surface

Tests +229, Other +63. Total +292 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 229 0 +229
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 63 0 +63
Total 3 292 0 +292

Review metrics

Metric Value Why it matters
Production versus test delta production +0, QA/test evidence +292 The branch adds durable coverage only and does not alter runtime behavior.
Primary QA coverage 2 primary taxonomy IDs, 1 Chromium credential test The slice maps device pairing and token/password authentication to executable browser evidence rather than YAML-only ownership.

Stored data model

Persistent data-model change detected: serialized state: ui/src/e2e/control-ui-credentials.e2e.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep this as a narrow browser-credential QA slice, land it after exact-head CI and Control UI owner confirmation, and leave server-side authentication-contract coverage to a separate real-Gateway test when that broader proof is needed.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep this as a narrow browser-credential QA slice, land it after exact-head CI and Control UI owner confirmation, and leave server-side authentication-contract coverage to a separate real-Gateway test when that broader proof is needed.

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

Not applicable as a defect report: this PR adds coverage. The source establishes a direct Chromium path from the login gate through the connect payload to visible accepted, rejected, and recovered states.

Is this the best way to solve the issue?

Yes. Separate scenario records plus one focused browser test are the narrowest maintainable way to add primary evidence without claiming server-side credential validation or changing production behavior.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This is a focused, test-only release-confidence improvement with no 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: The external-contributor proof gate does not apply to this member-authored PR; its supplied exact-head CI state includes completed real-behavior proof for the Chromium QA path.

Evidence

What I checked:

  • Focused browser coverage: The new Chromium test first rejects an unauthenticated connect, then verifies token-only and password-only connect payloads, visible rejection recovery, and successful reconnect without mounting the application shell during rejection. (ui/src/e2e/control-ui-credentials.e2e.test.ts:117, baa63bff9436)
  • Scenario-to-runner contract: Both new scenario records declare Playwright execution and a matching test-name pattern; QA Lab installs Chromium and forwards the declared path and pattern to the UI E2E Vitest configuration. (extensions/qa-lab/src/test-file-scenario-runner.ts:136, c37cfb0f260f)
  • Production boundary matches the assertion: The current browser Gateway client selects token, bootstrap token, password, and stored-device credentials before constructing the connect plan, so checking the browser-to-Gateway connect payload is the right boundary for this test-only slice. (ui/src/api/gateway.ts:612, c37cfb0f260f)
  • Current-main compatibility check: The PR base is the merge base with current main, and current-main changes do not overlap the added scenario files, E2E test, shared E2E helper, login gate, or Gateway auth-selection path; the supplied GitHub state also reports the PR as mergeable. (ui/src/e2e/control-ui-credentials.e2e.test.ts:1, c37cfb0f260f)
  • Feature-history provenance: Current Control UI credential, login-gate, mobile-pairing, and E2E-helper surfaces were introduced together by the recent Control UI change, establishing a concrete current-main ownership trail rather than assigning ownership from this PR alone. (ui/src/test-helpers/control-ui-e2e.ts:1, 8987e93c65e8)

Likely related people:

  • Vincent Koc: Current-main history attributes the credential client, login gate, mobile-pairing E2E helper, and related test surface to the same recent Control UI change; this PR extends that established path. (role: recent Control UI and QA-path contributor; confidence: high; commits: 8987e93c65e8, baa63bff9436; files: ui/src/api/gateway.ts, ui/src/components/login-gate.ts, ui/src/test-helpers/control-ui-e2e.ts)

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 (3 earlier review cycles)
  • reviewed 2026-08-03T17:30:40.795Z sha 4a0c000 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-03T18:22:56.253Z sha 4a0c000 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-03T18:28:52.886Z sha 4a0c000 :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc marked this pull request as ready for review August 3, 2026 18:23
@vincentkoc
vincentkoc marked this pull request as draft August 3, 2026 18:29
@vincentkoc
vincentkoc marked this pull request as ready for review August 3, 2026 18:29
@vincentkoc
vincentkoc marked this pull request as draft August 3, 2026 18:32
* origin/main: (25 commits)
  test(qa): cover plugin authoring contracts (#118821)
  fix(parallels): keep provider keys out of POSIX job logs (#118840)
  improve: reduce redundant Code Mode test work (#118815)
  fix(models): report primary OpenRouter limits in scans (#110855)
  test: speed up setup inference fixtures (#118811)
  fix(auto-reply): enforce canonical reset authorization (#118580)
  docs(gateway): fix invalid heartbeat visibility examples (#118827)
  fix(plugins): unify HTTP route conflict handling (#118203)
  test(agents): use prepared auth fixtures (#118816)
  fix(lmstudio): resolve JIT embedding variants
  fix(lmstudio): preserve embedding preload and model identity
  fix(ai): reject binary Codex websocket frames (#111138)
  fix(deps): bump brace-expansion override to 5.0.9 for HIGH advisory 1130705 (#118804)
  feat(cli): add session archive and delete commands (#118791)
  fix(openai): commit eligible final realtime transcription audio safely (#118782)
  fix(reef): restrict management commands to owners [AI] (#118578)
  fix(google): honor Cloud SDK credential location and Vertex billing project (#118745)
  fix(bedrock): preserve private embedding endpoints and AWS routing policy (#118744)
  fix(voice): make signed callback replay reservations durable and retryable (#118754)
  fix(openrouter): isolate custom proxy credentials and transport security (#118773)
  ...
* origin/main:
  fix(browser): protect private observation media and Canvas trust boundaries (#118775)
  fix(build): restore SDK packages and signed macOS app builds (#118833)
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Exact head is now baa63bff943637607437b4c665f9a8b088c2ecb6 after a no-rebase main sync for the canonical brace-expansion 5.0.9 lock state. Focused Chromium is green, both registered QA scenarios pass with schema-v2 refs equal to this head, scoped formatting and diff checks pass, and autoreview is clean. Please review this exact head.

@clawsweeper

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

Re-review progress:

@vincentkoc
vincentkoc marked this pull request as ready for review August 3, 2026 18:51
@vincentkoc
vincentkoc requested a review from steipete August 3, 2026 18:59
@vincentkoc

Copy link
Copy Markdown
Member Author

ClawSweeper before-merge items are dispositioned for exact head baa63bff943637607437b4c665f9a8b088c2ecb6:

  • Exact-head hosted CI is fully green with zero pending or failed checks.
  • Scope remains explicitly browser-boundary QA. The mocked Gateway proves credential selection, connect-frame consumption, and visible recovery; this PR does not claim server-side token or password validation.
  • Control UI review was requested from @steipete, but no external approval arrived. Proceeding without that optional external approval because the campaign owner/author is the current owner and recent author of the Control UI credential, login-gate, pairing, and E2E-helper surfaces; ClawSweeper found no defect on this exact head; production LOC is zero; and the external-contributor proof gate does not apply.

@vincentkoc
vincentkoc merged commit cd42cb7 into main Aug 3, 2026
149 checks passed
@vincentkoc
vincentkoc deleted the qa-control-ui-credentials-20260803 branch August 3, 2026 19:05
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 3, 2026
…-state-mutation

* origin/main: (22 commits)
  fix(delivery): renew stable producer leases (#118663)
  test(mcp): isolate catalog size checks from wall-clock load (#118871)
  test(ui): add credentials primary QA proof (#118790)
  fix(slack): prevent stalled presence polling from hanging shutdown (#117478)
  test(security): cover gateway shared auth modes (#118834)
  fix(macos): show gateway auth failures in app status (#118841)
  test(tui): route PTY gateway scenarios through explicit models (#118802)
  test(qa): add session transcript primary coverage (#118820)
  fix(browser): protect private observation media and Canvas trust boundaries (#118775)
  fix(build): restore SDK packages and signed macOS app builds (#118833)
  test(qa): cover plugin authoring contracts (#118821)
  fix(parallels): keep provider keys out of POSIX job logs (#118840)
  improve: reduce redundant Code Mode test work (#118815)
  fix(models): report primary OpenRouter limits in scans (#110855)
  test: speed up setup inference fixtures (#118811)
  fix(auto-reply): enforce canonical reset authorization (#118580)
  docs(gateway): fix invalid heartbeat visibility examples (#118827)
  fix(plugins): unify HTTP route conflict handling (#118203)
  test(agents): use prepared auth fixtures (#118816)
  fix(lmstudio): resolve JIT embedding variants
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui extensions: qa-lab 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: M 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