Skip to content

id(bench): stress workloads install real programs, interleave shapes, hash restored state - #16118

Closed
dezren39 wants to merge 1 commit into
mainfrom
xaltha/16044-stress-workloads
Closed

dezren39 wants to merge 1 commit into
mainfrom
xaltha/16044-stress-workloads

Conversation

@dezren39

@dezren39 dezren39 commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Closes #16044

What changed

The stress_gen workloads in pkgs/id/benches/world_bench/stress.rs now match their own claims:

  • Real program installs. A ProgramInstall shape is a real host-authored ProgramInstalled journal event (participant 0), not a descriptive Input. The artifact is a deterministic pseudo-module of exactly the stated size (corpus block cycled to total_bytes), hashed with the service's own world_session::module_hash, with the install seed drawn from the same stream that sized it and ModuleProvenance::Artifact. WorldCore::restore loads it as the active program, and the doc-edit inputs after it are its replay. The generator now verifies restore's install semantics against the journal itself: replay length = inputs after the last install, and the restored program is the last install's module/seed.
  • Interleaved schedule. The mix is unchanged per 1,000 events (700 chat / 200 doc edit / 100 install) but interleaves at a 10-event grain (7/2/1), so quick-tier active worlds (20 events) and every 100-event active world contain every declared shape instead of 700 chat events first.
  • Semantic state hash. expected_state_hash is now FNV-1a over the canonical restored semantic state — sequence, installed program (module hash, seed, snapshot), replay events in order, presence — not journal bytes + sequence. A replay that changes state while preserving sequence changes the hash. The join profile verifies against the same stress_state_hash, its checkpoint snapshot counts inputs since the last install, and JoinProgram resets on install, mirroring restore.
  • Generator version 1 → 2 (tests/common/loadgen.rs): a mix-table and metric-definition change is a version event under the baseline versioning rule stated there; the header-line test updated to match.

Verification (remote only)

fleet-command run 45988835944 (developing-today/fleet fleet-command.yml fallback, exact head 22be22a): cargo test --test stress_gen_recovery plus cargo bench --bench world_bench -- --quick --only stress_gen|stress_join|stress_mem under the pkgs/id nix dev shell. Result posted as a PR comment when the run completes; merge follows a green run.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-27T11:14:48Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "bbfc8aa3a3b4f3e3d399b7e76beb6962c0daa5b9"
    },
    "auth_subject": "xaltha",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

… hash restored state (#16044)

- ProgramInstall events are now real ProgramInstalled journal events
  (host-authored, participant 0): a deterministic pseudo-module
  artifact of the stated size, hashed with the service's own
  module_hash, with an install seed from the same stream. Restore
  loads it as the active program; following doc-edit inputs are its
  replay. The generator verifies restore's install semantics against
  the journal (replay = inputs after the last install; restored
  program = last install) instead of counting descriptive inputs.
- The mix interleaves at a 10-event grain (7 chat / 2 doc edit /
  1 install), preserving the per-1,000 counts while giving every
  quick/active fixture all declared shapes.
- expected_state_hash now derives from the canonical restored
  semantic state (sequence, installed program, replay events in
  order, presence) instead of journal bytes + sequence; the join
  profile verifies and models the same semantics (snapshot = inputs
  since last install; JoinProgram resets on install).
- GENERATOR_VERSION 1 -> 2: mix-table and metric-definition change
  is a version event under the baseline versioning rule.
@coderabbitai

coderabbitai Bot commented Nov 27, 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 1 minute.

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: 4379fb24-2634-4f0c-b477-fd18c67b6704
Commits

Reviewing files that changed from the base of the PR and between 783c4bd and 22be22a.

Files selected for processing: 3

  • pkgs/id/benches/world_bench.rs
  • pkgs/id/benches/world_bench/stress.rs
  • pkgs/id/tests/common/loadgen.rs
  • 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

@dezren39

Copy link
Copy Markdown
Member Author

🤖 Lane 0607-C-F (Xaltha, charlie ADVANCE shepherd, 2026-11-27) — verify-then-merge claim.

Author lane 0507-C-F's run has ended with this PR OPEN / MERGEABLE / CLEAN at head 22be22a12015cb8fc1236db1e35cf1dcb261c9b5 and no verification result posted. The author's dispatched verification run 45988835944 (developing-today/fleet, fleet-command) completed failure at the 'Execute target command' step (metadata only; no CI logs read). This lane re-dispatches the author's stated verification command once on the exact head; merge (merge commit) follows only on a SUCCESS run at this head + still MERGEABLE/CLEAN. A second Execute-step failure parks the PR — diagnosis would need CI logs (held class, decision #2).

@dezren39

Copy link
Copy Markdown
Member Author

🤖 Lane 0607-C-F shepherd — verification conclusion (metadata only, no CI logs read): NOT merged; parked unverified.

  • Re-dispatch run 45997115632 (developing-today/fleet, fleet-command.yml fallback, ref xaltha/16044-stress-workloads, author's stated command: cargo test --test stress_gen_recovery + cargo bench --bench world_bench -- --quick --only stress_gen|stress_join|stress_mem under the pkgs/id nix dev shell) completed failure — Linux job failed at the 'Execute target command' step, all other steps success/skipped.
  • This is the second Execute-step failure at the unchanged exact head 22be22a12015cb8fc1236db1e35cf1dcb261c9b5 (author's run 45988835944 failed the same way). PR remains OPEN / MERGEABLE / CLEAN.
  • Whether the failure is a test/bench failure or a runner/Execute-step defect cannot be distinguished without CI logs, which are a held class pending Drew's decision Bump checkmarx/ast-github-action from 2.0.11 to 2.0.18 #2. No further re-dispatch by this lane.
  • Wake: decision Bump checkmarx/ast-github-action from 2.0.11 to 2.0.18 #2 go-ahead to read run 45997115632 / 45988835944 logs, OR a SUCCESS fleet-command run recorded at this exact head → merge (merge commit).

@dezren39

Copy link
Copy Markdown
Member Author

🤖 Lane 0637-A-A (Xaltha, alpha DRIVE landing sweep, 2026-11-27) — sweep recheck: NOT merged.

Metadata only via pooled fleet gh; no CI logs read. Exact state at 2026-11-27T12:40Z:

Merge gate fails on verification: NOT eligible. Wake condition unchanged: decision #2 go-ahead to read the runs' Execute-step logs (CI-log class), OR a SUCCESS fleet-command run recorded at this exact head → merge (merge commit).

@dezren39

Copy link
Copy Markdown
Member Author

🤖 Lane 0652-B-B (Xaltha, bravo SUSTAIN shepherd set 1, 2026-11-27) — recheck: NOT merged.

Metadata only via pooled fleet gh; no CI logs read (held class, decision #2 pending). Exact state rechecked firsthand at ~12:55Z:

@dezren39

Copy link
Copy Markdown
Member Author

🤖 Lane 0752-B-C (Xaltha, bravo SUSTAIN shepherd set 2, 2026-11-27) — recheck: NOT merged.

Metadata only via pooled fleet gh; no CI logs read (held class, decision #2 pending). Rechecked firsthand at ~13:55Z:

@dezren39

Copy link
Copy Markdown
Member Author

🤖 Lane 0852-B-B (Xaltha, bravo SUSTAIN shepherd set 1, 2026-11-27) — recheck: NOT merged; conclusion unchanged from lane 0752-B-C.

Metadata only via pooled fleet gh; no CI logs read (held class, decision #2 pending). Rechecked firsthand at ~14:57Z, covering the window since lane 0752-B-C's 13:56Z recheck:

@dezren39

Copy link
Copy Markdown
Member Author

🤖 Lane 1052-B-B (Xaltha, bravo SUSTAIN shepherd set 1, 2026-11-27) — recheck: NOT merged; state changed to CONFLICTING.

Metadata only via pooled fleet gh; no CI logs read (held class, decision #2 pending). Rechecked firsthand ~16:55Z:

  • PR id(bench): stress workloads install real programs, interleave shapes, hash restored state #16118: OPEN, non-draft, head unchanged at 22be22a, but REST now reports mergeable=false / mergeable_state=dirty (CONFLICTING) — it was MERGEABLE/CLEAN at prior rechecks. Main has moved under it; it needs a rebase/conflict resolution by its author lane before any merge gate can be re-evaluated.
  • No live claim found in latest comments; no new exact-head SUCCESS — exact-head runs on record remain completed failure (author run 45988835944, re-dispatch 45997115632). No cancelled/never-ran run to re-dispatch.
  • Disposition: parked. Wake: head rebased to a new SHA + fresh exact-head verification SUCCESS + MERGEABLE/CLEAN + claim-free → merge (merge commit). Failure attribution remains decision Bump checkmarx/ast-github-action from 2.0.11 to 2.0.18 #2.

@developing-today-fleet

Copy link
Copy Markdown
Contributor

🤖 Lane 1922-F (delta PRESS park/bench extra, 2026-11-27 19:22 CST) — re-check: NOT merged; NEW evidence — premise superseded by mainline, on top of the standing verification park.

  • Two agreeing reads (gh pr view + gh api pulls): PR OPEN, non-draft, head unchanged 22be22a12015cb8fc1236db1e35cf1dcb261c9b5, mergeability CONFLICTING / DIRTY (unchanged from lane 1052-B-B's 16:56Z recheck). Claim-scan: ALL comments (8) + ALL reviews (0) — no live claim; prior shepherd claims were released.
  • Standing verification blocker unchanged: exact-head fleet-command runs 45988835944 and 45997115632 both re-read completed/failure; check-runs on the head = CodeRabbit neutral + Proof skipped only; code Actions runs for head_sha = 0. No SUCCESS run attributable to this head. Failure attribution remains gated on decision Bump checkmarx/ast-github-action from 2.0.11 to 2.0.18 #2 (CI-log readback).
  • NEW: the linked issue id: make stress-generator workloads match installed-program and state claims #16044 is now CLOSED as completed (2026-11-27T16:52:25Z). Its slice update (comment 7223687786) records that mainline merge 087b3367322 (fix(id-bench): real stress program installs, interleaved schedule, restored-state hash (#16042)) satisfies all three of id: make stress-generator workloads match installed-program and state claims #16044's criteria in the same file (pkgs/id/benches/world_bench/stress.rs) — real ProgramInstalled installs, period-10 interleave, FNV-1a restored-state hash — i.e. the same three changes this PR carries. This PR's premise is therefore superseded by mainline, which also explains the DIRTY conflict.

Wake / disposition: author confirms supersession against 087b3367322 and closes this PR as duplicate, OR rebases onto current main showing a remaining delta + records an exact-head SUCCESS run + CLEAN/MERGEABLE → merge under standing authority. Merging as-is is barred on both verification and supersession grounds.

@developing-today-fleet

Copy link
Copy Markdown
Contributor

🤖 Lane 2022-E (delta PRESS LANDINGS, 2026-11-28 20:22 CST) — verify-then-merge gate: NOT merged, parked.

Fresh gate re-read by this lane via gh api:

  • PR OPEN, non-draft, DIRTY per parent sweep, head 22be22a1 (exact head checked).
  • Verification: repos/developing-today/code/actions/runs?head_sha=<exact head> returned 0 completed SUCCESS runs on this exact head — the standing merge gate (completed SUCCESS verification run on the exact head, re-readable, plus no CHANGES_REQUESTED) does not pass.
  • No verification run was re-dispatched by this lane (dispatch outcomes from prior lanes are not blindly repeated).

Wake / unblock: a completed SUCCESS verification run on the exact current head (post it on this PR), PR non-draft and CLEAN, and no CHANGES_REQUESTED — then merge under standing authority.

@developing-today-fleet

Copy link
Copy Markdown
Contributor

Closed as superseded by rebase-drive lane DRV-B (2026-11-29) — evidence, not a gate verdict:

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: make stress-generator workloads match installed-program and state claims

1 participant