Repository navigation
refactor(reasons): declare the boot failure reasons in ReasonTable rows - #4982
Conversation
Declares the ten boot failure classifications as BOOT_FAILURE_REASONS rows in provision-kit boot-diagnostics, which every boot producer loads. BootFailureReason derives from the rows; the classifier, hints, Android emulator and iOS simulator paths read the table, and the Apple runner lease checks its literal against the derived type. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Size Report
Startup median (7 runs, lower is better):
|
This comment has been minimized.
This comment has been minimized.
|
The code at c62ccb8 looks correct, and CI is green at this head (the two superseded 'Body rules' runs were cancelled). No conflicts. No live device run is on record. The diff swaps literals for row properties on the iOS simulator boot, Android emulator boot and runner startup paths, and unit tests cover those through the real classifier, so a device run does not look required. Not verified here: the test, guard and count claims were taken from the green CI at this head, not rerun locally. Not blocking, and these can be taken or left: (1) boot-diagnostics.ts:8 declares the table in provision-kit, but contracts is the lowest package every producer depends on, and Could the table instead live in Nothing blocks merge. The maintainer decision is whether to move the table to contracts or accept provision-kit with the lease literal. |
…ures * origin/main: refactor(types): drop branches and assertions the types already exclude (#4975) refactor(reasons): declare the durable capture outcomes in ReasonTable rows (#4978) feat(harmonyos): verify foreground after open instead of trusting the launch line (#4293) fix(remote): give each session its own saved-connection file (#4925)
… to them Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Addressed in 4ab43df, which also merges main:
|
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.
|
The code looks good at 4ab43df, and the earlier evidence request is now satisfied. CI is green: 21 checks, none failing. Not verified here: the eager-closure gate refusal for a contracts-hosted table was not rerun, and tests and gates were not run locally. Nothing else needs to happen before merge. |
Summary
Third R7 PR for #4937 (after #4976 and #4978). It declares the ten boot failure classifications as
BOOT_FAILURE_REASONSrows inprovision-kit/boot-diagnostics, which every boot producer already loads.BootFailureReasonderives from the rows.classifyBootFailure,bootFailureHint, the Android emulator path and the iOS simulator retry path read the table.runner-lease'sIOS_RUNNER_OWNED_BY_OTHER_DAEMONchecks its literal against the derived type withsatisfies, and its startup paths keep their literals, which are already typed asBootFailureReason.contracts/boot-failurestays a name list: contracts sits below provision-kit and cannot read the table.Value
The R89 site count does not change, because the scan still counts
runner-lease's literal checked withsatisfies.Before / after
No observable change. Wire spellings stay byte-identical.
Validation
Head c62ccb8: typecheck, oxlint, format,
generate:reasons, the repo guards, the eager-closure gate, wire-compat andfallow audit(0 issues) pass. Tests pass for provision-kit, platform-android, platform-apple core, apple-runner and replay-port (about 4,300 tests).🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.