Repository navigation
feat(android): classify Access routes and retain origin ownership - #156231
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: blocked before merge. Reviewed October 7, 2026, 9:09 PM ET / October 8, 2026, 01:09 UTC (Revision 2). ClawSweeper reviewWhat this changesAdds a dormant Android controller that classifies Cloudflare Access challenges and retains saved origin ownership until grant retirement finishes. Review scores
ProductKind: Feature · Worth it: Yes Merge readiness⛔ Blocked before merge - 3 items remain Keep open: this maintainer-authored stack slice adds distinct work that current main does not implement. It needs real behavior proof of registry upgrade preservation before merge; the prior validation gaps remain unresolved. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe Android app stores paired gateways and their connection settings in encrypted preferences. The new controller probes a gateway using its selected TLS policy, records verified Access ownership, and publishes connection attention; production app wiring is deferred. flowchart TD
A[Paired gateway and TLS settings] --> B[Ingress controller]
C[Saved gateway registry] --> B
B --> D[Route discovery]
D --> E{Verified Access challenge?}
E -->|No| F[Ordinary admission]
E -->|Yes| G[Saved origin and sign-in attention]
B --> H[Drain transports and retire old grant]
Technical reviewBest possible solution: Keep one ingress owner, preserve current-main registry behavior, and qualify the persisted-format change before activating browser or cached-grant admission in later slices. Do we have a high-confidence way to reproduce the issue? Not applicable: this introduces a dormant capability rather than repairing a reproduced existing-app defect; source confirms the controller has no production caller. Is this the best way to solve the issue? Yes, the single controller and existing registry/store owners are a coherent foundation; correctness in the installed app remains conditional on prefix validation and upgrade preservation. 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: in-process harness. Added test files: 1. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +453, Other +360. Total +813 across 3 files. View PR surface stats
Review metrics
LabelsLabel 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)
|
What Problem This Solves
Android ingress needs to distinguish an ordinary gateway from a verified Access challenge without confusing service-header access with browser authorization. A profile changing origins must also retain durable ownership until its old grant has been retired.
User Impact
This introduces the dormant route-classification owner and durable origin association. Ordinary routes remain usable; verified challenges produce actionable attention. The controller is not wired into the app in this slice. It exposes no browser authentication, cached grant admission, public Forget/Sign out, Retry or cleartext transition API yet.
Why This Change Was Made
The same owner performs route TLS discovery, checks the current caller and registration, and publishes one presentation snapshot. Registry observations are queued to avoid inline monitor inversion. A shared-origin departure releases only its association; the last owner retains its durable association through transport drain and deletion, with an atomic retirement check before cleanup can clear it.
This is the fourth narrow slice of #147305, stacked on #156224. It contains 360 production lines and 453 test lines added, 813 total. The complete cleanup boundary stays with its tests.
Evidence
8aa382d7d196ec7ede0fbaa50980c9e6b1992e22. Its internal API exposes only present capabilities; browser-only test scaffolding will return with the browser slice. No historical intermediate race fix is replayed.git diff --checkpassed. Production call-site inspection confirms the controller remains dormant. Prefix compilation and test execution remain pending; historical aggregate results do not qualify this new prefix.