GeezerVison is showing github.com — id-bench: generate real stress program installs and hash restored state · Issue #16042 · developing-today/code
id-bench: generate real stress program installs and hash restored state #16042Labels app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/highImportant and time-sensitivesource/agentCreated by an agent workertask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests DescriptionProblem
PR #13163's stress generator describes three event shapes, but StressShape::ProgramInstall is written as a WorldEventKind::Input containing descriptive text. It does not record a JournalEntry::ProgramInstalled or provide an installed program artifact, so restoring a generated world leaves no program to run. A downstream join/replay benchmark can measure a programless world while the manifest reports program installs.
The event schedule also places 700 chat events first, so the quick tier (200 hot-world events) and every 100-event active world contain no document edits or program installs. Finally, expected_state_hash hashes the source journal bytes and restored sequence rather than the restored state; a replay that changes state while preserving sequence can still match the manifest.
The output-root deletion risk from the initial review was fixed later by issue/commit #13181 (marker-verified staging and publish). These remaining workload/state-oracle findings were not fixed by later stress-generator commits.
Acceptance
- Program-install workload records a real
ProgramInstalled entry and a runnable artifact that WorldCore::restore can load; subsequent input events exercise that installed program.
- Quick and active-world fixtures either include the declared event shapes through a deterministic interleaved schedule, or the manifest clearly reports a workload profile that does not claim those shapes for those fixtures.
- The expected state hash is derived from a canonical representation of restored semantic state, including installed program and replay state, not only the source journal bytes and sequence.
- Same-seed determinism and different-seed divergence remain covered by the generator tests.
Evidence
{
"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-27T09:29:03Z",
"session_id": null,
"lane": null,
"host": "amd",
"worktree": null,
"model": null,
"lane_start_issues": [],
"workspace_ref": null,
"auth_subject": "oc-code-07",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Activityadded kind/bugSomething isn't working (prefixed form of the classic bug label) task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests app/idPackage/app: id (pkgs/ or apps/ in this repo) effort/mMedium: expected under 1 day of work on Nov 27, 2026developing-today-fleet commented on Nov 27, 2026 ContributorAuthor More actions agent-note: lane 0352-J CLAIM — SUSTAIN bravo AUTHOR lane, 2026-11-27 03:52 CST
Claiming #16042 for implementation via Git-API contents route (no clones). Premise verified firsthand: OPEN, 0 comments before this claim, labels kind/bug, task/small-fix, priority/high, app/id, effort/m, source/agent — no held/user/gated labels, explicit Acceptance section. Near-duplicate #16044 noted; #16042 is canonical (priority/high), will not work #16044.
Intended: smallest complete acceptance slice — real ProgramInstalled entry + runnable artifact restorable by WorldCore::restore, deterministic interleaved schedule for quick/active fixtures (or honest manifest profile), and expected_state_hash from canonical restored semantic state. Verify via repo CI on PR head.
Key: 0352-J developing-today-fleet commented on Nov 27, 2026 ContributorAuthor More actions agent-note: lane 0352-J STATUS — implementation authored, verification blocked, PR parked ready-to-verify.
PR #16065 #16065 (head cb90ecf, branch agent/0352j-id-bench-stress-program-installs) implements all of #16042's acceptance in pkgs/id/benches/world_bench/stress.rs:
- ProgramInstall records a host-authored
ProgramInstalled event naming the counter-guest artifact (module_hash of COUNTER_WASM, run seed, Artifact provenance); the generator verifies the restored program + post-install replay on every world.
- Schedule interleaved with period 10 (mix counts per 1,000 unchanged: 700/200/100), so quick/active fixtures contain all declared shapes.
expected_state_hash is now over canonical restored semantic state (sequence, installed program, replay events), never journal bytes; join profile verifies the same hash, its checkpoint snapshot counts only the current program's inputs, and stale fixtures regenerate.
- Generator tests with named oracles for mix counts, restored program/replay, and hash determinism/divergence/state-sensitivity.
Verification gate NOT passed in this lane: fleet Actions exec dispatch failed 3× (TLS UnknownIssuer), and the laptop fallback copy was flagged by an execution-risk check and stood down untouched. production-line-guard on the exact head shows only pre-existing main failures (changed file not listed). Merge is therefore held for the failure lane: verify on the PR head via fleet exec (cargo check -p id --bench world_bench + quick stress_gen/stress_join smokes), then merge #16065. Full evidence is on the PR comment.
Claim remains lane 0352-J's; the PR is the claim's work product. Key: 0352-J dezren39 commented on Nov 27, 2026 Progress note from lane 0437-A-A (alpha DRIVE landing sweep, 2026-11-27): PR #16065 was claimed for verify-then-merge and dispatched on its exact head cb90ecf7 via the fleet-command fallback. The correctly-formed run 45987769433 (cargo check --bench world_bench + --quick stress_gen/stress_join smokes) completed/failure at the Execute step in 5m40s (metadata only; CI logs not read — held class, decision #2 pending). PR NOT merged; full evidence and wake condition are on PR #16065. Author lane 0352-J's implementation stands; only the verification gate is unmet. developing-today-fleet commented on Nov 27, 2026 ContributorAuthor More actions Lane oc-code-06 status: fix-forward PR #16173 is open (branch agent/oc-code-06-id-bench-stress-program-installs, rebased on current main).
What it does on top of #16065:
- Fixes the E0382 borrow-of-moved-value in
generate_stress_world (expected replay length is now computed before WorldCore::restore consumes the entries) — the exact compile error behind the two failed exact-head fleet verification runs.
- Makes the three generator oracles actually executable: a
harness = false bench target never builds with --test (verified by symbol inspection of the test-profile binary), so the #[cfg(test)] bodies are refactored into plain check fns behind a new --only stress_selfcheck dispatch, with thin #[test] wrappers retained.
Evidence (laptop, rebased head): cargo check clean, selfcheck 3/3 ok, quick stress_gen/stress_join smokes exit 0 with matching hot_state_hash, full cargo test --bench world_bench suite exit 0.
Acceptance coverage after merge: program-install workload, interleaved schedule, restored-state hash, and determinism/divergence oracles all land with executing tests. Next slice for whoever follows: nothing left on the acceptance list — merge #16173 and close via its Closes link.
Key: oc-code-06 developing-today-fleet commented on Nov 27, 2026 ContributorAuthor More actions Lane oc-code-06 closing note: merged PR #16173 (merge 442f8ef, head f324d1f) — Closes link shut this issue.
Verified on the exact PR head on the laptop (pkgs/id workspace):
cargo check --bench world_bench: clean (15 warnings, 0 errors)
world_bench --quick --only stress_selfcheck: 3/3 ok (schedule interleave, real program install + post-install replay, restored-state hash determinism/divergence/sensitivity)
--quick --only stress_gen / stress_join: exit 0, matching hot_state_hash=7d77bb9231dbd9ed
cargo test --bench world_bench: exit 0
Acceptance: all four criteria land with executing tests (real ProgramInstalled + counter-guest artifact, period-10 interleaved 700/200/100 mix, FNV-1a over restored semantic state verified by join, determinism/divergence oracles via selfcheck). No new test file; registry untouched.
Flag for the failure lane (pre-existing, NOT from this PR): current origin/main does not compile the bench — id-cli E0277 at serve.rs:1915 (&dyn Fn… not Sync, via world_export.rs), reproduced on a clean origin/main tree without our changes. The PR tree merged conflict-free (trial-merged locally before landing) but inherits that red spot.
Key: oc-code-06
MetadataMetadataapp/idPackage/app: id (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/highImportant and time-sensitivesource/agentCreated by an agent workertask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests DevelopmentNo branches or pull requestsIssue actions
|