Repository navigation
feat(ios): connect Gateway through native Cloudflare Access - #147244
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. Reviewed October 7, 2026, 9:00 PM ET / October 8, 2026, 01:00 UTC (Revision 56). ClawSweeper reviewWhat this changesThe branch connects iOS Gateway sessions and media through staged Cloudflare Access sign-in, adds profile-specific recovery controls, and requires protected Share operations to use the foreground app. Example: The user connects to a Cloudflare Access-protected Gateway.
ProductKind: Feature · Worth it: Yes Merge readiness⛔ Blocked before merge - 5 items remain This PR remains necessary and needs real behavior proof before merge. The landed prerequisite does not activate native connections; existing proof is substantial but leaves authority-lifecycle coverage incomplete. No concrete introduced correctness defect was established. Priority: P2 Review scores
Before merge
Findings
Provenance
Tests
Agent review detailsHow this fits togetherThe iOS connection owner prepares the selected Gateway route before opening native node and chat connections. Cloudflare Access admission supplies origin-bound credentials to those connections and authenticated media while Gateway pairing remains separate. flowchart TD
A[Selected Gateway or setup code] --> B[iOS connection owner]
B --> C[Access challenge check]
C -->|Ordinary admission| F[Native Gateway connections]
C -->|Sign-in required| D[Website sign-in and explicit Continue]
D --> E[Verified origin-bound grant]
E --> F
E --> G[Authenticated media]
E --> H[Expiry and retirement owner]
H --> F
H --> G
Technical reviewBest possible solution: Finish the existing admission-owner integration with bounded expiry and shared-origin transport evidence, preserve ordinary routes and pairing, and keep embedded Dashboard support in its separate follow-up. Do we have a high-confidence way to reproduce the issue? Not applicable as a new capability; current-main source confirms the missing native activation path, and supplied native/physical observations demonstrate bounded after-fix behavior. Is this the best way to solve the issue? Yes, extending the existing ingress and connection owners is the coherent approach; existing service-header and CLI paths do not provide interactive iOS sign-in. Merge readiness remains limited by scoped authority evidence. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5ffec9b0ad85. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: shipped entry point. Added test files: 15. SecurityNeeds attention: No concrete bypass or new supply-chain regression was found, but material grant-lifecycle final-effect coverage remains incomplete. EvidenceSecurity concerns:
What I checked:
Likely related people:
PR surfaceTests +376, Docs +40, Config +7, Other +4161. Total +4584 across 44 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (55 earlier review cycles; latest 8 shown)
|
06dc379 to
ccc3c2a
Compare
ccc3c2a to
0fa2d0f
Compare
1c5755d to
3314c77
Compare
d42e463 to
ea25871
Compare
27bc912 to
2c40e18
Compare
647d495 to
a665577
Compare
2c40e18 to
4f55795
Compare
3d8e715 to
d551ae6
Compare
4f55795 to
9c8a91f
Compare
Keep ingress preparation and failure handling in a cohesive controller extension, co-locate manual routing with authentication helpers, and remove duplicate error disposition without weakening lint policy. Co-authored-by: Solvely-Colin <[email protected]>
Stop the injected discovery model before installing observation so a status-only callback cannot replace the reconciliation task under test. Preserve retry and authority assertions. Forward fleet wait source locations without changing deadlines or polling. Co-authored-by: Solvely-Colin <[email protected]>
Resolve Access sign-out from the focused saved profile instead of manual credential editor state. Display the durable Access origin, refresh the registry projection on owner notifications, and reject a captured sign-out target if its origin has changed. Add focused in-memory selection and stale-origin coverage and document the control. Native UI/runtime proof remains pending on a Mac. Co-authored-by: Solvely-Colin <[email protected]>
Match the existing sidebar notification consumer so registry updates never mutate SwiftUI state on a posting background thread. Co-authored-by: Solvely-Colin <[email protected]>
Focused Settings Mac validation — 2026-10-06Strict build and requested native cases PASS; complete visual qualification remains incomplete. Exact candidate Previously authorized existing credentialed Mac (not isolated-host proof), Xcode 27.0/27A5209h, macOS 27.0/26A5421a, iOS Simulator 27.0/24A5370g, SwiftFormat 0.63.0, SwiftLint 0.65.1. Dependencies unchanged. Working physical installation untouched.
Retained visual gaps: (1) A+B capture named selected-A still visibly shows B selected; later A-preserved capture shows A. The harness asserts registry writes, not rendered selection. Focus-refresh root cause is unresolved; do not count its XCTest pass as complete visual proof. (2) After B sign-out, selecting A shows stale signed-out/sign-in attention alongside A's valid sign-out control. The attention block is global, unlike the new selected-profile target. No cross-host grant deletion observed. (3) Long Access Host values are middle-truncated, so full-origin readability is incomplete. (4) Initial offscreen captures have system-blue controls; actual foreground capture has branded red. (5) Historical B-only bottom capture clips the final rows and does not prove missing-button absence; kept locally, not promoted to complete proof. No retries, timeout changes or production edits followed these observations. Inspected before/after — A+B grants, B selected, manual editor AThe before control has no Access Host label and its source derives the target from manual A; the candidate explicitly shows B. Profile context is included separately. Same theme/viewport, content-dependent scroll offsets. Before — selected B context Before — old control After — selected B context After — B Access Host After — real foreground, B retained Residual conflicting status — A preserved after B sign-out Focus capture gap — requested A but visible selection still B Instrumentation identity{
"candidate": {
"head": "2a7f50d2d0343e6501a93a6bf6d425db5a4f48ad",
"baseTree": "af7cf9263f509a17f7367ac6ac6be2e8bd6633d1",
"effectiveTree": "d18143ff094f9216bcd08fe0214e6035d9cab536",
"overlaySHA256": "272b0e25091f074b879bb20f2b3dd273914c5b553a910b8983b107150247d21e"
},
"before": {
"head": "dee03da9a540da2d56062c449c893a667bbab191",
"baseTree": "e7f8404a4caea6f9687f5936d73f7a13483e4478",
"effectiveTree": "86af0a47a989cc9e3f7f52d6b01c69f664bc2a22",
"overlaySHA256": "df8752e930e30eb6095760731e1c5437e6a73017ae949543bafb25fcf1cb2781"
}
}Complete candidate test-only capture overlaydiff --git a/apps/ios/Tests/SettingsAccessVisualProof.swift b/apps/ios/Tests/SettingsAccessVisualProof.swift
new file mode 100644
index 00000000000..377f4e9c02c
--- /dev/null
+++ b/apps/ios/Tests/SettingsAccessVisualProof.swift
@@ -0,0 +1,248 @@
+import OpenClawKit
+import SwiftUI
+import UIKit
+import XCTest
+@testable import OpenClaw
+
+/// Proof-only overlay. Run alone on a dedicated, empty simulator identity.
+/// Captures the actual SettingsProTab; does not enable screenshot/demo mode.
+/// Programmatic signOut below verifies the production owner, NOT a physical button tap.
+@MainActor
+final class SettingsAccessVisualProof: XCTestCase {
+ func testSelectedAccessProfileVisualProof() async throws {
+ let environment = ProcessInfo.processInfo.environment
+ guard let expectedSimulator = environment["OPENCLAW_SETTINGS_PROOF_SIMULATOR"],
+ expectedSimulator == environment["SIMULATOR_UDID"],
+ UUID(uuidString: expectedSimulator) != nil
+ else {
+ throw XCTSkip("Set OPENCLAW_SETTINGS_PROOF_SIMULATOR to the task-owned fresh simulator UDID")
+ }
+ let originalRegistry = GatewaySettingsStore.loadGatewayRegistry()
+ guard originalRegistry.entries.isEmpty else {
+ throw XCTSkip("Requires a dedicated empty simulator; never overwrite saved profiles")
+ }
+ let defaults = UserDefaults.standard
+ let keys = [
+ "gateway.manual.enabled",
+ "gateway.manual.host",
+ "gateway.manual.port",
+ "gateway.manual.tls",
+ "gateway.autoconnect",
+ ]
+ let saved = Dictionary(uniqueKeysWithValues: keys.map { ($0, defaults.object(forKey: $0)) })
+ defer {
+ _ = GatewaySettingsStore.saveGatewayRegistry(originalRegistry)
+ for key in keys {
+ if let value = saved[key] ?? nil { defaults.set(value, forKey: key) }
+ else { defaults.removeObject(forKey: key) }
+ }
+ }
+ defaults.set(false, forKey: "gateway.autoconnect")
+ defaults.set(true, forKey: "gateway.manual.enabled")
+ defaults.set("ordinary-a-long-neutral-host.example.test", forKey: "gateway.manual.host")
+ defaults.set(443, forKey: "gateway.manual.port")
+ defaults.set(true, forKey: "gateway.manual.tls")
+ for bothGrants in [false, true] {
+ try await self.renderScenario(bothGrants: bothGrants)
+ }
+ }
+
+ private func renderScenario(bothGrants: Bool) async throws {
+ let fixture = try IngressTestHarness()
+ let storage = VisualAccessStorage()
+ let originA = try CloudflareAccessOrigin(XCTUnwrap(URL(
+ string: "https://ordinary-a-long-neutral-host.example.test")))
+ let originB = try CloudflareAccessOrigin(XCTUnwrap(URL(
+ string: "https://selected-b-long-neutral-access-host.example.test")))
+ let applicationA = CloudflareAccessApplication(
+ origin: originA, issuer: fixture.application.issuer, audience: fixture.application.audience)
+ let applicationB = CloudflareAccessApplication(
+ origin: originB, issuer: fixture.application.issuer, audience: fixture.application.audience)
+ let a = GatewaySettingsStore.GatewayRegistryEntry(
+ stableID: "manual|ordinary-a-long-neutral-host.example.test|443", kind: .manual,
+ name: "Profile A", host: originA.url.host, port: 443, useTLS: true,
+ accessOrigin: bothGrants ? originA : nil, lastConnectedAtMs: nil)
+ let b = GatewaySettingsStore.GatewayRegistryEntry(
+ stableID: "manual|selected-b-long-neutral-access-host.example.test|443", kind: .manual,
+ name: "Profile B", host: originB.url.host, port: 443, useTLS: true,
+ accessOrigin: originB, lastConnectedAtMs: nil)
+ fixture.profileRows = [a, b]
+ try storage.save(fixture.session(for: applicationB, subject: "synthetic-b"))
+ if bothGrants { try storage.save(fixture.session(for: applicationA, subject: "synthetic-a")) }
+ let aBefore = storage.values[originA]
+ let ingress = fixture.controller(useSavedProfiles: true, persistence: storage.persistence)
+ var registry = GatewaySettingsStore.GatewayRegistry(activeStableID: b.stableID, entries: [a, b])
+ XCTAssertTrue(GatewaySettingsStore.saveGatewayRegistry(registry))
+ let model = NodeAppModel(audioAdmissionInitiallyAllowed: false)
+ defer { model.disconnectGateway() }
+ let gateway = GatewayConnectionController(appModel: model, startDiscovery: false, ingress: ingress)
+ let root = NavigationStack { SettingsProTab(directRoute: .gateway) }
+ .environment(AppAppearanceModel())
+ .environment(model)
+ .environment(model.voiceWake)
+ .environment(gateway)
+ .preferredColorScheme(.light)
+ let scene = try XCTUnwrap(UIApplication.shared.connectedScenes.compactMap { $0 as? UIWindowScene }.first)
+ let previous = scene.windows.first(where: \.isKeyWindow)
+ let window = UIWindow(windowScene: scene)
+ window.frame = CGRect(x: 0, y: 0, width: 393, height: 852)
+ var host = UIHostingController(rootView: root)
+ window.rootViewController = host
+ window.makeKeyAndVisible()
+ defer { window.isHidden = true
+ previous?.makeKeyAndVisible()
+ }
+ let prefix = bothGrants ? "both-grants" : "b-only-grant"
+ await self.capture(host.view, name: "\(prefix)-selected-b-before")
+ XCTAssertTrue(ingress.hasSession(stableID: b.stableID))
+ XCTAssertEqual(ingress.hasSession(stableID: a.stableID), bothGrants)
+ // Same mounted view, registry-change notification must refresh selected target.
+ registry.activeStableID = a.stableID
+ XCTAssertTrue(GatewaySettingsStore.saveGatewayRegistry(registry))
+ await self.capture(host.view, name: "\(prefix)-selected-a")
+ registry.activeStableID = nil
+ XCTAssertTrue(GatewaySettingsStore.saveGatewayRegistry(registry))
+ await self.capture(host.view, name: "\(prefix)-no-selection")
+ registry.activeStableID = b.stableID
+ XCTAssertTrue(GatewaySettingsStore.saveGatewayRegistry(registry))
+ await self.capture(host.view, name: "\(prefix)-selected-b-again")
+ // Destroy and reconstruct the actual Settings view; this runs real disappear/task lifecycle.
+ window.rootViewController = UIViewController()
+ await Task.yield()
+ host = UIHostingController(rootView: root)
+ window.rootViewController = host
+ window.makeKeyAndVisible()
+ await self.capture(host.view, name: "\(prefix)-selected-b-reopened")
+ if ProcessInfo.processInfo.environment["OPENCLAW_SETTINGS_PROOF_FOREGROUND"] == "1", !bothGrants {
+ try await self.awaitExternalForegroundCycle()
+ await self.capture(host.view, name: "\(prefix)-selected-b-real-foreground")
+ }
+ #if SETTINGS_ACCESS_BEFORE
+ // Historical renderer proof only: never invoke its potentially incorrect sign-out target.
+ XCTAssertEqual(storage.values[originA], aBefore)
+ XCTAssertTrue(storage.deleted.isEmpty)
+ print("SETTINGS_VISUAL bothGrants=\(bothGrants) historicalSnapshotOnly=true signOutExecuted=false")
+ #else
+ await ingress.signOut(stableID: b.stableID, expectedOrigin: originB)
+ XCTAssertFalse(ingress.hasSession(stableID: b.stableID))
+ XCTAssertEqual(storage.values[originA], aBefore)
+ XCTAssertEqual(ingress.hasSession(stableID: a.stableID), bothGrants)
+ XCTAssertTrue(fixture.browser.presented.isEmpty)
+ XCTAssertEqual(storage.deleted, [originB])
+ await self.capture(host.view, name: "\(prefix)-selected-b-after-signout")
+ registry.activeStableID = a.stableID
+ XCTAssertTrue(GatewaySettingsStore.saveGatewayRegistry(registry))
+ await self.capture(host.view, name: "\(prefix)-selected-a-preserved")
+ print("SETTINGS_VISUAL bothGrants=\(bothGrants) bRemoved=true aPreserved=true browserOpened=false")
+ #endif
+ }
+
+ private func capture(_ view: UIView, name: String) async {
+ // Bounded layout settling only; does not modify any production test deadline.
+ for _ in 0..<3 {
+ await Task.yield()
+ try? await Task.sleep(for: .milliseconds(100))
+ view.setNeedsLayout()
+ view.layoutIfNeeded()
+ }
+ let scrolls = Self.scrollViews(view).filter { $0.contentSize.height > $0.bounds.height }
+ for scroll in scrolls {
+ scroll.setContentOffset(CGPoint(x: 0, y: -scroll.adjustedContentInset.top), animated: false)
+ }
+ await Task.yield()
+ view.layoutIfNeeded()
+ self.attach(view, name: "\(name)-profile-context")
+ // Gateway route's advanced Access controls are at the bottom. Inspect both real renders.
+ for scroll in scrolls {
+ scroll.setContentOffset(
+ CGPoint(
+ x: 0,
+ y: max(
+ -scroll.adjustedContentInset.top,
+ scroll.contentSize.height - scroll.bounds.height + scroll.adjustedContentInset.bottom)),
+ animated: false)
+ }
+ await Task.yield()
+ view.layoutIfNeeded()
+ self.attach(view, name: "\(name)-access-controls")
+ }
+
+ private func attach(_ view: UIView, name: String) {
+ let image = UIGraphicsImageRenderer(size: view.bounds.size).image { _ in
+ view.drawHierarchy(in: view.bounds, afterScreenUpdates: true)
+ }
+ let attachment = XCTAttachment(image: image)
+ attachment.name = name
+ attachment.lifetime = .keepAlways
+ self.add(attachment)
+ }
+
+ /// Optional externally driven foreground proof. No scenePhase injection or fabricated notification.
+ /// While ready is present, send the simulator app Home and reopen the SAME process normally.
+ /// Do not terminate it: cold launch would destroy these deliberately in-memory grants.
+ private func awaitExternalForegroundCycle() async throws {
+ let observation = VisualForegroundObservation()
+ let center = NotificationCenter.default
+ let background = center.addObserver(
+ forName: UIApplication.didEnterBackgroundNotification,
+ object: nil,
+ queue: .main)
+ { _ in
+ MainActor.assumeIsolated { observation.background = true }
+ }
+ let active = center.addObserver(
+ forName: UIApplication.didBecomeActiveNotification,
+ object: nil,
+ queue: .main)
+ { _ in
+ MainActor.assumeIsolated {
+ if observation.background { observation.activeAfterBackground = true }
+ }
+ }
+ let marker = FileManager.default.temporaryDirectory.appendingPathComponent("settings-visual-foreground-ready")
+ defer {
+ center.removeObserver(background)
+ center.removeObserver(active)
+ try? FileManager.default.removeItem(at: marker)
+ }
+ try Data("ready\n".utf8).write(to: marker)
+ print("SETTINGS_VISUAL foregroundAwaitingExternalAction=true")
+ let deadline = ContinuousClock.now.advanced(by: .seconds(90))
+ while !observation.activeAfterBackground, ContinuousClock.now < deadline {
+ try await Task.sleep(for: .milliseconds(100))
+ }
+ XCTAssertTrue(observation.background, "No real UIApplication background notification observed")
+ XCTAssertTrue(observation.activeAfterBackground, "No real foreground after background observed")
+ print(
+ "SETTINGS_VISUAL actualBackground=\(observation.background) actualForeground=\(observation.activeAfterBackground)")
+ }
+
+ private static func scrollViews(_ view: UIView) -> [UIScrollView] {
+ (view as? UIScrollView).map { [$0] } ?? view.subviews.flatMap { self.scrollViews($0) }
+ }
+}
+
+@MainActor
+private final class VisualAccessStorage {
+ var values: [CloudflareAccessOrigin: String] = [:]
+ var deleted: [CloudflareAccessOrigin] = []
+ var persistence: CloudflareAccessSessionStore.Persistence {
+ .init(load: { self.values[$0] }, save: { self.values[$0] = $1
+ return true
+ }, delete: {
+ self.deleted.append($0)
+ self.values.removeValue(forKey: $0)
+ return true
+ })
+ }
+
+ func save(_ session: CloudflareAccessSession) throws {
+ self.values[session.origin] = try XCTUnwrap(String(data: JSONEncoder().encode(session), encoding: .utf8))
+ }
+}
+
+@MainActor
+private final class VisualForegroundObservation {
+ var background = false
+ var activeAfterBackground = false
+}Normal native test execution used the uninstrumented published candidate; the above overlay is only visual instrumentation. Local report includes executable hashes, full before overlay and machine-readable case results. Raw logs/results retained locally; only synthetic endpoints appear here. Dependency CI, prior broad failures, A2/full A3/A4, physical remote-Gateway provenance and independent owner/security acceptance remain separate and held. No main refresh, dependency remediation, whole-suite retry, working-phone reset, merge or acceptance waiver. |
Hide another profile’s retained Access attention and show the full selectable Access origin. Extend the selected-profile regression and preserve existing authority, deadline, and registry-refresh behavior. Co-authored-by: Solvely-Colin <[email protected]>
Narrow Settings follow-up return — 3716652PASS: normal strict incremental build and both affected tests, 2/2 functions,7/7 parameter executions, zero failures/skips, finalized Exact production head Partial actual UI observation: synthetic A+B grants, B selected, manual editor A. Native accessibility inspection aligned the Focused Gateway image with B's actual rendered row. The entire B Access origin wraps over two lines and its sign-out control is visible. Same393×852-point host viewport/light theme; new images are full simulator-screen captures1206×2622 rather than prior1179×2556 hosting-view images. Visual flow BLOCKED/incomplete: the mirror converts press-and-hold attempts into ordinary taps ( NOT RUN after that boundary: retire B/select and assert rendered A; verify A lacks B guidance; return to B guidance; no-selection guidance; native button activation. Thus the requested residual-status before/after pair and complete visual qualification remain pending. Do not promote the seven production passes into that missing proof. Original clipping/tint/focus caveats, physical A2/fullA3/A4, Gateway provenance, fleet-retirement disposition, dependency CI and independent acceptance remain unchanged. Test-only instrumentation: tree Inspected partial rendering comparison: full-origin wrapping onlyThis pair does not prove the post-retirement mixed-profile status repair. That earlier residual-status evidence remains in the prior return. Before2a7f50: B origin truncated After3716652: actual rendered B selection After3716652: full B origin wraps, selectability unverified |
Settings native-input proof — October 6, 23:42–23:44 UTCThe narrow Settings A/B sign-out and presentation check passes on production head
Before — earlier 2a synthetic captureThe old capture shows conflicting signed-out/sign-in guidance beside A's retained grant and a truncated origin. Focus is not established by this crop alone. After — 371, A selected after signing out BA retains its full wrapped origin and sign-out control, without B's signed-out guidance. Rendered A/B selection and return-to-B evidenceA's Focused Gateway checkmark after the native row tap: Returning to B restores B's signed-out guidance, with no Access Host/sign-out control: B's Focused Gateway checkmark after the return tap: Limits: iPhone 17 Pro simulator, iOS 27.0, Xcode 27 beta on the previously authorized credentialed Mac—not secretless execution or a physical-device result. Real production Settings is mounted in a foreground key window inside a test-only input-check/navigation wrapper; viewport/capture and tint differ from the historical before image. These are not pixel-identical capture conditions. Deliberately failing reachability probes explain the displayed offline errors; no live A chat/connectivity is claimed. The stage-02 profile-context capture precedes the button tap; its controls capture follows the tap. No-selection runtime rendering was not exercised by this run. Earlier interrupted/failed harness attempts remain historical, not relabeled passes. This closes the narrow reported Settings A/B targeting/presentation gap, not the broader Access qualification. Actual expiry/reauthentication, full pending-work retirement with an unaffected live ordinary control, shared-origin cleanup, the retained fleet diagnostic, remote-Gateway provenance and independent owner/security acceptance remain separate. MCP dependency work remains held by Colin; CI is not green or waived. No main refresh, production change, test rerun, merge or auto-merge. |
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]>
Merge the reviewed MCP-only ingress update without rebasing onto newer main or changing the iOS product delta. Co-authored-by: Solvely-Colin <[email protected]>
Physical revocation/recovery return — October 7Attributed physical revocation/recovery PASS on the retained installed build, not natural expiry. Colin supplied a sanitized report from the authorized credentialed Mac/physical phone. The report states that the owner explicitly approved cross-application revocation of that one user's Access sessions; this records that completed action and grants no new revocation authority. Observed sequence
The report's earlier NOT RUN table and “in progress” heading are interim chronology, superseded only by the final bounded revocation/recovery observations—not by a natural-expiry pass. Source and Gateway provenanceInstalled phone: normal OpenClaw2026.9.8 build105880 on iPhone16ProMax/iOS27.0, retained source 2bf46f3, tree29b5ca82a646a90e541b0bcd5a15aeb26883dc40. Device executable was not extracted/rehashed; local signed-product records and Personal Team Health/APNs exclusions remain disclosed. This is not a newly installed749 candidate. Parent Git inspection independently confirms all eight reported owner/project blobs equal between2bf46 and current 749ba0f: session, store, connection controller, browser presenter, media loader, shared node session, iOS project and shared package. The only changed native production paths are three Settings files and the ingress session-origin/expected-origin sign-out guard; this is bounded reuse evidence, not blanket current-binary qualification. Native apps/ios and apps/shared trees are unchanged from371 to749. Gateway G1 version2026.9.8 is user-observed on the active connection; deployment commit6605569 is operator-attributed. The remote running executable was not independently inspected, and connection logs do not contain runtime version/build/commit. This narrows the earlier “unknown Gateway” gap to attributed operator provenance; it does not manufacture verified runtime-binary identity. Expiry and remaining limitsThe supplied metadata-only debugger receipt at02:55:01UTC reports origin match and saved expiry 2026-10-07T19:43:10Z. The supplied diagnostic was reviewed as evidence, not executed here: it returns status/date/origin-match metadata while keeping session contents inside the app process, with reported successful detach. Earlier attach/compiler/symbol-loading failures remain tooling history, not auth failures. No production overlay or new binary was used for this diagnostic. That timestamp belongs to the pre-revocation session. After reauthentication, it must not be assumed to describe the new grant. No natural-expiry test or unattended follow-up has been scheduled. This adds real physical administrator-revocation → sign-in-required → native/chat recovery evidence, with observed no-new-QR recovery. It does not establish natural elapsed expiry, a captured HTTP rejection, media receipt, formal pre/post pairing equality, full pending-I/O/ordinary-control isolation, legitimate shared-origin first/last cleanup or independent owner/security acceptance. No repeated Settings/storage/Share/onboarding campaign is requested. CI/source remain unchanged; no merge, deployment or policy change was performed by Roboclaw. |
Dependency graph guard clearedThis PR no longer has dependency changes awaiting review. A future dependency graph change from an external contributor requires a maintainer's
|
Security-sensitive guard clearedCurrent revision: This PR no longer changes files in the maintainer security-review tier. Separate CODEOWNERS requirements still apply to security policy and enforcement files. |
Integrate the landed ingress prerequisite without rebasing the activation branch. Preserve unified autoconnect suppression and persist the resolved configured manual TLS selection before Access preflight. Adapt HTTP fixture policies to the serial transport queue with MainActor delivery and captured held verdicts. Add scoped configured-manual and held-HTTP policy regressions. Existing native proof remains source-bound; local workflow tests and static native checks pass. Co-authored-by: Solvely-Colin <[email protected]>
|
Merged via squash.
|













Related: #147238 (parent), #146996 (foundation), #157874. Dashboard follow-up #158051 remains separate.
What Problem This Solves
iOS Gateways behind Cloudflare Access need browser sign-in before native connections can proceed, without losing the intended target, setup-code lifetime or current profile authority.
User Impact
Users sign in to the verified Gateway website, tap Done, then explicitly Continue into encrypted transfer. Ordinary pairing and service-header routes remain independent. Canceling and retrying must retain the original setup expiry and target; a background profile must not hijack active-profile recovery. Managed Share requires foreground sign-in and never exports the Access grant. Access login does not automatically grant operator or administrator scope.
Ingress is landed; activation is being reconciled and validated for landing. Historical results retain their source and limitations; no deployment or Gateway-policy changes are included.
Why This Change Was Made
Earlier work used pinned main6693. The October8 conflict repair now integrates only the landed ingress prerequisite53eb, preserving contributor history and current connection owners; no unrelated main refresh.
Review also found recovery paths that could target the previously active Gateway or drop an unconsumed setup receipt. Recovery now uses the matching producer-owned attempt, including after first-use TLS acceptance and browser cancellation. First-use trust still owns its pending prompt; only the actual native handoff consumes setup credentials. Explicit setup certificate pins remain authoritative. Recoverable automatic preflight failures now stay in the same pending task with capped backoff until recovery or retirement, rather than stranding the connection before native reconnect loops exist; they never gain browser authority.
Evidence
October 8 landed-parent conflict repair
Head931ad46d3247e8db657ce6fe698ad7f515cd79f3; tree438bc2aa1a8a6f124824bb95cab6ee034a216b82. Ingress#147238 landed as53eb721806f0722501237e3673c1fddde1e7be18. GitHub retargeted this PR to main; this signed, normal merge integrates that fixed parent without rebasing or chasing newer main. Four integration adaptations preserve unified autoconnect suppression, persist configured-manual resolved TLS before preflight, and reconcile the native HTTP fixture with main’s serial queue and MainActor policies. Two focused regressions cover those contracts. Other activation product changes are preserved.
Executed on this tree: pinned SwiftFormat0/4 changed files; canonical iOS SwiftLint480files/zero violations (three SourceKit rules unavailable on Linux); native inventory4493/unchanged; workflow/lifecycle707tests passed168.83s (169.90s wrapper); normal pre-commit and whitespace passed. The initial ad-hoc macOS-config lint of test files was outside canonical include scope; no rules were weakened. New Swift regressions have not run on Apple locally; Hosted CI37709550960 now passed (70 success/14 skipped); iOS/shared Periphery, iOS build-for-testing, and iPhone/iPad screenshot jobs passed. Runtime execution of the two new Swift regressions is not claimed.
Full three-pass P0–P2 review completed. Its sole restart-parser finding was rejected against identical parser blobebc5c90 and the original Xcode27 two-process native success; the cited Xcode16.4 one-run failure example does not establish this flow’s shape. No unresolved actionable integration finding; old native proof is not relabeled current.
Approval state: Josh Avant’s approval was for749ba0f0. GitHub automatically dismissed it at00:19:25UTC because the base branch changed—not a recorded reviewer withdrawal. Current-head security checks passed through the actual maintainer-author policy; native admission still owns enforced gates. Colin authorized landing; no policy or approval bypass is requested.
October 7 physical revocation and Gateway provenance
Sanitized return and source comparison: reported owner-approved administrator revocation led to physical sign-in-required, then node/operator recovery at03:07:01UTC; the return includes user confirmation of working chat without a new QR. Bounded revocation/recovery PASS on retained build105880/source2bf46, not natural expiry or a current-head binary test. Eight owner/project blob comparisons verified here support bounded reuse. Gateway2026.9.8/deployment660556970ac30cc71ee5b4a5bf8d270acc5a318a are user/operator-attributed, not independently inspected runtime-binary identity. Earlier Safari logout was inconclusive. Pre-revocation expiry19:43:10Z cannot be assumed for the new grant. Media/pairing-equality and other authority qualification/independent acceptance remain separate; no new test or unattended follow-up scheduled.
Direct Settings visual evidence for review
Existing inspected assets are embedded directly here because the latest review reported that its prepared manifest omitted these newer comment-linked images. No new capture or test run. Captured production source37166526098cb339b0fd654c322aeccd96bf5df6; the current749ba0f0 MCP-only update leaves this iOS code unchanged. Full native-input trace, verified overlay and limitations: #147244 (comment) .
Before — prior2a capture: conflicting signed-out guidance beside a retained grant; full origin truncated. This crop alone does not establish focus.

After —371, A focused after B sign-out: A retains its full origin and sign-out without B guidance.

Return to B: B-only signed-out guidance, no Access Host/sign-out control.

Native rendered selection context and capture limits
Production Settings in a foreground synthetic simulator wrapper; original before/after wrappers, viewport and tint differ. Native taps—not a direct sign-out owner call—drove the final A/B sequence. Deliberately failing network probes explain offline errors; this does not prove live ordinary connectivity, expiry or shared-origin cleanup. The new screenshots are previously delivered evidence, not new physical/security acceptance.
Historical October 7 MCP security update — retained in current candidate
Head 749ba0f; tree 63af5f21736e4986fa390f291fd5ffb68928b408. Normal merge of updated ingress5ba52c26d769ad98361438ef0b836627e4127395 into prior activation37166526098cb339b0fd654c322aeccd96bf5df6; no history rewrite.
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): CI37556252421 passed. The MCP production-audit blocker is cleared. iOS Periphery37556252234 and shared Periphery37556252214 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. Activation ClawSweeper revision51: Gold3/6, no actionable findings. It credits the finalized fleet pass and retained native boundary/Settings proof, while holding actual expiry/reauthentication, full pending-work isolation, legitimate shared-origin cleanup and independent disposition of the historical failure/signing/Gateway-provenance limits. An owner may explicitly disposition the qualification scope; this note does not waive it. 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 native qualification return
Finalized focused fleet regression PASS; original failure remains unexplained. Colin supplied a completed Mac invocation of the GatewayOperatorFleetTests case “Access retirement drains managed sockets and preserves ordinary siblings” on production head 3716652: one discovered/executed/passed case, zero failures/skips, xcodebuild exit0, finalized case/summary JSON. Case time 0.198s, command 21.340s, October7 00:41:42–00:42:03 UTC. This is attributed execution on the previously authorized credentialed Mac, not independent execution here.
The existing unselected Settings test file was compiled into the bundle: production tree caccdc69c64277d3ace6c411defcc7d9c1d7a795, effective tree 7910b99875fdffe185e3406b80fe970b15cc0132. Its complete overlay/hash/tree were already independently verified with the Settings evidence. The supplied executable hashes distinguish the instrumented launcher/test bundle from the normal production implementation. No new production change, repair or Settings execution occurred.
The original fleet wait failure occurred after listener startup; its old shared helper did not retain caller location. The new run is isolated and does not reproduce the original suite order. Therefore this closes the missing finalized follow-up receipt, not the original root cause: retain the original broad 293/295 top-level /508/511 executions FAIL and earlier terminated console-only diagnostic. Independent disposition of this history remains necessary.
Prior-source native authority evidence is now individually enumerated, not inferred from totals: the return provides 40 selected case records (including the two historical failures), plus the seven-variant background fixture-repair pass. Named passing native-wire cases cover current pinned TLS socket/media use, held TLS probes rejected after signOut/forget/replaceAccount, a held media response joined by sign-out, and foreign-authority/redirect refusal. Cached discovery, expiry, shared-origin custody and persistence receipts remain bounded to their individual cases and original source 2bf46f3.
Direct Git comparison here confirms nine cited test/production/fixture blobs unchanged between 2bf46 and371, including native wire tests, connection/security tests, media loader, fleet owner and GatewayNodeSession. The ingress-controller delta is limited to session-origin lookup and optional expected-origin sign-out guarding; the retirement body is unchanged. Fleet-test delta only forwards SourceLocation with the original five-second/10ms wait retained. The background fixture is identical to published dee03 repair. This supports explicitly bounded reuse, not relabeling old execution as current-head execution. Standalone media-suite historical results are not promoted wholesale to this source.
Remaining resources/decisions: the validation host reported no connected physical device and no confirmed disposable expiry/shared-origin/pending-work setup. A2 actual expiry/reauthentication, full physical A3 with a real unaffected ordinary control, A4 legitimate first/last shared-origin cleanup, and the actual remote phone Gateway version/build/commit remain BLOCKED—not failed tests. Native fixture passes do not silently replace them. Independent owner/security acceptance, historical failure disposition and disclosed signing/browser/Share limits remain held. Completed Settings, onboarding, storage and ordinary Share evidence are retained without repeat. MCP dependency work remains explicitly paused; red/cancelled CI is not waived. No main refresh, rerun-to-green, source change, merge or auto-merge.
October 7 verified Settings A/B native-input proof
Inspected before/after images, native-input sequence and source binding. On unchanged head
37166526098cb339b0fd654c322aeccd96bf5df6, the narrow Settings A/B targeting/presentation check passes: actual native input taps the production B sign-out button, A retains its grant/full origin/control without B guidance, and returning to B restores B-only sign-in guidance. All 23 supplied file hashes match; the complete test-only overlay independently reproduces tree7910b99875fdffe185e3406b80fe970b15cc0132. Finalized supplied XCTest JSON records 1/1 passed, zero failures/skips, 106.242s case /123.763s session. Colin separately confirmed long-press → Select Text; no clipboard claim.This supplements the prior 371 strict Mac build and seven focused regression passes. It supersedes the older missing-artifact, mirror-input and A/B-rendering holds below, while retaining those historical failures. The run uses production Settings in a disclosed synthetic foreground-window wrapper on the previously authorized credentialed Mac, not an uninstrumented app, secretless replay or physical test. Deliberately failing probes mean no live A connectivity was tested. No-selection runtime rendering was not exercised.
Still separate: A2 expiry/reauthentication, full A3 pending-work retirement/unaffected live ordinary control, A4 shared-origin cleanup, retained fleet failure disposition, remote-Gateway provenance and independent owner/security acceptance. A7 Access-path and prior preservation/Share results remain source-bound. MCP dependency work remains explicitly held; CI is not green or waived. No source/main/dependency change, rerun, merge or auto-merge.
Historical October 6 initial Settings follow-up return (superseded above)
Actual native results and inspected partial wrapping comparison: head
37166526098cb339b0fd654c322aeccd96bf5df6strict build PASS; affected tests2/2 functions,7/7 executions, zero failures/skips, finalized exit0. Native AX confirms initial B selection and full wrapped origin. Visual flow remains incomplete: mirror delivers taps instead of native long presses, so selectability is unverified; inspection harness stopped and its failed result finalization stalled/was terminated. B-retirement→A, B guidance and no-selection UI steps remain NOT RUN. No product text-selection defect or full visual acceptance is asserted. Previous proof/holds retained; no broader rerun or merge.October 6 focused Mac return and residual presentation follow-up
Current candidate:
37166526098cb339b0fd654c322aeccd96bf5df6, treecaccdc69c64277d3ace6c411defcc7d9c1d7a795, parent2a7f50d2d0343e6501a93a6bf6d425db5a4f48ad. Dependencies, ingress and pinned main remain unchanged.The focused Mac validation and inspected images report a normal strict build on 2a7f50 (exit0,355s) and 5/5 requested native cases,11/11 parameter executions, zero failures/skips, finalized SettingsFocused.xcresult (15.733s command/0.666s test execution). These are attributed results on the previously authorized credentialed Mac, not independent execution here. They supersede the earlier “unrun” status for that prior candidate, not for this new follow-up.
The supplied test-only UI harness hosts production SettingsProTab in a real UIWindowScene. Its candidate source-file SHA256 is 272b0e25091f074b879bb20f2b3dd273914c5b553a910b8983b107150247d21e; applying the extracted one-file patch independently reproduces effective tree d18143ff094f9216bcd08fe0214e6035d9cab536. The reported digest is the harness source file, not the unified-diff bytes. Before-source overlay identity remains reported, not reconstructed here. The actual images were inspected: B is selected, its Access Host is displayed, and the residual mixed-profile status/truncated host are visible. Programmatic B retirement preserving A is not a button tap or a live A-network request.
This follow-up fixes the two established presentation issues: Access attention/sign-in guidance is filtered to the focused saved profile, and Access Host is multiline/selectable rather than middle-truncated. Existing selected-profile tests now check that B’s sign-out attention is hidden while A is focused and reappears only for B. New-profile setup remains reachable because the controller persists selection before ingress preflight. No grant/retry/timeout behavior changed.
Fresh full-delta P0–P2 review is scoped-clean(0.93). Isolated formatting, strict source lint (with Linux SourceKit limits), normal hook, whitespace and canonical inventory4493/no-drift checks passed. At that checkpoint native execution and captures were pending; the subsequent 371 results and verified A/B proof above supersede this hold.
The A-selected image that still shows B is retained as inconclusive focus-refresh evidence: the capture helper asserted registry writes but not the rendered selection. The initial offscreen tint and clipped historical B-only image are also not full visual passes. No scheduler/timeout/tint patch was guessed from them. Future captures must verify the rendered row/host state rather than rely on fixed settling sleeps. Existing A7 Access-path, storage/Share and native successes remain source-bound; MCP audit, original fleet failure and other independent qualification holds are not waived.
October 6 focused Mac Settings return — native PASS, visual gaps retained
Inspected before/after screenshots, exact-source results and complete test-only capture overlay. On head
2a7f50d2d0343e6501a93a6bf6d425db5a4f48ad, normal strict Mac build passed and the five requested cases completed 5/5 top-level, 11/11 parameter executions, zero failures/skips, finalized xcresult/exit 0 (0.666s execution;15.733s command). Actual Settings synthetic B sign-out preserved A; B target survived reopen and a real foreground cycle. Complete visual qualification is not cleared: focus-change capture remained stale, a signed-out message conflicts with the preserved A control, long hosts truncate, and historical B-only capture clips final rows. The return distinguishes programmatic owner invocation from a UI tap/live request. Separate activation, dependency and independent-acceptance holds remain. No production edit, broad rerun, phone reset or merge.October 6 Settings sign-out target repair — prior candidate 2a7f50
Candidate head
2a7f50d2d0343e6501a93a6bf6d425db5a4f48ad, treeaf7cf9263f509a17f7367ac6ac6be2e8bd6633d1, repair basedee03da9a540da2d56062c449c893a667bbab191(two signed fast-forward commits). Colin explicitly reopened the Settings targeting repair while directing that dependency work be left alone. The MCP manifests/lock, ingress parent and pinned main are unchanged; the dependency CI blocker is not waived.The sign-out control now resolves the focused saved profile independently of manual credential-editor state and displays Access Host using the ingress owner’s actual durable grant origin. Registry-owner notifications are delivered on the main queue, matching the existing sidebar consumer, and refresh the existing Settings projection without overwriting edited credentials. The click captures the displayed stable ID and origin; the ingress owner refuses to sign out a different replacement origin. Existing shared-host sign-out and ordinary-route semantics stay with that owner.
Two new native test functions (seven parameter executions) cover manual/discovered selected profiles, an unrelated manual host with/without a grant, a selected profile without a grant, missing selection, selection changes after capture and stale-origin rejection. The existing branded-control check covers the host row. Tests use existing in-memory fixtures, without new timers or real network operations. Native execution and wall/CI cost are unmeasured here. Documentation and the canonical generated inventory include the new label.
Completed on the exact candidate in the existing secretless Linux container: SwiftFormat 0/6 files need formatting; SwiftLint 0 violations/480 source files, with the same three unavailable SourceKit-dependent rules; docs formatting; native inventory 4,493/no drift plus source safety; normal pre-commit hook; whitespace and source/index equality. Fresh independent P0–P2 review of the full repair delta is scoped-clean (0.90); the final main-queue delivery correction has a separate scoped-clean review (0.97) and unchanged-tree formatting/hook checks. These are static/source checks, not Apple compilation or UI behavior proof.
Publication is provisional, not completion or merge clearance: no Mac is connected to this session. The narrow new-source Mac build/tests and inspected real before/after screenshots of Settings still need to be supplied. No mock image or old screenshot is substituted. Review the saved-manual-A/selected-Access-B case with A lacking a grant and with both granted, foreground/reopen, selection changes and correct sign-out effects. Use disposable synthetic controls; do not revoke working account-wide grants or reset the working phone.
The original broad native-run and fleet-retirement failures remain recorded; this change does not claim their repair. Prior clean physical Access onboarding and preservation evidence remain bound to their actual sources. A2/full A3/A4, remote-Gateway provenance and independent acceptance are unchanged. No merge/automerge, Dashboard work, dependency update or main refresh occurred.
October 6 clean physical Access onboarding — reported Access-path pass
Colin supplied a new-identity physical onboarding return: A7 clean Access path PASS for the observed sequence. It records a newly provisioned app/app-group/extension identity, observed Welcome, a distinct generated instance identity, user-confirmed Access setup and explicit Gateway pairing. Sanitized diagnostic excerpts reported pairing-required rejections followed by node connection at 19:43:50.178 UTC and operator connection at 19:43:50.834 UTC. The requested synthetic CLEAN-SETUP-OK chat check was user-confirmed successful; its message contents were not independently inspected here.
The actual build remains 105880 from production source 2bf46f3, with new application identity and separately recorded executable hashes. Published successor dee03 changes tests only. The host reports strict signature verification and matching device-inclusive provisioning profiles; Personal Team Health/Push exclusions remain disclosed. No cookie-clear source overlay or production behavior change was used. The initial developer-trust launch rejection is retained as a superseded setup boundary, not called an app-source fix.
This is attributed validation-host/user evidence, not independent replay or artifact re-hashing on this host. Clean-state evidence is the new provisioned identity, Welcome and distinct instance—not an uninstall-based empty-Keychain claim. Fresh provider credential prompts/2FA and raw initial registry/Keychain emptiness are not established. The two former phone installations were reportedly removed after preserving their local evidence; earlier preservation results remain historical, and the new working installation should be retained.
This supersedes earlier A7 Access-path pending-chat/provider-blocked wording below. It does not supply a separate ordinary-onboarding control on the new identity, actual grant expiry (A2), pending-work retirement with an unaffected ordinary connection (full A3), shared-origin first/last cleanup (A4), or physical remote-Gateway build provenance. Independent owner/security acceptance remains held. The dependency audit is unchanged and not waived; Settings repair remains separate. No new native suite execution, merge, grant revocation or policy change is claimed.
Historical October 6 dependency failure — fixed by October 7 MCP update
Run37517974255/security-fast112456221585 found two HIGH package matches for GHSA-6qxp-vccf-f47h (SDK1.30.1/client2.0.0). It tested merge59f80637/treee7f8404a, identical to the submitted candidate; dependency inputs were inherited from pinned main6693. No credential compromise is asserted. The cancelled run had5successful,2failed,60cancelled,14skipped jobs; the other failure was the downstream CI gate, and cancelled coverage remains unrun. Colin subsequently authorized SDK1.31.0/client+core2.2.0; the October7 section records unchanged lock generation, supply-chain-age checks, clean scoped audit and tests. No audit suppression or age exception was used.
October 6 qualification return and test-only fixture repair — prior head dee03
Current head
dee03da9a540da2d56062c449c893a667bbab191, treee7f8404a4caea6f9687f5936d73f7a13483e4478, parent2bf46f3c766fc46d4b3c415a45778a4c37994db7. Ingress and pinned main remain unchanged. This is a normal fast-forward two-test-file repair, not another rebase or production change.The supplied complete patch independently hashes to
131f1a5ce63d05d2f60c7e4a66ac9c5e9cd9d14ea8786103d9045d89d413b5f9; applying it exactly reproduces the reported Mac-tested tree above. Source inspection confirms the fixture race: activating a controller whose disabled discovery starts idle changes discovery status to stopped; the queued observer can replace/cancel the reconciliation task that the test captured. The fixture now injects already-stopped discovery before observation is installed. The fleet wait helper also forwards caller source locations. Assertions, deadlines, polling and production retry/authority logic are unchanged.Fresh independent P0–P2 review of the complete two-file delta is scoped-clean (0.95). Isolated Linux checks passed: pinned SwiftFormat 0/2 changes, normal pre-commit hook, whitespace, canonical native inventory 4,492/no drift plus source safety. The committed tree stayed equal to the supplied candidate, with verified signature and Colin credit. No native test was executed on this Linux host.
Attributed Mac results supplied by Colin: strict normal app/test build passed; focused background-preflight repair passed one top-level test/all seven variants with zero failures, exit 0, 2.127s test execution and 231.835s command wall including launch. This was execution of a disclosed local test overlay on an explicitly authorized credentialed Mac, not secretless-host or hosted proof. Its complete supplied patch/tree identity is verified here; raw xcresult payload was not independently retrieved. No new tests or runtime cases were added.
The original broad native selection remains FAIL: 293/295 top-level cases and 508/511 parameter executions passed. The required-case JSON records seven named top-level recovery groups Passed and background preflight Failed; that original failure is not erased by the subsequent seven-variant repair pass. The separate fleet-retirement diagnostic printed a contextual pass in 0.321s, but its invocation was terminated after stalled xcresult finalization. It is not a completed suite pass or an established fix for the original retirement timeout.
The return also reports current-source Mac preflight/build success, simulator install-over preservation of nine controls, profile/header/offline-recovery use, and normal physical build 105880 installation over the working app without reset. Physical cancellation/non-admission, explicit retry and retained-session cold restart have bounded reported successes. Production sources are unchanged by this test-only successor: retain that evidence at original source
2bf46f3c…, not as a new build/run. Personal Team Health/Push exclusions remain disclosed; entitlement overlay SHA-256ff2f252e0c4d423282bb9ccfb2661853fbe3136f30011ff252c8bf7723d30752. No organization-signing or fresh provider-2FA claim is made.Still held: original fleet-retirement timeout disposition; independent authority/security acceptance; A2 actual grant expiry or appropriately scoped disposable revocation; full A3 pending-work retirement/unaffected ordinary-control comparison; A4 legitimate shared-origin participants; A7 separate clean setup (provider 2FA blocked); physical remote-Gateway provenance. The Settings target/sign-out mismatch is outside this repair and does not waive A3. Application/user-wide Cloudflare revocation is not authorized by a disposable client installation.
The older Android CI failure and successful scans below remain source-bound to
2bf46f3c…; this new commit’s checks are pending. No CI rerun, main chasing, merge/automerge, Settings repair, live Gateway/role change or acceptance waiver was performed.October 6 completed hosted follow-up — prior head 2bf46f3
iOS Periphery 37481106244 and shared-kit Periphery 37481106268 passed their actual scans, iOS dead-code gate and shared intersection. Across the two PRs, all four scan workflows and all 12 jobs passed; no scan step was skipped.
CI 37481107294 remains failed: 67 successful jobs, 14 skipped, and two failures consisting of the Android third-party test job and its downstream aggregate. No cancellation is hidden by that accounting. Job 112329903642 ran 3,699 tests with one failure:
ChatComposerLayoutTest.connectedChatWithFailedHealthQueuesAndSendsAfterRecovery. The complete log/XML locates the timeout at line 5811, the final one-secondchatHealthOk && sent.isNotEmpty()wait after recovery—not the initial fixture setup at outer callsite 5792. Which predicate stayed false is not retained.The actual test merge
1c7a36de7bf5197adf3ae0737ae83602f63cc567has parents ingressfef27b65808b4956116e612da855fcdb18a0226cand this head; its tree exactly matches this published candidate. The same case passed in the contemporaneous ingress run in 1.893s total, versus 2.487s total in this failed run. Their complete executed Android trees are identical (be679f23bfdc80c52fcfa21b33e3930528644f8e), also matching both standalone heads and pinned main. This includes Android source, tests, Gradle inputs and configuration. Both logs use the same Temurin JVM version and two forks; identical scheduling/process history is not established. Exact XML artifacts: passing ingress, failed activation.This establishes unchanged Android inputs and differing natural-run outcomes, not a proven root cause, a fix, an exact-base failed reproduction, or a CI waiver. No speculative Android edit, timeout increase, rerun or main refresh was performed. The failed gate remains visible.
Current-head ClawSweeper revision 41 establishes no concrete bypass, but retains the requirement to execute valid recovery and expired/retired/reassigned rejection before native I/O, together with held A2/A3/A4/A7, Gateway provenance and independent acceptance. Normal Apple runtime jobs were skipped; static scans do not resolve those requirements. Both PRs remain unmerged.
October 6 pinned-base stacked rebase — prior head 2bf46f3
2bf46f3c766fc46d4b3c415a45778a4c37994db7. Tree:29b5ca82a646a90e541b0bcd5a15aeb26883dc40. Base is rebased ingressfef27b65808b4956116e612da855fcdb18a0226c, on pinned main6693bb9665ced2a4fea3e286f62acfd0116e2c72.resolveManualTLSParamsalways returns required TLS when a stored pin exists, so the alleged non-TLS route retaining a pin is not produced by the fleet’s actual route owner. The raw review remains a findings report; no freshness/pin guard was weakened. No accepted finding remains unresolved.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.
Historical October 6 strict-build repair
a04a991c651f8c15d870d9460b612323ca8ba787. Ingress remains unchanged at7696061bc794292bcca62a47bdd1a6f9c7dc134b.pnpm lint:swift ioswrapper now finishes 0 violations across 480 files in the secretless Linux validation environment. Its static distribution explicitly skips three SourceKit-dependent rules; this is not a complete Mac lint/build pass. Pinned SwiftFormat: 0/3 changed files require formatting. Canonical native inventory: 4,492 entries, changed=false; the canonical Swift file-list generator includes the new extension.GatewayOperatorFleetis constructed or either transport variant reaches connection assertions. The ingress fixture is byte-identical to its main input and freshly inspected current-main fixture. The nearby Network/NECP message does not establish its cause. No speculative fixture change, timeout extension or failure waiver was applied; retained per-variant logs/xcresult evidence are needed for that separate boundary.Latest exact-head checks (October 6): iOS Periphery passed with zero reported findings; the shared-kit scan passed with an empty cross-platform intersection (individual platform reports are not both empty). ClawSweeper revision 39 completed for this head with no actionable correctness finding, but remains blocked on real behavior/qualification and owner acceptance.
CI dependency blocker: CI 37468392340 stopped after the executed production dependency audit rejected source-map-js 1.2.1 for GHSA-68fv-2mgg-jv7q. Its tested merge bb3c3aca7d8c98d3fb345fdf08edd08f5e038292 has the same tree as this head. The lockfile is byte-identical to ingress 7696061 and main input 4d94a9f: this dependency predates the iOS repair. This is source-derived dependency provenance, not a newly executed baseline audit or a waiver. The other 62 cancelled jobs are missing coverage, and the CI gate failure is downstream. Current main already has the 1.2.2 fix in 165902; applying that dependency override/cooldown update to this stack is awaiting explicit task-owner approval. No dependency update or rerun has been performed.
Next: strict Mac build of this replacement, the affected activation recovery/authority cases, and the previously held qualification. Preserve the working installation and previously passed ingress/storage/Share evidence. Nothing is merged or merge-cleared.
Prior October 5 integration candidate — historical source
The following integration head, checks and review refer to a04a991… rather than the October 6 repair above.
061166646648bce67c33722ff1eea5a485bc32ccand ingress7696061bc794292bcca62a47bdd1a6f9c7dc134b.worker.requestOTEL switch case. Actual tested mergee6dc0ad0c8fc68963f08519d467cc99fbdd8c592uses main11d3d04a1279781a770f6a6aa09e6322b064b80aplus ingress 7696061. Source/log attribution is not an executed exact-base replay or gate waiver. Activation CI 37370046274 has now finished failed: 57 successful jobs, 13 cancelled, 14 skipped and one aggregate-gate failure. All 13 cancelled jobs individually have zero steps, no runner and the hosted-runner acquisition failure annotation; the aggregate rejected eight lane families as abandoned. These are missing selected executions, not passes or a source-failure finding. No gate waiver is claimed.Exact-head hosted update (October 5, final observation 21:14:57 UTC): iOS Periphery 37370045918 passed its actual scan (2/2 jobs), and Shared Periphery 37370045922 passed both platform scans and final intersection (4/4 jobs). These do not execute the new native recovery tests or grant device/security acceptance. The screenshot-evidence job also passed; its artifacts were not inspected in this watch. No current-head ClawSweeper review appeared; the durable review still names old head 0611666. Standalone macOS app Periphery did not scan after its scope job was cancelled. Security-high cancellations were not independently attributed and are not acceptance. All 131 observed check instances are terminal; overall CI remains red.
Remaining: focused new-source Mac build/native recovery proof, separate clean normal activation (A7), disposable physical expiry/reauthentication (A2), full pending-work retirement plus an unaffected ordinary profile (A3), legitimate shared-origin first/last cleanup (A4), running-Gateway build/commit provenance, and independent security/owner acceptance. Reuse the scoped normal-upgrade/ordinary-Share results below; do not repeat an entire storage/Share campaign merely because the branch advanced.
Historical source-bound qualification and original failures (not new-head results)
All “published/current/new-head” wording inside this chronological record refers to the then-named historical source. It does not qualify the October 5 integration head above.
October 5 normal-build upgrade and actual Share return
Colin and the local validation agent report a new main94-plus-lint → normal ingress build 103976 → normal activation build 103989 simulator sequence, with no registry, browser-clear or readiness source patches in the new candidate builds. The published candidate commits remain ingress
a675a43c1af704eb014094f8e10eaff90d8a2e13and activation061166646648bce67c33722ff1eea5a485bc32cc(treeaac84e4d6681d81205bbdf549a63e5a78c225101). No reset, credential re-entry or re-pair followed the upgrades.A0: PASS — scoped simulator preservation and saved use. Two main-created profiles, instance/selection and nine recorded preferences remained equal. Node/operator connections re-established after both installs. Profile B was selected through the production UI and its saved service header matched locally on two native WebSocket requests before admission; A was restored and reconnected. A new native chat received the expected synthetic reply. Credential evidence is successful saved use, not an equality audit of every Keychain account. This supplements, rather than relabels, the earlier instrumented storage results.
Ordinary Share: PASS — one actual send and independent destination receipt per leg. Colin operated Safari’s Share extension on main at 18:16:47 UTC; the unique baseline user-message marker appeared at the intended destination at 18:16:48.028. On normal activation, the candidate marker appeared at 18:21:24.648. This is a real extension before/after comparison, not merely in-app chat or opening a share sheet. No experimental Gateway patch or policy/role change was used. Prior failed baseline sends remain historical failures with their causes unproven; this successful new installation does not erase them.
These are attributed validation-host results, not independent executions or binary re-hashing on this host. The return names sanitized checkpoints/receipt records and provides app/Share executable hashes. Normal simulator activation hashes include app
3f657dfd5c8296c2582197d8fb0c74fdab2e0d8bf579ab6b7aa5637957259a96and app debug dylib6113bc72013965aafd77fb87778452b01cdf6258c97466f46c6d2a1469c1096e. Same app/Share bundle and built-group identities were reported across the simulator products; signed entitlement dictionaries were empty. This is simulator parity, not physical signing/Keychain-group proof. The responding local Gateway reported version 2026.9.5; its running build/commit remains unattributed.The exact normal physical build 103989 is reported installed; previous sign-out/cold restart/fresh sign-in, observed cancellation/retry boundaries, and managed Share foreground guidance remain REUSED evidence, not a new complete physical run. Personal Team signing and the disclosed Health/APNs exclusions remain bounded; no explicit Keychain-access-groups key appeared in the retained signing proof. The phone uses a separate remote Gateway whose exact runtime is also unverified.
Still incomplete: separate clean normal activation setup (A7); owner-designated disposable Access expiry/revocation and reauthentication (A2); pending-managed-work retirement together with an unaffected ordinary connection (full A3); and two legitimate disposable shared-origin participants for first/last Forget (A4). No deferral or independent security/owner acceptance has been recorded. Gateway runtime attribution is a provenance gap, not grounds to invent another completed run. Normal upgrade and ordinary Share should not be sent back for blanket repetition.
Original 323/327 and later 5/5 + 327/327 remain together as successful contextual follow-up with original cause unresolved. Resource/disk-related build preparation failures are retained separately from the subsequent strict build success. Task simulator/frontend input recovery restarted processes but did not erase storage; final recorded preferences still matched. No tests or screenshots were independently replayed during this report intake.
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 returnsPAIRING_CHANGEDbefore asking the live pairing owner.A synthetic, credential-free Linux reproduction through the real
node.eventhandler and node registry at that server revision produced the sameUNAVAILABLE / PAIRING_CHANGEDresponse 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 main9feb364cc960c140ecfc4b487dc9587e7569d397. 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.eventreturnedUNAVAILABLE / 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.The same report records T1 5/5 once after observed foreground launch and T2 327/327 once using the original suite selection and observed Swift case-start order. The previously timing-out managed-to-ordinary case passed in 0.654s; deadlines, predicates, assertions and retry policy were unchanged. Source was activation plus the retained DEBUG browser-clear overlay (clear flag absent) and v2 diagnostics: effective tree
a6e8f98bde498a4d76d0f431c963746e54765584. That tree was independently reconstructed from the two known patch hashes. Build exit 0 / 24.119s, T1 command 43.788s, T2 command 75.999s are reported Mac results, not independently rerun here. These are external host summaries, not a claim of the packet’s prescribed disposable-host isolation.The earlier 323/327 failure remains preserved. A faster contextual pass with a rebuilt, foregrounded/warm app does not establish the original timeout/scene cause; no failure snapshot emitted on success. No production fix is claimed. The phone was unavailable, so no new physical grant-lifecycle result is claimed. Independent security/owner acceptance remains HELD.
October 2 returned local qualification
Colin’s returned packet confirms strict local preflight and app/test-bundle builds for the pinned candidates. Local activation lifecycle was 323/327 top-level cases: three typing tests had no foreground-active UIWindowScene, and the managed-to-ordinary case timed out at its initial managed-readiness wait, before the ordinary transition. Earlier green CI does not erase those first-run failures.
One authorized focused diagnostic run subsequently passed 1/1, with the same three-second deadline, predicates and assertions, in 1.733s test time. Its effective tree was
fde398ce90e2679082e8e52544af2ef245980efe(published activation plus the disclosed DEBUG browser-clear and test-diagnostic overlays). It is a successful isolated observation, not an established fix or root cause for the original suite timeout. The original xcresult was retained without retries-to-green. The diagnostic’s separate pinned-formatter spelling finding does not change the runtime result; it was corrected in the local diagnostic artifact only, not this PR.The independent local two-process restart helper passed on the pristine activation tree. On the physical phone, Colin reports successful website authentication, approval on the actual Gateway, then QR completion and full functionality; sanitized client logs support cold native reconnect using a saved device token. This is bounded user-confirmed functionality and client evidence, not a server-role audit or exhaustive chat/media/Share suite. The physical executable used the disclosed DEBUG-only app-browser-data-clear overlay (patch SHA-256
c7fbc1b3387e38551fb6ba38f3a50f5919ded9a70789c0abf298aa3d29cacbc3), not a pristine candidate. The available Personal Team build retained app groups and excluded Health/APNs; it does not qualify organization signing or same-identity main-to-candidate preservation. GitHub-app 2FA did not work in that observed setup; its cause is unproven.Historical hold at that report: the then-incomplete persisted-state/Share/clean-install matrix, physical lifecycle, local-failure disposition and independent acceptance. The normal-build upgrade and ordinary Share portions are superseded by the October 5 return above; the stated remaining physical/clean-control and acceptance holds persist. The node-only approval/operator-enrollment gap and new onboarding UX are explicitly deferred to a separate PR; no automatic role/admin upgrade is part of this stack.
Verified hosted proof — October 2, 16:06 UTC
CI 37027761935, attempt 1, concluded success. iOS app/test-bundle build passed; 319 lifecycle Swift tests and 90 voice/cleanup Swift tests passed, with the accompanying XCTest groups at zero failures. The separate two-process restart proof completed and emitted its validated success marker. Uploaded native evidence contains AccessRestart/lifecycle/voice xcresults and logs. iOS/shared Periphery, lint, native inventory and macOS Swift package/test lanes passed.
Tested merge
89f6946d58969628d91e3eda05851a69a6117f77has parents the pinned ingress and activation heads and treeaac84e4d6681d81205bbdf549a63e5a78c225101, identical to the published activation tree. The prior three assertions across two native cases no longer fail. This is real hosted Apple execution, not a Linux mock; it still does not qualify local install-over, real test-account login, physical signing or independent security acceptance.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
bbca99c292d6aa3ae4dd9d0903b262e8ddf257e5combined 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.hostUserDefaults. It now exercises the actual helper-ownedpreferredStableIDKeychain account, retaining acquisition/wait/clear/restoration checks and checking write/delete success. No production migration is restored.The discovered-retry regression exposed a lost main-side state transition: verified TLS installed its trust prompt but retained the failed retry context. The owner now clears that context after its existing cancellation/generation guard, without prematurely consuming setup credentials. The existing native regression assertions are unchanged.
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 two changed Swift fixtures now match pinned SwiftFormat 0.63.0 (
Selfspelling and a documentation comment only); the ten unrelated supplemental formatting findings are not swept into this repair. Hosted check-lint also found dot-access to the external xctestrun metadata key. Quoted property access preserves its exact key, type and assertion without a suppression. The old lint failure was reproduced; the actual root-test lint owner now passes both workflow files, and the full lifecycle file passes 129/129, 9.59s wall. All four edits received a scoped-clean P0–P2 review. At that point repaired-head Apple execution was pending; independent acceptance remains held.514abca4328e380908a0c11a4c1bc40ff65de846and repaired ingressa675a43c1af704eb014094f8e10eaff90d8a2e13.Historical native evidence — not rerun on this replacement
The previous published activation tree
e5f86763…had source-bound validation-host summaries for 131/131 auth/presenter cases, 1/1 configured-manual migration, and an earlier completed simulator sign-in/transfer/pairing/native connection. Prior base reports also covered shared Swift checks, Periphery and restart repetitions. These remain attributed historical results, not new-head passes.V3’s main870c → ingress6151 → activationa125 simulator install-over preserved one manual profile, selection, port and TLS state without reset. That baseline never paired, and this later login attempt stopped at GitHub 2FA before callback/native admission. The earlier successful simulator flow is separate. A reduced-entitlement Personal Team phone build reconnected with retained credentials; it does not qualify app-group/Share preservation or fresh physical Access.
Inspected historical before/after and connected-state screenshots. These are chronological behavior states, not a controlled explanation of the provider HTTP500. No new UI design or screenshot claim is introduced by the integration repair.
Remaining proof: separate clean normal activation (A7), disposable physical expiry/reauthentication (A2), full pending-work/unaffected-profile retirement (A3), legitimate shared-origin first/last participant cleanup (A4), and exact-head independent security/owner acceptance. Preserve the reported source/signing limits and running-Gateway provenance gap. Normal simulator upgrade and ordinary Share now have the scoped October 5 pass evidence above. No unrelated Push/Watch/HealthKit campaign is added.
Historical 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. Follow-up repair and Mac validation: @Solvely-Colin. AI-assisted implementation and review; original contributor authors and independent commits are preserved through the rebase.
Work sessions