Repository navigation
refactor(reasons): declare the durable capture outcomes in ReasonTable rows - #4978
Conversation
…e rows Declares the eight durable cleanup and reattach outcomes, including owner-unavailable, as DURABLE_RESOURCE_REASONS rows in kernel errors, the one module every producer already loads. The contracts outcome unions derive from the rows, and every runtime, recovery and admission site reads the table. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Size Report
Startup median (7 runs, lower is better):
|
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 d1848c5 is ready, and no conflicts were reported. Not blocking, and fine to take or leave: the |
…version Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Applied in dc4423d. The |
…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
…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)
Summary
Second R7 PR for #4937 (the first is #4976). It declares the durable cleanup and reattach outcome family as
DURABLE_RESOURCE_REASONSrows:ownership-fence-lost,owner-unavailable,transport-failed,cleanup-unconfirmed,manual-recovery-required,descriptor-invalid,descriptor-version-unsupportedandtransport-not-reattachable.CleanupPendingReason,ResourceUnreattachableReasonand the newDescriptorDecodeFailureReasonin contracts derive from the rows.owner-unavailable. The summaries cover every producer.kernel/errors. The gateway and the capture admission ledger load no contracts module in common. Thecontracts/durable-resourceentry checks its one value site withsatisfiesagainst the row instead of loading kernel errors.This PR touches the same region of
kernel/errors.tsas #4976, so whichever lands second needs a rebase.Value
Before / after
No observable change. Wire spellings stay byte-identical.
Validation
Head d1848c5: typecheck, oxlint, format,
generate:reasons, the reason-table guard, the eager-closure gate and wire-compat pass.fallow auditreports 0 dead code and 0 complexity; its 4 warn-level clone groups already existed in the touched files. 3,305 affected tests pass.🤖 Generated with Claude Code