Skip to content

fix: catch stale mobile protocol exceptions on main pushes - #207258

Closed
roboclaw-bot wants to merge 2 commits into
mainfrom
openclaw/stale-ios-protocol-allowlist-a94a09
Closed

roboclaw-bot wants to merge 2 commits into
mainfrom
openclaw/stale-ios-protocol-allowlist-a94a09

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

Closes #207256

What Problem This Solves

The main push at b0a577e8 passed security-fast without running its mobile protocol check. Ordinary main pushes skip preflight, so the check never received the output it required. The iOS exception for session.tool had already gone stale when #206602 added a handler.

User Impact

A non-docs main push now reports a stale mobile exception even when full push CI is off. No app behavior, repository setting, or Android exception changes.

Why This Change Was Made

The existing push job already sets up Node. It can run the dependency-free check once without starting preflight or a mobile build. PRs and manual runs keep their existing selection and setup rules.

Evidence

  • On unmodified main, the checker exited 1 with [ios] allowlist entry "session.tool" is now handled. With the iOS entry removed, the workflow’s push command exited 0: 75 events, iOS 29 handled / 46 allowlisted, Android 26 / 49.
  • The regression test evaluated the workflow with preflight skipped and no coverage output. It failed on the old condition and passed on this one. An unselected PR still skips the step.
  • pnpm check:workflows passed, including actionlint and zizmor. No post-fix GitHub push to main was exercised.

Reported and reproduced with @daniel-lxs.

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

🦞 Made with OpenClaw

roboclaw-bot and others added 2 commits November 28, 2026 05:08
Worked on by:
- @daniel-lxs

Co-authored-by: daniel-lxs <[email protected]>
OpenClaw-Publication: 9966a2df-716f-4ca9-b122-26f61822a62a
@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 docs Improvements or additions to documentation scripts Repository scripts size: XS labels Nov 28, 2026
@clawsweeper clawsweeper Bot added the P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. label Nov 28, 2026
@clawsweeper clawsweeper Bot added 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
@daniel-lxs
daniel-lxs marked this pull request as ready for review November 28, 2026 05:21
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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

This PR runs mobile protocol coverage on ordinary main pushes and removes an obsolete iOS exception.

Example: A non-docs push reaches main with full push CI disabled and preflight skipped.

  • Before: The mobile coverage step skips because run_protocol_event_coverage is absent.
  • After: The existing security-fast job runs the dependency-free coverage checker after successful Node setup.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, correct CI repair with useful regression coverage and passing security-fast execution, but the changed skipped-preflight push branch has not executed in GitHub.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored change affects CI admission rather than shipped app behavior; the body reports checker success and a red-before/green-after condition test, exact-head security-fast passes, and post-fix main-push admission remains supported by source and regression coverage rather than a push execution.
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 receive a successful main-push security job even when its mobile protocol correctness check never runs.
Reason: The repair restores an existing guard with minimal complexity, and collaborator authorship supplies the recorded direction decision.

Merge readiness

✅ Ready for maintainer review

Keep this PR: it repairs a confirmed main-push CI blind spot that remains after the narrower allowlist fix merged, and review found no introduced correctness defect.

Reviewed head: 3a16c20c07763b737eec648861275ab9e497d7ef

Before merge

None.

Findings

None.

Agent review details

How this fits together

GitHub Actions supplies event and preflight context to security-fast, whose checker compares Gateway events with native client handlers and documented exceptions.

flowchart TD
  A[Main push] --> B[security-fast]
  C[Preflight selection] --> B
  B --> D[Mobile coverage checker]
  E[Gateway event catalog] --> D
  F[Native handlers and exceptions] --> D
  D --> G[Coverage result]
Loading

Technical review

Best possible solution:

Land the existing admission repair once the CI gate is resolved, retaining the shared checker and existing dispatch compatibility path.

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

Current-main conditions establish the missing-output skip, and the reported GitHub job confirms it; no target code or tests were executed during this read-only review.

Is this the best way to solve the issue?

The one-condition change is the smallest complete repair: it uses the existing job, Node setup, checker, and regression suite while preserving PR selection and manual-dispatch prerequisites.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Mobile coverage admission in security-fast keeps the original intent (a372ae2: Move mobile correctness out of preflight and finish independent checks after ordinary failures while preserving setup and cancellation prerequisites.)
  • iOS session.tool exception changes intended behavior with a stated reason (662abec: The exception documented that iOS did not render the session tool stream; the shared decoder now handles it following feat(ios): tool rows say what each call did and open a timeline sheet #206602.)
  • Push-scope documentation keeps the original intent (a3d541f: Document the lightweight push security scope and keep dependency advisory auditing from blocking ordinary CI.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit a372ae2 adds .github/workflows/ci.yml:1636 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: a372ae280d93; files: .github/workflows/ci.yml)

PR surface

Tests +7, Docs +1, Config 0, Other -1. Total +7 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 8 1 +7
Docs 1 3 2 +1
Config 1 1 1 0
Generated 0 0 0 0
Other 1 0 1 -1
Total 4 12 5 +7

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.

Root-cause cluster

Relationship: same_root_cause
Canonical: #207256
Summary: The linked issue records both the push admission defect and the stale exception; the merged narrower PR resolves only the exception.

Members:

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

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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, 12:38 AM ET / 05:38 UTC.

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

QA Smoke 3/6 is an inherited assertion failure, not a flake from this PR. The scenario passed on main before #207052 and failed on that change’s main commit.

I replayed the assertion against the pre-PR main job and this head’s job. Both recorded exactly two finalization requests. Each kept 15 tool definitions for prompt-cache reuse, sent tool_choice: "none", and made no tool call. The QA assertion requires an absent or empty tools array, so it rejects both valid requests. The scenario’s single-write check passed before that assertion.

@daniel-lxs daniel-lxs closed this Nov 28, 2026
obviyus added a commit that referenced this pull request Nov 28, 2026
…he protocol event allowlist (#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.
```
#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.`

Co-authored-by: Ayaan Zaidi <[email protected]>
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

docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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.

Main push CI skips the mobile protocol check while the iOS allowlist is stale

2 participants