Repository navigation
refactor(reasons): declare the R5 provider reasons in ReasonTable rows - #4932
Conversation
Size Report
Startup median (7 runs, lower is better):
|
This comment has been minimized.
This comment has been minimized.
|
The code at f853073 looks correct, but the Body rules check has only cancelled runs, so the PR is not ready to merge yet. The three cancelled runs validate the PR description, not code, and they most likely come from superseded runs after body edits. Re-run Body rules or confirm that a later run passed before merge. Not verified here: the reason-table guard, the eager-closure guard, typecheck and unit suites were not run; the other checks passed in CI (22 of 25). Not blocking, take or leave: PROVIDER_INSTANCE_ENDED is still exported as a second spelling of Would one table per classifying module, all with the same provider owner string, be simpler? The row count stays the same, no new import edges appear in revyl-client.ts, webdriver-utils.ts or device.ts, and the generated page is unchanged because the generator groups by owner. |
…_REASONS Drops the PROVIDER_INSTANCE_ENDED alias, so the value has one spelling. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
At |
This comment has been minimized.
This comment has been minimized.
|
The earlier evidence gap is closed. One docs claim is still wrong at a0497dc, and Body rules has no passing run yet. The new row at https://github.com/callstack/agent-device/blob/a0497dc/website/docs/docs/error-reasons.md#L217 says Could No conflicts. The Body rules run is cancelled, which matches the cancel-in-progress setting on edited and synchronize events. No code in the diff is on its route, and the current body passes the check when graded locally. The other CI checks are green. Not verified here: a passing Body rules run on a0497dc, typecheck, the reason-table guard and the unit suites at that commit. A passing Body rules run on the current head is still required before merge. |
…ng module; fix the app-sync summary Each WebDriver module (app upload, transport, session, text entry) now owns the rows it raises, all under the 'webdriver provider' owner. limrun_app_sync_failed now says sync or local cache maintenance failed and to check the device for the app. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
At |
This comment has been minimized.
This comment has been minimized.
|
At 1749353, one wording problem remains in the WebDriver shutdown reason. The earlier findings from the first review (#4932 (comment)) are fixed. The Could Revyl keep the lease allocation reasons in The Body rules check was cancelled, not failed. The diff touches no PR body, so the cancellation looks unrelated. Not verified here: the cause of the cancellation, the test suites, the typecheck and the docs generator. The docs change was read in the diff only. Please re-run Body rules on 1749353 so it reports success. |
…he shutdown-during-allocation summary Rows used by one Revyl module move into that module (connection, deployment, interactor, session, runtime, allocation); the HTTP classification rows several modules share stay in revyl-client.ts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
At |
This comment has been minimized.
This comment has been minimized.
|
Most of the earlier findings (#4932 (comment)) are fixed at c84adb2, but one docs problem remains. The summary for the release-during-allocation reason says the provider ended the session. That does not hold on a reachable route. When Could the Limrun app-state and sync-cache modules own their reason rows locally? The only production references to Tests, typecheck and Fallow were not run here; this relies on CI and the author's statement. The Body rules check was cancelled, not failed. It checks the PR body, and the author said the body update re-runs it. The latest changes touch none of its inputs. There are no conflicts. After the docs fix, Body rules must re-run green before merge. |
…the released-during-allocation summary Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
At |
This comment has been minimized.
This comment has been minimized.
|
The earlier findings from c84adb2 (#4932 (comment)) are fixed at 1f28fe0. One finding remains. Shutdown can delete a WebDriver session successfully at runtime-session.ts:407 and then get a rejection from the separate prepared-session cleanup callback at lines 414-420. That warning alone sets cleanup to The smallest fix is to describe the outcome as unconfirmed cleanup, for example "Shutdown could not confirm that all WebDriver sessions and provider resources were cleaned up.", and regenerate the reasons page. The Body rules job was cancelled, not failed. It checks the PR body and the diff touches nothing it exercises, so it needs a rerun rather than a code change. Not verified here: typecheck, lint, Fallow and provider tests were not run locally, and the Body rules job log was not read. There are no conflicts. After the summary fix, the cancelled Body rules job must be rerun before merge. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
At |
This comment has been minimized.
This comment has been minimized.
|
At 32215b3, the earlier findings from 1f28fe0 (#4932 (comment)) are fixed, and one docs problem remains. CI is green: 21 checks, none failing. There are no conflicts. The new row in error-reasons.md says Revyl took the request. That is not always true. The install budget starts at deployment.ts:58, and expiry during local build preparation goes through the same provider-unconfirmed error at :63 and :74. The first provider call comes after packageBuild at :87-90. An in-memory run of deployRevylApp on this head with a slow local stat returned provider-unconfirmed with a TimeoutError and zero provider calls. A caller or agent can infer that Revyl received the install and look for an in-flight operation, when the timeout happened entirely on the local host. Please describe the common outcome in the row above Could a small shared Revyl outcome table own the three rows used by deployment and snapshot parsing, with the HTTP-only rows kept in revyl-client.ts, so the shared outcomes carry no assumption about reaching the transport? Not verified here: the docs generator was not re-run. The generated row text was compared with the source comment by reading. |
…HTTP rows; fix the unconfirmed summary REVYL_OUTCOME_REASONS holds the three outcomes deployment and snapshot code also publish; the HTTP-only rows become private to revyl-client.ts. provider-unconfirmed now says agent-device could not confirm the outcome, since a timeout can occur before any provider call. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
At |
This comment has been minimized.
This comment has been minimized.
|
The earlier findings from 32215b3 (#4932 (comment)) are fixed at 4e08567, and this PR is ready. CI is green: 21 checks, 0 not passing. Not verified here: typecheck and the docs generator were not run locally, so those rely on the author's statement and CI. Not blocking, and fine to take or leave: the old JSDoc block above |
…er-errors * origin/main: docs(commands): generate blocks for every public command and halve hand-written prose (#4919) fix(depgraph): budget the blast-radius query, not the whole-tree scan (#4920) refactor: remove dead exports and stale fallow exemptions (#4931) refactor(reasons): declare the R6a reasons in ReasonTable rows (#4938) # Conflicts: # website/docs/docs/error-reasons.md
… block Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
At |
This comment has been minimized.
This comment has been minimized.
|
The R5 provider reasons now read cleanly in the ReasonTable rows at 739bfbf, and the earlier review at 4e08567 still applies. CI is green: 21 checks, none failing. There are no conflicts, and no review threads are open. Not verified here: the reason-table generator and the wire-compat ledger were not rerun locally, so consistency was checked by diff only. Not blocking: the new JSDoc at https://github.com/callstack/agent-device/blob/739bfbf/packages/provider-revyl/src/revyl-client.ts#L50 says the two tables hold every reason this client publishes, but an aborted hierarchy read emits Could revyl-client.ts keep Evidence is the only open item: a green run of the reason-table generator and the wire-compat ledger on this head would settle it. Nothing else must happen before merge. |
…e install-stop reasons Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Evidence on this head, run locally:
Both optional notes are done at
|
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 in 90bab50 looks correct, and the earlier evidence request is now satisfied. All 21 checks pass, and the type-only change since the earlier review is covered by CI typecheck. Not verified here: the author-run local checks (generate:reasons, wire-compat, vitest) were not re-run. No conflicts. Nothing else must happen before merge. |
…n-client-reasons * origin/main: refactor(reasons): declare the R5 provider reasons in ReasonTable rows (#4932) # Conflicts: # website/docs/docs/error-reasons.md
* origin/main: refactor(reasons): declare the R5 provider reasons in ReasonTable rows (#4932) # Conflicts: # website/docs/docs/error-reasons.md
Summary
Eighteen new reason tables plus one new
LEASE_REASONSrow now own this batch's wire vocabulary: per-module Revyl tables with the shared HTTP classification rows inrevyl-client.ts(ownerrevyl provider), per-module Limrun tables (limrun provider), four module-private WebDriver tables (app upload, transport, session, text entry; ownerwebdriver provider),PROVIDER_RUNTIME_REASONSincontracts/platform-runtime.ts(provider runtime), plus aprovider-instance-endedrow in the existingLEASE_REASONStable. Every raise site in provider-revyl, provider-limrun and provider-webdriver readsTABLE.member.reason, and the helpers taking a reason (installStopped,revylFailure,unsupportedRouteRefusal) are typed to the table union. Two values are raised from two packages, so each sits with the shared owner both sites already load:provider-session-unavailablewith the runtime contract both bind through,provider-instance-endedwith the lease table its readers import. No new module, so no eager closure grows.Value
webdriver-transport.tsThe 14 left are other batches' values (
request_canceled,unsupported-provider-mode,text_entry_focus_not_observed,owner-capability-missing).Before / after
No observable change: every site publishes the same byte-for-bytedetails.reason.Validation
Head
f8530734c4onorigin/maind6767e0910: typecheck, lint, format clean; reason and eager-closure guards (934 tests) and the revyl, limrun, webdriver, contracts and daemon-client units (1,916) pass;check:layering,check:fallow,check:production-exports,check:bundle-owner-filespass; reasons page regenerated and committed. Integration, device lanes and coverage are CI's.🤖 Generated with Claude Code