GeezerVison is showing github.com — id: design: deterministic testing over time — simulated clock, replay, seeded fuzz corpus, soak runs · Issue #5779 · developing-today/code
id: design: deterministic testing over time — simulated clock, replay, seeded fuzz corpus, soak runs #5779DescriptionSummary
Design ID's deterministic testing infrastructure: the machinery that makes the system's behaviour reproducible — a simulated clock, deterministic replay of recorded world event streams, a managed seeded fuzz corpus, and long-horizon soak runs with invariant checkers. This is testing infrastructure as its own design line, distinct from any one feature's tests.
Motivation
ID is a journal/event-sourced system: correctness lives in replay, reconstruction, and projection. The pieces that exist are scoped elsewhere — #558's deterministic fuzz harness belongs to the authoring dev loop; #544 is a per-world replay self-check (id world verify); #5685 designs the DoS suite and the performance benchmark programme (regression gates on speed and abuse resistance — it says nothing about determinism). The mcpx deterministic-testing work (#1963, #2641) is mcpx-scoped. Nothing designs, for ID itself: how determinism is achieved (where nondeterminism can enter), how recorded reality becomes a permanent regression asset, or how the system is exercised over time — days of simulated operation, not single runs.
The design's own rules are the natural oracles: "reconstruction is admission" (#2898), lease-epoch monotonicity and single-writer fencing (#2819), writer-set projection purity (#5545 — projection is a pure function of its tuple, so any replay divergence is by definition a bug).
Sketch
- Simulated clock: logical time injected at the core seams; wall-clock reads, RNG, hash-map iteration order, and thread scheduling audited as nondeterminism sources, with the audit itself a deliverable. Where the clock seam lives across the crate split (pkgs/id: split the monolith crate into sub-crates along module seams (prioritized by Drew 2026-11-01) #3447) is part of the design.
- Deterministic replay: capture world event streams (journals plus input frames) into replayable fixtures; replay must reproduce the journal hash bit-exact; divergence is a bug report with a minimal repro, not a flaky test.
- Seeded fuzz corpus: corpora as versioned artefacts — seeds that found bugs are pinned forever, minimisation is automated, corpus growth is reviewed like code.
- Soak runs: long-horizon runs compressing days of simulated time, with invariant checkers running continuously over live state (not just at checkpoints): admission invariants, lease fencing, projection purity, discovery bounds.
- CI shape: a determinism gate (same input → same journal hash) on the fast tier; replay + soak on a slower cadence, sized with design(id): DoS suite & performance benchmark programme — adversarial CI coverage and per-interface regression gates #5685's tiering so the two programmes share load machinery instead of duplicating it.
Open questions
Relations
Parent: epic #2056. Relations: #558 (dev-loop fuzz harness — a consumer), #544 (replay self-check — a consumer), #5685 (DoS + benchmark programme — sibling infra, shared machinery), #2898, #2819, #5545 (oracle rules), #3447 (crate seams). Filed in the 2026-11-04 gap pass (WS-F) per Drew's order that deterministic testing gets its own design issue. Activitydeveloping-today commented on Nov 5, 2026 developing-today commented on Nov 5, 2026 🤖 Agent note · handed off
developing-today commented on Nov 5, 2026 🤖 Agent note · handed off / parked
- Agent: queue worker (
repo-worker-code), lane code-l
- Session / ID: queue task 10183
- Found via: atomic queue claim (lane code-l); execution-lane assignment returned
opencode, so per runbook §1b this task is handed off to the laptop opencode claimant — not worked directly by this lane.
- Task: triage id: design: deterministic testing over time — simulated clock, replay, seeded fuzz corpus, soak runs #5779 — id: design: deterministic testing over time (simulated clock, replay, seeded fuzz corpus)
- Revalidation (fresh, 2026-11-05T14:09:12Z, via developing.today GitHub App token): issue OPEN, no hard-stop labels (state/labels: OPEN task/triage,status/parked,queue/parked,app/id,work/assigned).
- Action: task 10183 parked as handed off; the claimant launches the bound opencode session to do the work.
dezren39 commented on Nov 5, 2026 🤖 Agent note · handed off
- Agent: queue worker (repo-worker-code), lane code-n
- Session / ID: task 10183
- Found via: queue claim (re-claim after prior handoff park expired unbound)
- Task: Triage id: design: deterministic testing over time — simulated clock, replay, seeded fuzz corpus, soak runs #5779: deterministic testing over time — simulated clock, replay, seeded fuzz corpus, soak runs (design) — execution lane assigned opencode; handing off to the laptop opencode claimant, which launches the bound session. Verified fresh: issue id: design: deterministic testing over time — simulated clock, replay, seeded fuzz corpus, soak runs #5779 is OPEN with no hard-stop labels (no held, user/owned, do-not-merge, do-not-auto-edit).
- Expectation: Claimant's bound opencode session triages issue id: design: deterministic testing over time — simulated clock, replay, seeded fuzz corpus, soak runs #5779 at current main and records blockers/ordering or routes the fix; if unbound by park expiry, task 10183 returns to the queue.
- Links: task 10183 (repo-health-code-pilot)
dezren39 commented on Nov 5, 2026 🤖 Agent note · handed off
- Agent: queue worker (repo-worker-code), lane code-r
- Session / ID: task 10183
- Task: Triage of issue id: design: deterministic testing over time — simulated clock, replay, seeded fuzz corpus, soak runs #5779 (deterministic testing over time design). Claimed by lane code-r; execution-lane assignment returned
opencode, so this task is handed off to the opencode claimant — no direct triage work by this lane. Fresh check on claim: issue id: design: deterministic testing over time — simulated clock, replay, seeded fuzz corpus, soak runs #5779 OPEN, no hard-stop labels.
- Resume condition: claimant launches the bound opencode session and performs the triage.
- Links: issue id: design: deterministic testing over time — simulated clock, replay, seeded fuzz corpus, soak runs #5779
dezren39 commented on Nov 8, 2026 🤖 Agent note · handed off
- Agent: queue worker (repo-worker-code, lane code-p)
- Session / ID: task 12286
- Found via: queue claim
- Task: Handed off to the opencode execution lane per §1b for issue id: design: deterministic testing over time — simulated clock, replay, seeded fuzz corpus, soak runs #5779; claimant launches the bound opencode session.
- Expectation: claimant drives task 12286 to a terminal state for issue id: design: deterministic testing over time — simulated clock, replay, seeded fuzz corpus, soak runs #5779.
- Links: issue id: design: deterministic testing over time — simulated clock, replay, seeded fuzz corpus, soak runs #5779
dezren39 commented on Nov 10, 2026
Agent note — task 13643 picked up direct, lane code-h (resume)
- Worker: repo-worker-code, lane code-h (shift 2026-11-10 14:44 CST)
- Task: task 13643 (small_fix) for issue id: design: deterministic testing over time — simulated clock, replay, seeded fuzz corpus, soak runs #5779 — design-only deliverable
- Lane assignment (fresh, this shift): fleet queue lane returned direct (row 6114); per fix(queue): single-session by default — launch-on-handoff, lane works, inline triage (reverses #8097 Rule 3) #8187 this lane works the task itself — the earlier opencode handoff loop (Queue/lane design rules: no by-id blocking by default, optional platform selector, triage separate from fixes #8097-era) does not apply.
- Revalidation (fresh): issue id: design: deterministic testing over time — simulated clock, replay, seeded fuzz corpus, soak runs #5779 OPEN; no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit absent). No PR exists yet for branch queue/13643-5779-id-deterministic-testing.
- Resume state: branch head ae85895 is pushed (two design commits over base e5a4fdc); prior session's PR creation was blocked by a GitHub secondary rate limit (2026-11-09). This shift verifies the design doc against the packet acceptance points, then opens the PR and completes task 13643.
dezren39 commented on Nov 10, 2026
Agent note — task 13643 DONE (fixed_merged), lane code-h
- Worker:
repo-worker-code, lane code-h (shift 2026-11-10 14:44 CST)
- Task: task 13643 (small_fix) for issue id: design: deterministic testing over time — simulated clock, replay, seeded fuzz corpus, soak runs #5779 — design-only deliverable
- Outcome: PR docs(id): deterministic testing design for #5779 (task 13643) #8256 MERGED, merge commit
ecb88e7ad898c96faa7846834bcd3944b729e24c; issue id: design: deterministic testing over time — simulated clock, replay, seeded fuzz corpus, soak runs #5779 CLOSED by the merge (Closes #5779).
- What landed:
doc/2026-11-08_design_id5779.md (deterministic-testing design: nondeterminism audit + clock seams, exact journal/records digest replay oracle, versioned seed-corpus lifecycle, compressed simulated-time soaks with named invariants, PR vs scheduled CI split + design(id): DoS suite & performance benchmark programme — adversarial CI coverage and per-interface regression gates #5685 boundary, staged implementation, risks/open questions) + index line in planning/architecture/README.md.
- Resume history: the design branch was authored 2026-11-08/09 and its PR creation was blocked then by a GitHub secondary rate limit; this shift took the task direct (lane assignment row 6114, per fix(queue): single-session by default — launch-on-handoff, lane works, inline triage (reverses #8097 Rule 3) #8187), re-verified the doc against every packet acceptance point, opened PR docs(id): deterministic testing design for #5779 (task 13643) #8256, resolved the README index merge conflict against current main (union), and merged.
- Codex gate: Codex review on PR docs(id): deterministic testing design for #5779 (task 13643) #8256 failed to run (Codex usage limits, 2026-11-10T20:49Z) and posted zero findings — nothing to disposition. CodeRabbit: skipping. CI checks were still pending in the fleet-wide Actions backlog at merge; design-only/docs change, verified manually, merged under the standing merge authority.
- Correction: the first PR docs(id): deterministic testing design for #5779 (task 13643) #8256 body posted this shift was mangled by shell backtick expansion in transit (code-span text executed/stripped, incl. an
id output fragment); the body was rewritten cleanly via a body file minutes later and verified read-back clean. The pickup note on this issue lost only its backtick formatting to the same cause; its content is accurate.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|