Skip to content

fix(id): web facade (feature web) does not compile against id-worlds since the crate split #9151

Closed

Description

@dezren39

Problem

pkgs/id's web facade (src/web/, feature web) does not compile at main ec536c5 — it still calls into id-worlds items that the #4408 crate split left pub(crate) or private:

  • cargo check -p id --lib --features web (from pkgs/id/) fails with 5 errors, including:
    • WorldHandle::host_view is pub(crate) in crates/id-worlds/src/world/handle.rs (~line 1185) but is called from src/web/world_ws.rs host_view_handler.
    • crate::world_session::MAX_RECORDS_PAGE_BYTES is a pub(crate) alias in crates/id-worlds/src/world_session/mod.rs but is used by the host-view paging loop in src/web/world_ws.rs.
    • WorldService.world field is private (a world() method exists) where src/web/world_ws.rs accesses the field.
    • crate::world_session::encode_hex is pub(crate) in id-worlds but imported by world_ws tests.
  • The lib test target additionally fails (9 errors): crate::world_hub::testing::MemoryOpener is #[cfg(test)] pub(crate) inside id-worlds, so it can never be visible to the id package's tests; crate::fileops::{claim_archive_name, snapshot_provenance_tags} unresolved from src/web/routes.rs; directory_view::level_name private from src/web/explore.rs.
  • --all-features check fails too (same class), while default features (sandbox, world) check clean — which is why this survives: no CI job builds the web feature (id-check.yml runs default / no-default / no-world configs only).

Impact

Any change to src/web/world_ws.rs (e.g. #9104) cannot be compile- or test-verified locally in the web configuration until this is fixed; the host-view / world bridge surface is effectively unbuildable from the facade crate.

Suggested fix

Decide the intended visibility contract between the facade and id-worlds (promote the needed items to pub with docs, or move the web bridge into id-worlds), restore cargo check -p id --lib --features web and the lib test target under that feature set, and add a CI job that builds the web feature so it cannot silently rot again.

Found by lane code-c during task 15343 (#9104), 2026-11-13. All errors reproduce on clean main with the task's diff stashed.

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    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 15, 2026

    @dezren39
    MemberAuthor

    Issue sweep verification (2026-11-15)

    Checked against current main at 87e0133554.

    Build check: cargo check --manifest-path pkgs/id/Cargo.toml -p id --features web completes successfully (dev profile, warnings only; no compile errors).

    The specific visibility issue called out in the report appears addressed on current main (e.g. pkgs/id/crates/id-worlds/src/world/handle.rs now exposes pub async fn host_view(...)), and the web facade feature compiles again.

    Closing as fixed on current main. If there are remaining web/test-target gaps not covered by -p id --features web, please reopen with the current failing command/output.

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)kind/bugSomething isn't working (prefixed form of the classic bug label)status:done

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions