Repository navigation
feat(android): own browser Access renewal and cancellation - #156236
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. |
|
Codex review: needs real behavior proof before merge. What this changesAdds owned browser sign-in, renewal, launch consumption, and cancellation to Android’s dormant Gateway access controller. Review scores
ProductKind: Feature · Worth it: Yes Merge readiness⛔ Blocked before merge - 3 items remain This PR needs real behavior proof before merge. The browser lifecycle slice remains distinct from current main, and no concrete introduced defect was identified; the prior authority-boundary proof gap remains unresolved. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherAndroid’s access controller evaluates Cloudflare Access challenges and obtains authorization for Gateway and media connections. This slice manages browser attempts and caller eligibility; application wiring remains outside its scope. flowchart TD
A[Connection request] --> B[Access controller]
B --> C{Interactive sign-in?}
C -->|No| D[Cached authorization or sign-in required]
C -->|Yes| E[Owned browser attempt]
E --> F[Session store]
F --> G[Current authorization]
G --> H[Gateway and media requests]
Technical reviewBest possible solution: Keep browser eligibility and presentation in the controller, grant settlement in the Store, and current-authority enforcement at each transport boundary. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a dormant feature slice rather than a reported current-main defect; this read-only review executed no target code. Is this the best way to solve the issue? Yes, the ownership split fits the existing Access foundation and preserves noninteractive automatic requests; execution evidence is still needed to qualify its authority boundaries. 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: none. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +317, Tests +847. Total +1164 across 2 files. View PR surface stats
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 (1 earlier review cycle)
Reviewed October 7, 2026, 9:10 PM ET / October 8, 2026, 01:10 UTC (Revision 2). |
What Problem This Solves
Browser renewal needs one owner for the intent, Store task, caller eligibility and presentation. Cancellation, profile replacement or a late callback must not admit an obsolete grant or overwrite the current browser state.
User Impact
This adds explicit browser authentication and renewal to the dormant Android ingress controller. It includes consuming and canceling browser intents, while keeping automatic requests noninteractive. The app remains unwired. Same-application coalescing, public Forget/Sign out and Retry remain later capabilities.
Why This Change Was Made
Each interactive call retires the previous intent and acquires one immutable intent/task pair. The first implementation includes participant Job/current-registration checks, post-callback identity checks, detached Store custody, terminal guards and atomic presentation. Browser coalescing is genuinely absent until its own slice; these ownership guards are not deferred.
This is the seventh narrow slice of #147305, stacked on #156233. It changes 349 production lines and 923 test lines, 1,272 total. This deliberate size exception keeps one browser lifecycle and its regressions together; restoring earlier browser-only assertions and call signatures contributes to the test churn.
Evidence
8aa382d7d196ec7ede0fbaa50980c9e6b1992e22; four methods retain only currently supported expiry, TLS, no-peer or replacement cells. Their remaining original cells enter with the corresponding APIs.git diff --checkpassed. Prefix compilation and test execution remain pending; historical aggregate proof does not qualify this prefix.