GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #5779

New issue
Copy link
New issue
Copy link
Closed
#8256
Closed
id: design: deterministic testing over time — simulated clock, replay, seeded fuzz corpus, soak runs#5779
#8256
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)status:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Nov 5, 2026
Issue body actions

Summary

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

  • Corpus storage and size discipline: in-repo, in object storage, or generated-from-seeds only?
  • Soak cadence and budget: nightly vs weekly; what simulated-time-per-real-hour is achievable?
  • How much of the mcpx determinism pattern (mcpx testing: deterministic execution as a long-term aspiration (retrofit vs Rust rewrite) #1963/mcpx testing: one deterministic-hypervisor (Antithesis) experiment on the pkgs/mcpx container image #2641) is shared doctrine vs per-system machinery?
  • Does the simulated clock extend to network/transport simulation (partitions, latency) or stay at the world layer for v1?

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.

Activity

Next
  1. dezren39
    added
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Nov 5, 2026
  2. developing-today commented on Nov 5, 2026

    @developing-today
    developing-todayBot
    on Nov 5, 2026 – with developing.today
    Contributor
    More actions

    CODE-1463

  3. dezren39
    added
    queue/queuedHas a queued queue task
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 5, 2026
  4. github-actions
    assigned
    dezren39
    on Nov 5, 2026
  5. developing-today
    added
    work/assignedQueue worker lifecycle state
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/queuedHas a queued queue task
    on Nov 5, 2026
  6. developing-today commented on Nov 5, 2026

    @developing-today
    developing-todayBot
    on Nov 5, 2026 – with developing.today
    Contributor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-y
    • Session / ID: task 10183
    • Found via: queue claim
    • Task: Triage of issue id: design: deterministic testing over time — simulated clock, replay, seeded fuzz corpus, soak runs #5779 handed off to the opencode execution lane (assigned_lane=opencode, session not yet bound).
    • Expectation: The laptop claimant launches the bound opencode session for task 10183, which drives it to its terminal state.
    • Links: issue id: design: deterministic testing over time — simulated clock, replay, seeded fuzz corpus, soak runs #5779
  7. developing-today commented on Nov 5, 2026

    @developing-today
    developing-todayBot
    on Nov 5, 2026 – with developing.today
    Contributor
    More actions

    🤖 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.
  8. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 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)
  9. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 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
  10. dezren39 commented on Nov 8, 2026

    @dezren39
    dezren39
    on Nov 8, 2026
    MemberAuthor
    More actions

    🤖 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
  11. dezren39
    added
    queue/claimedQueue worker lifecycle state
    on Nov 8, 2026
  12. 70 remaining items

  13. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 10, 2026
  14. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    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.
  15. developing-today
    added
    status:in-review
    on Nov 10, 2026
  16. dezren39
    closed this as completedin #8256on Nov 10, 2026
  17. dezren39
    added a commit that references this issue on Nov 10, 2026

    Merge pull request #8256 from developing-today/queue/13643-5779-id-de…

    ecb88e7
  18. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 10, 2026
  19. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    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.
  20. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    status/triagedTriaged and routed (see agent note)
    on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)status:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.