Skip to content

id: implement loadgen core — step 1 of the #5891 workload-generator record #8307

Closed

Description

@dezren39

Implementation step 1 from the shared load & workload generator decision record (#5891, landed via PR #7662): doc/2026-11-08T11-27-00Z_design_shared_workload_generator/2026-11-08T11-27-00Z_design_shared_workload_generator.md §"Implementation order".

Scope: the generator core in pkgs/id/tests/common/loadgen.rs — actor scheduler, mix tables, seeded corpus, and the InProcess target surface (the record's Target trait over InProcess / LocalSocket / Iroh; LocalSocket and Iroh are steps 3 and 5, not this packet). Re-express the existing world_bench workloads (pkgs/id/benches/world_bench.rs) on the core without changing its output lines — the F11.8 baselines must stay comparable (same numbers within noise on the reference machine class, per #5894).

Acceptance:

  • loadgen.rs core exists with the record's scheduler/mix/corpus shape and the InProcess surface; honest profiles per the record.
  • world_bench runs on the core and emits byte-identical output line formats (bench <name> unit=<unit> median=<value> min=<value> reps=<n>); baseline comparison per BASELINES.md shows no format drift.
  • Tests cover the seeded-corpus determinism invariant (same seed → same workload sequence).

Parent programme: #5685 · design: #5891 · sibling record: #5894 · consumer waiting on this machinery: the per-interface benchmark matrix, #5896.

Activity

  1. developing-today commented on Nov 10, 2026

    @developing-today
    Contributor
  2. added this to the ID platform program milestone on Nov 12, 2026
  3. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Released to the queue under Drew's 2026-11-13 unblock-all order (main chat, 23:53 CT). Task(s) 15287 moved from blocked/parked to queued in the fleet unblock-all pass (worker main-unblock-all-2026-11-13). Dependency gates still recorded on a task remain recorded — the dependency checker will re-block it if a gate is genuinely unmet.

  4. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Agent note — task 15287 blocker triage complete (lane any-b, STEER 2026-11-13)

  5. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Follow-on status — task 15287 triage of #8307

    Correction to the triage note above: the implementation packet is written and validated, but its enqueue is temporarily delayed — the queue broker tunnel began failing (os error 11, resource temporarily unavailable) immediately after task 15287 completed, and two enqueue attempts returned no usable response. The validated packet is preserved at hidden_files/packet-8307-fix-owed.json in the keep-the-four-repos-healthy goal workspace; the next lane (or this lane, if the tunnel recovers this shift) enqueues it on the canonical fix dedupe key repo-health:v1:fix:developing-today/code:issue:8307, which makes the enqueue idempotent. The follow-on task id will be posted here once the enqueue lands.

  6. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Follow-on named — task 15287 triage of #8307

    Resolution of the enqueue status note above: the first enqueue attempt DID land server-side before the tunnel failed — the packet is queued as task 16856 ("Fix #8307: implement loadgen core (step 1 of the #5891 workload-generator record)", created 2026-11-14T12:23:53Z, status queued; confirmed by dedupe hit when re-enqueued after the broker recovered). No duplicate exists. Issue #8307 keeps queue/queued for task 16856.

  7. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked — fully specified implementation, not started in this lane's remaining window

  8. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Implementation picked up — 2026-11-14 (lane code-c, queue task 16856)

    Session-length lane work replacing the earlier too-short claim: the loadgen core is being implemented in worktree queue-16856-8307-loadgen-core (branch queue/16856-8307-loadgen-core, off main 3b4cb17751).

    Scope per the record's step 1 and the packet:

    • pkgs/id/tests/common/loadgen.rs (new, std-only): versioned core — mix tables (counts per 1,000 ops, validated), the seeded corpus and actor derivation (a fully-specified in-file PRNG so the stream is identical on every machine), profiles (honest closed-loop / adversarial open-loop parameterizations), the RunSpec run identity with the §4-style header line, the Target surface trait (§2), and the closed-loop scheduler. Warm-up ops are executed and discarded; an unsupported operation aborts the run rather than downgrading; open-loop pacing is refused by this step's scheduler with the refusal named (the rate executor is the record's later step).
    • Acceptance oracle wired as tests: same seed → identical corpus sequence and identical driven stream (unit tests in the module plus pkgs/id/tests/loadgen_determinism.rs through the public mod common; path). 16/16 pass.
    • world_bench re-expression: the four synchronous workloads (journal_append_fsync, checkpoint_compaction, guest_replay, session_fanout) now run as loadgen workloads through the scheduler against InProcess surfaces, with their sample math and output lines unchanged. The two async, wall-clock-paced workloads (many_worlds, fuel_spin_isolation) keep their dedicated drivers in this step — their pacing is the open-loop/rate executor work of the record's later steps; that boundary is named in the bench source.
    • The §4 measurement header/summary writer is step 2 and is not in this packet; the core provides the header fields and per-family stats it will print.

    Next: bench --quick output verification against the recorded baselines, then commit / PR / merge.

  9. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 14, 2026
  10. added a commit that references this issue on Nov 14, 2026
  11. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Done — loadgen core landed, 2026-11-14 (lane code-c, queue task 16856)

    PR #10067 merged 2026-11-14T14:53:36Z (merge commit 48c72ef10be4e0e7ff23dec01c4ee3d35fa23566, head 74c83b6560). Step 1 of the #5891 record is implemented:

    • pkgs/id/tests/common/loadgen.rs — the std-only core: mix tables (counts per 1,000 ops, validated), the seeded corpus + actor derivation (in-file SplitMix64, identical on every machine), honest/adversarial profiles, the Target surface trait (§2), the closed-loop scheduler (warm-up discarded, per-family error counts, unsupported aborts rather than downgrades, open-loop refused by name in this step), and the fixed §4 header fields via RunSpec::header_line(). GENERATOR_VERSION = 1.
    • pkgs/id/tests/loadgen_determinism.rs + in-module tests — the acceptance invariant as executable tests: same seed → identical corpus sequence and identical driven workload sequence.
    • world_bench — the four synchronous workloads re-expressed on the core with output lines and sample math unchanged; the two async wall-clock-paced workloads keep their dedicated drivers (named boundary, below).

    Verification on the PR head:

    • cargo test --test loadgen_determinism — 16 passed, 0 failed (9 core unit tests, 2 acceptance tests, 5 pre-existing common tests).
    • cargo bench --bench world_bench -- --quick — all six lines in their established formats: journal_append_fsync us_per_append, checkpoint_compaction us_per_compact, guest_replay us_per_event (guest still asserts it saw every event), session_fanout us_per_delivery, many_worlds, fuel_spin_isolation. Values are this laptop's, not baseline updates (baselines move only under the id: design: the standard server baseline (from #5685) #5894 protocol).
    • cargo clippy --test loadgen_determinism --bench world_bench — no warnings in the touched files; rustfmt clean.

    Named remainder (not part of this step, recorded so it is not lost): many_worlds and fuel_spin_isolation re-expression waits on the open-loop / rate-based executor (record implementation step 4), and the §4 header/summary writer is step 2 — both are their own follow-on packets under #5891. This unblocks the #5896 benchmark-matrix work (queue task 12924) on the core.

    Closing as done.

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions