Skip to content

chore(ios): drop handled controlUi.sessionPullRequests.changed from the protocol event allowlist - #207288

Merged
obviyus merged 1 commit into
mainfrom
fix/protocol-allowlist-pr-pills
Nov 28, 2026
Merged

obviyus merged 1 commit into
mainfrom
fix/protocol-allowlist-pr-pills

Conversation

@obviyus

@obviyus obviyus commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator

Problem

security-fast fails on every PR based on current main again:

Protocol event coverage check failed:
  - [ios] allowlist entry "controlUi.sessionPullRequests.changed" is now handled; remove it from scripts/protocol-event-coverage.allowlist.json.

#206640 (18356ea02fce, iOS PR pills) made iOS handle controlUi.sessionPullRequests.changed, but the allowlist still says iOS does not handle it. This is the same failure as #207259 with a different entry. #207258 runs this check on main pushes so that the next stale entry shows on main.

Solution

Remove the iOS controlUi.sessionPullRequests.changed allowlist entry. The Android entry stays: apps/android has no handler for the event.

Evidence

  • node scripts/check-protocol-event-coverage.mts on origin/main 2595c38a: the failure above.
  • The same check on this branch: Protocol event coverage OK: 75 gateway events; ios handles 30, allowlists 45; android handles 26, allowlists 49.

@clawsweeper

clawsweeper Bot commented Nov 28, 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.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS labels Nov 28, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 28, 2026
@clawsweeper

clawsweeper Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

Removes the iOS exception for controlUi.sessionPullRequests.changed while retaining Android’s exception.

Example: CI checks coverage for controlUi.sessionPullRequests.changed.

  • Before: The checker rejects the iOS allowlist entry because Swift already handles the event.
  • After: The checker accepts the iOS handler and retains Android’s documented omission.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A minimal, source-verified guard repair with successful execution of the affected CI step.
Proof confidence 🐚 platinum hermit (4/6) This repository guard repair has no shipped user-visible behavior; the exact-head coverage step succeeded, and the inspected linked iOS screenshots concern the earlier feature.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Maintainers encounter a failing protocol guard after iOS gained support for an event still listed as intentionally unhandled.
Reason: This maintainer-authored repair restores an established CI contract with the smallest possible change.

Merge readiness

✅ Ready for maintainer review

Keep this PR: it minimally repairs a stale protocol exception still present on main, and no introduced defect was found.

Reviewed head: 4f1e0e7126aabf5244766ee18386d575eeed29ad

Before merge

None.

Findings

None.

Agent review details

How this fits together

The repository’s protocol coverage checker compares gateway event names with mobile source handlers and explicit exceptions, producing CI errors when coverage or exceptions drift.

flowchart TD
  A[Gateway event catalog] --> D[Protocol coverage checker]
  B[Swift and Kotlin handlers] --> D
  C[Mobile exception allowlist] --> D
  D --> E[Coverage result]
  E --> F[Security fast CI]
Loading

Technical review

Best possible solution:

Remove the obsolete iOS exception through the existing allowlist owner and preserve Android’s exception.

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

The current-main handler and exception deterministically reach the checker’s stale-entry error; the body records that failure and post-fix success, but this review executed no target code.

Is this the best way to solve the issue?

The deletion restores the checker’s existing invariant without weakening coverage, adding machinery, or changing mobile runtime behavior.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • iOS PR indicator event exception changes intended behavior with a stated reason (662abec: Native apps did not render session PR chips when gateway push subscriptions were introduced.)

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 662abec adds scripts/protocol-event-coverage.allowlist.json:34 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 662abec75412; files: scripts/protocol-event-coverage.allowlist.json)
  • Vyctor H. Brzezowski: Raw commit 18356ea adds apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatGatewayPayloadCodec.swift:328 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 18356ea02fce; files: apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatGatewayPayloadCodec.swift)

PR surface

Other -1. Total -1 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 0 1 -1
Total 1 0 1 -1

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 28, 2026, 1:34 AM ET / 06:34 UTC.

@obviyus

obviyus commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator Author

Maintainer override: check-guards-architecture, check-test-types-core-2 and the openclaw/ci-gate that gates on them fail on a clean origin/main (76fadf98), and this PR changes one line in scripts/protocol-event-coverage.allowlist.json, which neither check reads.

@obviyus
obviyus merged commit ca30cf8 into main Nov 28, 2026
104 of 108 checks passed
@obviyus
obviyus deleted the fix/protocol-allowlist-pr-pills branch November 28, 2026 06:44
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 29, 2026
…he protocol event allowlist (openclaw#207288)

## Problem
`security-fast` fails on every PR based on current `main` again:
```
Protocol event coverage check failed:
  - [ios] allowlist entry "controlUi.sessionPullRequests.changed" is now handled; remove it from scripts/protocol-event-coverage.allowlist.json.
```
openclaw#206640 (`5d7cefb41ea2`, iOS PR pills) made iOS handle `controlUi.sessionPullRequests.changed`, but the allowlist still says iOS does not handle it. This is the same failure as openclaw#207259 with a different entry. openclaw#207258 runs this check on `main` pushes so that the next stale entry shows on `main`.

## Solution
Remove the iOS `controlUi.sessionPullRequests.changed` allowlist entry. The Android entry stays: `apps/android` has no handler for the event.

## Evidence
- `node scripts/check-protocol-event-coverage.mts` on `origin/main` `e6fe0a36`: the failure above.
- The same check on this branch: `Protocol event coverage OK: 75 gateway events; ios handles 30, allowlists 45; android handles 26, allowlists 49.`

Co-authored-by: Ayaan Zaidi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant