Skip to content

[doc-drift] system-types README incorrectly states one failure cannot abort the tick #604

Closed

Description

@github-actions

Doc page

doc/feature-set/Runtime/system-types/README.md, line 52:

A thrown exception rolls back that system's own Transaction and skips its successors
(SkipReason.DependencyFailed); independent DAG branches still execute — one failure doesn't abort the tick.

What the code does now

PR #601 added RuntimeOptions.SystemExceptionPolicy. Under SystemExceptionPolicy.AbortTickAndStop:

  1. The failing system's successors (and all other non-engine systems not yet dispatched) receive SkipReason.TickAborted, not DependencyFailed — see DagScheduler.cs OnSystemComplete where the IsTickAborted branch fires before the _systemFailed branch.
  2. Independent DAG branches do NOT continue — the IsTickAborted gate in ProcessCallbackOrQuery, ProcessPipeline, and ProcessParallelQuery cancels any non-engine system the moment it is claimed.
  3. The runtime goes permanently terminal (IsTickAborted is a write-once latch) and fires TyphonRuntime.OnTickAborted.

Contradicting code: src/Typhon.Engine/Runtime/public/DagScheduler.cs — TryRecordTickAbort, SkipSystemForTickAbort, AbortSystemFromChunkZero, IsTickAborted gate in WorkerLoop, ExecuteCallbacks.

Suggested fix

Qualify the existing statement to reflect the new opt-in policy, e.g.:

A thrown exception rolls back that system's own Transaction and skips its successors (SkipReason.DependencyFailed); independent DAG branches still execute — one failure doesn't abort the tick. Under RuntimeOptions.SystemExceptionPolicy = AbortTickAndStop this behaviour changes: the tick is cancelled globally (all remaining non-engine systems receive SkipReason.TickAborted) and the runtime stops permanently, firing TyphonRuntime.OnTickAborted.

Introduced by: #601

Activity

  1. added
    documentation
    on Jul 31, 2026
  2. added a commit that references this issue on Jul 31, 2026
  3. added a commit that references this issue on Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions