Skip to content

id(phase-14): stress generator — seeded tier worlds for the v1 stress program #13083

Closed

Description

@dezren39

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).

Activity

  1. added
    kind/featureNew feature or capability request
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    design/id-phase-14Design: id-phase-14 - all issues of this effort carry it
    epic/id-programReprioritization program epic (2026-11-12)
    on Nov 23, 2026
  2. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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.

  4. added a commit that references this issue on Nov 23, 2026
  5. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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.

    Closing as completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/idPackage/app: id (pkgs/ or apps/ in this repo)design/id-phase-14Design: id-phase-14 - all issues of this effort carry itepic/id-programReprioritization program epic (2026-11-12)kind/featureNew feature or capability requeststatus:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions