Repository navigation
perf(ios): skip the readiness preflight for foreground probe reads - #5255
Conversation
Co-Authored-By: GPT-6.2 Astra <[email protected]>
Size Report
Startup median (7 runs, lower is better):
|
This comment has been minimized.
This comment has been minimized.
…nd field Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
1 issue found across 10 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="packages/apple-runner/src/runner-command-recovery.ts">
<violation number="1" location="packages/apple-runner/src/runner-command-recovery.ts:461">
P3: The new foreground-probe hint branch has no test. Add a case in `index-command-retry.test.ts` that rejects a foreground probe with `runnerReadinessPreflightSkipReason: 'foreground_probe_read'` and asserts the hint prefix. Also confirm the wording should omit the journal-confirmation clause that the hot-command hint includes.</violation>
</file>
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
… read Co-Authored-By: GPT-6.2 Astra <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on 9dc0cde. The verdict and the full list are in the summary comment.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This comment has been minimized.
This comment has been minimized.
|
At 895368c, a skipped probe read loses more than the Could this be just Not blocking: these can be taken or left: remove the deadline reason (and, if a single attempt is accepted, state both dropped retries and the earlier The connection wait thread is resolved but still applies. These threads no longer apply and can be resolved: probe exception is now named in the ADR; a pinned ID now rethrows, with a test; Not verified here: tests and device runs were not executed, and the retry comparison comes from reading the code against base 12fe72e. The frequency of such transient failures was not measured. The A/B numbers, the 60-sample median, the 27,000 reads and the 944-test run cannot be checked from the repository. The live A/B was measured at 58b647f, before the marker moved to command options. After the send path changes, please run one cloud None of the 22 checks is failing. Before merge, the skipped probe read needs its connection wait and read-only resend back, or an explicit maintainer decision that accepts a single attempt. |
Co-Authored-By: GPT-6.2 Astra <[email protected]>
|
At {"ts":"2026-11-30T15:40:34.498Z","phase":"ios_runner_readiness_preflight_skipped","data":{"command":"appState","commandId":"runner-f57dcd3f-963c-47e6-92f6-fcf1b136bc5d","reason":"foreground_probe_read","sessionReady":true}}
{"ts":"2026-11-30T15:40:34.498Z","phase":"ios_runner_readiness_preflight_skipped","data":{"command":"appState","commandId":"runner-7425f2da-a60e-46e4-b4af-863488361b3e","reason":"foreground_probe_read","sessionReady":true}} |
|
No problems that need a change were found at 90f3694, and the required evidence is in place. The earlier request is addressed: a skipped foreground probe read now differs from the base only by not sending These threads no longer apply and can be resolved: the ADR names the probe exception; a pinned ID now rethrows before status recovery, and the refused-read test keeps the session; One expected effect of the skip remains: if the transport fails for the whole deadline and the command is not proven unwritten, Not verified here: tests and device runs were not executed, and the retry and charge behavior and the regression coverage were judged from the code. The cloud trace excerpt shows only the two skip events, so the matching sends, the zero One of the 23 checks is still queued, and no check has failed. No code change is needed before merge; the queued check still has to finish. |
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
Summary
Skip the
uptimepreflight for each foreground-probeappStateread when the ready runner matches the pinned session ID. The two parallel reads keep their one-second deadlines, connection wait, read-only resend, and queued charge rules. A replacement runner receives neither read. Ordinary reads keep their preflight.Before / after
Warm Settings
snapshot -i --debugon Limrun iOS, 30 timed calls per checkout. The base and earlier skip measurements came from the original comparison. The current head used a fresh simulator lease.12fe72efec58b647f4c890f369471fappStatesendsuptimepreflightsValidation
At
90f369471ffc479035209ac8a8c8ebb50f5b561d, all 944 tests passed across the two foreground-probe test files andeager-closure-budgets.test.ts. After two warmups, the proof snapshot and all 30 timed snapshots each recorded two skipped preflights with reasonforeground_probe_readand two matching sends. The lease was released, the isolated daemon stopped, and Limrun reported zero active instances. CI checks and review pending. Debug trace