Skip to content

docs(id): deterministic testing design for #5779 (task 13643) - #8256

Merged
dezren39 merged 3 commits into
mainfrom
queue/13643-5779-id-deterministic-testing
Nov 10, 2026
Merged

dezren39 merged 3 commits into
mainfrom
queue/13643-5779-id-deterministic-testing

Conversation

@dezren39

@dezren39 dezren39 commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Summary

Design-only deliverable for #5779 (task 13643): doc/2026-11-08_design_id5779.md — a decision-ready deterministic-testing design for ID, plus its index line in planning/architecture/README.md. No production code.

The design covers the remaining scope only and explicitly reuses what already exists (Clock/ManualClock, world fixture export + two-replay verification, per-feature property tests with checked-in regression inputs):

  1. Nondeterminism audit + clock seams — source-by-source policy table (wall/monotonic time, RNG, scheduling, network/FS/env, hash ordering, FP/toolchain) and the intended injection boundaries across id / id-core / native seams, including what stays intentionally real (network deadlines, production entropy).
  2. Replay oracle — versioned, domain-separated BLAKE3 rolling journal + records digests (RFC 8785 canonical payloads), per-step sidecar rows, and first-divergence reporting on the existing fixture verifier.
  3. Seed corpus lifecycle — reviewed, append-only, versioned corpus (pkgs/id/tests/determinism/corpus/v1/ proposed) with a 5-step promotion path: record provenance, re-run fresh, minimize, review as code, never delete.
  4. Simulated-time soaks — compressed-time driver with continuous named invariants (admission/reconstruction Design: reconstruction is admission — validate authority-bearing inputs where they are rebuilt (pkgs/id) #2898, lease fencing id: design: native-spill write lease protocol for hot worlds (from #2059) #2819, projection purity id: implement Writer-set view projection - view projection and discovery query (design doc) #5545, replay, bounds) and PR/nightly/weekly budget envelopes.
  5. CI cadence + design(id): DoS suite & performance benchmark programme — adversarial CI coverage and per-interface regression gates #5685 boundary — fast PR gate vs nightly/weekly lanes; shares design(id): DoS suite & performance benchmark programme — adversarial CI coverage and per-interface regression gates #5685's workload driver/reporting while keeping determinism and performance oracles distinct.

Also records staged implementation (5 stages), alternatives considered, risks, and open questions. Related work is composed with, not duplicated: #558 (dev-loop fuzz), #544 (id world verify, closed), #5685 (DoS/performance).

Verification

Closes #5779

repo-worker-code-k added 2 commits November 8, 2026 18:29
Design-only residual: clock seam (world Clock vs id-core, time.now, ManualClock wake), exact stepwise journal/records oracle, versioned seed-corpus lifecycle, simulated-time soaks, and fast/slow CI split sharing #5685 machinery. Reuses the existing Clock, fixtures, replay verifier, and regressions; no production code.

<!-- agent-note:v1 agent=repo-worker-code lane=02cafe76-eafd-4d0b-aaa6-2b7a737d68dc state=implementation_complete task=13643 origin=openchamber-scheduled-lane -->
@dezren39
dezren39 requested a review from a team as a code owner November 10, 2026 20:49
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-10T20:49:59.107986Z
We couldn’t complete this review. Comment @codex review to try again.
ae85895 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 43 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 24a2c532-02d6-47e9-900c-0fb8a1185dbf
Commits

Reviewing files that changed from the base of the PR and between 3f208ad and 58e02f9.

Files selected for processing: 2

  • doc/2026-11-08_design_id5779.md
  • planning/architecture/README.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

…eterministic-testing

# Conflicts:
#	planning/architecture/README.md
@dezren39
dezren39 merged commit ecb88e7 into main Nov 10, 2026
1 of 9 checks passed
@dezren39
dezren39 deleted the queue/13643-5779-id-deterministic-testing branch November 10, 2026 20:58
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.

id: design: deterministic testing over time — simulated clock, replay, seeded fuzz corpus, soak runs

1 participant