Skip to content

feat: use personal Tailscale identity in iOS chat and Dashboard - #163765

Open
TheAngryPit wants to merge 242 commits into
openclaw:mainfrom
TheAngryPit:feat/ios-personal-sign-in-20261002
Open

TheAngryPit wants to merge 242 commits into
openclaw:mainfrom
TheAngryPit:feat/ios-personal-sign-in-20261002

Conversation

@TheAngryPit

@TheAngryPit TheAngryPit commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Current CI repair — 6 November 2026

Head 034ba7118d534bcf956f3d8544b87f45120fbb4b preserves the branch history and normally merges pinned main 8662f3bf78dc7d644d207c8afb6f2f8b8f5750b0.

  • The three failing Swift fixture initializations now specify the captured role: "node"; no identity, token, revocation or connection assertion was removed.
  • The Node 24-only UI simulation supplies the TypedArray byte APIs required by the documented modern-browser/WebView floor and restores the original property descriptors after each test. Production byte encoders and device-identity paths remain those of main; experimental compatibility fallbacks were discarded.
  • Native authorization reuses the existing translated credential error and one equivalent authorization-validation branch. The retired extracted parser had no references after main moved the live parser inline, so that duplicate module is removed.
  • The scoped browser-API fixture adds 58 counted lines. Its existing feature allocation increases by exactly 58: the candidate adds 424 test lines against pinned main and records 424 lines of feature-specific credit. The shared scalar and all checks remain unchanged.

A fresh independent Codex P0–P2 review of this narrow repair found no actionable defects, including in padding/subarray semantics, descriptor restoration and preserved authentication guards. This is a supplied-patch/context assessment, not a review of the entire main integration or execution proof.

Verification limits: git diff --check passes. Earlier UI-build/performance measurements belong to their recorded intermediate source snapshots. The final local container refused its source-baseline preflight before running tests; therefore the new Node fixture, final build and native iOS compilation are not claimed locally green. Current-head hosted CI remains required. Intermediate runs with production byte fallbacks are not qualification of this candidate.

Pinned main itself is already 51 lines over its global test-line ceiling (6,550,629 / 6,550,578); the candidate's own 424-line delta is separately allocated, without hiding that upstream condition. CI/product acceptance is not waived. Historical proof below retains its original revision boundaries.

Hosted CI follow-up — 6 November 2026

Current-head CI 42276272124 builds the automatic merge against newer main 0a6590652dc6465d5f055cf2d328104fc10514d1.

  • The actual Vitest module receipt reports 45 passed, 0 failed, 0 skipped for native-gateway-auth.node.test.ts. All six test-type jobs passed; UI shards 1/3 and 2/3 and UI E2E 1/2 passed.
  • UI shard 3/3 fails one Browser Panel refresh assertion (null versus "false"). Its test and browser-panel.ts blobs are identical on that main base and the CI merge. This establishes unchanged source, not an independent reproduction on main.
  • Build artifacts, production types and downstream QA are blocked by Deep Research browser imports of missing ./client.js. The browser directory contents and blob hashes match on main and the CI merge; this is outside this PR's changes.
  • Performance remains failing and is not attributed solely to upstream. Main itself measures chat/new-session at 1,288,334 / 796,544 bytes, already above fixed limits 1,287,197 / 796,484. The candidate adds 453 bytes to each, exceeding the 64-byte allowance for an already-over-budget base. Startup 89,934 / 89,946 and CSS 324,346 / 324,684 pass. No budget, guard or CI policy has been relaxed.
  • The current test-line ratchet reports 6,552,094 / 6,552,042, 52 over, with the feature's exact +424 delta separately allocated. The earlier pinned-main 51-line excess above remains historical evidence, not a measurement of this newer base.
  • Native iOS/macOS Periphery compilation is still running. The Swift fixture repair is not yet claimed native-green.

These results do not establish merge readiness. The unrelated upstream build failure and performance acceptance remain explicit gates; historical device and simulator evidence below retains its original revision boundaries.


Native Dashboard admission refresh — 5 November 2026

Current head 9868c3ddc8ead08d321d11cd765b85dd73b56c61 removes only two allocation comments. Production and test blobs are identical to the qualified fc9b5841 head below; allocation/line-cap ratchets and diff checks pass at this new head.

Head fc9b58417f0e3529bfe372cbc883048430fa297e fixes two admission gaps: a matching personal recovery scope could be accepted from an unapproved Gateway boot, and the client could report connected before native admission. The existing admission owner now honors optional app-approved expectedGatewayId against hello.server.bootId and keeps connected pending until admission. Direct Serve callers without a boot expectation retain their existing behavior.

Incremental proof Result
Original-production controls Four intended failures: missing/wrong boot acceptance and connected before admission
Two focused UI suites 63 passed; 1.92s Vitest duration with the documented single-worker cost measurement
UI types, typed lint, formatting, line-cap and test-line ratchets Passed
Exact regression allocation 48 net lines in a separate record; shared scalar unchanged
Fresh Codex AutoReview, Sol/medium, P0–P2 scoped-clean for the supplied increment; shell access was denied, so unchanged-source inspection and independent test execution are not claimed

This is UI bridge/handshake evidence. New-head CI and native execution remain separate; the existing PR merge conflicts were not changed by this increment.

Earlier iOS identity proof

The selected PersonalGatewayAuthenticationTests passed on an ephemeral hosted iOS Simulator at head 6ff0ff5454ec618e07758204f388edf3c47495a1: 14 tests, zero failures and zero skips. Run 41636765728 checked out the exact public commit and recorded the xcresult summary. This is simulator evidence, not a physical-device run or a replacement for canonical CI.

Current integration and verification — 3 November 2026

Head 6ff0ff5454ec618e07758204f388edf3c47495a1 merges main 9066c989d58db469c2c748a5a8bec79b2eecdb29, resolves the Dashboard connection conflicts and fixes live iOS roster reads in personal mode without enabling shared offline caching. A retired native connection plan is checked before it can affect the successor's admission.

The two affected UI suites passed 60 tests; targeted format, typed lint, and the test-line ratchet passed. The new held-plan regression failed on the expected leaked event without the currentness check and passed with it. The iOS roster fix previously passed its native 15-test suite and was verified on a personal device in a prior integration; native iOS execution on this new head remains outstanding. CI and maintainer review remain pending.

Related: #162164 (native identity umbrella), #136686 (cross-client personal sign-in).

What Problem This Solves

iOS users need native chat and the embedded Dashboard to use the same Gateway-verified personal identity instead of grouping all paired apps under shared credentials.

User Impact

Users can choose personal Tailscale sign-in when adding a secure Tailscale Serve Gateway, or change it through the visible control on an existing paired Gateway. Successful personal authentication is used for native chat and the existing embedded Dashboard/Profile; there is no second Profile screen.

Leaving the choice off preserves token/QR access. Personal sign-in does not grant administrator permissions, and a failed personal connection never silently falls back to Shared owner. Device/node admission stays separate from human operator identity. Personal mode still excludes persistent offline chat/outbox and Watch command delivery; existing saved history is not migrated or deleted.

The Gateway must serve the matching Control UI changes in this PR. Updating only the iOS app while retaining an older Dashboard parser is not sufficient.

Why This Change Was Made

The app reuses existing Tailscale admission, signed-device challenges, connection settings and the Gateway registry. Pairing admits the node before starting the personal operator connection; route changes retire obsolete attempts. Trust/retry intent belongs to the matching connection attempt, not a recreated screen.

The Dashboard accepts credential-free Tailscale authorization only with a matching verified recovery scope. Its signing authority remains native and is retired on route changes.

Design help remains welcome: personal identity should follow the explicitly chosen and successfully verified authentication method. A Tailscale address alone is transport, not proof of a person. Broader Profile/account-linking UX, operator naming, local Mac Primary adoption and Cloudflare composition remain separate slices.

Evidence

Test-line allocation, 30 October 2026

The separate allocation covers exactly 409 net regression lines for personal hello admission, credentialless native bridges, parser cancellation and retirement, and legacy iOS handoff. These checks exercise distinct protocol and lifecycle boundaries. One redundant device-ID assertion was removed because the retained complete-device comparison checks the same value. Every test case remains, and the shared test-line scalar is unchanged.

A secretless offline replay of the exact failed CI merge reproduced its original 410-line failure. The candidate passed the native test-line check, formatting, and all 69 tests in four affected browser and native-authorization adapter files. This is local adapter and gate proof; native iOS runtime, protected effects, revocation and upgrade qualification remain separate.

Personal beta3 integration, October 22, 2026

A personal beta3 integration combining the required behavior from this PR and its companion #158051 was signed, installed over the existing iPhone app without uninstall/reset, and verified as 2026.10.10 / build 110994 with a launched process. The matching Gateway-hosted Dashboard UI was also deployed through the supported package updater, including a Gateway restart. Compiled backend/plugin bytes and the existing authentication policy were preserved; the macOS app was not changed.

This is personal integration and installation evidence, not a new exact-PR-head test run, official release, verified personal Dashboard session, final message attribution, revocation proof or full released-upgrade qualification. Three newly integrated native API tests remain unexecuted; physical Watch installation and preserved conversation contents are not claimed. The October 22 delivery note in umbrella #162164 records the cross-client dependency and remaining end-to-end criteria. Existing revision-pinned evidence below retains its original scope; the umbrella remains open.

Current integration and qualification (2026-10-20)

Published head: 9838fd3baf043720cfdb4664d6db513ade8dc9f1. It normally merges reviewed contributor integration f96588f405b945b7bae87d8fc187991b0bd3efbb with pinned main 3da32440469edba7c4b59ebc7d827fbe260e3ff5. Both commits remain in history; this was a fast-forward update of the existing contributor branch, not a force push or upstream merge.

The latest main integration completed automatically. Of the 33 feature paths relative to that main, only apps/.i18n/native-source.json differs from the preceding reviewed integration: it includes main's Android attachment strings. The personal-auth, required-method/recovery-scope, connection-lifecycle, shared session and test files are unchanged. This is a bounded source comparison, not whole-main or native-runtime qualification.

Independent static review of the supplied preceding integration diff returned no actionable P0–P3 findings. At f96588f, the affected Control UI auth tests passed 51/51 assertions (11 gateway-connect and 40 native-gateway-auth); the six affected UI files passed formatting. The separate workflow suites passed 711/711, and native source inventory generation/verification passed at that preceding revision. These receipts are retained at their tested scope and revision; they do not mean the entire new merge, Swift, WebKit, a simulator, a real identity provider or a protected Gateway effect was executed locally.

The automatic CI run 39480859811 completed successfully on this exact published head. At 2026-10-20 20:15 UTC, canonical checks showed 101 passed and 26 skipped, with no failures or pending checks; the PR was open, non-draft and mergeable. The policy statuses also passed after their automatic reconciliation. No contributor rerun, dispatch or second watch was used. Skipped native and release jobs are not executed proof, and successful CI is not maintainer product or authority acceptance. Earlier successful runs below remain earlier-head evidence.

Still outstanding: native personal attribution and an allowed protected effect; forbidden-principal denial; revocation/reassignment stopping pending effects before I/O; existing-data upgrade qualification; and maintainer product/authority decisions. Personal mode's offline-outbox and Watch exclusions remain. This does not implement personal identity for macOS local Primary. No disabled QA workflow was enabled or dispatched, and no new bot review was requested.

Earlier published integration and qualification (2026-10-15)

The published head is 90e5134, a normal merge commit with parents 8ae893c and 236bdcb, and tree fc53fc2edfc17c7311f9c9134de0083290ba95ca. It resolves the native iOS source-inventory conflict by regenerating apps/.i18n/native-source.json from the merged source; the generated delta adds the six inventory rows for four new native strings and main's source moves/removals. No translated locale file was edited.

The repository supports this source-only route: native source/inventory verification runs in the normal lane, while translated-locale refresh is handled after merge. The local native:i18n:baseline and native:i18n:verify commands passed. The strict full-locale check reports 84 missing localized values for the four new strings across 21 locales; the strict locale-parity job was skipped for this source-only change, so translation parity is not claimed. A scoped review of this generated inventory resolution found no actionable findings; its scope was the generated delta and source-only contract, not the full 33-file feature or runtime behavior.

The automatic CI workflow completed successfully for PR head 90e5134: 76 jobs succeeded, 18 were skipped, and none failed. The required openclaw/ci-gate job succeeded. Workflow metadata identifies the PR head; the exact hosted virtual merge checkout commit/tree was not verified, so this result is not represented as proof that a particular local tree was executed.

Same-head Shared OpenClawKit Periphery and iOS Periphery completed successfully, including their applicable shared-kit and iOS scans. The macOS Periphery workflow completed successfully, but its macOS dead-code scan was skipped after scope detection; that scan is not claimed as passing. The CI iPhone/iPad screenshot and screenshot-evidence jobs passed, but the iOS build and macOS Swift phases were skipped. Screenshot results do not establish native personal-auth runtime coverage. The docker-seed-e2e job also passed in the current run.

The PR remains open and non-draft. Product/operational proof and owner decisions remain open for native personal-chat versus protected-Dashboard effects, forbidden-principal denial, revocation or reassignment before pending I/O, released-install preservation of routes/credentials/settings/history/queued work, and the opt-in/offline-outbox/Watch exclusions. No architecture or behavior beyond the authorized conflict integration is claimed.

Prior-head evidence retained

The earlier automatic CI run 38729878407 and its docker-seed-e2e job 116405372325 passed on an earlier head; the live-mode and cleanup-smoke checks were skipped. The attached earlier Docker failure 38314760469 remains unexplained and unassigned; the later success does not establish its cause or a causal fix. The previous scoped source review remains available at the review comment; its findings and scope are not recast as a review of this generated inventory change.

Historical receipts (earlier heads)

Current head 0617f6b215b70c292d5928872360b28a8d469b9d normally merges canonical main 0690a2ef175fc73d69d73105638b69a90af35fe6. All 32 identity contributor paths, the existing focused native-test CI selection and the native source inventory are byte-identical to 76dcb5867dc565c7fdb024578dc5c1ac64c4497d. It consumes canonical commit 11a1569887f, which corrects the Dashboard route tests to expect the existing rowMode: "dashboard" query. There were no conflicts or new identity-source edits. Contributor whitespace checks and original commit hooks passed; fork and canonical head readbacks match exactly.

Canonical CI 38140721782 remains failed in smoke-profile parts 2/6 and 3/6 and the aggregate gate. Both failing cases reported a readiness timeout after a forced in-process restart; the Gateway log reported failure to reacquire state ownership without exposing the underlying cause.

Uninstrumented full-part proof 38162823598 passed both original parts on this exact product head: 3/3 scenarios in part 2 and 3/3 in part 3, zero failures or skips. The selected cases include subagent-completion-direct-fallback and subagent-empty-completion-recovery, which failed in canonical CI. The workflow extracts the exact shell step from this head's ci.yml; both receipts and an independent source extraction match script SHA256 804c55f3e5f668038edfba38b83b4a1fa501ba4961eadf94af3caf23b8714fd6. Original requested concurrency 10, worker stagger 1,500ms, readiness 180,000ms and per-run 10-minute limit are unchanged. As in the original jobs, the planner isolates these flow cases: the aggregate records concurrency 3 and each child runs at concurrency 1. Positive counts, case selection, source-pristine receipts and completed logs were independently checked. Part 2 artifact, part 3 artifact.

The earlier bounded diagnostic 38161188427 passed the existing run-loop suite (164 tests) and each failed case individually. Its reviewed QA-only cause logging was not applied in the full-part proof or published as a product fix. Both proof workflows use standard GitHub-hosted Ubuntu in the public fork, synthetic inputs and no personal runtime or credentials; they were disabled after starting their single runs. They do not claim an identical canonical runner image or live personal authentication. The original failure was not reproduced, its cause remains unknown, and this PR has no speculative auth/lock repair. A maintainer must rerun the canonical jobs: this account has pull-only canonical permissions.

CI 38137460530 on the preceding head also failed in tooltip shutdown, SQLite built-CLI wait and an Android approval-dialog assertion. Their causes are not established. This merge is not a claim those three failures are fixed, nor evidence of an authentication regression. The fresh run must qualify the current head.

Preceding candidate 76dcb5867dc565c7fdb024578dc5c1ac64c4497d integrates pinned main d1618ccd0b276f985711ff297b1b87a77bdad35d through a normal merge. All 32 contributor-owned paths are byte-identical to the preceding 830f5b8ae0b016c7ff4552705c2077eab26a0bd7 candidate. The sole conflict adopts main's markdown-table focus tests exactly. Upstream authorship and the existing Cloudflare ingress/admission owners are preserved. Personal auth is carried through the moved background-fleet owner and TLS trust/retry path; negotiated personal Tailscale auth still has no shared/device credential fallback and node admission remains separate.

The full 32-path integration received isolated Codex/Astra P2 review using exact public-source blobs. It found the duplicate Swift declaration; the correction received a scoped-clean follow-up review. git diff --check and the original staged-content hook pass. The six generated source-inventory additions were checked against their exact source literals and deterministic IDs.

CI 38110487032 identified a Swift initializer argument-order error in the controller. The correction places personal auth before ingress authorization, matching the existing declaration and fleet caller without changing argument values. Its isolated P2 review completed with no actionable finding; original hooks passed and the published head was verified.

The earlier run failed two shared markdown-table focus tests. A test-only correction awaited the same expected buttons and passed scoped P2 review, pinned formatting and original hooks. That correction is now superseded by the exact canonical tests adopted in the latest merge. Production behavior, default timeouts, cancellation assertions and auth guards are unchanged.

CI 38111749029 finished on 830f5b8: all three UI shards, both iPhone/iPad screenshot jobs and all six QA profiles passed. Source-contract checking failed because the exact tested merge b8eeaad3856bd927f0af6215da2f9cc3a0d64979 contained duplicate Doctor intro/outro exports. Current pinned main contains the upstream repair 3f08ea94a3373110e46b8f18cc4790344af4ecb3; this PR consumes that repair without adding another Doctor implementation. The prior Gateway smoke failure is historical, not a claimed current-head result.

Historical CI 38137460530 ran on 76dcb586 and its failures are described above. Original merge hooks and exact public-head readback passed. No new full native build, visual or live-provider result is claimed by the current hosted smoke proof.

The following completed QA and CI belong to the previous candidate 706c6fccf7596f67f0504664bb3a74d7833dad65, which integrated main 48c08e6ccba6b4cd12b2c7aafa75588abece6d18. They remain historical evidence, not results for the new merge head.

The historical worker-setup failure was reproduced in the old merge, then traced to repairs already merged upstream: 7ecc80a (setup/runtime-preference handling) and #165166 (concurrent placement-read/publication preparation). This PR integrates those repairs rather than duplicating a Core fix. Against that pinned main, the PR has no Gateway/placement or worker-setup fixture delta.

  • Exact-candidate isolated QA: 102 tests passed — owning placement/setup regressions (2 files / 27 tests), affected browser/native-authorization adapter tests (2 / 49), and the original 13-file real-Gateway E2E inventory (13 / 26). The previously failing worker-initial-setup case passed. Receipts verify product head, workflow 0721306776ae0691a0017645a30f4fef18702b7a, frozen lockfile, Node 24.19.0 / pnpm 12.5.1, and clean product source before and after execution. Receipt artifact.
  • Historical canonical CI at 706c6fcc and its CI gate passed. That incremental run's iPhone/iPad screenshot jobs passed; full iOS build/release-E2E and macOS Swift jobs were skipped, not newly verified.
  • Independent Codex AutoReview of the full 32-file PR delta against pinned main completed scoped-clean P2 before push. The separate fork-QA workflow also passed scoped P2 review. Review is static, not runtime or maintainer acceptance.

Proof boundary: the new QA used standard Ubuntu (4 CPUs), not the original Blacksmith runner. It verifies the integrated upstream repairs with the strengthened current fixture, not a byte-identical replay of the historical fixture. Ordinary real-Gateway E2E uses synthetic loopback admission; browser adapter tests are not a live personal Tailscale session. New full native authentication-suite execution, live protected administrative effects, revocation, second-principal/provider ownership, and App Store migration are not claimed. Earlier native/Simulator receipts remain stamped to their actual revisions below. This green CI does not claim a full repository build/check/test run or remove those live-service gaps.

Historical candidate receipts and earlier verification limits

These observations belong to the earlier candidates and their then-current CI. Their pending/failed checks are historical, not the current head's CI result.

Published candidate: caf0363c3b0, integrated with pinned main c81d86e82f6022b5bcacf2b7ebe5bd0e7f3fcf20. This adds a test-only repair to 9a29286; the preceding native/parser receipts are at 020970f and earlier slices, not a claim that every subsequently advancing main commit is integrated.

  • Latest CI repair: the shared WebSocket fixture records the required connect role, but twelve existing expected frames omitted it. Expectations now explicitly assert operator for personal connections and node for legacy connections. The native GatewayNativeTransportDeviceAuthTests suite passed 7 tests (one with five parameterized controls) on the exact test patch; browser Gateway tests passed 45/45. Correct UI-chat test types, official focused Oxlint, formatting and two-file Codex AutoReview (scoped-clean P2) passed. Compiler warnings outside the changed assertions remain. No production authentication or role behavior changed. The unrelated Google Meet lint error from that CI run was not modified, and fresh hosted CI is not yet claimed green.

  • test-audit found that the existing personal-mode Watch denial test opened the shared journal before exercising rejection, unnecessarily invoking legacy storage preparation. The test-only follow-up removes that setup, retains the actual admission error check and checks for no delivery warning. Source parity, pinned SwiftFormat 0.63.0 and independent scoped-clean P2 AutoReview passed. A fresh native rerun of this modified case is pending; no production auth, storage or Watch delivery behavior changed.

  • Pairing regression failed before the repair (operator attempted before node admission); the repaired native selection passed 97 tests. After pinned-main integration, 140 selected native tests and 257 Watch-owner tests passed with no failures or skips.

  • First-connection/settings verification passed 149 declared tests / 173 parameterized executions at the preceding integrated slice, including trust, retry, cancellation, target changes, saved-choice preservation and explicit off.

  • Isolated Simulator Dashboard/Profile reconnect and automatic relaunch passed. A private-candidate over-install also retained the paired route without new QR or trust approval. These are Simulator/private-candidate observations, not App Store migration or every personal Gateway's compatibility.

  • The final parser change passed 40 focused tests, UI typecheck, scoped lint and formatting. Official same-input comparison: startup JavaScript 373,444 bytes against the pinned baseline's 373,454 bytes; no budget or deadline was weakened.

  • Independent Codex AutoReview completed scoped-clean at P1 for the integration repairs and the final three-file parser delta. Reviews did not execute tests or establish every live security boundary.

  • The complete changed-file wrapper is not green: the final UI run stops at inherited environment-count drift (475 observed / 476 expected), also reproduced without the UI source change. No unrelated budget or source fix is included.

Vítor authorized publication using the completed QA and AutoReview, without additional visual proof on his personal installation. Existing sanitized recordings and the approved decision transcript are retained below as historical evidence, not final-head screenshots. Live second-principal/provider-ownership proof is not claimed. Simulator runs retain an unclassified responsiveness warning; the Watch suite retains audio-session main-thread warnings. Full repository build/check/test and new hosted CI are not claimed passed.

Historical iPhone recordings

Embedded Dashboard — previously published recording, 5.2 seconds. Settings loads and remains rendered. This is visible Dashboard behavior, not a trace of authenticated administrative side effects.

iPhone embedded Settings Dashboard loads

Authentication selector — same previously published recording, 3.3 seconds. Shows full access followed by the long-press menu offering “Use Shared Owner.” The clip demonstrates availability; it does not show executing that choice.

iPhone authentication selector on a personal route

Existing Profile — earlier recording, 4.3 seconds. Shows Settings → the existing Profile and management permission. Historical evidence, not final-head Profile proof; personal details are redacted.

Earlier recording of the existing embedded Profile

TLS trust/reconnect — earlier recording, 6.5 seconds. Shows a trust prompt, reconnecting and Settings. Historical evidence; it does not establish a visible Trust-button click. Fingerprint and private details are redacted.

Earlier TLS trust prompt and reconnect sequence
Agent transcript: Vítor's identity model, compatibility requirements, testing corrections and vanilla-first design decisions

Scope and provenance. Selected dialogue from September 30–October 2, 2026, checked against the original session rollout rather than reconstructed from an agent summary. The quotation blocks are English translations of Vítor's original Portuguese dialogue, not verbatim English speech. Obvious transcription errors and product-name misspellings are normalized without changing the intended meaning; […] marks omitted portions. The surrounding explanations are editorial summaries, not invented dialogue. This is a partial, task-scoped transcript, not a complete session export. The original helper reported sourceTruncated: true; this expanded selection was independently checked by streaming the original rollout. Raw logs, tool output, instructions, private endpoints, account identifiers and unrelated work are excluded.

Authorship. Vítor supplied the product rationale, constraints, test observations and corrective decisions below. The assistant investigated and implemented the candidate, but does not claim authorship of those human decisions. Proposed directions are not presented as shipped behavior or maintainer acceptance.

The governing idea is not “remove Shared owner” and not “always use Shared owner.” Preserve shared/token access where that is the chosen admission model; allow verified personal authentication to identify the person instead of collapsing every app into the shared principal. Keep identity separate from permissions and device pairing. Vítor further questioned the word “Shared” for a single-user harness and proposed addressing that naming separately. These distinctions, rather than GIF preparation, are why the contribution exists.

1. The problem is person attribution, not a new role system

Vítor — September 30:

This is not about roles. I don't want to change those for now; I want us to resolve Shared owner in the apps right now.

He distinguished the visible person identity from transport/client labels and permission policy. The immediate goal was to let native apps identify the person already authenticated, without redesigning roles or making every shared token claim to be a person.

Vítor — October 2, comparing simultaneous clients:

All at the same time on my personal OpenClaw: three identities, one on Telegram, one in the app, and another in the browser's Control UI.

This was an operator-reported cross-client attribution problem, not proof that all three connections had the same verified principal. The distinction mattered: a personal display name or avatar alone must not be treated as verified identity.

2. Separate the person from app/device admission to a Gateway

Vítor — September 30:

In other words, who you are in relation to that Gateway is one thing. Who you actually are is another. Do you see what I mean?

At its core, the handshake between the app and the Gateway—or the apps and the Gateway, whatever the setup—is one thing. Your identity is another.

And I can choose not to link any account and use a vanilla Gateway with a token […]

His conceptual model was a person who can interact through several apps or accounts, with Gateway admission remaining a separate concern. External-account linking must be optional; ordinary personal/local installations should remain usable through existing vanilla setup. This broader identity model motivates the umbrella; it is not a claim that this PR implements a portable global identity or changes Gateway trust policy.

He also asked to investigate existing enterprise/current-main behavior and reuse it if applicable, rather than invent another auth system. No enterprise implementation or maintainer approval is inferred from that request.

3. Keep Shared owner for compatibility; add personal adoption incrementally

Vítor — September 30:

For compatibility reasons too, I don't want to lose Shared owner. It needs to exist, for now.

I haven't configured that, versus I have configured authentication. So if I have authentication configured […] I should be able not to use Shared owner, do you see?

I'm using multiplayer and want everyone to use the apps, but everyone in the iOS or macOS app appears as Shared owner. That doesn't make sense.

The retained requirement is compatibility with shared admission, alongside an explicit personal-authentication path for native human actions. The umbrella covers broader clients; this PR is the bounded iOS Tailscale implementation. Existing macOS personal sessions should be reused, not described as absent everywhere.

Vítor — September 30:

But you need to look at this against current main, do you understand?

Current-main inspection was required before deciding what was missing. This transcript records that instruction, not a claim that the candidate is integrated with every subsequent main revision.

4. Profile is where optional identities should eventually come together

Vítor — October 2:

We need a way to link people's accounts […] I should be able to say, look, this is my account, and add it to Profile, do you see?

For anything that interacts directly with OpenClaw, such as channels, this matters, because otherwise the memory itself gets confused.

He connected attribution to an agent harness's longer-term memory: treating one human as unrelated app/channel identities can fragment the user's experience and memory associations. He reported that concern while using a memory integration; this is product rationale, not a measured memory-corruption result.

Vítor — October 2:

And Profile should be where you link or configure identities.

In more complex cases with multiple identities, such as channels plus authentication, they should all be able to belong to the same profile.

Optional account linking and a unified Profile belong to the umbrella's follow-up work. They must not turn this first slice into automatic account merging, role changes, or inferred identity equivalence between Telegram and an auth provider.

5. Authentication should drive identity, without removing the Dashboard

Vítor — October 2:

You're using Tailscale Serve, but you haven't chosen to use Tailscale authentication, for example. That's fine: you use Shared owner. If you decide to use Tailscale authentication, you use Tailscale and automatically stop using Shared owner, do you see?

In other words, I think this needs to be tied to authentication, do you understand?

The distinction is intentional: using Tailscale Serve as transport is not the same as choosing and successfully verifying personal Tailscale authentication. The preferred UX should follow the validated authentication choice instead of adding an independent “who am I?” switch. This is the requested design direction; the candidate still has the temporary explicit selector.

Vítor — October 2, after reporting the missing native Dashboard:

Not having the Dashboard is unacceptable. If we've fixed the Dashboard issue and then introduce a regression ourselves in another fix, that makes no sense. We need both.

The requirement was personal native attribution and a usable embedded Dashboard together, with existing Gateway permissions respected. A chat-only fix that regressed Dashboard access was not acceptable. His report prompted the Dashboard correction; it was not an instruction to grant administrator permissions to every authenticated person.

Vítor — October 2:

But logically, shouldn't it use whatever authentication the person has? Why complicate it?

At its core, authentication should determine which auth you use, and Shared owner or Owner should be for when you don't have that and only have a token.

6. Upgrade observations must retain differences between saved setups

Vítor — October 2, before replacement testing:

Let's test whether it breaks existing setups.

Vítor — October 2, correcting an over-broad upgrade interpretation:

No, that's not what happened. My personal Gateway's setup was preserved. The other one wasn't—the Hive one wasn't. […] But mine, the normal one, started directly. […] We're also comparing different experiences.

The operator reported that one existing personal setup reopened directly while the other required QR pairing. His explanation of why the installations differed was tentative. The transcript must preserve the observed distinction, not convert it into “all saved routes upgraded without intervention” or a proven root cause.

Vítor — October 2:

And we have video. We have the moment when I used the QR code; we have all of that.

I think it's working. It connected and authenticated directly with the QR code, opened Profile, and my profile appears here.

Vítor — later that day:

Right, but now I've recorded video and everything. […] You've fixed it, the Dashboard appears now; the UX question is where we put shared versus non-shared.

These are operator reports from physical testing. The attached GIFs show only their captioned portions; they do not independently establish complete cold-relaunch migration, forbidden final effects, or final-head coverage of every earlier observation. The remaining proof requests stay explicit rather than erasing the useful human observations.

7. Reuse the existing Profile; reject duplicated screens and shortcuts

The assistant introduced a separate native Profile wrapper and entry points while trying to make the selector discoverable. Vítor rejected that direction.

Vítor — October 2:

The problem is that a Profile screen already exists. Creating another one makes no sense. None at all.

And then you put shortcuts to that screen in several places. What sense does that make? It's vanilla first.

The correction was to remove the duplicate UI layer and keep the existing embedded Profile, personal admission and Dashboard work. That rejected UI experiment is not part of the reviewed candidate. The temporary selector should not be disguised as the final discoverable UX.

Vítor also explicitly requested the upstream test-audit workflow, not merely a generic principles review, and later checked that it had actually been used. The test cleanup removed redundant assertions without changing production behavior; its verification is reported separately in the PR evidence.

8. Small PRs, separate naming follow-up, and lead-designer integration

Vítor — October 2:

Shared owner doesn't make sense unless it's a multiplayer harness. Otherwise, what does Shared mean? Shared with whom? […] I think we should keep it, but we need to think about this.

Yes, but Shared should only be for multiplayer.

We should split this into small PRs under the umbrella. One of them should cover those two options for Shared owner.

Naming “Owner” versus “Shared owner” for single-user/multiplayer contexts is a proposed separate small contribution. It does not authorize silently renaming the current shared principal or removing its compatible behavior in this PR.

Vítor — October 2, authorizing this PR's temporary UX and design request:

Make the PR like this and ask the lead designer to help us integrate it. But suggest synchronizing it with authentication: if it's Tailscale, activate it automatically, as I already told you.

Resulting contribution boundary: ship no duplicate Profile, preserve existing shared admission, carry verified personal identity into iOS human operations and the embedded Dashboard, and ask the lead designer to integrate selection/recovery with the existing auth/Profile flow. Automatic identity adoption, account linking, naming, broader native-client adoption and maintainer acceptance remain separate proposals or gates. The transcript explains the human decisions behind the candidate; it is not a replacement for security or runtime qualification.

@clawsweeper

clawsweeper Bot commented Oct 2, 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.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 2, 2026
@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

Adds optional personal Tailscale sign-in shared by iOS native chat and the embedded Dashboard.

Example: An iPhone connects to wss://gateway.example.ts.net with personal sign-in enabled.

  • Before: Native chat uses saved shared credentials and attributes the connection to Shared owner.
  • After: The operator connection requires verified Tailscale authentication, and the Dashboard must receive the same personal recovery scope.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful implementation with meaningful native admission coverage and no definite introduced defect found; product acceptance, final-effect authority and released-state compatibility remain unresolved.
Proof confidence 🦐 gold shrimp (3/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Product

Kind: Feature · Worth it: Needs a maintainer decision · Fix scope: Partial
User problem: People using iOS and a personally authenticated browser can appear under different Gateway profiles and lose consistent attribution across chat and Dashboard.
Reason: The contribution addresses a concrete identity gap, but its new persisted choice and personal-mode exclusions need an owner decision; contributor-recorded operator feedback does not establish that approval.

Merge readiness

⛔ Blocked before merge - 5 items remain

Keep this PR open: it provides distinct iOS personal-identity work absent from current main, with no definite introduced code defect found, but it still needs product direction and authorization qualification.

Priority: P2
Reviewed head: 8ae893cc3f5a64a84d7c8e59d6b87abdd19ec9f1
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should iOS ship this opt-in Tailscale sign-in setting with personal offline/outbox and Watch delivery excluded, while broader identity UX remains separate?
  • Recommendation: Accept the bounded iOS slice: Approve the explicit authentication choice and stated exclusions, subject to the authorization and upgrade qualification already identified.
  • Why: The contributor records useful operator direction, but the inspected discussion and submitted reviews contain no repository-owner acceptance of this new persisted setting and bounded capability tradeoff.

Before merge

  • Add real behavior proof - Authority-chain proof required: show native personal chat attribution and an allowed protected Dashboard operation, reject that operation for a principal lacking permission, and prove revocation or reassignment prevents pending effects before I/O through the production owners. Native transport and iOS caller receipts support admission and retirement behavior but use synthetic fixtures; historical operator observations do not establish these final effects or the current visible selector. Animation inspection was limited by the review environment, independently of these explicitly acknowledged gaps. Supply redacted logs, live output or recordings without API keys, IPs, phone numbers or non-public endpoints. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Resolve security concern: Qualify personal authority through protected effects - The signer checks current native authority and the browser checks method and recovery scope, but supplied fixtures stop short of proving permission denial and invalidation of pending protected effects after revocation or reassignment.
  • Resolve merge risk - The new native-to-Dashboard signing path materially transfers personal operator authority; its resistance to unauthorized, revoked or reassigned principals at the final effect remains unestablished.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

  • [medium] Qualify personal authority through protected effects — apps/ios/Sources/Web/IOSPersonalGatewayAuthBridge.swift:105

Tests

  • Missing end-to-end proof: Still needed are personal chat attribution and allowed/forbidden/revoked Dashboard final-effect traces through production owners, plus an install-over upgrade from the latest released app preserving saved routes, credentials, settings, history and queued work.
Agent review details

How this fits together

The iOS connection owner derives separate node and operator sessions from saved Gateway settings; the native signing bridge authorizes the embedded Control UI while the Gateway owns profile resolution and permissions.

flowchart LR
  A[Saved Gateway settings] --> B[iOS connection owner]
  B --> C[Node device session]
  B --> D[Personal operator session]
  D --> E[Native signing bridge]
  E --> F[Embedded Dashboard]
  D --> G[Gateway authorization]
  F --> G
Loading

Technical review

Best possible solution:

Deliver one explicitly selected, Gateway-verified personal identity across iOS chat and Dashboard, with visible recovery and separate device admission.

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

This is a feature addition; source inspection confirms current main lacks the proposed iOS personal Tailscale selection, and no target code was executed during this review.

Is this the best way to solve the issue?

Reusing the existing connection, registry, Profile and native-signing owners is a coherent approach, subject to acceptance of the bounded personal-mode behavior.

AGENTS.md: found and applied where relevant.

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

Merge-risk options

Maintainer options:

  1. Qualify personal authority before merge (recommended)
    Exercise the production signing and Gateway owners through allowed and forbidden protected operations, including revocation or reassignment before pending I/O.
  2. Pause the slice
    Retain the contribution while its owner direction and security qualification remain unresolved.

Provenance checked

  • Native Dashboard authorization parser keeps the original intent (28e16ee: Reuse native approved identity and exact permissions without exposing native private keys or creating a second browser identity.)
  • Stored device-token lookup and persistence keeps the original intent (bc426f6: Bind reusable device credentials to their Gateway owner while preserving legacy rotation; the PR retains that behavior outside explicitly selected personal mode.)
  • Paired Gateway registry keeps the original intent (36b733b: Remember multiple Gateways with separately scoped credentials; the optional personal choice extends the existing owner rather than adding another registry.)
  • Personal-mode offline chat and queued Watch work changes intended behavior with a stated reason (5d8293c: Existing offline chat storage is Gateway-scoped; the PR deliberately disables personal persistence and Watch delivery to avoid replaying machine-owned work as a different person, retaining existing stored data.)

Testing

Proof path: in-process harness.

Security

Needs attention: No concrete bypass was identified, but the new personal Dashboard authority path requires final-effect qualification.

Evidence

Security concerns:

  • [medium] Qualify personal authority through protected effects — apps/ios/Sources/Web/IOSPersonalGatewayAuthBridge.swift:105
    The signer checks current native authority and the browser checks method and recovery scope, but supplied fixtures stop short of proving permission denial and invalidation of pending protected effects after revocation or reassignment.
    Confidence: 0.97

What I checked:

PR surface

Source +628, Tests +1216, Config +1. Total +1845 across 33 files. Added test files: 2.

View PR surface stats
Area Files Added Removed Net
Source 23 815 187 +628
Tests 9 1243 27 +1216
Docs 0 0 0 0
Config 1 1 0 +1
Generated 0 0 0 0
Other 0 0 0 0
Total 33 2059 214 +1845

Review metrics

Metric Value Why it matters
Persisted authentication choices 1 new optional Boolean personalTailscaleAuthentication is stored per paired Gateway; absent values retain shared authentication.

Root-cause cluster

Relationship: partial_overlap
Canonical: #162164
Summary: This PR implements the iOS Tailscale portion of the native personal-identity umbrella; Cloudflare composition remains a separate contribution.

Members:

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

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.

Label justifications:

  • P2: This is a useful optional identity capability without a demonstrated urgent regression or outage.
  • merge-risk: 🚨 compatibility: The PR persists a new authentication preference and requires matching Gateway-hosted Control UI support; released-app upgrade qualification remains outstanding.
  • merge-risk: 🚨 security-boundary: The bridge carries native personal authority into another WebSocket connection, requiring allowed, forbidden and revoked-principal qualification.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add final-effect proof for the nearest unauthorized principal and prove revocation or reassignment invalidates personal authority before I/O.
  • Demonstrate an install-over upgrade from the latest released app preserving paired routes, credentials, settings, existing history and queued work.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (20 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-05T05:58:26.487Z sha 706c6fc :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-11T04:16:46.336Z sha cb5662a :: needs real behavior proof before merge. :: [P3] Replace the added RPC polling loop with a completion signal
  • reviewed 2026-10-11T04:41:13.364Z sha 830f5b8 :: needs real behavior proof before merge. :: [P3] Replace the added RPC polling loop with a completion signal | [P3] Await modal focus restoration without real-timer polling
  • reviewed 2026-10-11T12:13:38.302Z sha 76dcb58 :: needs real behavior proof before merge. :: [P3] Replace the added RPC polling loop with a completion signal
  • reviewed 2026-10-11T12:58:40.038Z sha 0617f6b :: needs real behavior proof before merge. :: [P3] Replace the added RPC polling loop with a completion signal
  • reviewed 2026-10-11T18:30:12.924Z sha 0617f6b :: needs real behavior proof before merge. :: [P3] Replace the added RPC polling loop with a completion signal
  • reviewed 2026-10-11T19:12:03.684Z sha ee3d962 :: needs real behavior proof before merge. :: [P3] Replace the added RPC polling loop with a completion signal
  • reviewed 2026-10-12T22:38:57.012Z sha 607c286 :: needs real behavior proof before merge. :: none

Reviewed October 15, 2026, 8:08 AM ET / 12:08 UTC (Revision 21).

@clawsweeper clawsweeper Bot added the proof: 🎥 video Contributor real behavior proof includes video or recording evidence. label Oct 2, 2026
@TheAngryPit

Copy link
Copy Markdown
Contributor Author

Integrated current main (9cc2ba25403) in ed3ceab3c93, as requested by Vítor.

The conflict was in native chat model ownership. This keeps main's simplified owner/agent check and preserves retirement of the old transport when the personal identity changes. I also fixed two test-only typing errors found by the UI fixture typecheck; the assertions and production behavior are unchanged.

Verification: 81 focused Control UI/API tests passed; UI production and fixture typechecks passed. The matching native production snapshot passed eight declared simulator tests (12 parameterized runs), including foreign-document refusal and lost-authority Dashboard retirement. This is not a new physical-iPhone or live-provider run. The previous GIFs and transcript remain historical evidence, not evidence of this new head.

The general changed check stops on an unchanged Windows changelog checker: its docs-mirror path test expects /, while Windows returns \. The changelog and checker match the pinned main. No unrelated changelog changes or relaxed checks are included.

Personal Tailscale chat and Dashboard remain together; shared pairing and the existing Profile remain intact. The draft's live authority, upgrade and final-effect proof gaps remain open.

Fresh mandatory openclaw-autoreview completed against this head and pinned main: scoped-clean at P0/P1, exit 0. This is a source review, not live-provider or revocation proof. The PR body retains the GIFs and transcript and now distinguishes their historical evidence from current-head verification.

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Maintainer security review required

This external contributor PR changes sensitive security components. A maintainer must review these changes before merging.

Current SHA: ef2ed44c9f115ab638b1f911252e0b89a39d1b20

These sensitive security changes were made:

  • src/agents/bash-tools.exec-auto-review-state.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/gateway/operator-role-policy.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/session-activity-summary-authority.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/infra/client-credential-migration.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/infra/client-credential-recovery-plan.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/infra/client-credential-store.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/infra/state-migrations.shared-auth-store.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.

After reviewing the changes, post a new PR comment containing only approval commands, each on its own line:

/allow-security-sensitive-change

A later push requires a fresh approval comment.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: android App: android app: ios App: ios app: linux app: macos App: macos app: web-ui App: web-ui channel: discord Channel integration: discord channel: feishu Channel integration: feishu channel: irc channel: line Channel integration: line channel: mattermost Channel integration: mattermost channel: telegram Channel integration: telegram clawtributors PR from a clawtributor cli CLI command changes commands Command implementations docker Docker and sandbox tooling docs Improvements or additions to documentation extensions: browser extensions: codex extensions: copilot extensions: diagnostics-prometheus extensions: github GitHub plugin: link previews and reader extensions: lmstudio extensions: memory-core Extension: memory-core extensions: minimax extensions: ollama extensions: openai extensions: qa-lab extensions: tokenjuice Changes to the bundled tokenjuice extension gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. plugin: imap plugin: knowledge plugin: skill-workshop plugin: workboard rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts security-review-required security-sensitive-changed size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.