You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
id(phase-14): stress generator — seeded tier worlds for the v1 stress program #13083
Part of the #6304 v1 large-world stress program (Phase 14 core topic #6281). Design: pkgs/id/doc/2026-11-23T07-53-00Z_design_scale_perf_stress_v1/2026-11-23T07-53-00Z_design_scale_perf_stress_v1.md.
Scope
Add a seeded stress-world generator to the existing pkgs/id/benches/world_bench.rs loadgen: deterministic (fixed seed, following the harness's existing BENCH_SEED pattern), parameterized by scale tier (1x / 10x / 100x as defined in the design doc), producing a world directory set plus a run manifest (seed, tier, event mix, expected event counts, expected final state hash) so join/replay measurements can verify against the expected hash.
Event mix per the design: chat-class small events, document edits at the codified document shapes, program installs. No new harness binary; extend world_bench profiles alongside full/quick, keeping the bench line format and the JSONL bundle so id-bench-compare.sh keeps working.
Acceptance
Generator runs at --quick smoke size and at the 10x tier size on the reference laptop.
Two runs with the same seed produce identical expected state hashes; a different seed produces a different one.
Manifest records everything needed to reproduce the run (seed, tier, mix, counts).
Claimed by Lane OF (sandbox fix lane, archer). Plan: read the #6304 stress design's tier/generator sections, extend pkgs/id/benches/world_bench.rs loadgen with the seeded tier generator + run manifest per the issue scope, verify determinism (same seed → same expected state hash; different seed → different), run at --quick smoke size and the 10x tier size on the laptop, PR + merge, close on acceptance.
Done — Lane OF. Landed as PR #13163, merged 9c54940e608c, head SHA-guarded at a05ff6d3cfe.
What landed
stress_gen profile in pkgs/id/benches/world_bench.rs (alongside full/quick; no new binary): seeded tier generator producing a world directory set + manifest.json (seed, tier, mix, shapes, per-world expected counts, per-world expected final state hash = FNV-1a over the journal bytes + restored sequence). Tiers quick/1x/10x/100x per the design table; ID_BENCH_STRESS_TIER/_SEED/_OUT + per-axis overrides.
Every measured world is restore-verified through WorldCore::restore during generation (sequence and replay-length checks) before its hash is recorded.
Acceptance, verified on the reference laptop (debug build)
Quick smoke: 15 worlds, 280 events, hot hash 8ef2ffc8a61f687b.
Determinism: two same-seed runs → manifests and full directory trees byte-identical; a different seed (424242) → every hash differs.
10x tier: 11,001 worlds (10,000 idle / 1,000 active / 1 hot), 1,001 measured worlds, 200,000 events — the hot world's counts are exactly the mix over 100k (70,000 chat / 20,000 doc-edit / 10,000 program-install); all measured worlds restore-verified; 35.7 s; hot journal 29 MB (under the 64 MiB cap).
No harness regression: --quick --only guest_replay still runs and emits its matrix bundle; build green; rustfmt clean; no new warnings from the new code.
Wall found (recorded, not silently clamped)
The 10x tier targets 320 hot-world members, but WorldLimits::default().participants is codified at 256 (crates/id-worlds/src/world/mod.rs) and restore refuses more. The generator caps the hot world at 256 and records the wall in the manifest's walls[]. The design doc's limits table gained the codified participants row in the same PR, and the #6281 "no codified per-world caps" gap row is narrowed to entities/programs. Sibling slices #13084–#13088 inherit this: member counts above 256 need a limits change or a design call first.
Activity
developing-today commentedon Nov 23, 2026
CODE-4772
dezren39 commentedon Nov 23, 2026
Claimed by Lane OF (sandbox fix lane, archer). Plan: read the #6304 stress design's tier/generator sections, extend
pkgs/id/benches/world_bench.rsloadgen with the seeded tier generator + run manifest per the issue scope, verify determinism (same seed → same expected state hash; different seed → different), run at --quick smoke size and the 10x tier size on the laptop, PR + merge, close on acceptance.Merge pull request #13163 from developing-today/lane-of-13083
dezren39 commentedon Nov 23, 2026
Done — Lane OF. Landed as PR #13163, merged
9c54940e608c, head SHA-guarded ata05ff6d3cfe.What landed
stress_genprofile inpkgs/id/benches/world_bench.rs(alongsidefull/quick; no new binary): seeded tier generator producing a world directory set +manifest.json(seed, tier, mix, shapes, per-world expected counts, per-world expected final state hash = FNV-1a over the journal bytes + restored sequence). Tiers quick/1x/10x/100x per the design table;ID_BENCH_STRESS_TIER/_SEED/_OUT+ per-axis overrides.WorldCore::restoreduring generation (sequence and replay-length checks) before its hash is recorded.Acceptance, verified on the reference laptop (debug build)
8ef2ffc8a61f687b.--quick --only guest_replaystill runs and emits its matrix bundle; build green; rustfmt clean; no new warnings from the new code.Wall found (recorded, not silently clamped)
The 10x tier targets 320 hot-world members, but
WorldLimits::default().participantsis codified at 256 (crates/id-worlds/src/world/mod.rs) and restore refuses more. The generator caps the hot world at 256 and records the wall in the manifest'swalls[]. The design doc's limits table gained the codified participants row in the same PR, and the #6281 "no codified per-world caps" gap row is narrowed to entities/programs. Sibling slices #13084–#13088 inherit this: member counts above 256 need a limits change or a design call first.Closing as completed.