Skip to content

level 0 loads workspace modules again: op-waves-run imports the evidence signer #5219

Closed

Description

@lex00

On main (c88a4c6), a plain project loads about twenty workspace modules again. test/level0-goldens/level0-goldens.e2e.test.ts fails 17 cases under "no workspace module loads at level 0", and lineage-lock.e2e.test.ts fails "plain chant init". The failing cases cover every level-0 command the goldens run on the five example projects.

The modules include workspace/trust/check-evidence.ts with the rest of workspace/trust/, workspace/records.ts, workspace/identity-gate-rule.ts and workspace/class-data.ts.

They come in through static imports, by this chain from chant build:

cli/handlers/build.ts
  cli/commands/build.ts
  lint/rules/op/index.ts
  lint/rules/op/ops012-activity-contract.ts
  op/index.ts
  op/op-waves-run.ts
  op/op-waves-evidence.ts
  workspace/trust/check-evidence.ts

lint, graph and run reach op/op-waves-run.ts through index.ts or run-generate.ts. The import of ./op-waves-evidence in op-waves-run.ts arrived with #4870 on 2026-11-09. #4315 fixed the same kind of leak once before, by moving the gate seal out of workspace/.

The e2e project has run only by hand since 2026-10-23, and release-suites last ran on main that day, so nothing caught it.

The level-0 module check should pass again. One way is that op-waves-run.ts loads the evidence signer only when a run signs evidence, and another is that the parts of check-evidence.ts it needs move out of workspace/.

To reproduce it, run npx vitest run --project e2e test/level0-goldens in a fresh worktree after just build.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions