Skip to content

feat(android): acknowledge origin-wide Access sign-out - #156248

Draft
vincentkoc wants to merge 1 commit into
split/android-ingress-profile-forget-20260923from
split/android-ingress-sign-out-20260923
Draft

vincentkoc wants to merge 1 commit into
split/android-ingress-profile-forget-20260923from
split/android-ingress-sign-out-20260923

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What problem does this solve?

Add origin-wide Access Sign out with durable acknowledgement. Revocation must take effect before reentrant observers can admit an old grant, and completion must update only the action and profile that still own it.

Why this approach?

This ninth slice of #147305 depends on #156239. It uses the Store retirement owner and records a distinct acknowledgement identity for every explicit Sign out. Cold saved profiles bind that identity to their first registration; replacing a registration or departing the profile invalidates it. Browser cancellation, expiry cleanup, and completion preserve a newer grant or surviving action.

The three-file delta is 858 changed lines: Controller production +91/-1, native text catalog +2/-0, tests +740/-24. The catalog entries travel with their real messages. No app activation, Retry, cleartext admission, or shared-browser reuse is introduced.

Evidence and remaining gates

  • Add fourteen regression methods and complete the earlier Sign-out retirement/association cells: 62 Controller methods are now present. Cover durable deletion acknowledgement, cold/replaced registration ownership, revocation before inline admission, post-revocation browser admission, nested Sign out, detached failures, and held credentialed HTTP discovery.
  • Normal scoped commit hooks and git diff --check pass. The native catalog matches the preserved aggregate exactly. Standalone compilation and execution remain pending; historical 150-method aggregate results do not qualify this prefix.
  • Automated source review is still held by the existing fixture filename classification. No blocked input is resubmitted and this draft claims no substitute review clearance.
  • Native persistence and full fresh-install/same-signer install-over preservation of profiles, selection, custom headers, settings, and pairing remain required for the final composition. Keep this draft unmerged until the relevant proof and review gates are satisfied.

@vincentkoc vincentkoc self-assigned this Sep 23, 2026
@clawsweeper

clawsweeper Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 23, 2026
@clawsweeper

clawsweeper Bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed September 23, 2026, 2:01 AM ET / 06:01 UTC.

ClawSweeper review

What this changes

Adds origin-wide Cloudflare Access sign-out to Android’s dormant connection controller, with deletion acknowledgement tied to the current profile and action, supporting messages, and regression coverage.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep open: this member-authored prerequisite remains distinct from current main, and no introduced production defect was established. Its credential-revocation boundary still needs proof for the submitted intermediate version.

Priority: P2
Reviewed head: c52f66b67ae58471d5341dce80f02e6b2d1b1c31

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The ownership design and targeted coverage are useful, but unexecuted authority-boundary proof limits readiness.
Proof confidence 🦪 silver shellfish (2/6) Needs real behavior proof before merge: Authority-chain proof required: the changed controller revokes origin credentials through the existing store, but this prefix has no observed allowed-versus-revoked final-I/O result. The authored HTTPS held-discovery scenario is relevant; historical aggregate results do not qualify this intermediate source. Redacted transport logs or an execution transcript are appropriate; screenshots alone cannot prove token rejection. Update the PR body with evidence to trigger review, or ask a maintainer for @clawsweeper re-review. No stored-data format is changed by this delta.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: Authority-chain proof required: the changed controller revokes origin credentials through the existing store, but this prefix has no observed allowed-versus-revoked final-I/O result. The authored HTTPS held-discovery scenario is relevant; historical aggregate results do not qualify this intermediate source. Redacted transport logs or an execution transcript are appropriate; screenshots alone cannot prove token rejection. Update the PR body with evidence to trigger review, or ask a maintainer for @clawsweeper re-review. No stored-data format is changed by this delta.
Evidence reviewed 7 items Pinned introduction: The reviewed delta is the verified stack-base-to-head change. It adds sign-out and acknowledgement ownership without introducing app activation, dependencies, permission changes, or storage formats.
Revocation and completion ownership: Sign-out calls the existing store retirement owner before presentation effects. Completion checks acknowledgement identity, registration, presentation, and the current retirement; cold acknowledgements bind to their first matching registration.
Relevant final-effect coverage exists in source: The added held-discovery scenario uses the production controller/store and real OkHttp HTTPS transport, checking an allowed credentialed request followed by sign-out and no additional token transmission after releasing the held request. Other additions cover stale checkpoints, nested sign-out, replacement, and deletion failure. These are authored scenarios, not observed execution results for this prefix.
Findings None None.
Security None None.

How this fits together

Android’s Access controller prepares credentials for protected Gateway connections. Sign-out invalidates shared origin credentials through the session store, retires pending work, and publishes completion only to the action that still owns it; app activation remains outside this PR.

flowchart TD
  A[Saved Gateway profile] --> B[Explicit sign-out]
  B --> C[Revoke origin credentials]
  C --> D[Retire pending connections]
  D --> E[Delete saved Access grant]
  E --> F{Action still owns completion?}
  F -->|Yes| G[Publish success or failure]
  F -->|No| H[Preserve newer action]
Loading

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: Authority-chain proof required: the changed controller revokes origin credentials through the existing store, but this prefix has no observed allowed-versus-revoked final-I/O result. The authored HTTPS held-discovery scenario is relevant; historical aggregate results do not qualify this intermediate source. Redacted transport logs or an execution transcript are appropriate; screenshots alone cannot prove token rejection. Update the PR body with evidence to trigger review, or ask a maintainer for @clawsweeper re-review. No stored-data format is changed by this delta.
  • Resolve merge risk (P1) - The submitted prefix has no observed final-I/O result proving that sign-out blocks queued or revoked credentials while preserving newly authorized work; the relevant transport scenario is present but explicitly unexecuted.
Agent review details

Security

None.

PR surface

Tests +716, Other +92. Total +808 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 740 24 +716
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 93 1 +92
Total 3 833 25 +808

Review metrics

None.

Root-cause cluster

Relationship: partial_overlap
Canonical: #147305
Summary: This is an explicitly separated slice of the open aggregate, with distinct prerequisite and successor slices; none is a merged replacement.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Qualify the existing transport scenario (recommended)
    Provide source-bound execution evidence showing allowed credential transmission before sign-out and rejection of held or stale credentials before subsequent network I/O.

Technical review

Best possible solution:

Keep retirement in the existing session-store owner, qualify the scoped authority proof, and preserve the separate composition upgrade gates before app activation.

Do we have a high-confidence way to reproduce the issue?

Not applicable as a current-main bug reproduction: this adds a dormant capability. The relevant authority scenarios are identifiable in source, but this review did not execute them.

Is this the best way to solve the issue?

Yes at the source-design level: reusing canonical retirement and attaching completion to an explicit action owner avoids a competing cleanup mechanism. Execution evidence is still needed to establish the concurrency guarantees.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 7f50ce061649.

Labels

Label changes:

  • add P2: This is a bounded Android authentication prerequisite with app activation deferred and no demonstrated current-user outage.
  • add merge-risk: 🚨 security-boundary: The change introduces explicit credential revocation whose effectiveness against queued final network effects remains unproven for this prefix.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: Authority-chain proof required: the changed controller revokes origin credentials through the existing store, but this prefix has no observed allowed-versus-revoked final-I/O result. The authored HTTPS held-discovery scenario is relevant; historical aggregate results do not qualify this intermediate source. Redacted transport logs or an execution transcript are appropriate; screenshots alone cannot prove token rejection. Update the PR body with evidence to trigger review, or ask a maintainer for @clawsweeper re-review. No stored-data format is changed by this delta.

Label justifications:

  • P2: This is a bounded Android authentication prerequisite with app activation deferred and no demonstrated current-user outage.
  • merge-risk: 🚨 security-boundary: The change introduces explicit credential revocation whose effectiveness against queued final network effects remains unproven for this prefix.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: Authority-chain proof required: the changed controller revokes origin credentials through the existing store, but this prefix has no observed allowed-versus-revoked final-I/O result. The authored HTTPS held-discovery scenario is relevant; historical aggregate results do not qualify this intermediate source. Redacted transport logs or an execution transcript are appropriate; screenshots alone cannot prove token rejection. Update the PR body with evidence to trigger review, or ask a maintainer for @clawsweeper re-review. No stored-data format is changed by this delta.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 5b5a540 adds apps/android/app/src/main/java/ai/openclaw/app/gateway/GatewayCustomHeaders.kt:8 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 5b5a540e3451; files: apps/android/app/src/main/java/ai/openclaw/app/gateway/GatewayCustomHeaders.kt)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Provide prefix-specific compilation and focused execution results, including measured test cost.
  • Show current credentials reaching the intended endpoint and revoked or queued credentials being rejected before I/O, including preservation of a newly authorized grant.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: L status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant