Skip to content

[Request]: Bind trusted dependency changes to explicit human-review evidence #1040

Closed

Description

@jimhoyd

Problem or use case

Follow-up to #841's direct npm compatibility and human-review objective. Current main 282c803 correctly documents trusted entry-file-only revision hashing, but review does not inventory the libraries/helper code those entries execute. This is a known trusted-mode limitation (see closed documentation issue #140), not a new sandbox escape or claim that full-Node trusted code is confined by grants.

Executed synthetic probe on Node v26.10.0/macOS: entry.mjs imports value from ./helper.mjs and returns it. Compute prepareFunctionSnapshot(loadDocument(project)).projectSha256; change only helper.mjs from value='before' to value='after'; compute again. The hashes are identical. packages/core/src/policy.ts:55–70 incorporates trusted entry sources only. proofs/ecosystem/README.md also states explain/review do not name the imported npm packages.

As reusable application logic moves into imports, a review identified only by this digest does not identify all code being reviewed. The existing docs are candid, but the workflow has no dependency-aware evidence record.

Proposed behavior and alternatives

Add a bounded, non-executing dependency/change inventory for trusted application entries: statically resolvable local helpers, package identities and lockfile integrity, with dynamic/unresolved imports clearly marked opaque. Choose and document whether an application/release review digest binds that inventory or uses an immutable build artifact digest. Do not claim that a lockfile hash detects arbitrary edits inside node_modules or that static analysis can enumerate arbitrary dynamic execution.

Tests should show local-helper and dependency-lock changes become visible to review and require renewed approval where the chosen contract promises this. Keep operator-host code's trust boundary explicit. Do not add a dependency allowlist to ordinary trusted imports, import packages during inspection, or change sandbox isolation. This requests an implementation decision beyond #140's already-completed documentation correction.

Activity

  1. jimhoyd commented on Sep 30, 2026

    @jimhoyd
    CollaboratorAuthor

    Fixed by #1043 (merged): inspect, review and the HTML report expose bounded passive dependency evidence, and projectSha256 includes it.

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