Title: id: two world-schedule tests fail deterministically (restore rejects journal: participant used before issued) — blocks every NixOS switch · Issue #7618 · developing-today/code · GitHub
Open Graph Title: id: two world-schedule tests fail deterministically (restore rejects journal: participant used before issued) — blocks every NixOS switch · Issue #7618 · developing-today/code
X Title: id: two world-schedule tests fail deterministically (restore rejects journal: participant used before issued) — blocks every NixOS switch · Issue #7618 · developing-today/code
Description: Defect pkgs/id's own test suite fails deterministically at current main: two world-schedule tests panic in WorldCore::restore with journal event at sequence 1 uses participant 1 before it was issued Failing tests (both in src/world/tests...
Open Graph Description: Defect pkgs/id's own test suite fails deterministically at current main: two world-schedule tests panic in WorldCore::restore with journal event at sequence 1 uses participant 1 before it was issue...
X Description: Defect pkgs/id's own test suite fails deterministically at current main: two world-schedule tests panic in WorldCore::restore with journal event at sequence 1 uses participant 1 before it was i...
Opengraph URL: https://github.com/developing-today/code/issues/7618
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"id: two world-schedule tests fail deterministically (restore rejects journal: participant used before issued) — blocks every NixOS switch","articleBody":"## Defect\n\n`pkgs/id`'s own test suite fails deterministically at current main: two world-schedule tests panic in `WorldCore::restore` with\n\n```\njournal event at sequence 1 uses participant 1 before it was issued\n```\n\nFailing tests (both in `src/world/tests.rs`, module `world::tests::schedule_tests`):\n\n- `a_fire_the_program_refuses_stays_pending_in_the_journal` (panics at tests.rs:7140 — the `WorldCore::restore(..., entries).unwrap()`)\n- `replay_reproduces_the_pending_and_fired_sets` (panics at tests.rs:7232, same call)\n\n## Evidence (2026-11-08, laptop `amd`)\n\n- **Package check phase (nix sandbox)**, main as of this morning: `test result: FAILED. 2995 passed; 2 failed` on the first attempt (drv `2rngdkgnyvpz...`), then `3000 passed; 2 failed` on a later main (drv `yvdsgkaq6f...`). The same two tests, both times.\n- **Bare worktree retry of the first failing drv succeeded once** (`ID_EXIT=0`) — under the full 16-thread sandbox run at machine load ~16. That single pass does not reproduce.\n- **Local runs at main `0a27a7f19f`** (dev toolchain, `cargo test --offline --lib world::tests::schedule_tests::`): FAILED in 3/3 runs at `--test-threads=16`, and FAILED in 3/3 runs at `--test-threads=1` (19 passed, 2 failed, finished in 0.01–0.10s). Deterministic in this environment, independent of test parallelism.\n- The tests' journal is synthetic (`Recorded::for_world` seeds `JournalEntry::Created`, then the actor's own appends: capability issuance for participant \"ann\", then `ScheduleSet`). Restore validates participant issuance in journal order and rejects the stream at sequence 1. Nothing time- or load-dependent is visible in the test setup up to the restore call.\n\n## Impact\n\n`pkgs/id` has `doCheck = true`, so the failing check phase blocks the `id` package build, which blocks `unit-id-primary.service` → `system-units` → `etc` → **the whole NixOS toplevel**: `nixos-rebuild switch` on `amd` cannot complete while this stands (observed twice on 2026-11-08, switch attempts for #6765). Every deploy to the laptop is gated on this until fixed — this is fleet-stalling, not a test nit.\n\n## Notes for whoever picks this up\n\n- Recent `pkgs/id` change in the area: PR #7611 (`id(replication): refuse snapshot header-version downgrades`, merged 2026-11-08T09:48:09Z) touched only `src/world/replication.rs`. Whether the stricter issuance validation arrived there or the tests rotted against an older change is the first question — the two green-field data points are: tests assert the error string \"before it was issued\" exists elsewhere in the suite (tests.rs:2152/2170/2183), so the rule is intentional somewhere; these two schedule tests may predate it.\n- The one bare-drv pass vs deterministic local failures discrepancy is worth understanding (sandbox profile `ci-check` vs dev profile is the visible difference).\n- Filed from the #6765 deploy lane, which this blocks; that lane's change (ONNX Runtime pin) is merged and verified independently — do not conflate the two.\n\n## Acceptance criteria\n- Both named tests (a_fire_the_program_refuses_stays_pending_in_the_journal and replay_reproduces_the_pending_and_fired_sets in pkgs/id src/world/tests.rs schedule_tests) pass deterministically across repeated runs at --test-threads=16 and at 1.\n- WorldCore::restore no longer rejects a journal whose early events reference a participant the journal itself issues later in sequence - or the tests' journal construction is corrected, with the verdict (code bug vs test bug) recorded on the issue.\n- The full pkgs/id suite is green (0 failed) in the package check phase.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-08T09:51:50Z","url":"https://github.com/developing-today/code/issues/7618"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ae3c203d-337e-dfd2-155f-9730baca85ec |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A132:3947BC:3C51AB:4F3471:6B076612 |
| html-safe-nonce | 5f5e636fc254a1a32e1283383f23f9f6ed2516a3d03f3234c43d75446d283ce8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTMyOjM5NDdCQzozQzUxQUI6NEYzNDcxOjZCMDc2NjEyIiwidmlzaXRvcl9pZCI6IjkxNDY0NDQyMDUxMDE5MDEzMzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3b1a2319f8b73a360d3752cf1e82598da534ca98ee5893745a64a6e487d0484a |
| hovercard-subject-tag | issue:6269723934 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/7618/issue_layout |
| twitter:image | https://opengraph.githubassets.com/28448e21b722749d173f468ad38a0e2fc503d2fa1eba022c6edc504c44e07ab0/developing-today/code/issues/7618 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/28448e21b722749d173f468ad38a0e2fc503d2fa1eba022c6edc504c44e07ab0/developing-today/code/issues/7618 |
| og:image:alt | Defect pkgs/id's own test suite fails deterministically at current main: two world-schedule tests panic in WorldCore::restore with journal event at sequence 1 uses participant 1 before it was issue... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7a557ecc960a3ae6e299fc66b0bc9132072f8860191648e6749fee5d3ff00d82 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bd845eb7947c1ed8c850f7ab415a51339d162de3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width