Repository navigation
Commit 9391aaf
authored
Stop downloading vlt artifacts during hosted scans (#2013)
A hosted scan of a vlt project downloaded every granted patch archive
the way vlt fetches it, and withheld the dependency
(`redirect_vlt_artifact_unverifiable`) when the server re-gzipped it.
That guarded against patch.socket.dev's CDN re-encoding archives,
which vlt rejects with EINTEGRITY. The patch server has sent archives
with `Cache-Control: no-transform` since depscan #26856 and #26867,
and production serves them unencoded today. On any mirror that still
re-encodes, `vlt ci` fails closed with EINTEGRITY, so nothing installs
unpatched bytes.
So the scan no longer fetches the archives. It pins vlt dependencies
directly, without a full download of every patched package per run.
The in-memory hosted engine (the Node addon and `hosted-bundle`) has
no network, so it used to withhold every vlt dependency as "offline";
it now pins them the way the disk flow does.
The warm-tree heal now checks the Socket-owned lock instances this run
confirmed in `vlt-lock.json`. With no patch record and no hidden lock
it reports the copy as undeterminable (asking for `vlt ci`) instead of
comparing it against downloaded archive bytes.
The vlt backtest still probes the live artifact itself: a must-patch
hosted cell records `blocked-by-server-encoding` when its probe sees a
content-encoded response, without running the CLI.
Assisted-by: Claude Code:claude-opus-5-51 parent 101e0e1 commit 9391aaf
35 files changed
Lines changed: 267 additions & 2379 deletions
File tree
- .github/workflows
- crates
- socket-patch-cli
- src/commands
- scan
- tests
- e2e_vex_lockfile
- in_process_redirect
- in_process_vendor_bun_takeover
- scan
- vlt_e2e_common
- vlt_hosted_common
- socket-patch-core/src
- api
- hosted
- memory
- patch/redirect
- docs
- testing
- scripts
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2919 | 2919 | | |
2920 | 2920 | | |
2921 | 2921 | | |
2922 | | - | |
2923 | | - | |
| 2922 | + | |
2924 | 2923 | | |
2925 | 2924 | | |
2926 | 2925 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
870 | 870 | | |
871 | 871 | | |
872 | 872 | | |
873 | | - | |
874 | | - | |
875 | | - | |
876 | | - | |
877 | | - | |
878 | | - | |
879 | | - | |
880 | | - | |
881 | | - | |
882 | | - | |
883 | | - | |
884 | | - | |
885 | | - | |
886 | | - | |
887 | | - | |
888 | | - | |
889 | | - | |
890 | 873 | | |
891 | 874 | | |
892 | 875 | | |
| |||
1257 | 1240 | | |
1258 | 1241 | | |
1259 | 1242 | | |
1260 | | - | |
1261 | | - | |
1262 | | - | |
1263 | | - | |
1264 | | - | |
1265 | | - | |
1266 | | - | |
1267 | | - | |
1268 | | - | |
| 1243 | + | |
| 1244 | + | |
1269 | 1245 | | |
1270 | 1246 | | |
1271 | | - | |
1272 | | - | |
1273 | | - | |
| 1247 | + | |
| 1248 | + | |
1274 | 1249 | | |
1275 | 1250 | | |
1276 | 1251 | | |
| |||
1290 | 1265 | | |
1291 | 1266 | | |
1292 | 1267 | | |
1293 | | - | |
1294 | | - | |
1295 | | - | |
1296 | | - | |
1297 | | - | |
1298 | | - | |
1299 | | - | |
1300 | | - | |
1301 | | - | |
| 1268 | + | |
| 1269 | + | |
1302 | 1270 | | |
1303 | 1271 | | |
1304 | 1272 | | |
| |||
1330 | 1298 | | |
1331 | 1299 | | |
1332 | 1300 | | |
1333 | | - | |
1334 | 1301 | | |
1335 | 1302 | | |
1336 | 1303 | | |
| |||
1553 | 1520 | | |
1554 | 1521 | | |
1555 | 1522 | | |
1556 | | - | |
1557 | 1523 | | |
1558 | 1524 | | |
1559 | 1525 | | |
| |||
1729 | 1695 | | |
1730 | 1696 | | |
1731 | 1697 | | |
1732 | | - | |
1733 | 1698 | | |
1734 | 1699 | | |
1735 | 1700 | | |
| |||
2234 | 2199 | | |
2235 | 2200 | | |
2236 | 2201 | | |
2237 | | - | |
2238 | | - | |
2239 | | - | |
2240 | 2202 | | |
2241 | 2203 | | |
2242 | 2204 | | |
| |||
3808 | 3770 | | |
3809 | 3771 | | |
3810 | 3772 | | |
3811 | | - | |
3812 | | - | |
3813 | | - | |
3814 | | - | |
3815 | 3773 | | |
3816 | 3774 | | |
3817 | 3775 | | |
| |||
0 commit comments