Skip to content

id: replay_game_lineage breaks every no-sandbox build of the id lib (E0433) #9222

Closed

Description

@dezren39

On current main, building the id lib without the sandbox feature fails:

error[E0433]: cannot find `sandbox` in the crate root
    --> pkgs/id/src/boards.rs:1528:30
1528 |         let sandbox = crate::sandbox::Sandbox::compile(
note: found an item that was configured out
    --> pkgs/id/src/lib.rs:287:20
286 | #[cfg(feature = "sandbox")]
287 | pub use id_worlds::sandbox;

BoardGraph::replay_game_lineage (from the #6161 save-point work, refactored in #8902) uses crate::sandbox unconditionally, but boards is an unconditional module and crate::sandbox only exists under the sandbox feature. The default build (default = ["sandbox", "world"]) never sees this; the consumer that does is id-native-shell (F13.6, #788), which builds id with default-features = false, features = ["world"] — so cargo test -p id-native-shell was broken on main even though no native-shell code changed.

Fix (rides PR #7197, the PR whose named tests this unblocks): gate the one function with #[cfg(feature = "sandbox")]. Its only callers are boards tests, which run under the default sandbox-on build. Commit 74edbfb on PR #7197.

If PR #7197 stalls, cherry-pick that commit independently — the regression is on main, not in the PR. Found by lane code-d, task 9341, 2026-11-12.

Activity

  1. added
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Nov 13, 2026
  2. developing-today commented on Nov 13, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    Current-main triage (2026-11-13)

    Confirmed the reported no-sandbox compile failure is still present on freshly fetched origin/main at a0f3a529d3e167df0f614a598dc0c9f7aa532b0c: pkgs/id/src/boards.rs:1528-1531 references crate::sandbox without a feature gate, while pkgs/id/src/lib.rs:286-287 only exports that module under feature = "sandbox".

    The exact scoped fix is already present as commit 74edbfbca2 on OPEN PR #7197 (feat(id): add native shell session state). That PR is authored by Drew and remains in progress with checks pending, so I left it untouched and did not create an overlapping PR. This issue remains open/blocked until that PR lands or its owner chooses another disposition; current main is still affected. No separate compile reproduction was run in this pass.

  4. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    status/blockedQueue or user escalation state
    source/sweepFiled or worked by an issue-sweep job
    triage/real-and-currentTriage verdict: issue is real and current; returned to queue for real work
    priority/highImportant and time-sensitive
    effort/xsTrivial: expected under 30 minutes of work
    on Nov 13, 2026
  5. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    Blocked-claim validation — UNBLOCKED (dropped-thread catcher, 2026-11-13)

    Checked live this run:

    • Current-main triage (2026-11-13T04:12Z, comment above) confirms the E0433 failure is still present on freshly fetched origin/main at a0f3a52: pkgs/id/src/boards.rs:1528 uses crate::sandbox ungated while pkgs/id/src/lib.rs:286-287 exports it only under feature = "sandbox".
    • The scoped fix commit 74edbfbca2 ("gate BoardGraph::replay_game_lineage behind the sandbox feature") exists — verified in PR feat(id): add native shell session state #7197's commit list this run.
    • PR feat(id): add native shell session state #7197 itself is OPEN, not draft, a large in-progress feature PR (native shell session state, head queue/9341-788-contract-parity-shell, last updated 2026-11-13T03:37Z). It is not a Drew gate: it is authored by the fleet identity and is mergeable by the fleet under standing merge authority when it is ready.

    The "blocked until #7197 lands" claim is therefore not a real blocker: this issue's own body prescribes the independent route — "If PR #7197 stalls, cherry-pick that commit independently — the regression is on main, not in the PR." The regression is live on main now and the fix is one commit, effort/xs.

    Disposition: status/blocked removed, queue/queued added so the feeder enqueues a small-fix task: cherry-pick 74edbfbca2 onto current main as its own PR (verify cargo test -p id-native-shell / a no-sandbox id build compiles), merge it, and close this issue — do not wait on PR #7197. If the cherry-pick conflicts with #7197's later rebase, that is an ordinary rebase fix-forward.

  6. added and removed
    status/blockedQueue or user escalation state
    on Nov 13, 2026
  7. dezren39 commented on Nov 15, 2026

    @dezren39
    MemberAuthor

    Issue sweep verification (2026-11-15)

    Verified fixed on current main at 87e0133554 (HEAD).

    Reproduction check: cargo check --manifest-path pkgs/id/Cargo.toml -p id --no-default-features --features world completes successfully (Finished dev profile...), so the reported E0433 no-sandbox build failure no longer reproduces.

    Source evidence: pkgs/id/src/boards.rs:1562-1563 now gates BoardGraph::replay_game_lineage with #[cfg(feature = "sandbox")], matching the fix from commit 74edbfbca2 ("fix(id): gate BoardGraph::replay_game_lineage behind the sandbox feature"), which landed via merged PR #7197.

    Closing as fixed on main.

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

Metadata

Metadata

Assignees

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/xsTrivial: expected under 30 minutes of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/highImportant and time-sensitivequeue/queuedHas a queued queue tasksource/sweepFiled or worked by an issue-sweep jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted teststriage/real-and-currentTriage verdict: issue is real and current; returned to queue for real work

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions