Skip to content

pkgs/id: web lib does not compile on main — crate-split visibility left 5 unresolved/private sites in src/web #8795

Closed

Description

@dezren39

Evidence

On pristine main e6889a387e (verified in a clean detached worktree, no local changes), the id lib does not compile with the web feature:

$ cd pkgs/id && cargo check -p id --lib --all-features
error[E0432]: unresolved imports `crate::fileops::claim_archive_name`, `crate::fileops::snapshot_provenance_tags`
  --> src/web/routes.rs:27
error[E0603]: function `level_name` is private
  --> src/web/explore.rs:18
error[E0603]: constant `MAX_RECORDS_PAGE_BYTES` is private
  --> src/web/world_ws.rs:168
error[E0624]: method `host_view` is private
  --> src/web/world_ws.rs:146 (defined pub(crate) in crates/id-worlds/src/world/handle.rs:1128)
error[E0616]: field `world` of struct `WorldService` is private
  --> src/web/world_ws.rs:240
error: could not compile `id` (lib) due to 5 previous errors

The lib-test target adds 4 more errors of the same class (test-only uses of world_hub::testing, world_session::encode_hex, plus repeats of the above), 9 in total. All sites are in src/web/* modules consuming items that the crate split (#3447) left private or moved. This is the same failure class as the closed #4340 / #8666 / #8355, with new sites.

Impact

  • cargo build --features web (the documented build.sh web route) cannot build the lib.
  • No pkgs/id web unit tests can run at all — including the web::security Host/Origin guard tests — because the lib target they live in does not compile. Found while working issue id(web): reject malformed bracketed IPv6 Host authorities #8776 (task 15033), whose fix had to be verified with an out-of-tree probe harness that includes the real security.rs.

Acceptance criteria

  • cargo check -p id --lib --all-features compiles clean on main.
  • cargo test -p id --lib --all-features web:: compiles and the web tests run.
  • Each site fixed at the right layer (make the item public where the web layer is a legitimate consumer, or route the web code through an existing public accessor) — not by weakening the split's visibility rules wholesale.

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    source/queue-workerFiled or worked by the queue/worker pilot
    priority/highImportant and time-sensitive
    effort/sSmall: expected under 2 hours of work
    on Nov 11, 2026
  2. developing-today commented on Nov 11, 2026

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

    @dezren39
    MemberAuthor

    Builder’s Advocate live-fleet evidence (2026-11-12): task 15094 for #8880 opened security regression PR #8883. Its guarded-router test command, cargo test --features web --bin id web::security::tests, could not run on current main because the web feature fails to compile first: unresolved imports in src/web/routes.rs, private level_name in explore.rs, and private API/field accesses in world_ws.rs (five existing errors, per the #8880 task note). The branch’s local cargo check showed the same five pre-existing errors and none in security.rs; extracted-function probes passed, but the in-tree regression test remains unverified until this issue is fixed. No duplicate compile issue filed.

  4. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: already_done
    task: 18727 (queue repo-health-code-pilot, worker repo-worker-code, lane code-d)

    Triage verdict for issue #8795: ALREADY DONE — issue closed by dezren39 on 2026-11-17T03:15:23Z, and the acceptance oracle verified green fresh this shift.

    • Fresh verification at origin/main (laptop checkout, pkgs/id): cargo check -p id --lib --all-features exits 0 (warnings only, 211) — the 5 visibility errors filed against e6889a3 (unresolved fileops imports in web/routes.rs, private level_name, MAX_RECORDS_PAGE_BYTES, host_view, WorldService.world) no longer occur.
    • Issue state: CLOSED with status/done label; the timeline shows the close by dezren39 with no commit attached, so this note records the independent verification instead: the lib compiles with all features on current main.
    • Completing task 18727 as already_done; no follow-on.
  5. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: already_done
    task: 20209 (queue repo-health-code-pilot, worker repo-worker-code, lane code-h)

    Re-triaged fresh: issue CLOSED (COMPLETED) at 2026-11-17T03:15:23Z. Prior triage task 18727 verified cargo check -p id --lib --all-features exits 0 on main; this claim found the same closed state and adds no new work. Completing as already_done, no follow-on.

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

Metadata

Metadata

Assignees

Labels

effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/highImportant and time-sensitivesource/queue-workerFiled or worked by the queue/worker pilotstatus:done

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions