Commit 8a21532
* docs(specs): #418 command-surface gate design — typed UNSUPPORTED_COMMAND + /health.commands enumeration (B235)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* docs(plans): #418 command-surface gate implementation plan + spec addendum (B235 true root cause)
Amendments applied from the multi-LLM plan review (Codex + Claude Opus
coordinator; Gemini CLI unavailable — IneligibleTierError):
- BLOCKER: Android remediation rewritten — resolveAndroidInstallAction never
Gradle-builds while APKs exist, so Task 8 now deletes the APKs (open-only
allowArtifactRebuild flag, retry-once wrapper) and surfaces
RUNNER_COMMANDS_STALE instead of RUNNER_PROTOCOL_MISMATCH.
- BLOCKER: iOS DerivedData invalidation now reaps first and runs behind a
checkout-scoped mkdir build lock; per-plugin-version rebuild budget stops
cold-build loops on a broken checkout.
- SHOULD-FIX: invalidate-before-first-spawn at open; raw-value-aware Swift
sync regex; two extra Android fixture migrations; stale dismissKeyboard
reference scrub.
- Rejected on cross-check: exhaustive satisfies completeness (REQUIRED is a
curated subset by design).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix(device): iOS keyboard-dismiss wire verb is keyboardDismiss, not dismissKeyboard (B235 root cause, #418)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* feat(protocol): REQUIRED command lists + missing-commands classification + typed codes (#418)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* feat(rn-fast-runner): enumerate commands in /health + typed UNSUPPORTED_COMMAND (#418)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* feat(rn-android-runner): enumerate supported commands in /health + foreground alias verbs (#418)
The foreground pre-flight now covers press/fill/scroll — the aliases reach
the same handlers as tap/type/drag but skipped app activation (codex-pair).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix(rn-fast-runner): validate client-supplied Content-Length — 400 on invalid, no unchecked range arithmetic (#418)
Negative values made an invalid subdata range; huge values trapped on
integer overflow — both crashed the XCTest runner (codex-pair HIGH). A
complete header section with a missing/negative/oversized Content-Length
can never become valid, so it now answers 400 immediately instead of
buffering until the client times out (codex-pair MED follow-up).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* test(sync): tri-file command-surface drift guard (#418)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* feat(ios-gate): classify runners missing required commands as stale (#418)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* feat(ios-gate): tiered missing-commands remediation — rebuild at open, refuse mid-flow (#418)
Open-path artifact invalidation is reap-first, serialized behind a
checkout-scoped mkdir build lock (DerivedData is plugin-scoped while the
device lock is UDID-scoped), and budgeted to one cold rebuild per plugin
version. Mid-flow device tools refuse fast with RUNNER_COMMANDS_STALE.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* feat(android-gate): command-surface gate + real APK-invalidation rebuild tier (#418)
resolveAndroidInstallAction only Gradle-builds when the APKs are ABSENT
(review BLOCKER — forceReinstall alone re-installs the same stale APK), so
missing-commands remediation deletes the APKs behind an open-only
allowArtifactRebuild flag with a retry-once wrapper that reaps the
device-side UiAutomation slot first (#237). Mid-flow surfaces
RUNNER_COMMANDS_STALE, mirroring the iOS contract.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* feat(status): surface missing runner commands in deviceSession.runnerProtocol (#418)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* chore: #418 changeset + rebuilt dist (troubleshooting entry lives in local CLAUDE.md, per repo convention)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix(ios-gate): rebuild tier fires on first open when a dead runner spawns from a stale prebuilt (#418)
First probe 'dead' meant the up-front short-circuit never ran and the
after-probe missing-commands fell into the mid-flow refusal even at open —
the first open after an upgrade errored and only the second healed
(pre-device-verify trace). The after-probe branch now enters the same
rebuild tier when allowArtifactRebuild is set.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix(ios-gate): open cold-builds when nothing is prebuilt — the #210 refusal is mid-flow-only (#418)
decideRunnerSpawn's not-prebuilt error text directs users to open, but open
itself hit the same refusal (pre-existing since #383 routed open through
ensureRunnerForCommand; device-verify finding). #418 makes it bite harder:
the invalidation deletes DerivedData and a cold xcodebuild test leaves no
.xctestrun, so a later runner death bricked every open until a manual
build-for-testing.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix(ios-gate): typed RUNNER_COMMANDS_STALE for stale+not-prebuilt mid-flow; budget message names the reset path (#418)
Multi-review advisories: the not-prebuilt decision shadowed the typed
refusal (callers surfaced RN_FAST_RUNNER_DOWN), and a transiently-failed
cold rebuild spent the once-per-version budget with a misleading
'checkout may be broken' message — it now names the
commands-rebuild.json reset.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* refactor(android-gate): retry-once wrapper is the single rebuild owner (#418)
Multi-review advisory: the reuse-gate's inline invalidate+rebuild plus the
wrapper retry meant a broken checkout paid Gradle twice on the error path.
The reuse gate now always throws the typed error; the wrapper owns all
rebuilds — one build on every path.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* style: oxfmt gh-418 classify test
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 3fdc856 commit 8a21532
35 files changed
Lines changed: 3365 additions & 59 deletions
File tree
- .changeset
- docs/superpowers
- plans
- specs
- scripts
- cdp-bridge
- dist
- runners
- tools
- src
- runners
- tools
- test/unit
- runners
- rn-android-runner/app/src/androidTest/java/dev/lykhoyda/rndevagent/androidrunner
- rn-fast-runner
- RnFastRunner/RnFastRunnerUITests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
Lines changed: 1655 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 201 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
0 commit comments