docs: explain session and runtime data model #259
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.40) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 303 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.342
Real PR Conversation Timeline
1 comments
"Review active on #259"
general
weight: 0.35
aramase
Intent
The current docs define sessions, incarnations, and the Substrate runtime in their respective contexts, but do not provide one relationship view that answers a common modeling question: how does a durable Session relate to executions, journal records, runtime compute, Substrate actors, workers, snapshots, and fork children?
This PR adds that conceptual bridge. Its main intent is to prevent two misleading simplifications:
Session -> Workeras a durable identity relationship, when the portable relationship isSession -> Runtime -> Incarnation, and a worker is only a transient Substrate placementThe page is explicitly non-normative. It describes the current reference implementation and points readers back to the protobuf API and draft specification as the authoritative contracts.
What this documents
IncarnationandSnapshotRefmodelEvent.actorprovenance and a Substrate runtime actorThe document includes a short text model for quick orientation, Mermaid relationship diagrams, tables, and source links. It also labels reserved execution/compute states rather than implying that every declared enum is currently reported.
Documentation integration
Validation
python3 hack/check-doc-links.py --root docsgo run ./hack/doccheckcd site && npm run buildcd site && node hack/check-links.mjsgit diff --checkAll checks pass. The site build successfully renders all three Mermaid diagrams and the rendered internal-link checker reports all routes resolved.