Repository navigation
feat(android): bind cached Access admission to owned discovery - #156232
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. Reviewed September 23, 2026, 1:48 AM ET / 05:48 UTC. ClawSweeper reviewWhat this changesAdds cached Cloudflare Access admission to Android’s dormant connection controller, with credentialed discovery ownership, expiring authorization leases, and cancellation coverage. Merge readiness⛔ Blocked before merge - 3 items remain Keep open: this maintainer-authored slice adds a distinct capability absent from current main and the latest release. No concrete introduced correctness defect was found, but the split’s authority-boundary proof remains incomplete. Priority: P2 Review scores
Verification
How this fits togetherAndroid’s ingress controller decides whether a saved Gateway connection can use ordinary service headers or a cached Cloudflare Access grant. It supplies authorization checks to discovery, WebSocket upgrades, and media requests; this slice does not activate it in the app. flowchart TD
A[Saved Gateway profile] --> C[Ingress controller]
B[Cached Access grant] --> C
C --> D[Service header probe]
D -->|Access challenge| E[Owned credentialed discovery]
E --> F[Current authorization lease]
F --> G[Gateway and media transport]
F -->|Expiry or replacement| H[Invalidate and drain work]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +500, Other +274. Total +774 across 2 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one controller responsible for cached-grant admission and retirement, with scoped transport proof before this capability becomes available to app wiring. Do we have a high-confidence way to reproduce the issue? Not applicable: this adds a dormant capability rather than repairing an established current-main failure. Tests were inspected but not executed in this read-only review. Is this the best way to solve the issue? Yes, extending the existing admission owner is a coherent approach and preserves independent service-header access; merge readiness still depends on proving its transport boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 80bab7e23ce0. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: feat(android): bind cached Access admission to owned discovery This is item 3/3 in the current shard. Shard 38/89. This temporary status tracks the active review worker. The completed review will appear in the durable ClawSweeper review comment. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
What Problem This Solves
A cached Access grant must remain tied to the current profile, origin, revision and lifetime throughout discovery and transport admission. Revocation or cancellation must also retain ownership of an in-flight credentialed probe until its cleanup finishes.
User Impact
This adds cached-grant admission to the dormant Android ingress controller. Service-header access stays independent, and expired or superseded grants cannot authorize an upgrade. No app wiring or browser authentication is introduced.
Why This Change Was Made
Discovery is enrolled atomically against the current grant, started outside the owner monitors, and canceled and joined before custody is released. Leases recheck registration, revision, expiry and request authority. Ordinary admission drains the operations it actually displaced; origin-owned expiry and retirement cannot be swallowed by a replacement profile.
This is the fifth narrow slice of #147305, stacked on #156231. It changes 304 production lines and adds 500 test lines, 804 total.
Evidence
8aa382d7d196ec7ede0fbaa50980c9e6b1992e22. No temporary unguarded cached-send path is introduced.git diff --checkpassed. Prefix compilation and test execution remain pending; prior aggregate results do not qualify this new prefix. The following small slice adds actual TLS/Gateway transport proof using this owner.