Repository navigation
refactor(reasons): declare the R7 shared reasons in ReasonTable rows - #4976
Conversation
Declares remote_instance_mismatch, daemon_retirement_unconfirmed, daemon-owner-unrecognized, runtime-contract-invalid, app-device-scope, invalid_plugin, request_canceled, fill_text_stdin_in_batch, keyboard_dismiss_unavailable, alert-not-found and alert-wait-timeout as ReasonTable rows in the lowest package every producer loads, and moves sparseFindRefusal beside the selectors interaction reasons. 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 runner refusal docs guard reads a RUNNER_ERROR_CODES row's reason only as a literal or a same-file table row; native runner mappings are R8 scope. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This comment has been minimized.
This comment has been minimized.
|
At 3eb1b26 the new recovery text for a live macOS app session sends the caller to a step that fails again. Not blocking, and fine to take or leave: three rows say more than the code does. The Apple keyboard row (errors.ts:457) says no dismiss key was found, but the runner returns the refusal whenever the keyboard is visible and leaves it alone. The remote instance row (daemon-http.ts:145) promises one retry, but the client skips the resend if the health refresh fails, the request is canceled or the time budget ends (daemon-client-transport.ts:497-509). The canceled Revyl row (errors.ts:411) says the device start stopped, but only the caller's wait stops and the submitted start continues (revyl-session.ts:223-245). The only check not passing is Body rules, which was canceled rather than failed. It validates the PR body and the diff touches no PR-body tooling, so it looks unrelated to the code. The other 21 checks passed at 3eb1b26, including wire-compat and the guards. There are no conflicts. Not verified here: the R89 untyped-site counts (58 to 28, 21 to 13) and the eager-closure gate, which was read from green CI and not re-run. After the docs fix, rerun the canceled Body rules check so CI reports a pass. |
app-device-scope separates opening another app from a whole-Mac surface; request_canceled, keyboard_dismiss_unavailable and remote_instance_mismatch state only what their producers guarantee. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Addressed in 0d74461 and regenerated
Wire-compat and the reason-table guard pass. The push re-runs Body rules. |
This comment has been minimized.
This comment has been minimized.
…asons * 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) # Conflicts: # packages/kernel/src/errors.ts # src/platform-runtime-gateway.ts
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 findings from the earlier review at 3eb1b26 are fixed at 7abe6db, and no new problems turned up. The change is reason-row comments plus generated docs, and it does not overlap any test route. One check is still in progress. Wait for it to finish at 7abe6db before merge. No conflicts were reported. Not verified here: the wire-compat, reason-table guard and docs-generation checks were not re-run locally, so those results come from CI and the author's report. Not verified here: the upstream files brought in by the merge (harmonyos, remote, durable capture), which belong to main and not to this PR's patch. |
* refactor/r7-runtime-facts: refactor(reasons): declare the R7 shared reasons in ReasonTable rows (#4976)
* refactor/r7-runtime-facts: refactor(reasons): declare the R7 shared reasons in ReasonTable rows (#4976)
Summary
First R7 PR for #4937. It declares reasons that several packages raise as
ReasonTablerows, each in the lowest package every producer already loads:remote_instance_mismatch,app-device-scope,alert-not-found,alert-wait-timeoutdaemon-owner-unrecognized,daemon_retirement_unconfirmedruntime-contract-invalid,request_canceled(replacesREQUEST_CANCELED_REASON) andkeyboard_dismiss_unavailable. Kernel is the only home that grows no eager closure.invalid_plugin. command-registry:fill_text_stdin_in_batch.sparseFindRefusalmoves intoselectors/interaction-error. The eager-closure gate passes.The Apple runner's
RUNNER_ERROR_CODESrow keeps itskeyboard_dismiss_unavailableliteral, because the runner refusal docs guard reads only same-file tables there (native mappings belong to R8). The durable outcomes are in #4978; the runtime facts and boot failures follow.Value
Before / after
No observable change; spellings stay byte-identical. The three
remote_instance_mismatchwire declarations now read the table, so their ledger digests and acks are re-pinned with a note.Validation
Head 3eb1b26: typecheck, oxlint, format,
generate:reasons, the repo guards, the eager-closure gate, wire-compat, andfallow audit(0 issues) pass. About 4,000 affected tests pass.🤖 Generated with Claude Code