Skip to content

docs: articulate scope boundary, seeding, and why determinism/replay matter - #304

Merged
scttfrdmn merged 1 commit into
mainfrom
docs/scope-determinism-philosophy
Jun 3, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
docs/scope-determinism-philosophy

Conversation

@scttfrdmn

Copy link
Copy Markdown
Owner

Docs-only. Codifies the design philosophy discussed — why substrate says no to certain things, not just what it does.

What's documented

  • Scope boundary: substrate models what is observable through an AWS API call (request/response shapes, resource state and its transitions over the simulated clock, seedable outcomes) — not what software inside a resource does (it never executes user-data, Lambda code, an inference, a training job). Captured as a one-line test for future features: is this observable through an API call, or is it resource-internal?
  • Seeding is what lets a deterministic emulator produce different results: default = nominal success path; alternate outcomes (errors, capacity failures, terminal job states, timing) are seeded via control-plane endpoints and read at request time. This is what makes the rare/slow/failure paths a consumer's retry/poll/wait loops exist to handle testable, instant, and reproducible.
  • Why this determinism beats containers / real infrastructure: reproducibility by construction (same inputs incl. seeds → same outputs), exact replay of failures, history inspection — none of which survive real timing/scheduling/network. Deliberate cost: workload-internal fidelity (out of scope).
  • Why determinism & replay are useful in practice: no flakes, exact failure reproduction, time-travel inspection, testable rare paths, fast/free/network-free runs, exportable regression fixtures.

The through-line: the scope boundary and the deterministic-replay guarantee are the same line viewed from two sides — API observations are recordable/replayable; resource internals are not.

Changes

  • CLAUDE.md: new "Scope" section.
  • doc.go: fourth differentiator (API-surface scope) + "What determinism and replay give you", "Seeding", and "Why determinism (vs. containers or real infrastructure)" sections.
  • CHANGELOG.md: [Unreleased] entry.

No behaviour change; go build + go vet clean.

@codecov

codecov Bot commented Jun 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

…matter

- CLAUDE.md gains a 'Scope' section: substrate models what is observable through
  an AWS API call, not what software inside a resource does; seeding is how a
  deterministic emulator produces different results; plus why the determinism
  payoff beats container/real-infra approaches and why it's useful in practice.
- doc.go gains a fourth differentiator (API-surface scope) and three sections:
  'What determinism and replay give you', 'Seeding', and 'Why determinism
  (vs. containers or real infrastructure)'.

Documents the principle that the boundary and the deterministic-replay guarantee
are the same line viewed from two sides. Docs-only; no behaviour change.
@scttfrdmn
scttfrdmn force-pushed the docs/scope-determinism-philosophy branch from c4e6511 to e734237 Compare June 3, 2026 03:31
@scttfrdmn
scttfrdmn merged commit 5940ed9 into main Jun 3, 2026
9 of 10 checks passed
@scttfrdmn
scttfrdmn deleted the docs/scope-determinism-philosophy branch June 3, 2026 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant