Repository navigation
feat(android): share current Access browser attempts across profiles - #147305
vincentkoc wants to merge 1 commit into
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. |
333c62e to
910241f
Compare
39e159e to
1775ee6
Compare
|
Codex review: needs changes before merge. Reviewed October 5, 2026, 10:40 AM ET / 14:40 UTC (Revision 31). ClawSweeper reviewWhat this changesAllows Android Gateway profiles targeting the same Cloudflare Access application to share an active browser sign-in task while retaining separate participant ownership. Merge readiness⛔ Needs changes before merge - 1 item remains This remains a useful capability absent from current main. No introduced correctness or security defect was found; the explicitly retained prerequisite-stack merge hold still applies. Priority: P2 Review scores
Verification
How this fits togetherAndroid's ingress controller checks Access authorization before admitting Gateway connections. Shared browser authentication produces a grant that each profile must independently qualify before its transport can use it. flowchart TD
A[Gateway profile requests] --> B[Verified Access application]
B --> C{Matching active browser task?}
C -->|Yes| D[Join shared attempt]
C -->|No| E[Create browser attempt]
D --> F[Check profile and grant currentness]
E --> F
F --> G[Admit Gateway transport]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +840, Other +15. Total +855 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep shared-attempt coordination in the existing controller, preserving exact application identity, task custody and independent per-profile admission. Do we have a high-confidence way to reproduce the issue? Not applicable: this adds shared browser-attempt coordination to a dormant controller; no current-main bug reproduction is claimed. Is this the best way to solve the issue? Yes: capturing the existing intent and exact task extends the current ownership model without creating another authentication owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9fd0aeb2ebaf. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (30 earlier review cycles; latest 8 shown)
|
910241f to
7d4d95f
Compare
38de691 to
82839cb
Compare
7d4d95f to
5c91e10
Compare
f3477d2 to
625bf69
Compare
5c91e10 to
67a7380
Compare
625bf69 to
7febdeb
Compare
fa930cf to
470d805
Compare
8b8460f to
3e17af3
Compare
470d805 to
cc954b4
Compare
3e17af3 to
5f408e4
Compare
This comment has been minimized.
This comment has been minimized.
6cbb1c5 to
6a4d47c
Compare
5f408e4 to
1845fad
Compare
6a4d47c to
5d2162a
Compare
1845fad to
50de8ab
Compare
What problem does this solve?
Allow current profiles for the same Access application to share one browser attempt. Reusing an attempt must retain its exact task and participant ownership; creator departure, cancellation, Retry, ordinary readmission, or Forget must preserve a current peer without reviving stale work.
Why this approach?
This PR is now the final, narrow coalescing slice, based on #156251. The earlier aggregate has been split into the ordered draft stack below. The only production addition here is the guarded same-application, nonterminal intent/task reuse branch; the complete participant and retirement owners already exist in its prerequisites.
This comparison is two files, +879/-24 (903 changed lines): production +15/-0; tests +864/-24. Eleven regression methods and the remaining shared-peer matrix cells arrive with the capability. No production abstraction, scenario deletion, app activation, or weakened guard was added to make the split smaller.
The two larger capability slices keep their cancellation, custody, reentry, and failure tests together. Earlier prefixes expose only implemented APIs; later slices restore the corresponding mixed-mode matrix cells. Each draft needs its own relevant compile/test and review qualification before landing.
Evidence and remaining gates
baadf5c12726522894525624bd594ce5859faeda, parentfa607a6562d08e59f85b990483aacdcc93658f3f. All twelve commits are signed and form a linear chain fromcf101c4fb09936e31ee3dac615d7944896241f58.68917090ad4bef1d2c1ff178b9c2c0a9e6fe115b, identical to preserved original head8aa382d7d196ec7ede0fbaa50980c9e6b1992e22. All 93 Controller methods, their full bodies/order, shared fixtures, and the complete 150-method focused inventory are conserved: Controller 93, Client 18, Store 20, CustomHeaders 19. Normal scoped commit hooks andgit diff --checkpass.8aa382d7, with no actionable source/security finding. Fresh split-source review remains held by the existing fixture filename classification. No blocked input is resubmitted and no substitute clearance is claimed.8717b579; it is not new-head native or installed-old upgrade proof.Dependent #147877 and #147307 remain drafts with unchanged source heads. The former is pinned to its exact old parent through an immutable hold branch, preserving its narrow 97-line comparison; the latter keeps its existing base. Integration still requires a separate restack onto this rebuilt stack and qualification after their held-input boundary is resolved. This metadata preservation provides no source-review or app-activation clearance.
Before merge: qualify the split prefixes, native results and remaining required CI; complete ClawSweeper's fresh-install and same-signer installed-old preservation gate for profiles, selection, custom headers, settings and pairing. A seeded-record fixture does not prove a genuine Gateway/identity-provider handshake. Full app/Custom Tabs/Settings activation remains outside this stack and unqualified. All slices stay draft; nothing here claims merge readiness.
AI-assisted implementation. Fresh source review remains pending.