Skip to content

feat(vis): answer attest natively for the skip path and for verify - #263

Open
prisis wants to merge 3 commits into
nextfrom
t3/native-attest
Open

prisis wants to merge 3 commits into
nextfrom
t3/native-attest

Conversation

@prisis

@prisis prisis commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Stacked on #259 (merge it first; a squash-merge of #259 needs a rebase of this branch). It reuses inspect::Packuments, added there). Merge #259 first; until then this diff also shows its commit.

Problem

vis attest always started Node, including the two shapes that need nothing Node-specific: the run that skips signing for lack of an OIDC token, and attest verify, which only reads the lockfile, the registry and the signing keys.

Change

New native/cli/src/attest/:

  • vis attest <subject> (emit.rs): with no ambient OIDC token Node hashes the artifact and skips signing. Native prints the same JSON document (--format json) or warning line, hashes with sha2. CI equal to true, ACTIONS_ID_TOKEN_REQUEST_URL or SIGSTORE_ID_TOKEN (Node signs with Sigstore), --require-signing, a predicate other than slsaProvenance and every thrown failure stay in Node.
  • vis attest verify (verify.rs, signature.rs): lockfile (pnpm_lock), one packument per locked package through the shared packument cache with 8 in flight (Node's mapWithConcurrency), the provenance regression check (shared with inspect), and the registry-signature check: keys from the key cache or the registry (keys_refresh::registry_keys, which defers its cache write), ECDSA P-256/SHA-256 verified with ring (new direct dependency, already in the tree via rustls). JSON and NDJSON reports are native; so is the table for a run with no finding.
  • Reads that differ between Node and Rust are handed over before output: --prod-only (walks the workspace manifests), MARSHALL_*, VIS_NPM_KEYS_URL, proxy/CA/Node options, .npmrc credentials, non-canonical base64 (Node's decoder is lenient), a key that is not a P-256 SPKI, a key expiry that is not ISO, odd packuments.
  • bin/route.mjs (gate), routing.json, the route snapshot and the parity test are updated together.

What stays in Node (honest slice)

  • The table of findings is rendered by the React Table of the terminal UI; native does not draw it. Because that is the usual result on a big tree (older versions have no signature), the native run writes the packument and key caches it filled before handing over, so Node finds them warm instead of fetching again. The bytes are the ones Node writes; the parity test checks the cache tree after such a hand-off.
  • Signing (attest <subject> with a token) needs Sigstore.
  • logger.info/warn here are the toolbox console, not pail: plain text, so native only answers where the colour level is provably none.

Verification

  • cargo fmt --all --check, cargo clippy --all-targets -- -D warnings, cargo test -p vis-cli: green (new unit tests: flag parser, base64 and ECDSA verification against generated keys, both marshalls against a loopback registry stub, reports, the key lookup).
  • __tests__/native/attest-parity.test.ts (26 cases, real P-256 keys signed with node:crypto, stub registry on loopback, each side with its own HOME), inspect-parity, security-keys-refresh-parity, route, routing-fixture, command-manifest: green with FORCE_COLOR=3 CI=1 GITHUB_ACTIONS=true TERM=xterm-256color.
  • Unverified locally: Linux (non-UTF-8 paths, case-sensitive FS) and a CI environment with colour forced (native declines there by design).
  • One routing integration test failed once in a full cargo test run on a shared target dir while another build was running, and passed on five reruns; I could not reproduce it.

Checked against real data

attest verify --format json on the lockfile of this repository (2110 locked packages) with a scratch HOME: byte-identical JSON (5297 lines) and the same 1886 cache files as Node. Wall time is network-bound and equal (59 s native debug build vs 56 s Node), peak RSS about 900 MB for both. A package whose packument this binary cannot read ends the scan; the packuments read so far are written before the hand-off so Node does not fetch them again (unit and parity tests cover it). Native holds the cache text until the end of the scan (the memory above includes it).

🤖 Generated with Claude Code

prisis and others added 2 commits November 26, 2026 00:44
… show

The native dlx only ran when the first-run gate was switched off, so a plain
`vis dlx <package>` started Node even in CI, where the gate skips itself
without any network work.

The binary now decides the gate the way the Node handler does:

- `--yes`, a truthy `VIS_DLX_YES`, CI, or a stdin or stdout that is not a
  terminal: the gate does nothing, the package manager runs natively.
- a terminal outside CI without `--yes`: the gate resolves each package
  against the registry and looks the version up in
  `~/.vis/state/dlx-seen.json`. An approved version with no Socket token
  makes the gate silent, so it runs natively. The packument is read
  through the shared registry client and cache (`inspect::Packuments`).
- a version that is not approved yet (the panel and the prompt), a Socket
  token, `--offline`, a range spec, `--info`, or a value of a gate variable
  that is not ASCII are handed to Node before any output.

The registry cache is written only after every package is known to be
approved, so a hand-off writes nothing.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
`vis attest` always started Node. Two of its paths are reproducible
natively, byte for byte:

- `vis attest <subject>` with no ambient OIDC token: Node hashes the
  artifact and skips signing, with the JSON document under `--format
  json` or a warning line. A run that signs (`CI` equal to `true`, a
  GitHub Actions or Sigstore token), `--require-signing`, and every
  thrown failure stay in Node.
- `vis attest verify`: the locked packages of a pnpm workspace are
  checked against the registry's provenance and signatures, with up to
  eight packuments in flight (the cache of `vis inspect` is shared) and
  the registry's signing keys from `~/.vis/cache/registry-keys` or the
  registry. ECDSA P-256 signatures are verified with ring. The JSON and
  NDJSON reports are native, and so is the table for a run that finds
  nothing; a table of findings is drawn by the terminal UI, so Node
  prints it, after the native run has written the cache it filled so
  Node finds it warm.

Everything this binary does not read the way Node does is handed over
before any output: `--prod-only`, `MARSHALL_*`, `VIS_NPM_KEYS_URL`, a
proxy or CA setting, a registry that needs a credential, a packument,
key or signature in a shape the checks name, and a base64 text that is
not canonical.

The packument lookup of `inspect` is widened (`Packuments::read`, the
view and the provenance helper) and the keys cache gets a loader that
defers its write until the run is known to answer.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1c75d5b3-8ccd-443f-9c41-82ca79bfbf05

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@qodo-code-review

qodo-code-review Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

Run safe attest paths and first-run dlx gates natively

✨ Enhancement 🧪 Tests 🕐 40+ Minutes

Grey Divider

AI Description

• Run tokenless attestation and lockfile provenance and signature checks natively when parity is
 safe.
• Delegate signing, unsupported inputs, and findings tables to Node while preserving warmed caches.
• Let native dlx bypass inactive first-run gates and recognize previously approved packages.
Merge Risk 🟡 Medium

Blast radius 🔴 High 💥 3 capabilities

  • 3 affected capabilities span independent functional scopes: artifact attestation integration, dependency attestation verification integration, dlx package execution integration.
  • The launcher admission, Rust approval lookup, cache handling, and package-manager invocation jointly determine the single end-to-end outcome of whether and how a requested package runs through dlx.
  • The launcher gate, subject validation, hashing, and output formatting implement one bounded artifact-attestation outcome and do not control dependency verification or unrelated commands.
  • Lockfile parsing, packument lookup, key refresh, signature verification, finding generation, cache commits, and report status form one end-to-end verification capability.
  • Shared inspect helpers and caches are implementation paths for that capability, not independent consumer behaviors.
Behavioral complexity 🔴 High 🧩 Multiple interactions

  • Before, a failed scan returned before exposing cache changes, while Node owned the complete verification path.
  • After, Rust coordinates up to eight concurrent checks, preserves package-order findings, returns both scan failure and cache actions, and commits cache data before delegating after a report or package-read failure.
  • New correctness conditions are deterministic ordering despite concurrent workers, preserving all successfully read cache actions across partial failure, keeping key and packument snapshots consistent, and matching Node's fallback and report semantics.
  • The concurrency primitives are established; the complexity comes from the newly coordinated failure-and-cache transition.
Potential damage 🟡 Medium 🩹 Temporary loss

  • A regression in launcher admission or the Rust approval decision could delegate unexpectedly, block a valid command, or alter first-run behavior.
  • The follow-up moves first-run admission into Rust rather than adding a separate execution outcome.
  • Code rollback restores the prior launcher routing.
  • Native cache writes are local persistent state; a partial or incorrect cache update may require removal or refresh before a subsequent Node or native run.
  • No external business effect is established before the package manager executes.
Assessed commit 1623708
Diagram

graph TD
  A["CLI launcher"] --> B{"Native gate"} --> C["Attest verify"] --> D["Shared caches"] --> E["Registry"]
  B --> H["Dlx gate"] --> D
  B --> F["Emit skip"]
  B --> G["Node fallback"]
  C --> G
  H --> G
  F --> G
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Render findings tables natively
  • ➕ Avoids starting Node for verification runs that find problems.
  • ➖ Duplicates React terminal-UI behavior and expands the byte-for-byte parity surface.

Recommendation: Keep the conservative native slice and warm-cache handoff. Findings-table rendering is the main remaining opportunity, but porting it now would add output-parity risk to an already security-sensitive verification change. Merge the prerequisite packument work in #259 first.

Files changed (23) +2429 / -154

Enhancement (10) +1934 / -77
route.mjsRoute eligible attest and dlx shapes to native checks +97/-28

Route eligible attest and dlx shapes to native checks

• Adds conservative attest emit and verify shape gates with environment and workspace restrictions. Defers the dlx first-run decision to the binary rather than excluding ordinary registry-package invocations at launch.

packages/tooling/vis/bin/route.mjs

emit.rsEmit the tokenless attest result natively +169/-0

Emit the tokenless attest result natively

• Hashes a supported artifact and reproduces Node's JSON skip document or warning. Delegates signing, unsupported subjects, unreadable files, and other failure paths.

packages/tooling/vis/native/cli/src/attest/emit.rs

mod.rsDefine attest leaves and conservative flag parsing +144/-0

Define attest leaves and conservative flag parsing

• Introduces the native attest module and shared parser for supported emit and verify flags. Rejects ambiguous or unsupported argument forms for Node to handle.

packages/tooling/vis/native/cli/src/attest/mod.rs

signature.rsVerify canonical npm P-256 registry signatures +191/-0

Verify canonical npm P-256 registry signatures

• Checks DER ECDSA signatures over package name, version, and integrity using ring. Delegates non-canonical base64 and unsupported public-key encodings rather than assuming OpenSSL parity.

packages/tooling/vis/native/cli/src/attest/signature.rs

verify.rsScan locked packages and report attest findings +754/-0

Scan locked packages and report attest findings

• Checks provenance and registry signatures with up to eight package lookups in flight, then produces JSON, NDJSON, or a clean-tree table line. Hands findings tables to Node after warming caches and delegates inputs it cannot reproduce.

packages/tooling/vis/native/cli/src/attest/verify.rs

dlx.rsDecide the dlx first-run gate in the native binary +281/-33

Decide the dlx first-run gate in the native binary

• Runs natively when the gate self-skips or all vetted package versions are approved. Uses shared packuments for terminal approval checks and delegates prompts, unsupported specs, and other uncertain cases without committing partial cache changes.

packages/tooling/vis/native/cli/src/dlx.rs

mod.rsProvide shared packument access and cache commits +84/-14

Provide shared packument access and cache commits

• Adds a Packuments interface for registry reads and version resolution using inspect's client and cache behavior. Exposes cache actions and selected helpers to attest and dlx.

packages/tooling/vis/native/cli/src/inspect/mod.rs

keys_refresh.rsRead and defer caching of registry signing keys +209/-2

Read and defer caching of registry signing keys

• Adds key lookup from fresh cache, registry, or stale cache, with deferred writes for attest verification. Tests cache freshness, network fallback, malformed data, and committed cache bytes.

packages/tooling/vis/native/cli/src/keys_refresh.rs

main.rsCompile the native attest module +1/-0

Compile the native attest module

• Registers the new attest module in the native CLI crate.

packages/tooling/vis/native/cli/src/main.rs

route.rsDispatch attest emit and verify to native handlers +4/-0

Dispatch attest emit and verify to native handlers

• Adds ordered routes for attest verify and subject emission, with route-list test coverage.

packages/tooling/vis/native/cli/src/route.rs

Refactor (5) +23 / -19
args.rsShare plain package-spec parsing with dlx +1/-1

Share plain package-spec parsing with dlx

• Exposes the existing inspect package parser within the crate for native dlx approval lookups.

packages/tooling/vis/native/cli/src/inspect/args.rs

js_format.rsShare ISO date parsing with attest verification +1/-1

Share ISO date parsing with attest verification

• Makes the existing strict date parser available for registry-key expiry checks.

packages/tooling/vis/native/cli/src/inspect/js_format.rs

js_value.rsExpose parsed JSON member access across native modules +2/-2

Expose parsed JSON member access across native modules

• Allows attest verification to inspect the same JavaScript-like packument values used by inspect.

packages/tooling/vis/native/cli/src/inspect/js_value.rs

marshalls.rsReuse provenance checks across inspect and attest +10/-6

Reuse provenance checks across inspect and attest

• Extracts the prior attested-release lookup and exposes provenance detection so both commands apply the same regression logic.

packages/tooling/vis/native/cli/src/inspect/marshalls.rs

packument.rsExpose packument views to native attest +9/-9

Expose packument views to native attest

• Broadens internal view-method visibility so verification can inspect versions, tags, and package entries without duplicating packument parsing.

packages/tooling/vis/native/cli/src/inspect/packument.rs

Tests (6) +468 / -58
attest-parity.test.tsCompare native attest results and handoffs with Node +344/-0

Compare native attest results and handoffs with Node

• Adds end-to-end parity cases for tokenless emission, verification findings, output formats, exit statuses, fallback behavior, and cache contents. A registry stub and generated P-256 signatures exercise real verification paths.

packages/tooling/vis/tests/native/attest-parity.test.ts

info-dlx-parity.test.tsCover native dlx first-run fast paths +25/-16

Cover native dlx first-run fast paths

• Moves noninteractive, CI-compatible, and auto-approved dlx shapes into native parity coverage. Retains delegation checks for forced information panels and non-ASCII gate variables.

packages/tooling/vis/tests/native/info-dlx-parity.test.ts

route.test.tsAssert expanded launcher routing for dlx +8/-21

Assert expanded launcher routing for dlx

• Expects ordinary dlx invocations to reach the binary for its runtime gate while keeping forced panels and unsupported shapes in Node.

packages/tooling/vis/tests/native/route.test.ts

tests.rsShare inspect registry fixtures with native tests +14/-7

Share inspect registry fixtures with native tests

• Exposes the existing registry stub and adds a Packuments fixture for attest and dlx unit tests.

packages/tooling/vis/native/cli/src/inspect/tests.rs

native-routes.snapRecord attest route classifications +43/-9

Record attest route classifications

• Updates the route snapshot for attest emit, verify, help, and delegated argument shapes, plus an additional dlx case.

packages/tooling/vis/native/cli/tests/fixtures/native-routes.snap

routing.jsonExercise launcher and binary routing outcomes +34/-5

Exercise launcher and binary routing outcomes

• Adds attest native and fallback scenarios and updates dlx expectations for first-run fast paths and non-ASCII delegation.

packages/tooling/vis/native/cli/tests/fixtures/routing.json

Other (2) +4 / -0
Cargo.tomlDeclare ring for native signature verification +3/-0

Declare ring for native signature verification

• Adds a direct ring dependency for ECDSA P-256/SHA-256 registry-signature checks.

packages/tooling/vis/native/cli/Cargo.toml

Cargo.lockLock the direct ring dependency +1/-0

Lock the direct ring dependency

• Adds ring to the vis-cli dependency list; the crate was already present transitively.

packages/tooling/vis/native/Cargo.lock

@github-actions github-actions Bot added the vouch:trusted PR author is a collaborator, a bot or on the VOUCHED list. label Nov 26, 2026
@qodo-code-review

qodo-code-review Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (5)

Grey Divider


Remediation recommended

1. One bad package still costs a full registry scan 🐞 Bug
Description
In scan, a worker that gets an Err from check (a failed request, an odd packument, a
non-semver version) stores the error and moves on. The other workers keep fetching every remaining
packument, and only afterwards does scan(...)? hand off to Node, without committing the cache the
run filled. On a large lockfile, one early 5xx or odd packument means the whole tree is fetched
natively and thrown away, and then Node fetches all of it again.
Code

packages/tooling/vis/native/cli/src/attest/verify.rs[R252-263]

+            scope.spawn(|| loop {
+                let index = next.fetch_add(1, Ordering::SeqCst);
+
+                let Some(package) = packages.get(index) else { return };
+                let checked = if allowlist.contains(&package.name) {
+                    Ok(Checked { provenance: None, signatures: Vec::new(), cache: Vec::new() })
+                } else {
+                    check(packuments, keys.is_some().then_some(&by_id), package, now_ms)
+                };
+
+                results.lock().expect("a worker panicked")[index] = Some(checked);
+            });
Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
`scan` in attest/verify.rs keeps fetching every packument after a worker hits an error. It then hands off to Node without writing any cache, so Node fetches the whole tree a second time.

## Fix Focus Areas
- packages/tooling/vis/native/cli/src/attest/verify.rs[247-272]

## Recommended Fix
Add a shared `AtomicBool failed` flag. When `check` returns `Err`, set it, and have each worker check it before claiming the next index and return early once it is set. Then return the first error, in package order, as the code does today.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


View medium (2)
2. First-run installs query registry twice 🐞 Bug
Description
approved_in resolves an unseen version but discards its pending packument cache write when it
delegates to Node. On an interactive first run with an uncached package, Node's gate then fetches
that packument again before showing the approval panel.
Code

packages/tooling/vis/native/cli/src/dlx.rs[R250-251]

+        if !is_approved(state, &name, &version) {
+            return Err(format!("{name}@{version} has not been approved: the gate shows its panel"));
Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The native approval probe fetches an unseen package's metadata, then delegates without making that result available to Node's first-run gate.
## Fix Focus Areas
- packages/tooling/vis/native/cli/src/dlx.rs[69-77]
- packages/tooling/vis/native/cli/src/dlx.rs[241-257]
## Recommended Fix
Avoid a redundant probe when approval cannot exist, or preserve successfully fetched, Node-compatible packument cache entries for the delegated gate. Keep delegation before any user-facing output.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


3. Key fetching delays package checks 🐞 Bug
Description
answer waits for registry_keys to finish before scan starts fetching any packuments. On a cold
cache, a slow keys endpoint and slow package registry therefore add their delays together, whereas
Node starts provenance package requests alongside the keys request.
Code

packages/tooling/vis/native/cli/src/attest/verify.rs[164]

+    let keys = registry_keys(now_ms()?)?;
Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Cold-cache verification waits for signing keys before requesting any package metadata, unlike Node's concurrent provenance and key lookups.
## Fix Focus Areas
- packages/tooling/vis/native/cli/src/attest/verify.rs[162-171]
- packages/tooling/vis/native/cli/src/attest/verify.rs[238-265]
## Recommended Fix
Start the signing-key lookup and package lookups concurrently while preserving the existing finding order, delegation behavior, and cache-commit rules.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗



View low (2)
Informational
4. A key with a rare space character verifies natively but not in Node 🐞 Bug
Description
verifies strips key whitespace with Rust's char::is_whitespace, but Node's wrapSpkiPem uses
JavaScript's /\s+/g, and the two sets differ: U+0085 (NEL) counts as whitespace in Rust but not in
JS. For a registry key containing NEL, the native run removes it and can accept the signature. Node
keeps the character in the PEM, OpenSSL fails to read the key and verifyEcdsaSignature returns
false, so Node reports an invalid-signature error and exits non-zero while native reports nothing.
Code

packages/tooling/vis/native/cli/src/attest/signature.rs[R72-74]

+    // `wrapSpkiPem` drops every whitespace character before it cuts the text into lines.
+    let key_text: String = key_base64.chars().filter(|character| !character.is_whitespace()).collect();
+    let key = decode(&key_text).ok_or("a registry key that is not canonical base64")?;
Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
`verifies` in attest/signature.rs strips key whitespace with `char::is_whitespace`, which differs from JS `\s` (U+0085 in particular). A key can therefore verify natively where Node reports `invalid-signature`.

## Fix Focus Areas
- packages/tooling/vis/native/cli/src/attest/signature.rs[71-74]

## Recommended Fix
If the key contains any non-ASCII character, return `Err` so Node decides. Otherwise filter with `char::is_ascii_whitespace` plus `\u{0b}` (vertical tab, which JS `\s` includes). Add a unit test with an embedded U+0085.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


5. Network work done before a cheap decline check 🐞 Bug
Description
answer calls registry_keys(now_ms()?), which may fetch the signing keys over the network, and
builds Packuments before it checks piped_colour_level(args) != Some(0) for the table format.
That check is pure and decides a hand-off. When colour is not provably off, the run makes a keys
request, drops the uncommitted result and delegates, so Node fetches the keys again.
Code

packages/tooling/vis/native/cli/src/attest/verify.rs[R163-168]

+    let packuments = Packuments::new(root, PACKUMENT_TIMEOUT)?;
+    let keys = registry_keys(now_ms()?)?;
+    // The table line is written by the toolbox's logger, which is only known to leave a run without colour plain.
+    if format == "table" && crate::term::piped_colour_level(args) != Some(0) {
+        return Err("the colour level cannot be told to be none without Node".to_owned());
+    }
Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
In `vis attest verify` the table-format colour decline runs after the registry keys may already have been fetched, so that network work is wasted.

## Fix Focus Areas
- packages/tooling/vis/native/cli/src/attest/verify.rs[162-168]

## Recommended Fix
Move the `format == "table" && crate::term::piped_colour_level(args) != Some(0)` check up, next to the other pure checks (after `context_decline`). Put it before `locked_packages`, `Packuments::new` and `registry_keys`.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


Grey Divider

Resolved findings
1. Failed checks discard successful cache ✓ Resolved Medium

Resolving commit: 1623708

Resolution reason
scan now returns (Result<findings>, cache) so cache actions of successfully read packages are
returned even when another package fails; answer no longer short-circuits with ? before cache
handling, and the failure is delegated to Node after the cache is committed. A test
a_failing_package_leaves_the_cache_of_the_others_to_node asserts cache.len()==2 for the successful
packages.
Description
answer propagates a scan error before committing the cache actions collected for packages that
succeeded. When one package request fails after others succeed, a later verification must refetch
those successful packages; Node caches each successful response as it arrives.

Grey Divider

Tip of the day
💡 Did you know, you can tweak Display settings with a live preview to see your comment before it ships

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@github-actions

Copy link
Copy Markdown
Contributor

Thank you for following the naming conventions! 🙏

@github-actions github-actions Bot added the size:XXL Size of the change, tests and generated files excluded. label Nov 26, 2026
@codspeed

codspeed Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

🆕 3 new benchmarks
⏩ 113 skipped benchmarks1

Performance Changes

Benchmark BASE HEAD Efficiency
🆕 transform/transform_ts[470] N/A 355.3 µs N/A
🆕 transform/transform_ts[47000] N/A 16 ms N/A
🆕 transform/transform_ts[9400] N/A 3.3 ms N/A

Comparing t3/native-attest (1623708) with next (1078fa9)2

Open in CodSpeed

Footnotes

  1. 113 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

  2. No successful run was found on next (c8c3ce2) during the generation of this report, so 65c051d was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

… the gate

Run against the lockfile of a real workspace (2110 packages, byte-identical
JSON and the same cache files as Node), a package whose packument this
binary cannot read ends the scan after hundreds of fetches. The packuments
that were read are now written before the hand-off, as they are for the
table of findings, so Node finds them warm.

The launcher gate moves after the helpers it uses and its flag reader is
split, to satisfy the lint rules.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

This branch was successfully deployed

1 active deployment
benchmarks — 1623708e Deployed Nov 26, 2026 by prisis via Bench native (vis) #447
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: vis size:XXL Size of the change, tests and generated files excluded. vouch:trusted PR author is a collaborator, a bot or on the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant