Skip to content

Document the strict tick-abort policy across doc/ (#604-#608) - #610

Merged
nockawa merged 1 commit into
mainfrom
doc-update
Jul 31, 2026
Merged

nockawa merged 1 commit into
mainfrom
doc-update

Conversation

@nockawa

@nockawa nockawa commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

Fixes #604
Fixes #605
Fixes #606
Fixes #607
Fixes #608

PR #601 added RuntimeOptions.SystemExceptionPolicy but nothing in doc/ moved, so four feature-set pages and the runtime overview still assert fault-isolation semantics as unconditional — "one failure doesn't abort the tick", "other DAG branches continue", "it does not abort sibling members". All five statements are correct only under the default Isolate.

Approach

Each fix qualifies the existing sentence as the Isolate default rather than replacing it, then states what AbortTickAndStop does instead. The existing prose isn't wrong — it's the exact contract of the policy every current user is on, and rewriting it would make the common path read as the exception.

All five also carry two exemptions that none of the filed issues mention, both from claude/design/Runtime/08-strict-tick-abort.md:

  • D3 — engine tracks never observe the abort flag. "The tick aborts" naturally reads as "everything stops", which would imply the fence doesn't run. claude/rules/runtime-scheduling.md TP-01a marks skipping the fence [fatal][silent] (durable un-WAL'd page mutations), so the simplified version would teach readers to expect the corruption case.
  • D1 — abort granularity is the system, never the chunk. A system already running drains all of its chunks; the flag is only consulted when deciding whether to begin one.

Verified against code, not just the issue text

  • DagScheduler.cs:1344 / :894 / :1679 — the gate is IsTickAborted && !_systemIsEngine[sysIdx], read at claim time as well as fan-out, which is why "independent branches continue" is wrong and why a ready-but-unclaimed DAG root can't slip through.
  • :1679 sits before the _systemFailed branch at :1687 — TickAborted wins over DependencyFailed.
  • TyphonRuntime.cs:2023-2028 — OnTickAborted fires only when IsTickAborted latched, and TryRecordTickAbort:153 no-ops unless the policy is AbortTickAndStop. (TickOutcomeReason.FenceFailure is declared but never produced anywhere in src, so "only under AbortTickAndStop" holds.)

Changes

File Fix
feature-set/Runtime/system-types/README.md #604 — new bullet for the opt-in policy + both exemptions
feature-set/Runtime/system-types/callback-system.md #606
feature-set/Runtime/system-types/pipeline-system.md #606 — plus D1, which matters most here
feature-set/Runtime/system-types/compound-system.md #607 — members expand into ordinary DAG registrations, so no compound-level boundary contains the abort
in-depth-overview/10-runtime.md #605 (§6 failure-isolation split into two policy paragraphs) and #608 (§9 gains OnTickAborted / LastTickOutcome / FatalStop; knobs table gains SystemExceptionPolicy)

Docs only, no code. claude/scripts/check-doc-drift.py green (no drift in enforced docs). Section anchors verified against the actual headings.

Not in scope: chunked-callback-system.md has no failure-semantics bullet at all, so nothing there is wrong and no issue covers it — but D1 applies to it too, worth a follow-up.

🤖 Generated with Claude Code

https://claude.ai/code/session_01SVvtTh6p1AJoSX85AGcAhF

… doc/ [no-ut] [no-doc]

PR #601 added RuntimeOptions.SystemExceptionPolicy but nothing in doc/ moved, leaving four feature-set pages and the runtime overview asserting fault-isolation semantics as unconditional — "one failure doesn't abort the tick", "other DAG branches continue", "it does not abort sibling members".

Each fix qualifies the existing statement as the Isolate default rather than replacing it, then states what AbortTickAndStop does instead. All five also carry the two exemptions none of the filed issues mention: engine tracks never observe the abort flag (D3 — the fence runs no matter what), and abort granularity is the system rather than the chunk (D1), so a system already running drains all of it.

10-runtime.md additionally gains OnTickAborted / LastTickOutcome / FatalStop in the §9 hooks list and SystemExceptionPolicy in the RuntimeOptions knobs table, none of which existed in the docs despite being public API since #601.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SVvtTh6p1AJoSX85AGcAhF
@nockawa
nockawa merged commit 768a25e into main Jul 31, 2026
15 checks passed
@nockawa
nockawa deleted the doc-update branch July 31, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment