Repository navigation
feat(auth): allow operator access without credential enrollment - #192343
roboclaw-bot wants to merge 12 commits into
Conversation
Co-authored-by: sallyom <[email protected]>
Worked on by: - @sallyom Co-authored-by: sallyom <[email protected]> OpenClaw-Publication: d3954b07-35a7-485d-844f-f9451588aec2
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Credential-enrollment scope: default-state visual comparisonActual components with the same synthetic Before — pinned main
|
|
Codex review: stale review; fresh review needed. Summary Next step |
Merge pinned main d688289 without rewriting published history. Preserve current per-connection management, native account pickers, verified identity, and enrollment denial coverage. Repair the required chunk timing label and canonical offline fixture phase. Co-authored-by: sallyom <[email protected]>
Worked on by: - @sallyom Co-authored-by: sallyom <[email protected]> OpenClaw-Publication: 5d47062f-1a7f-45e5-9509-ae7a6b5207cf
November 6 actual live-main conflict repairCorrection: the prior PR-recorded base0b9 comparison did not establish live-main ancestry. The earlier GitHub-inconsistency explanation is withdrawn. Live main at18:49:53UTC was Current published head Four focused existing auth/origin/session files passed132cases; final paired-device file8/8passes, including two new real-token cases red at the corrected old-floor comparison and green at the repair. Scoped types,6filetypedlint, formatter, PR-relative diff, generator and normal hooks pass. Fresh independent canonicalP0-P2 review scoped-clean, context omissions/no independent test execution disclosed. Own+1067LF fullyallocated; pin/candidate same52LFinheriteddebt, no scalarraise or coverage deletion. Profile3caselocalproof is setup-blocked beforetests by Vite code.charCodeAt (samefreshcache); no install or unrelatedUIrepair and no current-browser-green claim. Priorproof remains source-qualified; currentCI notawaited/notgreenclaimed. At19:29:23UTC, live remote main8649697d999c187c69dd23abae8046e6df042531 and PRheadbcea were read directly; GitHubmergeable=true, stateOpen, mergeStateblocked—notdirty. No further freshness cycle, ready/merge flip, newcomment or hostedreviewrequest. Full latest proof/corrections are in the PRbody. Historical earlier follow-ups (superseded mergeability basis)November 6 update — Beam fixture repairPublished head The Beam R0 admission row left shared scopes read-only. The following revocation cases now restore their writer fixture before handler creation; production policy, assertions, and source timeouts are unchanged. The full original-order file reproduced 2 passed / 2 hung with a 1.5-second diagnostic deadline; after the one-line reset it passes 4/4 at the normal timeout. Scoped canonical typecheck, explicit-file typed lint, format/diff/hooks pass. Fresh independent canonical P0–P2 review is scoped-clean, with context omissions and no independent test rerun by the reviewer disclosed. This pin merged without textual conflicts and changes no auth/grant, Knowledge, dependency, or Profile-case inputs from the prior head; matching earlier proof is reused, not claimed as new-head CI. Own exact +1040 LF is allocated; both main and candidate retain the independently measured 7-LF inherited debt, without scalar increase or coverage deletion. No blanket main-red claim or unrelated UI repair. PR remains Open, no ready/merge action or new hosted review request. GitHub still reports dirty despite verified current-base ancestry; that unresolved observation is not called clean or bypassed with another push/base cycle. New-head CI is not awaited or claimed green. Current detailed proof is in the PR body. Addressed the concrete P2 stale Profile browser cases. Earlier P2 follow-up head: The original restricted cases used retired controls/copy despite #191314/#191312/#192208 already being in the published base. They now exercise Manage → setup with enrollment unavailable → Disconnect RPC/outcome; W0 selects and clears model defaults through the native picker, R0 makes no select/clear requests, and verified identity/co-author preference state survives disconnect. All four enrollment counters remain zero; the nearby legacy reader flow remains covered. Narrow CI repair: the newer CI main changes the personal management label from “Manage connections” to “Manage accounts.” The two PR-added R0/W0 unit cases failed literal lookup. Both unit and browser queries now resolve the existing CI classification of the prior head: CI actually checked merge
Published-head assertion red was unavailable because preparation failed; the timing-label prerequisite has a separate qualified red/green regression. Broader authority-effect, upgrade, live OAuth/provider/inference, and native Apple proof remains unclaimed. The PR is now Open following an outside state change; this worker did not mark it ready or merge it. Newer-main conflicts remain; no new main-integration cycle or duplicate human-requested re-review was started. |
|
@clawsweeper rereview |
|
🦞👀 Re-review progress:
|
|
Keep the R0/W0 management and disconnect assertions independent of literal copy changes. Use the existing personal-action catalog key in both unit and browser flows. Retain all permission, zero-enrollment, RPC, and state assertions. Co-authored-by: sallyom <[email protected]>
Worked on by: - @sallyom Co-authored-by: sallyom <[email protected]> OpenClaw-Publication: e7e33701-594f-4692-9b4a-343218d1d6d8
Merge pinned main 77c263b without rewriting published history. Keep the upstream early Knowledge canWrite projection, including unprovisioned stores, and retain ordinary W0 write access with existing policy and tool-grant limits. Extend the upstream passive-discovery regression with R0/W0 status before first write. Resolve the auto-merged browser action/status copy through its existing locale owner. Co-authored-by: sallyom <[email protected]>
Worked on by: - @sallyom Co-authored-by: sallyom <[email protected]> OpenClaw-Publication: 1ef38cb9-7f64-43e9-9800-59d9ae5e93fe
Merge pinned main 0b9f3ab without rewriting published history. The new R0 admission row leaves the hoisted request scope read-only. Restore the legacy writer fixture before each revocation phase so it reaches revalidation. Keep production admission, existing assertions, and normal test timeouts unchanged. Co-authored-by: sallyom <[email protected]>
Worked on by: - @sallyom Co-authored-by: sallyom <[email protected]> OpenClaw-Publication: efb876cb-bb5c-47e0-884d-27d62221eb82
Merge live main pin 8619989 with published 9292224 history retained. Keep the extracted paired-device read owner on the no-enrollment floor while preserving raw grants and peer checks. Use strict retained-grant containment with the upstream current-role revalidation lifecycle. Retain both own-session suites and locale-owned Profile actions; regenerate the config baseline. Co-authored-by: sallyom <[email protected]>
Worked on by: - @sallyom Co-authored-by: sallyom <[email protected]> OpenClaw-Publication: 354b63bc-0851-408e-a93c-843daa359b7d
|
closing for now, not convinced this feature is required. |


Supersedes #179959, closed after replacement verification.
What Problem This Solves
Operators cannot currently grant ordinary assistant access without also granting personal credential enrollment.
User Impact
Additive
operator.read.no-credential-enrollmentandoperator.write.no-credential-enrollmentgrants preserve ordinary capabilities and existing saved-account use while withholding new provider and personal GitHub enrollment. Existing read/write/admin grants retain their behavior. This is an API/UI guardrail, not host-execution containment.Why This Change Was Made
Use the shared ordinary-capability predicate while keeping issuance, retained grants, and role ceilings strictly attenuated. Enrollment uses one method classifier and live authority checks. The cutover includes Gateway callers, plugins, web/native clients, and the current shared personal-identity owner; saved-account selection/unlink and GitHub status/cancel/disconnect remain available.
Evidence
November 6 actual live-main conflict repair — 8619989
0b9f3ab3was not the livemainbranch ref. The earlier “GitHub inconsistency” explanation is withdrawn. A livegit ls-remotesnapshot at 18:49:53 UTC selected861998907eabb5728762a8e4fef617a333e82d4c; its real merge preview exposed five conflicts. Relevant changes to the four hand-merged paths are timestamped before the earlier 17:57 publication, but the previous live-ref/UI-list snapshot was not captured, so these are not claimed to be newly appeared conflicts.bcea302aca3525801149db9526e3a2976d853181has reviewed tree9833880083e341ea9b8802e06aede199ecd0efb7. Normal mergea5e18ca7692df15b5dd4999b915f9dbfad504700retains9292224and the live-main pin as parents. No force rewrite, replacement PR, or lost Beam repair.http-auth-utils.ts,server/ws-origin-policy.ts,method-scopes.own-session.test.ts, the GitHub Profile E2E file, and the generated config-baseline hash. The paired-device read fallback now belongs to upstream's extractedhttp-operator-device-token.ts; obsolete local constants were removed, with the no-enrollment read floor at the current owner and raw verified grants/tunnel-peer checks preserved. WS revalidation keeps upstream's livecurrentRolelifecycle and the feature's strict retained-grant comparison. Both bounded-action and session-only dictation suites remain. Profile actions retain their locale owner. The baseline was regenerated canonically, not hand-picked.TypeError: code.charCodeAt is not a function; a fresh task-owned module-cache namespace produced the same error. No dependency/shared-install changes or unrelated UI repair were made. Earlier browser proof is retained as earlier proof, not relabeled green on this head. Older UI/E2E failure attribution remains partial; no blanket main-red claim. Full authority-effect, live Gateway/OAuth/provider/inference, upgrade, native Apple, and new-head CI proof remain unclaimed.8649697d999c187c69dd23abae8046e6df042531and the PR branch was the publishedbcea302...; GitHub reported mergeable=true, state Open, merge stateblockedrather thandirty. Main advanced without a remaining conflict, so no freshness-only cycle was started. No ready/merge action or duplicate hosted review request; CI/review has not been awaited or claimed green.Earlier November 6 Beam repair — recorded base 0b9f3ab
1310eb92644adaad1a07d004ae8d1344110b3b5cretained349d64band0b9f3ab3; earlier published head9292224had reviewed tree09438d7. This ancestry was verified, but the recorded base was not a verification of then-live main, as corrected above.Earlier bounded integration — main 77c263b
77c263b9fa112ce0e1657f6cbf56016092cd1077through normal mergec8ba8b0b, retaining5e60b8dand the pin as parents. Earlier published head349d64bhad reviewed treeb238ed4. No force rewrite or replacement PR.canWriteremains before the never-written-store early return, with W0 ordinary writes, R0 read-only,policy.writesEnabled, read-only tool grants, and existing admin/shared/private ceilings preserved. No duplicate post-initialization computation.Earlier November 4 refresh and P2 repair — d688289
d6882898e0d365c733adeec468a26c8b7f97dc32with normal mergeabbbd00c, retaining old head1cb0f7dand that pin; earlier published heade41bdf7had reviewed treea104330.Historical November 3 proof on e144d0c → f5da3be / 1cb0f7d
e144d0c; the initial Gateway batch 15 files / 481 tests and Control UI 4 files / 84 tests passed. Talk consult and portal-list parity regressions also passed; overlapping batches were not added together.Historical default-state visual comparison
These images remain historical, source-pinned evidence, not screenshots of the November 4 refresh. Same proposed
operator.write.no-credential-enrollmentgrant, light theme, actual components; 1280×960 crops remove only blank lower margin. Full captions and source pins.Before — pinned main
e144d0c, where the proposed W0 scope was unsupported (not legacy full-write):Historical after — candidate
f5da3be, reviewed tree31a5482, identical to historical published head1cb0f7d:Credit: @sallyom.
Work sessions
Worked on by