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: implement loadgen core — step 1 of the #5891 workload-generator record #8307
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.
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.
Route: task 15287 completes as triaged. The implementation packet (the issue's own scope and acceptance, record-governed) is enqueued as this task's revive successor on the canonical fix dedupe key the moment this row is terminal; the new task's id is posted in the next note. Dependent task 12924 (id: design: per-interface benchmark matrix (from #5685) #5896): your blocker now has a live owner.
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.
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.
Why park: this lane claimed the task with ~50 minutes left in its shift — enough to start the Rust implementation but not to build, test, shepherd a PR, and land it without rushing the review discipline. A clean park with the pointers beats a half-built branch. Parked 1800s; the next lane should start from the preserved packet and the issue's acceptance bullets, and budget for a full pkgs/id test build.
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.
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.
Activity
developing-today commentedon Nov 10, 2026
CODE-2477
dezren39 commentedon Nov 14, 2026
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.dezren39 commentedon Nov 14, 2026
Agent note — task 15287 blocker triage complete (lane any-b, STEER 2026-11-13)
pkgs/id/tests/common/loadgen.rscore +world_benchre-expression) and three explicit acceptance bullets. Nothing is gated on Drew or on another issue — the record it implements is merged; the issue simply never had a live task of its own.triaged. The implementation packet (the issue's own scope and acceptance, record-governed) is enqueued as this task's revive successor on the canonical fix dedupe key the moment this row is terminal; the new task's id is posted in the next note. Dependent task 12924 (id: design: per-interface benchmark matrix (from #5685) #5896): your blocker now has a live owner.dezren39 commentedon Nov 14, 2026
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.jsonin 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 keyrepo-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.dezren39 commentedon Nov 14, 2026
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/queuedfor task 16856.dezren39 commentedon Nov 14, 2026
🤖 Agent note · parked — fully specified implementation, not started in this lane's remaining window
pkgs/id/tests/common/loadgen.rscore plus theworld_benchre-expression, with three explicit acceptance bullets. Task 15287's validated packet is preserved in the goal workspace (hidden_files/packet...per its follow-on note). Dependent task 12924 (id: design: per-interface benchmark matrix (from #5685) #5896) is blocked on this landing.dezren39 commentedon Nov 14, 2026
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(branchqueue/16856-8307-loadgen-core, off main3b4cb17751).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), theRunSpecrun identity with the §4-style header line, theTargetsurface 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).pkgs/id/tests/loadgen_determinism.rsthrough the publicmod common;path). 16/16 pass.world_benchre-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.Next: bench
--quickoutput verification against the recorded baselines, then commit / PR / merge.Merge pull request #10067 from developing-today/queue/16856-8307-load…
dezren39 commentedon Nov 14, 2026
Done — loadgen core landed, 2026-11-14 (lane code-c, queue task 16856)
PR #10067 merged 2026-11-14T14:53:36Z (merge commit
48c72ef10be4e0e7ff23dec01c4ee3d35fa23566, head74c83b6560). 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, theTargetsurface 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 viaRunSpec::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;rustfmtclean.Named remainder (not part of this step, recorded so it is not lost):
many_worldsandfuel_spin_isolationre-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.
id: add the fleet-laptop matrix baseline (#5896)
id: implement the per-interface benchmark matrix (#5896) (#10507)