You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
runtime: the mutation deadline is logged but never enforced #317
packages/runtime/src/Runtime.ts computes deadlineMs for every mutation and integration call and passes it to the runtime log, but only integration calls are wrapped in Effect.timeoutOrElse; a mutation's runWithDeadline is the bare execute. So runtime_calls.deadline_ms is descriptive for mutations: a table or file mutation can still be running after its own log row reads as past deadline / unknown.
Low risk at tier 1 (mutations are single bounded statements), but the tier 2 map's transaction research (#310) leans on that deadline being real: a hosted mutation will hold a company-database transaction open for the invocation, and the fiber timeout is one of the three places the deadline must be enforced. Fix is small: apply the same timeoutOrElse to mutations, with PATCHY_RUNTIME_MUTATION_DEADLINE_MS as the value, and keep the log's deadline_ms equal to what is enforced.
Found while reviewing research for the tier 2 map (#294); filed by Claude Fable 5.1 via Claude Code.
Activity
fix(runtime): table and file mutations now time out at their logged d…