Skip to content

Commit f766624

Browse files
committed
vlt: 2026-11-29 run (vlt deploy; filed #2374)
1 parent 2764dd8 commit f766624

3 files changed

Lines changed: 42 additions & 10 deletions

File tree

‎entries/vlt/20261129T231545Z.md‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[agent] 2026-11-29: vlt bug-hunt run
2+
3+
**Tested:** main `cfc870f` (unchanged since the last run) and release **v5.1.0**, Linux sandbox, Node 22.23.5, vlt **1.9.0** (still the newest) and 1.7.0. Mock: the #1494 `mock.mjs` on :18555 / :18556, plus :18557 as the named `acme` registry.
4+
5+
### Re-triage
6+
- #2323 is the only eligible open `bughunt` issue. Main hasn't changed since it was filed, so I left it open. #862 is `agent:needs-human`, so I skipped it.
7+
8+
### What vlt 1.5 … 1.9 changed (backlog item 1)
9+
- New commands since 1.4.0: `deploy` (first in **1.7.0**), `stage`, `trust`, `skills`. `vlt help` shows no new install flags.
10+
- `vlt deploy <dir>` copies a project or workspace plus its production dependencies, installed from `vlt-lock.json`. It throws `EUSAGE` "vlt deploy does not support file: dependencies" for any reached `file` DepID.
11+
12+
### Cells (Linux, vlt 1.9.0 unless noted)
13+
- Hosted → `vlt deploy` (root, 2 deps): the pin carries into the output, which loads patched code, and `vlt ci` inside the output stays patched. **pass** on main and on v5.1.0.
14+
- Hosted → `vlt deploy -w packages/a` (workspace, `workspace:*` edge, `npm:` alias in b): **pass**, patched, also after `vlt ci` in the output.
15+
- Vendored → `vlt deploy` (root and workspace): **fail, filed #2374.** The scan exits 0, then every deploy exits 1. Reproduced on main ×3 and v5.1.0, on vlt 1.9.0 and 1.7.0. Not a regression (vlt added `deploy`). A hosted takeover fixes it (deploy then passes, patched).
16+
- Agent → `vlt deploy`: pristine output after `vlt ci`. That's expected (agent patches don't survive a reinstall).
17+
- #1601 re-verified on 1.9.0: a hosted scan of `acme:left-pad` now says "(use agent mode)". **pass** (fixed).
18+
19+
### Issues
20+
- Filed #2374 (https://github.com/SocketDev/socket-patch/issues/2374).
21+
22+
### False positives ruled out
23+
- Agent mode deploy output is pristine: that's documented agent-mode behavior, not a bug.
24+
25+
### Next
26+
1. Re-verify #1584, #1633 (needs a mock package with a `postprepare` script) and #1564 on 1.9.0.
27+
2. `vlt deploy` of a hosted *transitive* pin (`wrapper` → left-pad) and of a member with a named-registry dependency.
28+
3. #2323 follow-ups once it's fixed.

‎known-non-bugs/vlt.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,4 @@ One line each. Moved from state/vlt.md on 2026-11-27; search with git grep.
7272
- vlt runs `prepare` for a `file:` directory dependency (1.0.10 … 1.4.0), so the vendored `prepare` refusal is right; registry nodes never run prepare-family scripts.
7373
- npm hosted / vendored rollback's "unwired packages keep their patched bytes" note is true on npm (the copy stays until `npm ci`); only the vlt note is false (#2323, 2026-11-27).
7474
- vlt 1.4.0 … 1.9.0 still write `lockfileVersion: 1` with root edge key `file~_d`; no new lock format to refuse (2026-11-27).
75+
- `vlt deploy` output of an agent-mode project is pristine: deploy installs fresh from the lock, like `vlt ci` (2026-11-29).

‎state/vlt.md‎

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[agent] Progress ledger for the scheduled vlt bug-hunt routine (label pm:vlt).
22

3-
Last run: 2026-11-27, main `cfc870f`, release v5.1.0, newest vlt **1.9.0** (2026-11-27; 1.5.x … 1.8.2 also published since run 27). Compacted this run: older per-run cells and the mock notes are in this file's branch history (2026-10-17 version); known non-bugs moved to `known-non-bugs/vlt.md`.
3+
Last run: 2026-11-29, main `cfc870f`, release v5.1.0, newest vlt **1.9.0** (`deploy` exists since 1.7.0).
44

55
Method: real vlt (`scripts/install-vlt.sh <ver> <prefix>`) against a local Node mock of the npm registry plus the patch API: the `mock.mjs` in #1494 (left-pad + right-pad 1.3.0, patchable), started on :18555 (registry) and :18556 (`SOCKET_PATCH_SERVER_URL`, `SOCKET_API_URL`), `SOCKET_NPM_REGISTRY` = :18555, `vlt.json` `config.registries.npm` = :18555. Add a non-patchable `wrapper@1.0.0` → `left-pad@1.3.0` for transitive shapes. Isolate vlt's XDG dirs per project, outside the project. Run `vlt install` / `vlt ci` with `--allow-scripts :scripts` (the sandbox blocks vlt's security-data fetch). Oracle: `require('left-pad')` prints `patched` / `pristine`. Kill mocks with `pkill -f '^node .*mock[.]mjs'`. Release binaries download from the GitHub release assets (`socket-patch-x86_64-unknown-linux-gnu.tar.gz`). Linux only (probe branches off by instruction).
66

@@ -15,9 +15,10 @@ Cells tested before 2026-11-11 count as untested for the release (see INSTRUCTIO
1515
| Transitive target (`wrapper` → left-pad), alone and beside a direct dep | pass 1.9.0: pinned, `vlt ci` patched, vex (2026-11-27) | refused `vendor_vlt_transitive_unsupported`, untouched (documented; 2026-11-27) | pass 1.9.0 (2026-11-27) |
1616
| Rollback note accuracy (`reinstall_required`) | fail #2323 (1.2.0 / 1.4.0 / 1.8.2 / 1.9.0, main and v5.1.0) | fail #2323 | n/a |
1717
| Common path on vlt 1.2.0 / 1.4.0 / 1.8.2 | scan / ci / rollback pass (2026-11-27, via #2323 repro); vex untested | same | untested |
18+
| `vlt deploy` (vlt ≥ 1.7.0), root and `-w` member | pass 1.9.0 incl. `vlt ci` in output (2026-11-29) | fail #2374 (1.7.0 / 1.9.0) | output pristine, expected (2026-11-29) |
1819
| Older eras (0.0.0-x, rc.5, rc.14, 1.0.10) | untested since 2026-10 (last pass run 16 / 18) | untested since 2026-10 | untested |
1920
| `pnpm-workspace.yaml` workspaces, stray member locks, glob shapes (#1542 / #1564 / #1584 fixed) | untested since fix (Oct) | untested since fix | untested |
20-
| Named / scoped / jsr registries (hint fixed by #1601) | untested since fix | untested since fix | untested since 2026-10 |
21+
| Named / scoped / jsr registries (hint fixed by #1601) | hint pass 1.9.0 (2026-11-29) | untested since fix | untested since 2026-10 |
2122
| Lifecycle scripts (`preprepare` / `postprepare`, #1633 fixed) | untested since fix | untested since fix | n/a |
2223
| Brotli `tar.br` alternates (`NO_ALT=`) | untested since 2026-10 (#941 closed not_planned) | untested since 2026-10 | untested |
2324
| Peer variants (`~peer.<hex>`), graph modifiers | untested since 2026-10 | refused, documented | untested since 2026-10 |
@@ -27,14 +28,15 @@ Cells tested before 2026-11-11 count as untested for the release (see INSTRUCTIO
2728

2829
## Backlog
2930

30-
1. vlt 1.5 … 1.9 changelog: find what changed (store linker defaults, lock save rules, new DepID shapes) and test each against hosted / vendored. The docs Releases table still stops at 1.3.8; check whether the nightly canary flags 1.4.0 … 1.9.0.
31-
2. Re-verify the fixed bughunt issues on 1.9.0: #1584 (nested dirs, `..` globs, no root `vlt.json`), #1601 hints, #1633 (plus `hasInstallScript` / whitespace scripts), #1564 yaml workspaces.
32-
3. #2323 once fixed: also `remove`, `vendor --revert`, and a mixed hosted + vendored project.
33-
4. #2254 (not bughunt, open): check after its fix that rollback / remove no longer report an unchecked lock as pinned.
34-
5. Brotli registries and `~peer.<hex>` instances on 1.9.0.
35-
6. Older eras on main: 1.0.10 scalar `config.registry` 3-tuple, rc.14, 0.0.0-20 advisory.
36-
7. #862 once `patch/rollback.rs` changes (rebuild the `ADD=1` / `EMPTYDIR=1` mock).
37-
8. `repair` from a member with an alias dep (needs a mock that serves diff archives); `--update` from a vlx cache (blocked locally).
31+
1. Re-verify the fixed bughunt issues on 1.9.0: #1584 (nested dirs, `..` globs, no root `vlt.json`), #1633 (needs a mock package with a `postprepare` script; also `hasInstallScript` / whitespace scripts), #1564 yaml workspaces.
32+
2. `vlt deploy` with a hosted transitive pin (`wrapper` → left-pad), a `~peer.<hex>` instance, and a member with a named-registry dep. Once #2374 is fixed, recheck its advisory or docs.
33+
3. Other new commands since 1.4.0 (`stage`, `trust`): check whether either rewrites `vlt-lock.json` or the store in a way that drops a hosted pin or a vendored `file:` edge.
34+
4. #2323 once fixed: also `remove`, `vendor --revert`, and a mixed hosted + vendored project.
35+
5. #2254 (not bughunt, open): check after its fix that rollback / remove no longer report an unchecked lock as pinned.
36+
6. Brotli registries and `~peer.<hex>` instances on 1.9.0.
37+
7. Older eras on main: 1.0.10 scalar `config.registry` 3-tuple, rc.14, 0.0.0-20 advisory.
38+
8. #862 once `patch/rollback.rs` changes (rebuild the `ADD=1` / `EMPTYDIR=1` mock).
39+
9. `repair` from a member with an alias dep (needs a mock that serves diff archives).
3840

3941
## Known non-bugs
4042

@@ -49,3 +51,4 @@ Full list: `known-non-bugs/vlt.md` (search it with `git grep`). Most likely to b
4951
- A mock `/patches/batch` that answers every request gives false `partial_failure`; filter by the request body.
5052
- #941 (brotli rollback restores gzip) was closed not_planned; don't re-file.
5153
- `vex --json` needs `-O <file>` (`json_requires_output`).
54+
- Agent-mode `vlt deploy` output is pristine (deploy installs fresh, like `vlt ci`).

0 commit comments

Comments
 (0)