Skip to content

feat(ios): own Cloudflare Access browser and profile admission - #147238

Merged
roboclaw-bot merged 35 commits into
mainfrom
feat/ios-cloudflare-ingress-20260913
Oct 8, 2026
Merged

roboclaw-bot merged 35 commits into
mainfrom
feat/ios-cloudflare-ingress-20260913

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 13, 2026 •

Copy link
Copy Markdown
Member

Related: #147070 (merged). Prerequisite for #147244.

What Problem This Solves

iOS saved Gateway profiles need one owner for Cloudflare Access browser admission, shared grants and acknowledged retirement, so departing or replaced profiles cannot revive stale authority or break a live peer.

User Impact

Shared sign-in survives a participating profile’s departure. Cancellation and failed cleanup remain explicit. Pairing and ordinary service-header routes stay independent; Sign out removes the app’s Access grant, not the identity-provider session.

The repair also distinguishes a fresh registration from a retired authorization even when both share an origin and grant revision, preventing native connection/fleet reconciliation from retaining the stale config.

Hosted native checks and scoped local install-over, existing-state storage and clean-storage-control evidence are available. The October 5 verified addendum below supersedes older statements that these storage results are absent. Maintainer review of the stated coverage limits and current repository gates is still required; this update does not declare merge readiness. Full activation/Share and its independent acceptance remain with the dependent PR.

Why This Change Was Made

The existing ingress/session owners fence suspended work by registration, admission checkpoint and grant revision. Retained receipts own cleanup until retirement settles.

At Colin’s request, this stack is rebased onto pinned main 6693bb9665ced2a4fea3e286f62acfd0116e2c72. No later main movement is being incorporated. Independent ingress commits and original authors are retained; historical integration resolutions remain individual commits rather than being lost or squashed. Main’s current native owners remain authoritative.

Independent review identified the same-revision/stale-registration config comparison gap. The authorization now carries its producer’s registration ID into connection and UI-authority comparisons. The existing ordinary-admission/media-drain test adds a canceled-transition case and checks both replacement and stable repeated preparation; no Dashboard capability or identity policy is added.

Evidence

October 7 MCP security update — current candidate

Head 5ba52c2; tree 4d6f28d6689a67834c18c6a08cc5ee291fd381d9. Normal fast-forward child of prior ingressfef27b65808b4956116e612da855fcdb18a0226c.

Colin approved the MCP-only update at01:09 UTC October7, lifting the earlier dependency hold for this scope. Backported the MCP portion of upstream #166217 (c39d9b0): SDK1.31.0, client/core2.2.0, its required background issuer-preservation compatibility guard, and matching regression/SDK-receipt tests. Unrelated service-worker/UI changes were excluded. Main remains pinned at6693bb9665ced2a4fea3e286f62acfd0116e2c72.

The shared MCP delta was executed on ingress tree4d6f28d6689a67834c18c6a08cc5ee291fd381d9; activation reuses that proof with byte-identical dependency and MCP inputs. Executed isolated proof: regenerated lockfile unchanged; frozen install and supply-chain age policies passed; production dependency audit passed with no high-or-higher npm-bulk matches (not comprehensive vulnerability clearance). Seven focused MCP OAuth/Gateway files passed 96/96,141.798s total wall including cold preparation; three UI MCP-client bridge/security files passed 11/11,3.546s wall. Formatting, targeted TS lint (zero warnings/errors), normal pre-commit hook and whitespace passed with unchanged source tree. Per-file hosted CI cost was not measured. Upstream issuer-preservation and explicit-login regressions are included; no new iOS tests.

Fresh independent P0–P2 backport review: scoped-clean,0.89. Three MCP source/test files match upstream exactly. Original author Patrick Erichsen and upstream Vincent Koc/Dallin Romney credit retained, with Colin coauthor credit; signatures verified. Normal project hooks ran against the exact isolated copy, not during the private-bare host commit (hooks unconfigured there).

The entire activation-over-ingress product diff is byte-identical before/after; both branches carry the identical MCP delta. No iOS app/Settings source or physical installation changed. Prior native/device/UI proof stays attributed to its original tested source; no blanket retest is requested. Historical failures and independent acceptance/remaining qualification limits are not waived.

Terminal exact-head follow-up (October7): CI37556248970 passed. The MCP production-audit blocker is cleared. iOS Periphery37556248424 and shared Periphery37556248342 executed successfully; downloaded payload receipts show zero iOS findings and zero shared intersection (297 iOS/427 macOS consumer entries). Standalone macOS app scan was skipped after scope-only success. Skipped lanes are not execution or independent acceptance. Ingress ClawSweeper revision46: Platinum4/6 overall, Diamond5/6 proof, no actionable findings. Needs-human remains for independent affected-suite coverage/scoped-reuse acceptance; activation-only physical gaps are not imported into ingress. All requested workflows and exact-head reviews are terminal; no watcher remains active. Old MCP failures, cancellations and dependency-held wording below are historical and superseded by this authorized repair, not retroactively green. No PR merge, auto-merge, full rebase, unrelated main refresh, CI rerun/dispatch, Dashboard work or release.

October 7 consolidated qualification disposition

The validation return reuses the pinned ingress fef27b6 build/transport replay and retained storage/Share evidence; no new ingress execution or repair occurred. The historical listener-startup timeout remains separate from activation fleet retirement: the subsequent two-variant contextual replay is a completed success, not an established explanation/fix for the original failure. Independent ingress disposition should consider its own evidence rather than automatically waiting for activation-only physical qualification.

The return mixes ingress build labels (105880 in its overview,105849 in its embedded product list); this new return is not used to reassign a binary hash/build to the source without the original binding. Retain prior source-bound evidence and this attribution limit. Independent acceptance is not supplied. No source/base/dependency change, new test execution, merge or auto-merge.

October 6 returned current-source qualification

Colin supplied validation-host results for unchanged head fef27b65808b4956116e612da855fcdb18a0226c: strict Mac preflight and normal simulator app/test-bundle builds passed. The previously failing native fleet-startup case completed one top-level test with both transport variants passing; retain the original failure, since a successful replay does not establish its cause or a fixture fix. Simulator install-over, nine stored controls, saved-profile switching/header use, offline recovery and synthetic chat are reported successful within the disclosed scope. These are attributed host results; the raw xcresults and preservation payload were not independently retrieved here.

This supplies current-source build/replay evidence for independent ingress review alongside retained source-bound storage/transport proof. Activation-only physical expiry, retirement, shared-origin and clean-setup gaps should not be automatically substituted for an ingress decision. Independent acceptance is not claimed. No source change, newer-main integration, merger, or gate waiver occurred on this PR.

October 6 completed hosted follow-up

CI 37481065330 passed for this head. iOS Periphery 37481064874 and shared-kit Periphery 37481064882 also passed, including actual scans, the iOS dead-code gate and shared intersection. These are executed scans, not skipped jobs.

The natural CI checkout was merge 8fd3ef5e8d27546295134b49e976765741631c55 (GitHub runtime main bff90d69144ceec82e75f92d59c3a29ec7876351 plus this head). That hosted test merge does not change the branch’s deliberately pinned main baseline 6693bb9665ced2a4fea3e286f62acfd0116e2c72; no newer main changes were integrated.

Current-head ClawSweeper revision 42 found no concrete introduced correctness defect, while retaining composed-candidate Apple compilation/lifecycle qualification. Normal ios-build, macos-swift and ios-release-e2e jobs were skipped; green CI/static scans do not supply that missing native execution. No merge or acceptance waiver is claimed.

October 6 pinned-base rebase — current candidate

  • Head: fef27b65808b4956116e612da855fcdb18a0226c. Tree: 5a009b4815cbf9d8b11639fe0a48235eceb801dc. Base is pinned main 6693bb9665ced2a4fea3e286f62acfd0116e2c72.
  • 34 independent commits replayed, with original authors/dates and Colin’s coauthor credit preserved. All 34 SSH signatures verified. Full final tree equals the native main/old-ingress composition. This intentionally rewrites branch history; it is not a squash or a PR merge.
  • Credential-free Linux checks: 651/651 focused workflow/planner/Xcode-wrapper cases; 174.24s wrapper wall. Root-test lint: zero warnings/errors, 7.3s. Workflow gate passed pinned actionlint/zizmor and repository guards. Changed text formatting and the two main-adapted Swift files passed. Native inventory: 4,485 entries, no drift. Normal SwiftLint wrapper: 0 violations across 479 files, with three SourceKit-dependent rules unavailable on Linux.
  • Normal repository pre-commit hook passed against the exact candidate product delta in the isolated validation copy, leaving its source/index unchanged. The private-bare history replay itself did not have project hooks configured; hook execution is not inferred from signed commits.
  • Required independent P0–P2 adaptation reviews completed; the historical isolation finding is fixed by the preserved Keychain-owner regression. Parent independently verified composition, current owner guards, commit mapping and source boundaries.
  • Main’s approved source-map-js 1.2.2 fix is included. The exact CI production-audit entrypoint passed: npm bulk returned no high-or-higher production advisory. This is not comprehensive vulnerability clearance. Dependency/audit inputs match pinned main exactly.
  • At publication, hosted checks were pending; terminal outcomes are now recorded above. Earlier hosted results below remain bound to their old heads. Current-source Mac compilation/runtime, the separately reported listener-fixture startup failure and applicable owner/qualification requirements are not waived. Preserve completed historical storage/install-over evidence; do not repeat entire campaigns solely for a rebase.
Earlier source-bound evidence and qualification history

All “current”, “new”, “published” and pending-approval wording below describes its explicitly named historical source/time, not the rebased candidate above.

Current-head hosted CI — main-owned telemetry failure

Natural CI run 37361393627, attempt 1, completed failure: the complete 84-job inventory has 67 successes, 15 skips, and two failures—the extension-lint job and its downstream aggregate gate. No cancellation or separate failing test job is hidden by this classification.

check-lint-extensions-3 reports extensions/diagnostics-otel/src/service-events.ts:37:15: the switch does not cover worker.request. Actual checkout/workflow was merge e6dc0ad0c8fc68963f08519d467cc99fbdd8c592, whose parents are main 11d3d04a1279781a770f6a6aa09e6322b064b80a and this published head—not the older metadata base. Main’s 11d3d04 introduced that event variant without updating the OTEL consumer. Exact tree/blob comparisons show the tested merge’s src/extensions/packages/config/dependency/lint inputs match that actual main parent. This PR adds only iOS selectors to the workflow; existing policy makes that workflow change request full extension lint, exposing the main-owned defect.

This is CI-observed, source-derived attribution, not an executed exact-parent lint replay or a CI waiver. The exact-main push’s green result ran only security-fast and skipped lint, so it is not a passing lint baseline. No iOS source change, rule suppression, manual rerun or empty repush was made for this failure. The aggregate remains red until handled through an applicable authorized repair/landing workflow.

October 5 main integration — current published candidate

Head 7696061bc794292bcca62a47bdd1a6f9c7dc134b, tree 6f37ddb0845cce43da5b3817777c5a33d0ae5f90. Ordered parents are the previously qualified ingress a675a43c1af704eb014094f8e10eaff90d8a2e13 and pinned main 4d94a9fac61f2e83331a09df18ad35cdfb1faf5c. A normal fast-forward branch update preserves contributor ancestry; no PR merge or automatic merge was requested. Live GitHub readback now reports the branch mergeable rather than conflicting. Required checks/review remain separate.

The actual whole-tree Git merge produced one conflicting file, test/scripts/ios-lifecycle-workflow.test.ts. Resolution keeps main’s parameterized smoke/full tests, shared selector/input arrays and disabled-job precedence while retaining the four ingress selectors, shared fixtures and TLS-generator input. The clean YAML merge also duplicated AsyncTestGate/TestWait; each target entry now occurs once, with DashboardHTTPFixture, TLS resource and its generator retained. Main’s registry, TLS Mutex, auth-option and helper simplifications stay composed with ingress; no old migration or retired API is restored.

New-tree validation: pinned formatter checks passed for the four affected script/workflow/YAML files; focused root-test lint passed with zero warnings/errors. The three existing workflow/Xcode-owner test files passed 634/634 (559 planning, 73 lifecycle, 2 Xcode diagnostics), 153.86s wrapper wall / 154s measured command wall. The lifecycle file itself took 6.038s; this is Linux workflow proof, not iOS execution. Structural YAML checks confirm single fixture entries and the TLS resource/producer; no XcodeGen execution is inferred. Canonical native-i18n verification passed with 4,485 unique entries and no drift, plus the source-level Android/Apple localization checks. Candidate source/index identity stayed equal to the recorded tree.

Required independent P0–P2 review completed scoped-clean for an exact-tree comparison against main. It covered the whole ingress product delta and supplied fixture context, not just conflict markers. Normal commit hooks/signing remained enabled. The inherited main-only changelog EOF whitespace warning was not edited; the product delta against pinned main passed whitespace checking.

Proof boundaries: the October 2/5 Mac, simulator storage/install-over, header and clean-control evidence below remains valid for its recorded old heads/overlays. It has not been rerun or relabeled as execution of this new composed head. Main’s native owner refactors require appropriate composed-candidate Apple proof; none was run on this Linux host. Main intentionally no longer admits Apple jobs on ordinary PR events: a skipped platform check is not a pass, and that policy was not changed to obtain CI. No redundant workflow dispatch/rerun was requested.

October 5 verified qualification and addendum

Colin’s returned report records a same-identity main94-plus-lint → ingress → activation install-over without reset/re-pair/reseeding, with two main-created profiles and recorded selection, scoped credentials, service headers, settings and reconnect controls preserved. Ingress R2 used the actual production registry operations against that existing state: save an Access origin, reload in a new process, perform an ordinary profile update that retains it, then clear and cold-reload again. The probe baseline is post-ingress; R2 alone is not a main-to-ingress comparison of every secret.

The full instrumenting diff and clean-control results were subsequently supplied and independently checked. All five embedded artifact SHA-256s match. Applying the one-file probe diff to this exact ingress source reconstructs tree f7a14ad579bb9ea628616ccf8587f1b4e5d4b15a, changing only apps/ios/Sources/OpenClawApp.swift; production registry/credential/header owners are unmodified. The app-hosted DEBUG probe runs before normal bootstrap. Existing-state phases inspect rather than seed; clean creation is confined to its separately guarded create-clean phase. No submitted code was executed on this host during that audit.

R3 is REUSED PASS for the separate clean storage round trip. All seven phase summaries match the original diagnostic excerpts, including seven distinct PIDs and separate mutation/readback processes. This is not fresh physical execution, arbitrary Keychain preservation, or credential admission. The snapshot covers the registry and the disclosed instance/selection/auth/header/preferences fields; it does not cover every device-auth token or every Keychain account. Its private credential-bearing snapshot stayed on the validation host and was not supplied/published.

Retained ingress-only transport evidence also supports service-header transmission observed, not successful B/101 admission. This resolves the previously missing ingress transmission observation without rerunning the install-over sequence. The related ordinary Share failure remains a separately reported baseline incident; no server prototype was added to this PR, and no Share pass or role/admin upgrade is inferred.

For this review, the scoped R2/R3 evidence and artifact/header questions have been satisfied; review the explicit coverage limits rather than requiring a blanket rerun. This is evidence submission, not reviewer acceptance or a waiver of any enforced gate. That qualification is bound to the then-published head a675a43c1af704eb014094f8e10eaff90d8a2e13; the current main-composed candidate is recorded above.

Ordinary Share baseline — reproduced Gateway-side boundary

The follow-up host report identifies the responding test Gateway as f222f059d6bb87a85d2fc881450a60c4f6099618, separate from the main94 iOS baseline. The Share extension was recorded as an approved node with an active node token but no command-capability surface. Inspection of that exact server shows connection admission permits this identity-only pairing, while the generic node-event guard requires the optional surface generation and returns PAIRING_CHANGED before asking the live pairing owner.

A synthetic, credential-free Linux reproduction through the real node.event handler and node registry at that server revision produced the same UNAVAILABLE / PAIRING_CHANGED response despite the registry confirming a current pairing identity. This is a reproduced server defect matching the reported record shape, not an instrumentation trace proving the exact historical branch. The same restrictive guard is present in inspected main 9feb364cc960c140ecfc4b487dc9587e7569d397. The probe stops at event admission and does not claim delivery of a real Share message.

No source change to this iOS PR, role/admin grant, live Gateway mutation, or acceptance waiver was made. Any server repair remains separate from the iOS candidate pins. The original failed baseline and its preservation/Share qualification holds remain intact.

October 2 returned follow-up qualification

The returned validation-host report records an ordinary Share failure on the pinned main94-plus-lint baseline before either candidate was installed over it: node.event returned UNAVAILABLE / node pairing changed while invocation was active, and destination receipt was unconfirmed. The baseline installation was preserved; no reset, re-pair, candidate install-over, or storage-probe mutation followed. Multi-profile setup is partial; service-header use and cold-restart/control equality remain incomplete. R1/R2 and activation upgrade/Share are not qualified; separate clean controls were not run. This is a baseline/server/setup incident, not an attributed ingress or activation regression. The running test-Gateway revision and correlated server-side event/session evidence are still needed to diagnose it.

No new ingress upgrade/clean-control pass is claimed. The failed Share comparison belongs to the activation evidence; it does not establish a defect in the ingress storage owner. Independent clean-ingress storage qualification may proceed on a separate installation while the failed baseline remains preserved.

October 2 returned local qualification

Colin’s returned evidence binds to the then-unchanged ingress head a675a43c1af704eb014094f8e10eaff90d8a2e13 and its tree. All three pinned simulator app/test-bundle builds and their strict local gates passed after the lint-only baseline repair. The standalone ingress lifecycle result is 267/267 top-level cases, no failures/skips/expected failures; its simulator was iPhone 17 Pro / iOS 27, Xcode 27.0. This adds exact standalone-head native proof rather than relabeling the integration-merge CI run below.

The main baseline was main94 plus the previously disclosed one-file lint overlay, effective tree 0dc45c0cb3a0b388ffd2e886efd89ea2e4a90504. R0 was only partially completed; the multi-profile install-over, Access-origin save/clear/cold reload and separate clean-install controls remain outstanding. The activation phone flow does not replace those persisted-state checks. No permission/enrollment redesign is being added to this stack; it is deferred to a separate follow-up.

Verified hosted proof — October 2, 16:06 UTC

CI 37027750445, attempt 1, concluded success. iOS app/test-bundle build passed; 259 lifecycle Swift tests and 87 voice/cleanup Swift tests passed, with the accompanying XCTest groups at zero failures. iOS/shared Periphery, lint, native inventory and macOS Swift package/test lanes passed. Uploaded native evidence includes the lifecycle/voice xcresults and logs.

Source boundary: this tested integration merge 5918216238f7fda88b9cacbf144e06e0e801deab has parents main 1f14ba2cbe2f6ceef89797534a8a07d50fecfbe8 and the pinned ingress head; tree fbee8d260dcfc4f9d5a883c0f1680441e48e1c27. It differs from the standalone ingress head in eight shared realtime-audio source/test files. This is integration evidence, not an execution claim for the pristine head tree. The local pinned ingress build has since passed; installed-state controls remain required.

Earlier native CI failures and repair

The earlier activation CI run 37021772625 built the app/test bundle and ran 319 tests; the lifecycle lane failed with three assertions across two cases. Its tested merge bbca99c292d6aa3ae4dd9d0903b262e8ddf257e5 combined ingress f320 and activation 39ab. Artifact 11234523380 preserves the full assertion log. This is separate hosted evidence; Colin’s earlier preflight-failure run executed zero native cases. The subsequent local build and test results are recorded above.

The registry-isolation regression was still asserting against retired gateway.last.host UserDefaults. It now exercises the actual helper-owned preferredStableID Keychain account, retaining acquisition/wait/clear/restoration checks and checking write/delete success. No production migration is restored.

The dependent activation repair also restores retry-context retirement at verified TLS trust handoff; that production correction stays in the dependent PR.

The two-file native correction passed targeted pinned SwiftFormat and independent scoped-clean P0–P2 review. New-head hosted Apple execution has now passed, as recorded above; it is not inferred from review. The Linux full production formatter hit internal rule timeouts; its result is not counted as a full gate pass. No live-account/state-preservation/security acceptance is granted.

Earlier local preflight failure and correction

Colin’s exact-source Mac app/test-bundle builds failed at the same inherited TalkModeManager line-length violation before installation. That earlier run executed zero native cases; it remains historical failure evidence. The subsequent local results are recorded above. Prior ready-for-testing wording did not establish build readiness.

The diagnostic is now a line-continued multiline string with identical text, interpolations and privacy. SwiftLint 0.65.1’s official Linux static distribution reproduced the exact 127-character violation and clears it after repair. That distribution skips three SourceKit-dependent rules, so this is bounded rule proof, not a complete Mac lint/build pass. No lint threshold, build phase, CI flag, entitlement or acceptance rule changed. The pinned-main baseline will use an explicitly hashed, one-file copy of this same patch; it must be reported as main94 plus the overlay, not pristine main.

The identical log correction was included in the independently reviewed repair. Earlier source-specific CI/test evidence below remains historical; it is not relabeled as a new-head native pass.

  • Published repair candidate: a675a43; tree 50a7d3b06fc35cfa9e638920871c135e259be970. Parent is fc62da3ac9cc52781531c2c0d1229ae8dae77d48; prior source/contributor ancestry is preserved.
  • The actual lifecycle-owner selection failure was reproduced before repair in a task-owned, rootless, credential-free container. Node 24.21.0, manifest-pinned pnpm 12.5.1 and jq 1.7.1 were used; no host filesystem was mounted.
  • Three focused Node test files account for 790 passing cases across the completed runs: 785 passed initially; five workflow-host cases stopped because jq was missing, then all five passed after installing that prerequisite. No assertion, timeout or retry policy was weakened. Initial full run: 181.26s wall; five-case follow-up: 2.40s. The latest full lifecycle workflow file passed 71/71, 6.69s wall, after the final source change. Other Linux contract inputs were unchanged.
  • Changed MJS/TS/project-YAML formatting checks passed. Independent required P0–P2 review of an exact-tree copy completed scoped-clean after the verified registration-identity finding was repaired. The copy’s tree matched the actual merge candidate.
  • Apple build/test/Periphery and the new native canceled-transition regression have not been run on this Linux host. New-head CI/native results remain separate gates, not inferred from workflow mocks or source review.

Repaired-head hosted readback

The repaired head passed iOS Periphery and shared-kit intersection after both platform scans. Full CI 37015915049 failed in the PR-wrapper runtime-dependency inventory and canceled the iOS smoke lane. Its tested merge b202b2b2d3d87bd15baa3a6b90b51915b739f70e has main parent fa95e3c78e701de57203ea8830e5ca6a1a1e5805; the complete src tree, failing test, parser, wrapper inventory and package/lock inputs match that parent. This is main-owned source, not an Access change; no independent main replay, CI waiver or runtime pass is claimed.

Prior native and install-over evidence

Colin’s earlier Mac packet reported 291 selected native cases, focused shared Swift checks, Periphery and macOS compilation on the previous source. V3 reported main 870c5b6b... → ingress 6151deed... → activation a12589f... install-over in one simulator without reset, preserving one manual profile, selection, port and TLS state. These remain attributed historical/source-specific results—not executions of this repaired head.

The earlier missing storage/control evidence is superseded by the October 5 qualification above, within its stated field and source limits. Any residual compatibility judgment belongs to current maintainer review. Full activation/Share, pristine physical lifecycle and the independent activation acceptance hold remain with the dependent PR. No unrelated Push/Watch/HealthKit feature campaign is introduced.

Before landing: complete the applicable exact-source checks/reviews and outstanding qualification. No merge, release, Gateway operation or device-state change is included in this update.

Current qualification scope — October 2

The next Mac handoff is limited to this ingress/activation prerequisite pair. The Dashboard follow-up is deferred until after these prerequisites land and must then be reconciled with their landed state. QR-free operator enrollment and new onboarding UX remain a separate future change. Existing Gateway approval/QR behavior stays in place; Access login does not automatically grant an operator role or administrator scope. No merge or automatic merge is requested by this update.

Original implementation: @vincentkoc. Integration and Mac validation: @Solvely-Colin. AI-assisted implementation and review; original contributor authors and independent commits are preserved through the rebase.

Work sessions

@vincentkoc vincentkoc self-assigned this Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added app: ios App: ios size: XL maintainer Maintainer-authored PR labels Sep 13, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review September 13, 2026 17:48
@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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 6, 2026, 10:10 PM ET / October 7, 2026, 02:10 UTC (Revision 47).

ClawSweeper review

What this changes

The branch adds iOS ownership of Cloudflare Access browser presentation, saved-profile admission and shared-session retirement, preserves native TLS diagnostics, and backports patched MCP OAuth dependencies.

Merge readiness

⛔ Blocked before merge - 2 items remain

This remains a distinct, maintainer-owned prerequisite absent from current main. No concrete introduced defect was found; retained runtime evidence is credible, but coverage after the native-owner composition still needs a bounded source-to-receipt reconciliation.

Priority: P2
Reviewed head: 5ba52c26d769ad98361438ef0b836627e4127395

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, coherent ownership work with strong bounded runtime evidence and no concrete patch findings; composed-native coverage still needs reconciliation.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (logs): Retain source-bound native HTTPS allowed/foreign/retired-grant proof, current-source Mac build and contextual replay reports, and bounded storage/install-over controls. The identical MCP provider has inspected real-HTTP before/after evidence rejecting background replacement registration while preserving explicit login. The additive registry format has sufficient scoped compatibility evidence; whole affected-suite coverage remains a separate validation question.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (logs): Retain source-bound native HTTPS allowed/foreign/retired-grant proof, current-source Mac build and contextual replay reports, and bounded storage/install-over controls. The identical MCP provider has inspected real-HTTP before/after evidence rejecting background replacement registration while preserving explicit login. The additive registry format has sufficient scoped compatibility evidence; whole affected-suite coverage remains a separate validation question.
Evidence reviewed 12 items Pinned review scope: Reviewed the introduced merge-base-to-head delta, rather than endpoint drift. The checkout and original head are 5ba52c2; the supplied test merge is stale and was not used to claim removal of current-main behavior.
Admission and final-effect ownership: The controller checks registration and grant currentness around suspended discovery, fences managed requests before operation dispatch, joins retirement, and retains durable profile association until cleanup acknowledges deletion. The browser presenter handles presentation only; encrypted transfer establishes authentication.
Native authority-boundary scenarios: Inspected production-path HTTPS cases that observe allowed grant-bearing requests, reject foreign authority with zero requests, reject retired authorization without additional requests, and prevent suspended discovery from returning a revoked or replaced grant. These are meaningful native transport scenarios, not merely predicate assertions.
Findings None None.
Security None None.

How this fits together

The iOS ingress owner evaluates saved Gateway routes and Cloudflare Access grants before native connections or media requests proceed. It coordinates browser authentication, profile ownership and retirement independently of OpenClaw pairing credentials.

flowchart TD
  A[Saved Gateway profile] --> B[Ingress admission owner]
  C[Service headers] --> B
  B --> D{Access challenge?}
  D -->|Yes| E[Browser and session owner]
  E --> F[Current origin-bound grant]
  F --> G[Native connections and media]
  D -->|No| G
  B --> H[Retirement and cleanup]
  H --> F
Loading

Before merge

  • Resolve merge risk (P2) - The recorded current-source Mac build and contextual replay do not enumerate completed affected lifecycle/shared TLS suites after native-owner composition. Reconcile the existing receipts with those changed inputs, or record a narrowly justified proof-reuse disposition; preserve the original listener timeout as unexplained.
  • Complete next step (P2) - Confirm affected lifecycle/shared TLS coverage from completed source-bound receipts, or record a narrowly justified reuse disposition for the composed native inputs.
Agent review details

Security

None.

PR surface

Source +9, Tests +86, Config +4, Other +5286. Total +5385 across 31 files.

View PR surface stats
Area Files Added Removed Net
Source 1 17 8 +9
Tests 3 98 12 +86
Docs 0 0 0 0
Config 5 9 5 +4
Generated 0 0 0 0
Other 22 5490 204 +5286
Total 31 5614 229 +5385

Review metrics

Metric Value Why it matters
Production versus test growth production net +1,221 lines; tests and test support net +4,111 lines The stated growth establishes browser/profile lifecycle ownership and exercises retirement ordering, native transport and persistence boundaries.
Persisted profile contract 1 optional field added; 0 registry-version changes The Access-origin association is additive, with bounded existing-state and clean-storage evidence.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep one origin-bound ingress owner that rejects retired profile authority before native I/O, preserves surviving peers and ordinary routes, and acknowledges cleanup before clearing durable ownership.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep one origin-bound ingress owner that rejects retired profile authority before native I/O, preserves surviving peers and ordinary routes, and acknowledges cleanup before clearing durable ownership.

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

Not applicable as a feature prerequisite; inspected native HTTPS scenarios provide concrete allowed, foreign-authority and retired-grant boundary checks.

Is this the best way to solve the issue?

Yes: browser presentation, session persistence and profile admission have distinct owners, while ordinary routes and pairing remain independent; the remaining question concerns composed-source validation coverage.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded iOS connection capability and lifecycle improvement, without evidence of an urgent introduced outage.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (logs): Retain source-bound native HTTPS allowed/foreign/retired-grant proof, current-source Mac build and contextual replay reports, and bounded storage/install-over controls. The identical MCP provider has inspected real-HTTP before/after evidence rejecting background replacement registration while preserving explicit login. The additive registry format has sufficient scoped compatibility evidence; whole affected-suite coverage remains a separate validation question.
  • proof: sufficient: Contributor real behavior proof is sufficient. Retain source-bound native HTTPS allowed/foreign/retired-grant proof, current-source Mac build and contextual replay reports, and bounded storage/install-over controls. The identical MCP provider has inspected real-HTTP before/after evidence rejecting background replacement registration while preserving explicit login. The additive registry format has sufficient scoped compatibility evidence; whole affected-suite coverage remains a separate validation question.

Evidence

What I checked:

  • Pinned review scope: Reviewed the introduced merge-base-to-head delta, rather than endpoint drift. The checkout and original head are 5ba52c2; the supplied test merge is stale and was not used to claim removal of current-main behavior. (5ba52c26d769)
  • Admission and final-effect ownership: The controller checks registration and grant currentness around suspended discovery, fences managed requests before operation dispatch, joins retirement, and retains durable profile association until cleanup acknowledges deletion. The browser presenter handles presentation only; encrypted transfer establishes authentication. (apps/ios/Sources/Gateway/GatewayIngressController.swift:704, 5ba52c26d769)
  • Native authority-boundary scenarios: Inspected production-path HTTPS cases that observe allowed grant-bearing requests, reject foreign authority with zero requests, reject retired authorization without additional requests, and prevent suspended discovery from returning a revoked or replaced grant. These are meaningful native transport scenarios, not merely predicate assertions. (apps/ios/Tests/GatewayIngressControllerTests.swift:490, 5ba52c26d769)
  • Captured discussion and qualification: Fetched and inspected the complete PR body; its SHA-256 matches the captured af35e4e1a32893fc74075ba7a63c0cb912c5fbd6c1081b12c77d50892fb0230e. October 6 reports pinned-source Mac builds, a completed two-variant native replay and bounded install-over controls. October 7 supplies no new ingress execution or independent coverage disposition, preserves the unexplained listener timeout, and discloses inconsistent build labels. Activation-only physical qualification is explicitly separate. (fef27b65808b)
  • Verified bounded proof reuse: GitHub original-blob reads and local hashes match the previously qualified a675a43 source for the ingress controller, browser presenter, connection configuration and ingress test suite. Their respective blob IDs are 742f2d5ea02671d9baeda8fbef52e7c9063ad275, 5d1207ce9729d761df32a16ab0520a992b6322e6, ca0df904f45226f47d9b82353fc319c7a0d34037 and cb08cb0bd631eba953696e0832f51e1f24bbc291. Session-store differences are UTF-8 decoding simplification; settings and shared TLS include additional main-owned refactors. This supports scoped reuse without treating all historical execution as current-head execution. (apps/ios/Tests/GatewayIngressControllerTests.swift:490, 5ba52c26d769)
  • Stored-state compatibility: The registry adds optional accessOrigin without changing existing credential services or registry version admission. Inspected its load, normalization, update and explicit-clear paths. The captured October 5 qualification records existing-state save/reload/retain/clear and separate clean-storage round trips, plus install-over preservation; its disclosed bounds do not claim every Keychain account. These support the additive stored-format contract. (apps/ios/Sources/Gateway/GatewaySettingsStore.swift:425, 5ba52c26d769)

Likely related people:

  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Patrick-Erichsen: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Solvely-Colin: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Map completed native receipts or narrowly justified reuse to the affected lifecycle and shared TLS inputs without repeating the activation campaign.

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 (46 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-05T15:30:19.895Z sha a675a43 :: needs changes before merge. :: none
  • reviewed 2026-10-05T19:20:00.833Z sha 7696061 :: blocked before merge. :: none
  • reviewed 2026-10-05T20:34:32.819Z sha 7696061 :: blocked before merge. :: none
  • reviewed 2026-10-06T14:52:16.229Z sha fef27b6 :: blocked before merge. :: none
  • reviewed 2026-10-06T15:22:16.031Z sha fef27b6 :: blocked before merge. :: none
  • reviewed 2026-10-06T19:26:45.608Z sha fef27b6 :: blocked before merge. :: none
  • reviewed 2026-10-07T00:59:59.931Z sha fef27b6 :: blocked before merge. :: none
  • reviewed 2026-10-07T01:23:49.730Z sha 5ba52c2 :: blocked before merge. :: none

@vincentkoc
vincentkoc force-pushed the feat/shared-gateway-ingress-20260913 branch from e6b51ee to 2735a7f Compare September 13, 2026 19:19
@vincentkoc
vincentkoc force-pushed the feat/ios-cloudflare-ingress-20260913 branch from 1c5755d to 3314c77 Compare September 13, 2026 19:19
@vincentkoc
vincentkoc force-pushed the feat/shared-gateway-ingress-20260913 branch from 2735a7f to b35fa0f Compare September 14, 2026 02:30
@vincentkoc
vincentkoc force-pushed the feat/ios-cloudflare-ingress-20260913 branch from 27bc912 to 2c40e18 Compare September 14, 2026 02:30
@vincentkoc
vincentkoc force-pushed the feat/shared-gateway-ingress-20260913 branch from b35fa0f to c96e046 Compare September 14, 2026 03:34
@vincentkoc
vincentkoc force-pushed the feat/ios-cloudflare-ingress-20260913 branch from 2c40e18 to 4f55795 Compare September 14, 2026 03:36
@vincentkoc
vincentkoc force-pushed the feat/shared-gateway-ingress-20260913 branch from c96e046 to 7c0e423 Compare September 14, 2026 07:33
@vincentkoc
vincentkoc force-pushed the feat/ios-cloudflare-ingress-20260913 branch from 4f55795 to 9c8a91f Compare September 14, 2026 07:33
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Sep 14, 2026
@vincentkoc
vincentkoc marked this pull request as draft September 14, 2026 08:23
@vincentkoc
vincentkoc force-pushed the feat/shared-gateway-ingress-20260913 branch from 7c0e423 to d3787df Compare September 14, 2026 08:27
@vincentkoc
vincentkoc force-pushed the feat/ios-cloudflare-ingress-20260913 branch from 9c8a91f to 3909bd2 Compare September 14, 2026 08:27
@vincentkoc
vincentkoc marked this pull request as ready for review September 14, 2026 08:29
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 14, 2026
vincentkoc and others added 18 commits October 6, 2026 14:04
Local pre-validation merge candidate for PR147238. Preserve Vincent's
source ancestry and the pinned main foundation. Native qualification pending.

Co-authored-by: Solvely-Colin <[email protected]>
Merge pinned main while preserving Vincent's prerequisite ancestry. Include the complete native fixture dependencies, map lifecycle test inputs, and distinguish replaced ingress registrations that reuse a grant revision. Preserve main's intentional legacy-migration removal.

Co-authored-by: Solvely-Colin <[email protected]>
Wrap the inherited Talk recognition diagnostic without changing message
content or interpolation privacy. Keep strict lint and CI policy unchanged.

Co-authored-by: Solvely-Colin <[email protected]>
Preserve waiter and snapshot-restoration assertions without depending on
pre-July UserDefaults state that current main intentionally retired.

Co-authored-by: Solvely-Colin <[email protected]>
Preserve parameterized iOS workflow selection and deduplicate shared test fixtures while retaining TLS resources and current native owners.

Co-authored-by: Solvely-Colin <[email protected]>
Backport the MCP-only portion of upstream c39d9b0 (#166217), including its SDK issuer-preservation compatibility fix and regressions. Leave unrelated service-worker/UI changes and later main context out of the iOS prerequisite stack.

Co-authored-by: Vincent Koc <[email protected]>
Co-authored-by: Dallin Romney <[email protected]>
Co-authored-by: Solvely-Colin <[email protected]>
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

⚠️ Dependency graph changes

This maintainer PR changes the dependency graph.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 5ba52c26d769ad98361438ef0b836627e4127395
  • Maintainer: @vincentkoc
  • Repository role: admin

These dependency graph changes were made:

  • pnpm-lock.yaml
  • extensions/browser/package.json
  • extensions/qa-lab/package.json
  • package.json
  • ui/package.json

Carefully review these changes before merging.

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 5ba52c26d769ad98361438ef0b836627e4127395
  • Maintainer: @vincentkoc
  • Repository role: admin

These security sensitive changes were made:

  • src/agents/mcp-oauth-provider.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.

Carefully review these changes before merging.

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

Merged via squash.

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: ios App: ios app: web-ui App: web-ui dependencies-changed PR changes dependency-related files extensions: browser extensions: qa-lab gateway Gateway runtime maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts security-sensitive-changed size: XL 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.

4 participants