npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@fabricorg/platform-host

v8.27.0

Published

Canonical governed mutation host for @fabricorg/platform: durable invocation, policy, state-machine, handler, event, and adapter orchestration behind persistence ports.

Readme

@fabricorg/platform-host

The canonical host for the @fabricorg/platform mutation pipeline.

pnpm add @fabricorg/platform@^1.2.0 @fabricorg/platform-host@^6.0.0 @fabricorg/assembly@^0.3.0

AI agent integration boundary

Application and vertical owners install this package. Hermes, TechFabric Harness, and other external agent runtimes do not import Platform Host merely to call a deployed application. They connect to the application's authenticated REST or MCP gateway, discover only the actions allowed by their registration, and submit stable idempotent commands. The gateway derives tenant and actor identity and calls submitAction(); an agent must never call handlers, adapters, workflow internals, or database writes directly.

See the Platform Host 6.x agent integration guide for application wiring, execution-time authorization, the PostgreSQL transaction binder, recovery semantics, and the external gateway contract.

Vertical packages register FabricModule definitions. Host applications provide tenant authorization, module entitlements, persistence, projections, and an optional durable dispatcher. The package owns the ordering and lifecycle invariant:

Actor → ActionInvocation → Schema → Agent HITL → PolicyEvaluation → StateMachine → Handler → AssetEvent → AdapterInvocation → Projection

submitAction() creates the durable ActionInvocation before dispatch. executeInvocation() is the worker entry point; a worker passes the leaseOwner and leaseToken of its claim. With no dispatcher the host executes inline, which is intended for tests and local development only. See Invocation ownership for what an execution without a lease can and cannot do when another execution is running.

Applications construct a createModuleRegistry() per runtime and pass it as registry; a narrow resolveAction function remains available for adapters. No process-wide platform registry exists. A custom extractEvents implementation can pair with eventResultFields so its event carrier is removed from the durable invocation result. Domain events without an explicit eventSchemaVersion inherit the action version, while host lifecycle events stay at version 1. Emitted domain events must appear in the action's emitsEvents declaration. The injected now clock is also passed to ordinary policy evaluation.

Production polling workers can use createStoreBackedActionDispatcher() plus runPlatformActionWorker(). The pending invocation row is the durable queue item; workers claim invocations one at a time with an atomic, renewable lease and FOR NO KEY UPDATE SKIP LOCKED (see Worker leases and clocks). Every claim advances a fencing token. A heartbeat may renew only a lease that has not expired. An expired lease is taken over by a reclaim, which advances its token; until a reclaim happens, the holder's start re-arm can revive it. An expired worker cannot finalize after another worker takes ownership. Pass a stable idempotencyKey to submitAction() so a retry that resolves returns the original invocation for that tenant, space and action instead of creating another mutation (see Idempotent submission).

Worker leases and clocks

The built-in worker claims one invocation at a time, each immediately before it executes it, up to batchSize per cycle. batchSize defaults to 10. It is truncated toward zero and capped at 100, and zero, a negative value or NaN claims nothing. When the cycle has a signal, the worker checks it before every claim, the first included. A queued invocation therefore holds no lease while it waits. Earlier releases claimed a cycle's whole batch under one lease and renewed only the row being executed. The queued rows' leases lapsed, another worker reclaimed them, and a reclaimed row of an action not declared idempotent was settled failed without its handler ever running.

Start re-arm. The worker passes its leaseDurationMs to executeInvocation() through the new ExecuteInvocationOptions.leaseDurationMs. Host then re-arms the lease once, after the leased start checks and before the execution's first write and its first authorization, policy, handler or adapter work, through the store's new optional rearmActionInvocationLease. The store extends the lease when the row is still running in its tenant and space, is not erased, and is held by exactly this owner and token. It does not look at the stored expiry: a lease that expired while no other claim took the row is revived, and the execution proceeds. Reviving it is safe because both built-in writes that give a row a new lease owner, claimActionInvocations() and an approved approval decision, advance the lease token in the same statement, so an unchanged token means no claim has taken the row since. The stores do not enforce that rule on generic patches: updateActionInvocation() and updateLeasedActionInvocation() write leaseOwner and leaseToken as given. A custom store or caller that sets a lease owner without advancing the token in the same write, or moves the token back, voids this fence and the leased-write fences that already rely on the same rule. The re-arm checks ownership once, at its own write: it does not notice a lease that expires or is reclaimed after it.

When the start checks or the store refuse, the call resolves with notStarted: "lease_expired_or_lost" and the error Invocation lease is not owned by the supplied worker generation (start checks) or Invocation lease expired or lost before execution started (store). Host has then made no write and run no authorization, policy, handler or adapter work for the call. A refused re-arm leaves every column of the row unchanged in both built-in stores, and Host reports the row as it reads it after the refusal. The worker counts these results in the cycle result's new leaseLost count, present only when positive, and not in failed.

A row that is already terminal or waiting for approval when Host first reads it is returned as stored, before any credential check and without notStarted, as before. That includes a row a replacement execution completed, failed or parked for approval after this claim's lease lapsed. The worker counts such a result by its status, so another execution's completion counts in this cycle's completed, and a parked row in waitingForApproval.

On PostgreSQL without now, the re-arm takes the row lock first and reads clock_timestamp() only once it holds the lock, so a re-arm that waited on a lock measures the new expiry from the end of the wait. In a single UPDATE, PostgreSQL computes the new values before such a wait when the lock holder only locked the row, and after it only when the holder changed the row; the live PostgreSQL suite holds the lock both ways and checks both the plain statement and the store's. With Host's injected now clock, Host passes that clock and the store measures from it; Host makes no judgment of its own after the store answers. A custom store without rearmActionInvocationLease gets renewActionInvocationLease instead, which also refuses an expired lease. An application-owned worker can pass leaseDurationMs too. It must be a number of at least 1 millisecond whose expiry is a valid Date (the worker's cycle rejects any other value before it claims), and the store must implement one of the two methods; otherwise the call rejects with a HostError before it reads the invocation. Without leaseOwner the option is ignored.

No second check before the handler. The start re-arm is Host's last lease check before the handler transaction. A lease can still be lost after it: for example, execution authorization or policy work waits, the heartbeat cannot renew for longer than the lease, and another worker reclaims the row. The superseded execution may then still run its authorization, its policy evaluation and its handler callback; a refusal along the way, such as an authorization or policy denial, can stop it first. Its policy evaluation records, and its policy obligations when the invocation has none yet, are written outside the handler transaction and stay. Its handler transaction's write is fenced on owner and token, so it fails, the transaction rolls back, and the call rejects with Invocation lease lost: <id>; the current holder runs the action. Host does not check again just before the handler, because that check would go through the store while the handler transaction is open and could wait on the connection or the row lock that transaction holds.

Heartbeat. The worker starts the heartbeat before it calls Host, as before, and restarts it through the new optional ExecuteInvocationOptions.onLeaseArmed callback, which Host calls synchronously right after a successful start re-arm and before any other work of the execution. A renewal can be refused before the re-arm, when a slow read or re-arm outlives the claim's lease; the heartbeat then stops and reports the loss, and the re-arm can still revive the lease. The restart runs a stopped heartbeat again and leaves a running one on its single timer, so the execution the re-arm started keeps a heartbeat. A lease_lost report made before the start re-arm can therefore be followed by a successful re-arm and execution. A refused renewal sent before the restart is reported even when its refusal arrives after it, and a refused renewal sent after the restart is reported too: at most two reports per execution. A GovernedActionHost that does not call onLeaseArmed keeps the heartbeat it had before this change. While an invocation executes, the worker renews its lease every leaseRenewalIntervalMs (default a third of leaseDurationMs) through renewActionInvocationLease, which renews only a lease that has not expired. On PostgreSQL without now, expiry is judged on clock_timestamp() read after the row lock is held, and a refused renewal leaves every column unchanged. The heartbeat stops after the first renewal the store refuses and reports it once: through onError as Invocation lease lost: <id>, and as invocation.lease_lost (fabric.platform.invocation.lease_lost) telemetry with source: "worker" and workerId. A renewal that throws is reported to onError and retried at the next interval. Reports are not awaited, and their throws and rejections are contained, so a promise onError returns delays neither the next renewal nor the end of the execution. Reports still run inline, so slow synchronous work in onError or a telemetry sink delays both. Nothing is reported for a renewal that settles after the execution has returned. A claim that fails after the cycle has claimed an invocation goes to onError, again without being awaited, and ends the cycle with its counts so far; the cycle's worker.cycle.completed telemetry then carries claimFailed: true. A failure of the cycle's first claim still rejects the cycle. An execution that rejects is reported to onError the same way, without being awaited and with its throws and rejections contained, and the cycle goes on to its next claim.

Repeated claims in one cycle. Each claim takes the oldest claimable row, so one cycle can claim the same invocation again whenever that row becomes claimable before the next claim. Its lease may already have expired when the execution returned, for example after a retryable failure once the heartbeat could not renew in time. Its lease may expire between the return and the next claim. Or the execution parked it for approval and a concurrent decision made it claimable again. The next claim then takes that row again, consuming another attempt, before newer pending rows, until its recovery attempts are exhausted or batchSize is reached. Earlier releases claimed each row at most once per cycle.

invocation.lease_lost is emitted only for a refused heartbeat renewal, the worker's (source: "worker") or approval resume's (source: "approval_resume"). A refused start re-arm or start check does not emit it: it shows as notStarted and, in the worker, in leaseLost. The event carries no executionReason, which keeps its meaning elsewhere: why an execution ran.

Approval resume passes approvalResumeLeaseDurationMs to the execution's start re-arm and, once the re-arm has succeeded, renews the temporary lease every third of that duration while the execution runs. The store measures the temporary lease from the decision write, through the new optional BeginApprovalDecisionInput.leaseClock: on Host's injected clock when one is configured, otherwise on the store's own clock (on PostgreSQL the decision statement's statement_timestamp(), taken before any row-lock wait). On a store with rearmActionInvocationLease, as both built-in stores have, the re-arm revives the temporary lease even when it had already expired by the time the decision committed, as long as no worker claimed the row in between. A custom store with only the strict renewActionInvocationLease refuses such a lease: the resume then resolves with notStarted although no worker claimed the row, the row stays running until a worker claims it under the recovery rules, and resuming again does not execute it, because the row no longer waits for approval. A custom store that ignores leaseClock measures from now as before. On PostgreSQL without a transaction provider, the store decides whether to call a leaseClock function from a read made before its decision statement, so a concurrent write can make it wrong either way: the clock can be called for a decision that then writes no lease, and a decision whose read saw an expired approval that a concurrent write then extended writes a lease measured from now without calling the clock.

What remains: once the temporary lease has expired, a worker can claim the row between the decision commit and the re-arm. The resume then resolves with notStarted, and calling the resume again does not execute it. The worker's claim follows the existing recovery rules, recovery budget and governance checks included. An action not declared idempotent is settled failed as interrupted without running its handler, unless its finalization checkpoint allows replay or its recovery attempts are exhausted (reconciliation_required).

On a store with renewActionInvocationLease, an approving resume rejects with a HostError before it writes the decision when approvalResumeLeaseDurationMs is not a number of at least 1 millisecond whose expiry is a valid Date. A denial, or an approval of a wait that has already expired, does not use the value and is not rejected for it. Construction does not check it, and a store without renewal resumes as before, without a re-arm or renewal.

Clock. Lease expiry is judged on the clock the store call is given:

  • An explicit now on claimActionInvocations() or renewActionInvocationLease() behaves as before on both stores; rearmActionInvocationLease() measures its new expiry from it.
  • Without now, PostgresPlatformHostStore uses the database clock. A claim writes expiry as statement_timestamp() plus the duration, and takes a running row only once its lease has expired by both the database clock and the claiming process's clock (the earlier of the two). A process whose clock runs fast cannot take a live lease. For the same stored expiry, such a claim does not take the row earlier than a claim judged on that process's clock alone would. This says nothing about older workers, which judge on their own clocks, or about expiries written by different writers on different clocks. A renewal and a re-arm take the row lock, then read clock_timestamp() and measure the new expiry from it; a renewal also requires the stored expiry to be later than that reading.
  • MemoryPlatformHostStore uses the process clock either way.

The worker passes no now to its claims and heartbeats. Host passes its injected now clock to the start re-arm and the approval-resume heartbeat when one is configured, and no now otherwise. A host clock in tests should therefore match the clock its store's claims use.

Mixed versions. Older workers keep claiming batches and judging expiry on their own clocks until they are upgraded. Their batch-claimed queued rows can still lapse and be reclaimed by any worker, and a fast-clocked older worker can still take a lease early.

Limits.

  • A claim consumes an attempt even when the execution never starts: a crash between the claim and the start, or a reclaim there. The next execution counts it. For an action not declared idempotent it treats the row as interrupted and settles it failed without running the handler, unless a finalization checkpoint allows replay or the recovery attempts are exhausted (reconciliation_required).
  • A heartbeat outage longer than the lease lets another worker reclaim an invocation that is still executing (see the check before the handler above). Its handler transaction rolls back and its later invocation writes are fenced, but its policy evidence stays and an adapter call already in flight is not cancelled.
  • While the heartbeat's renewals succeed, a hung adapter call holds its invocation for as long as the worker process lives. Bound it with adapterDeadlineMs or AdapterStep.deadlineMs and an adapter that observes the abort signal.
  • Lease credentials identify a claim, not a call. Two concurrent executeInvocation() calls given the same leaseOwner and leaseToken both pass the start re-arm and count as one owner, and a caller that still holds an expired lease's credentials, with no claim since, can start an execution by re-arming it (a call without leaseDurationMs could already start on such a lease).

Invocation ownership

A store that implements the optional updateUnleasedActionInvocation switches on ownership checks for every execution of an invocation; the memory and PostgreSQL stores implement it. The row's leaseToken doubles as the ownership generation. Claims and approval resume advance it as before, and an execution without a lease now advances it when it takes ownership, so leaseToken on an invocation run inline or by a direct call is no longer 0 after it starts.

  • Terminal and waiting rows (completed, failed and other terminal statuses, and waiting_for_approval) are returned as stored before any credential check, as before.
  • Leased execution (executeInvocation() with the leaseOwner and leaseToken of a claim, as the worker calls it) starts only on a running row held by that owner and token. Otherwise it runs nothing, writes nothing, and returns the stored result with the error Invocation lease is not owned by the supplied worker generation.
  • Unleased execution (inline submitAction() without a dispatcher, and executeInvocation() without lease credentials) first takes ownership: an empty write conditional on the status and token it loaded, which advances the token. Every recovery, resume and interruption decision is then made from the row that write returned, not from the earlier read, so a handoff or checkpoint recorded in between is seen. A pending row is then started with a second conditional write. If any write misses before policy, handler or adapter work begins, the call has run nothing and resolves with the stored result instead of throwing: a terminal or waiting_for_approval row as stored, any other row with the error Invocation is owned by another execution; this call did not run it. A call on a running row that only waits for an external completion, with no recorded ambiguity to settle, returns it without taking ownership.
  • Later writes are conditional on the status and token the execution last wrote. An unleased miss rejects with a RecoverableFinalizationError (by name; the class is not exported) whose message is Invocation ownership lost: <id> and whose reason is "ownership_lost"; a leased miss keeps Invocation lease lost: <id>. The governance footprint and the HITL route are written under the same condition, through the optional fifth ownership argument of recordMutationGovernance() and recordHitlDecision(), for leased and unleased executions. A miss there rejects with the ownership error and writes nothing, and Host does not adopt a route that another execution recorded. Before a handler retry or a finalizer runs, Host checks that the token is still the execution's own. When a store-level write fails after the store may have applied it (an acknowledgement lost after commit), the next write that misses reads the row: if it shows that write at the execution's own token, without a lease owner, with its status and fields, Host treats it as written. A retry of the same write then succeeds; a different write never replaces a terminal verdict this way, and rejects with a RecoverableFinalizationError saying the invocation was already settled by this execution. Any other row is an ownership loss.
  • A takeover found at commit is reported the same way on both shipped stores. PostgreSQL holds the row, so a superseded execution's write misses; the memory store rechecks at commit. Before policy, handler or adapter work begins, either one resolves with the stored row and the "did not run it" error rather than rejecting.
  • Parking for approval matches the supplied owner exactly at the write that parks the row: a leased caller parks only its own leased row, and an unleased execution only a row without a lease owner and with its token. A park that misses writes nothing and returns the stored row, without an ownership error; in the memory store, a takeover that lands before the park commits makes the park reject with the ownership error instead.
  • The handler transaction makes an empty conditional write after the handler returns and before its first event append: the transaction's updateUnleasedActionInvocation, or updateLeasedActionInvocation for a leased execution. PostgreSQL holds that row lock until commit; the memory store rechecks the condition at commit. A superseded execution's handler may still run, but its transaction rolls back: at most one execution commits a handler transaction for the current generation.

Ownership checks are all or nothing. A store that implements the method must also expose it, and updateLeasedActionInvocation for leased executions, on the transactions of transactionWithEvents. Host checks this at the start of each transaction in which it runs a handler or finalizer, and fails the execution with a HostError naming the missing member before the callback runs; it never falls back to an unconditioned write. A store that records mutation governance or HITL decisions must also set ownershipConditionedEvidence: true to declare that it honors the ownership argument; otherwise Host fails the execution before calling the resolver or evaluator. Both shipped stores meet these requirements.

Policy evaluation ids keep their shapes: an unleased execution keeps the unleased ids although its stored token is now positive (see Execution authorization).

What this does not do:

  • A later unleased call supersedes an earlier one that is still running, because Host cannot tell a crashed caller from a live one. The earlier call's remaining writes are refused, but provider calls it already made are not undone. For an action not declared idempotent, the later call treats the row as an interrupted inline execution and can end the invocation failed (... is not declared idempotent; manual reconciliation is required.) while the earlier one is still working. Do not call executeInvocation() without a lease for an invocation that another caller may be running; use the worker claim instead.
  • Lease credentials identify a claim, not a call. Two concurrent executeInvocation() calls given the same leaseOwner and leaseToken both pass every check and can both commit their handler. Do not issue them. The built-in worker executes each claimed row once, one row at a time, with the token of that claim, and approval resume executes once per applied decision.
  • An unleased execution's provider calls are fenced on its ownership only while it holds an entity transition hold, by the proof Host makes before each adapter step and provider call (see the forced settlement under Entity transition holds). Without a hold, a superseded execution can still start a provider call before its next invocation write is refused. In both cases the writes that record a provider reply (the adapter row and its AdapterInvocationSucceeded or AdapterInvocationFailed event) keep their existing, unconditional path: a superseded execution whose call was in flight records the reply, and can replace what a later execution recorded on the same adapter row, before its next invocation write is refused. Leased executions condition their adapter-row writes on the lease through writeAdapterInvocation, as before.
  • A store without transactionWithEvents has no handler transaction to fence: its handler writes are not covered, although every invocation write is.
  • Older Host versions write the same rows without conditions. The guarantees above hold only once every Host instance and worker that writes those rows has been upgraded; drain or upgrade older writers before relying on them.
  • Stores without the method keep the previous unconditional writes.
  • Run the handler transaction at READ COMMITTED. At REPEATABLE READ or SERIALIZABLE, PostgreSQL fails the ownership write with a serialization error whenever the row changed after the transaction's snapshot.
  • Some degraded adapter-finalization paths rewrap the ownership error, so it can surface as a RecoverableFinalizationError without reason.

Custom stores implementing the method follow its JSDoc on PlatformHostStore and UpdateUnleasedActionInvocationInput: one atomic conditional write, undefined on a miss, and a transaction member whose condition still holds at commit and that returns the fully patched row. No exported conformance check covers it yet; the repository's packages/platform-host/tests/invocation-ownership-cases.ts holds the cases the shipped stores pass.

For transient governance dependency failures, throw RetryableExecutionError from @fabricorg/platform (also exported from @fabricorg/platform/policies). The retry region covers parameter validation, mutation-governance resolution, HITL evaluation, entitlement and execution authorization (including the authorize fallback), policy resolution, and policy evaluation. It ends immediately before the first policy-evaluation record is written. Host rethrows the original error without a failure/status write when:

  • the invocation has a lease owner and a defined lease token;
  • the action declares idempotent: true, or Host successfully records the current claim in deferredBeforeEffectAttempt through a lease-fenced write;
  • attemptCount is below retryableExecutionMaxAttempts, a positive integer option defaulting to 5; and
  • execution is not a resumeApprovedInvocation() call.

The worker reports the original error through onError and stops its heartbeat. Its cycle result and worker.cycle.completed telemetry include deferred only when the count is greater than zero; deferrals do not increment failed. The worker counts by error type: a RetryableExecutionError that a store wrapper throws from Host's own reads or status writes also lands in deferred. In that case the row likewise stays leased for a later claim, but outside this cap. Retry becomes eligible when the current lease expires, so the delay is the remaining lease duration, followed by the worker's next claim; there is no immediate retry or separate backoff. The next claim increments attemptCount. At the cap, or for an unleased or approval-resume invocation, Host records failed with the reason retry was refused, through the error-text redactor. Approval resume is excluded because its temporary lease does not establish that a recovery worker is configured. Ordinary application governance errors retain terminal failure behavior. Host store errors after a recorded provider effect follow the recovery rules below.

Non-idempotent governance retry requires a durable deferredBeforeEffectAttempt equal to the preceding claim count. Each retry must record its own pre-effect deferral to permit another claim. A missing or stale marker retains interruption failure and manual reconciliation. Marker-write failure ends terminally when the verdict can be persisted; lease loss retains the recoverable fencing error. Handler and adapter errors are outside this governance deferral window; handler rollback retry is described below.

PostgreSQL migration 9 (pre_effect_governance_deferral) adds the nullable marker column. Run ensureSchema() before deploying Hosts that may defer non-idempotent actions. Invocation updates without the marker omit the column and continue to work on schemas without migration 9. If a marker write fails, Host refuses retry with pre-effect marker could not be recorded when it can persist the terminal verdict; lease loss preserves its fencing error.

The retry region includes Host's single-record store writes for mutation-governance and HITL checkpoints. Later attempts reuse these persisted decisions through the mutationFootprint and hitlRoute guards. Callbacks should be safe to repeat and return stable invocation-scoped evidence. A deferral happens before the attempt writes any policy evidence: the complete definition batch must evaluate before Host starts appending policy records. Policy persistence, the ComplianceBlocked event, obligation listing/resolution/persistence, state-machine checks, the handler transaction, handlers and adapters retain their separate failure semantics. Finalization recovery is bounded by recoveryMaxAttempts. Its effective default is at least retryableExecutionMaxAttempts because both count worker claims. A retryable obligation-resolver error fails terminally with the policy evidence from that attempt. Preview evaluation does not enter this execution catch.

Retry a rolled-back handler transaction

Throw RetryableHandlerError from @fabricorg/platform (or its /policies export) to assert that the handler's effects stayed inside the supplied Host transaction and it can run again. Host can retry that transaction within the same execution attempt. The default budget is three total tries; handlerRetry.maxAttempts accepts integers from 1 to 10, with 1 disabling retry. The worker claim, attemptCount, policy evaluations, obligations and approval decision are retained. This is separate from RetryableExecutionError, whose handler throws retain terminal failure behavior.

Retry requires the atomic transactionWithEvents path, a throw from the handler call, and ConfirmedTransactionRollback from that transaction call with the identical thrown error as cause. Bare errors, other wrappers, failed rollback and errors at commit do not qualify. Errors from transactional authorization, state validation, result/child validation, event extraction/persistence, staging or finalization preparation do not qualify; neither does a returned { success: false }. ReconciliationRequiredError, RetryableExecutionError and Host's recoverable fencing errors retain their existing outcomes and bypass the classifier.

There must be no adapter row from the resume scan (including failed/running rows), durable provider effect, or pending completion/handoff. Before a retried try runs application code, its transaction locks and checks invocation ownership. Leased execution checks the captured owner and token and uses a transaction-scoped lease fence. Inline execution requires an unleased running row without lease expiry, carrying the token this execution wrote when the store has ownership checks; built-in workers do not claim such rows. Missing locking/fencing support prevents retry. Lease loss raises the existing recoverable fencing error rather than a stale owner's failed verdict.

Host reparses copied durable parameters and restores copied provenance, admission time and transactional authorization input. Uncopyable inputs, failed reparse or a changed parsed value stop retrying. Preparation, adapter inputs and staged requests are published from the committed try. A compatible replay checkpoint continues to bypass the handler. Exhaustion settles the last handler error through redactErrorText with source: "handler" and the existing status handling.

import { isTransientPostgresTransactionError } from "@fabricorg/platform-host";

const host = createGovernedActionHost({
  store,
  registry,
  authorization,
  handlerRetry: {
    maxAttempts: 3,
    classify: (error, { actionId }) =>
      actionId === "records.update" && isTransientPostgresTransactionError(error),
    delayMs: (retry) => Math.random() * Math.min(1000, 25 * 2 ** (retry - 1)),
    onRetry: ({ actionInvocationId, attempt, maxAttempts }) =>
      metrics.recordHandlerRetry(actionInvocationId, attempt, maxAttempts),
  },
});

classify must return literal true to opt a raw error in; a thrown classifier refuses retry. It asserts safety for the whole retried unit, not just the SQL statement that failed. isTransientPostgresTransactionError recognizes candidate SQLSTATEs 40001 (serialization), 40P01 (deadlock victim) and 55P03 (lock unavailable), following up to 16 errors through cause with cycle and throwing-getter protection. It is not proof of rollback or absence of effects.

Without delayMs, Host uses full jitter on a 25 ms exponential backoff capped at 1000 ms. A configured number or callback result is clamped to 0–1000 ms; callback retry numbers start at 1. A throwing or non-finite delay stops retries with the original handler error. onRetry runs before the delay; attempt identifies the upcoming try (2 through maxAttempts). Synchronous throws and asynchronous rejections are ignored without awaiting the observer. Delay happens between finished transactions; Host does not race a transaction against a timer. Retrying delays the worker's next claim. A crash mid-retry uses existing recovery.

With retry enabled, in-transaction authorization, state guards and the other transaction callbacks run again per try. They and the handler must keep effects inside the supplied transaction. Avoid independent commits, HTTP calls, signals, nontransactional service writes and unawaited work.

Provider rollback evidence

Rollback evidence is optional. A provider that propagates bare errors gets no handler retry. PostgresPlatformHostStore does not infer rollback. Built-in stores expose provider rollback confirmation to Host's handler transaction through an internal callback request. Ordinary application transactions, store-internal approval/erasure transactions and other Host APIs retain their prior error contracts, including callback-error identity and erasure's SQLSTATE mappings, when the provider below wraps callback failures. The request travels on the callback Host passes to transactionWithEvents. Code that decorates a built-in store's transactionWithEvents and substitutes its own callback drops the request, so handler retry stays off for that store; a decorator that passes Host's callback through unchanged keeps it. An application-owned provider can use this pattern with its transaction-bound domain store:

import { ConfirmedTransactionRollback, type PostgresPlatformHostTransactionProvider } from "@fabricorg/platform-host";

type ApplicationDb = ReturnType<typeof domainStore.withClient>;
const transactionProvider: PostgresPlatformHostTransactionProvider<ApplicationDb> = {
  async run(run) {
    const client = await pool.connect();
    try {
      await client.query("BEGIN");
      let result;
      try {
        result = await run({ db: domainStore.withClient(client), sql: client });
      } catch (error) {
        await client.query("ROLLBACK");
        throw new ConfirmedTransactionRollback(error);
      }
      // COMMIT errors remain outside the callback rollback signal.
      try {
        await client.query("COMMIT");
      } catch (error) {
        await client.query("ROLLBACK");
        throw error;
      }
      return result;
    } finally {
      client.release();
    }
  },
};

The provider throws the wrapper after successful ROLLBACK of a failed callback. If rollback throws, that rejection supplies no confirmation. Memory confirms a failed callback for the Host handler request after successful Host-ledger undo and a configured provider's restore. Commit-phase errors and providerless approval transactions supply no confirmation. Ordinary public Memory transaction callbacks retain their original errors. Custom atomic stores that expose the wrapper through their public transaction API are supported; Host's non-handler transaction boundary and exported conformance rejection checks normalize that transport evidence before classifying errors.

Handler transaction reconciliation. A handler or store transaction wrapper can throw ReconciliationRequiredError(message, { cause }) from @fabricorg/platform (also exported from @fabricorg/platform/policies) when a domain effect may already have committed and an operator must decide how to proceed. For example, a recovery-receipt store can check its own stored result against the action's current declared events and result schema before handing that result back. If its own check detects an incompatible receipt from an earlier attempt, it can throw this signal. Put non-sensitive operator detail in the message: Host stores the redacted message, not cause. The cross-copy predicate isReconciliationRequiredError recognises the stable name and EXECUTION_RECONCILIATION_REQUIRED code as well as local instances.

A transactionWithEvents wrapper cannot tell which Host transaction it is wrapping from the public callback contract: Host also uses this API for after_adapters finalization and external completion. Translate only a condition the store detects itself while recovering its own receipt, and let other errors propagate unchanged. Do not match Host's internal validation-error messages; those errors have no public stable code or message contract.

Host honours the signal only at the handler-transaction catch, covering transactionWithEvents and the fallback transaction. It redacts the message with redactErrorText using source: "handler", records terminal reconciliation_required, and returns the error with the action's consistency and persisted HITL route/risk tier. Status persistence emits the existing reconciliation telemetry. Re-execution returns the terminal record without running the handler. Workers retain their existing counting: a returned reconciliation result increments failed, not completed or deferred.

Atomic transactionWithEvents stores roll back the attempt's domain writes, domain events, and Host's StateTransitioned together when the transaction throws. On the transaction-only fallback, Host appends events directly. The built-in stores simply run the callback without rollback: domain writes and any events Host appended during the attempt stay persisted beside the reconciliation_required record, as they already do beside failed. A custom fallback transaction may roll back its domain writes, but Host does not make its event appends atomic with those writes. Host does not run adapters after this signal or add a new lifecycle event for it. Effects or evidence committed by earlier attempts are not undone.

The signal does not change failures in pre-handler governance or validation, state-transition guard exceptions, adapters, or finalization. Application governance errors and definite adapter failures retain their failed paths; post-success errors follow the recovery rules below. State guards still fail closed. Transient after_adapters finalization failures escape as RecoverableFinalizationError for recovery within recoveryMaxAttempts. A handler error without eligible confirmed rollback still records failed. This signal requests an operator decision, not an automatic retry or a claim that the current transaction committed.

New rows bind that key to the action version, actor/authority binding, and a versioned canonical parameter digest. An empty authorizationBindingId is treated as absent for submission idempotency identity and receipt ownership, including stored empty IDs from older Hosts. Host 3 defaults to enforce, which throws IdempotencyConflictError; configure idempotency.conflictMode as audit-only for a preflight soak. Legacy null-digest rows skip only the parameter comparison and call onLegacyRecord; actor, authority-binding, and action-version mismatches still reject in enforce mode. See MIGRATION-2-IDEMPOTENCY.md and Idempotent submission.

Lifecycle records use deterministic checkpoint ids. Recovered idempotent actions do not repeat an adapter that already reached succeeded. Built-in stores deduplicate event and policy inserts by checkpoint ID. Adapter rows are mutable; stale-worker protection requires the optional writeAdapterInvocation capability described below. A reclaimed non-idempotent action without compatible finalization preparation inspects its adapter checkpoints: running or succeeded rows route to reconciliation; no rows or only failed rows retain terminal failure for manual review.

Returned ambiguous or timeout outcomes, timeouts thrown from adapter.execute (including an aborted adapter deadline), contradictory successful results, and reverse contradictions (success: false with outcome: "success") route to reconciliation_required. Host detects a thrown timeout from the adapter deadline's aborted signal or an error message matching /timeout|deadline|timed?\s*out/i. A definite rejection whose message matches therefore also routes to reconciliation; the message matcher does not prove that the provider timed out.

An uninterpretable provider reply (a non-object, null, or an array), a getter that throws before Host can interpret the reply, and an unrecognised outcome string such as "timed_out" also take this path. Host copies the reply's contract fields and other own enumerable fields into a plain object before interpretation, reading each top-level field once. A getter that throws during the copy takes the unreadable-reply path. These outcomes are not retried by the retry helper. Object replies retain the previous truthiness reading of success, including truthy non-boolean values from JavaScript adapters. The reconciliation kind remains adapter_outcome_ambiguous.

Unknown-outcome settlement uses transactionWithEvents when its transaction supplies updateAdapterInvocation, appendExternalReconciliation on a governance-capable store, and updateLeasedActionInvocation for a leased invocation. A store advertising conditional adapter writes also needs transaction-scoped writeAdapterInvocation for leased finalization. In that transaction Host writes the ambiguous checkpoint, AdapterInvocationAmbiguous with its stable event ID, governance ExternalReconciliation evidence where supported, and the fenced reconciliation_required verdict, in that order. These writes commit together. Host retries once on a non-lease error; a second non-lease failure selects the verdict-first fallback. Lease loss raises RecoverableFinalizationError without retry or fallback.

Without those transaction members, or after two non-lease transaction failures, the verdict-first fallback writes the terminal verdict (retrying once except on lease loss), then the checkpoint, event, and reconciliation record. If both checkpoint shapes fail, Host still attempts the ambiguity event and reconciliation record. After the verdict commits, Host attempts each remaining evidence write even if the event append fails, then surfaces the first error as RecoverableFinalizationError. An evidence failure can leave a terminal verdict with missing evidence; a later direct execution returns that verdict and workers exclude it from recovery, without repairing the evidence gap. If both verdict attempts fail, Host surfaces RecoverableFinalizationError without attempting an unfenced checkpoint.

With the original action definition and adapter-step order available, recovery checks ambiguous rows before the parked-handoff shortcut, stale-action gates, authorization, and handler execution. This applies to actions declared idempotent and actions not declared idempotent. Settlement uses the stored reconciliation metadata or the legacy row's error as its message and reason, without running the handler or an adapter. For a running invocation whose action resolves, executeInvocation reads each adapter step's row before the pending-handoff shortcut, stopping on recorded ambiguity or a failed read. A failed read surfaces RecoverableFinalizationError, where base 939bcad returned the parked result. The shortcut's condition is unchanged from base: a running invocation with pendingCompletion and no lease owner returns early without requiring pendingCompletion.parkedAt. If the action no longer resolves, the shortcut still returns the handoff before the unknown-action failure. Completion callbacks that settle the invocation require parking, including after a deadline sweep.

AdapterInvocationRecord.reconciliation is an optional, redacted checkpoint preserving reason, external reference, and the original adapterEventSubject. The subject stays out of the returned AdapterReconciliationOutcome. Recovery uses this checkpoint without scanning listEvents(). Without stored subject metadata it uses { subjectType: "AdapterInvocation", subjectId: adapterInvocationId }; the stable event ID deduplicates an event already written. Custom stores should persist the checkpoint through adapter create, update, and read methods.

Ordinary adapter writes do not name the migration 8 column and remain compatible with schemas lacking it. If a checkpoint write carrying reconciliation fails, fallback retries the row once without that field, using legacy status: "ambiguous" plus error. Unknown outcomes therefore still settle without migration 8, but without stored checkpoint metadata. Apply PostgreSQL migration 8 through ensureSchema() in controlled startup or migrations to retain that metadata. An error inside an atomic PostgreSQL transaction first rolls it back; the legacy write runs outside that transaction on the fallback path.

On a store without atomic support, if the verdict cannot be written at all, no durable write after the call succeeds: neither verdict nor checkpoint is saved, as after a crash mid-call. A leftover running step can then re-run on recovery for an idempotent action under the same adapterInvocationId idempotency key, within the worker recovery budget. A reclaimed non-idempotent action with a running row without a matching durable handoff settles that step as unknown, unless a compatible finalization checkpoint lets recovery run that idempotent step again under the rules in action-level finalization. Without compatible finalization preparation, a succeeded row or durable handoff instead ends reconciliation_required as an applied effect. Adapters should be idempotent or carry that stable key. The same exposure applies if two atomic attempts roll back and the fallback verdict cannot be written.

Once an invocation has a durable succeeded adapter row or accepted handoff, errors in Host store reads or writes raise RecoverableFinalizationError instead of ending it failed. This includes later adapter checkpoints, obligation reads, and the completion write in both before_adapters and after_adapters. Recovery also protects Host store operations before and around the handler when an earlier provider effect is recorded. Authorization, policy and handler callbacks retain their own failure semantics. Idempotent recovery repairs recorded success/handoff evidence without calling that step's provider. Without compatible finalization preparation, non-idempotent interruption ends reconciliation_required instead of repairing the invocation. Lease loss retains its fencing error.

If neither record is durable, Host retries the failed handoff or marker write once. After a second failure it reuses degraded atomic finalization where available, otherwise writes the reconciliation_required verdict first, then attempts the succeeded marker with safe output, ExternalOperationAccepted when applicable, and AdapterInvocationSucceeded. Each fallback evidence write is attempted independently; the first error raises RecoverableFinalizationError after the remaining writes are attempted. One exception keeps its 7.x behaviour: when unsatisfied obligations end a handed-off invocation reconciliation_required and the reconciliation-log append fails, Host still returns the verdict. A terminal verdict can retain missing evidence. If even the verdict cannot be saved, Host throws RecoverableFinalizationError; the row can remain running. Recovery may replay that unrecorded outcome for an idempotent action under its stable adapterInvocationId, within the worker budget. A reclaimed non-idempotent action instead ends reconciliation_required. A durable handoff takes precedence over its running row and is recorded as an applied effect with its external reference. A running row without such a handoff is settled as unknown. Without compatible finalization preparation, a succeeded row also ends reconciliation_required. With no rows or only failed rows, the existing non-idempotent interruption gates still fail the invocation.

For idempotent recovery without an action finalizer, the handler still runs before the adapter loop. Finalizing actions with compatible durable preparation replay without rerunning the handler; missing or incompatible preparation retains effect-aware refusal. See action-level finalization. The loop reads each checkpoint before getInput() or adapter lookup. Succeeded rows and durable handoffs use stored adapter type, operation, vendor, input and output; a falsy new input or removed adapter does not skip evidence repair. Stable event IDs deduplicate replayed accepted and success events; newly repaired success events include recovered: true and stored input/output when available.

Recovery looks up the stable attestation ID. If present, Host reuses it and reapplies its satisfiesObligations updates without calling the extractor. If absent and stored output exists, Host calls extractExecutionAttestation with stored input/output and checkpoint createdAt and updatedAt as start/completion times. The extractor may run again after an interrupted append; it must return deterministic evidence for the same input. A handoff checkpoint with no output, or withheld output, skips extraction. Repair errors remain recoverable within the budget.

Known limits for actions without checkpointed finalization: a later step's definite provider failure or pre-call refusal can still end the invocation failed after an earlier step succeeded. Authorization denials, ordinary handler failures, validation/state-guard rejection, and unsatisfied policy obligations on recovery retain their existing terminal outcomes. These are decisions or application failures, not Host store errors. Idempotent recovery can call a provider again for an unrecorded running outcome, or for a definite failed row whose invocation failure verdict was lost. The handler still re-runs before the adapter loop. Saga compensation is unchanged. Withheld-output and refused-handoff reconciliation retain the degraded pattern. Adapter-row fencing and overdue-sweep/late-callback rules are described below.

Event appends are first-write-wins by event ID. Host re-appends lifecycle events under stable IDs on retry and recovery, and each later attempt carries a fresh sequence and timestamps and can carry a different payload. A custom store's appendEvent and appendEventWithOutbox must treat an ID it already holds as a no-op that keeps the first event: do not throw, replace, or merge it. A store that refuses these appends can leave recovery unable to converge, so the invocation stays running until the recovery budget settles it, even when the adapter effect succeeded. Custom stores that currently throw on a conflicting append need to change. The shipped stores enforce ID uniqueness across the whole store, not per tenant or space. The rule covers the outbox too: appendEventWithOutbox for an ID already stored adds no outbox row, including when the first append went through plain appendEvent, so that event is never published later. Keep outbox.shouldPublish deterministic for a given event ID. Custom store authors can verify these paths with the event append conformance checks.

Conditional adapter-row writes (8.0.0, issue #79)

PlatformHostStore.writeAdapterInvocation(input) is optional. Memory and PostgreSQL implement it; custom stores can keep their existing methods. Without it, Host retains unchecked adapter creates and updates, so a reclaimed worker can overwrite a newer worker's adapter checkpoint.

The input carries scope (tenant, space, invocation), a create or update mutation, a condition, and optional expectedStatuses. A lease condition requires a running parent with the supplied leaseOwner and leaseToken. A verdict condition requires the exact parent status and error written by this execution. Host also captures the handoff row ID as completionAdapterInvocationId, so externalCompletionDigest guards that row's callback output: an absent digest requires no recorded completion; a supplied digest requires that same completion. Other adapter rows retain the status/error and expected-row-status checks without the digest check. Omitting the captured row ID retains the conservative digest check on adapter writes. Absent error matches no error. Both parent and adapter must match scope. A create must also match the record's scope and refuses a duplicate ID. The method returns false when its conditions fail. Conditional updates reject succeeded or ambiguous to running or failed, including when callers omit expectedStatuses.

Host captures the supplied execution credentials before loading the invocation. It uses them for fenced invocation writes and leased adapter creation, retry preparation, success, failure, and ambiguity checkpoints. A refused lease or row-status check raises RecoverableFinalizationError. This prevents stale checkpoint writes; adapters still need stable idempotency keys because a lease cannot cancel a provider call already in flight. Inline writes use the verdict condition after this execution writes its own verdict; earlier unleased adapter writes retain their existing path.

Verdict-first fallbacks use the settled verdict condition after the terminal write releases the lease. Their expected row status is the last state observed or written by that execution. A changed parent status/error or row refuses the adapter update; a changed completion also refuses a write to the captured handoff row. These refusals emit invocation.adapter_evidence_refused (fabric.platform.invocation.adapter_evidence_refused) through the telemetry hook. The adapter row stays untouched, with no unchecked retry. Host still attempts AdapterInvocationAmbiguous and reconciliation evidence; withheld-output and refused-handoff success evidence may already have been appended before the refused marker write. A refusal is not an evidence-collector error. Thrown store errors are retained while each independent fallback write is attempted, then the first error is raised as RecoverableFinalizationError.

An inline writer preserving a sweep verdict does not adopt it as this execution's own verdict. Its adapter evidence keeps the unchecked inline path; conditional settled-parent enrichment is used only for a verdict this execution actually wrote. The inline guard reads the current row only when the execution snapshot or its patch carries pendingCompletion.

Budget exhaustion saves its plain verdict before reading evidence. It then enriches the parent through optional updateSettledActionInvocation, comparing that execution's exact status, error, and completion snapshot. Parent enrichment joins the independent evidence collector, alongside adapter checkpoints, events and reconciliation records. Refusal emits invocation.adapter_evidence_refused with evidence: "parent_enrichment" and is not an error; a missing updateSettledActionInvocation skips only parent enrichment. Evidence writes still run. A thrown store error is collected and raised as RecoverableFinalizationError after the remaining writes are attempted. The two optional store methods are expected together. Successful enrichment stores the error and adapterReconciliation before returning them; skipped or refused enrichment can leave replay with only the plain verdict. Stores omitting writeAdapterInvocation retain unchecked adapter writes. A retained handoff's reference is included in the initial budget verdict.

Subclasses of the built-in stores that override createAdapterInvocation or updateAdapterInvocation for encryption or auditing must also override writeAdapterInvocation. Checked writes can bypass the unchecked methods. Alternatively, explicitly disable the capability and accept the weaker stale-worker guarantee. Parent annotations similarly have their own updateSettledActionInvocation seam.

Atomic finalizers require transaction-scoped writeAdapterInvocation when the store advertises the capability and execution holds a lease. A missing member selects verdict-first fallback before transaction evidence writes. PostgreSQL locks the matching parent with FOR NO KEY UPDATE before the adapter mutation in one SQL statement. Memory rechecks buffered lease and adapter predicates at commit and excludes claims and other conditional writes while applying the commit. A commit-time conflict rolls back and raises RecoverableFinalizationError. No schema migration is added by this capability; it uses the existing parent lease and verdict columns.

External-completion adapter writes use the callback's transaction-scoped updateAdapterInvocation when available, sharing its invocation lock. These are callback writes rather than worker-lease writes; legacy transactions without that member retain the outer-store write. The sweep retains its transaction-scoped reconciliation append and parked/overdue settlement rules.

Bounded worker recovery (8.0.0)

recoveryMaxAttempts is an optional positive integer. Its effective default is max(5, retryableExecutionMaxAttempts); Infinity is rejected. Both caps count the same worker claims. Construction rejects an explicit recoveryMaxAttempts below retryableExecutionMaxAttempts. The governance cap stops transient pre-policy deferrals at its cap; the recovery budget stops resumed execution above its cap. With the defaults, governance retry exhaustion therefore happens on claim 5 before recovery exhaustion could happen on claim 6.

Host checks a resumed leased running invocation immediately after lease ownership, before normal action resolution, ambiguity scans, authorization, the handler, or adapter work. When attemptCount > recoveryMaxAttempts, it settles reconciliation_required with recovery attempts exhausted (n/max). It writes that verdict before resolving the action or reading adapter evidence, releasing the lease. It then reads adapter rows by step index up to the longer of the action definition resolved now and the steps saved in the finalization checkpoint, the same bound ordinary recovery uses, so a removed action or a definition with fewer steps does not hide a row recorded under the checkpoint. Unlike ordinary recovery, it stops at the first running or ambiguous row that is not the durable handoff's row; rows at indexes beyond both ranges are not read. A running row without a matching durable handoff receives unknown-outcome settlement. A recorded ambiguous row enriches the parent error and adapterReconciliation, as well as adapter/event evidence, using its stored reconciliation evidence and a conditional parent update. A durable handoff takes precedence over that step's running row. It is recorded as an applied effect with its external reference in the message and, on governance stores, the reconciliation record. It is not marked ambiguous solely because its marker was lost. If resolution or row reads throw, or no relevant row exists, the plain verdict already written stands. Enrichment failure can retain an evidence gap. Transition telemetry is emitted once when the status changes. If the verdict is unwritable, Host throws RecoverableFinalizationError; later claims continue but do not execute mutation code.

The counter counts worker claims, including the first run, rather than provider calls or completed recoveries. With the default of 5: the first run plus four recoveries; the sixth claim settles. A raised governance cap raises the implicit recovery budget with it. Inline/direct execution does not increment the counter. Approval acceptance sets it to at least 1 without incrementing it on resume. Approval resume holds a temporary lease, renewed while it executes, and uses the existing count: a count equal to the budget is admitted, while a count above the budget settles reconciliation before the handler. Approval does not reset an exhausted budget. A worker dying before reaching the check consumes a claim without calling a provider at that point. Parked handoffs have no lease, are not claimed by workers, and are outside this budget. The existing parked shortcut and ambiguity scan remain in place. retryableExecutionMaxAttempts still limits pre-policy deferrals. No new store method is required.

Inline and direct callers. Inline submitAction() without a dispatcher and direct executeInvocation() can now reject with an error whose name is "RecoverableFinalizationError" where 7.x returned failed. The class is not exported. Without a lease, the invocation stays running and workers do not claim it. Before a handoff is durable, call executeInvocation() again yourself and cap your own retries. Once a handoff is durable, re-running executeInvocation() on the unleased running row returns without resuming execution (it first settles any step already recorded ambiguous). If execution stopped before parking, callbacks are refused with still_executing until a sweep. Declare completionDeadlineMs for actions that hand off so the sweep surfaces the row, then reconcile it per the external-completion runbook. The leased worker budget does not bound unleased calls. With ownership checks, a second unleased call on that running row takes it over; see Invocation ownership. A previously leased direct call retains its lease until expiry and can also be recovered by a worker. Terminal degraded verdicts can retain evidence gaps and are not automatically repaired.

A transaction implementation may rethrow the handler's error wrapped in its own error; Host still treats a failure inside the handler callback as a handler outcome.

Known limit. If a later step's adapter row is created but its attempt-preparation write keeps failing, the row stays running although the provider was not called. For an action not declared idempotent, the next claim settles that step as an unknown provider outcome.

A deadline sweep retains the handoff and sets pendingCompletion.overdueAt with its reconciliation_required verdict. A late callback can settle that verdict while there is no recorded resolution and the handoff has parkedAt, proving Host reached parking after its remaining steps and finalization. An unparked handoff stays in reconciliation even if later-step ambiguity evidence is missing; the callback's redacted result and outcome are recorded as evidence for an operator without applying the action's result schema. This evidence-only behavior applies to invocations already reconciliation_required; callbacks for unparked running invocations are refused with still_executing. Any parked row without overdueAt, including a 7.x row, still uses the old "did not complete by" error substring. That compatibility path is weaker: an unrelated error containing the substring on a parked row lacking the marker can also authorize settlement.

Circuit-open refusals and deadline expiry before execution retain failed semantics because the refused attempt made no provider call. A prepareAttempt store error retains its prior failure behavior only while the invocation has no durable success or handoff. With an earl