|
| 1 | +[agent] 2026-11-26: pip / requirements.txt bug-hunt run |
| 2 | + |
| 3 | +**Tested:** main `cfc870f`, latest release v5.1.0. Linux only: real pip 26.3 / CPython 3.12 and 3.13, pip 20.3.4 / CPython 3.8 (uv venvs). Harness: mock2.py from entry 20261029T021000Z plus a `/patches/blob/<gitsha>` route (agent rollback) and a 20-line mirror proxy that serves `<base>/<path>` from the mock. The state file was compacted (61 KB → 5 KB); its known non-bugs moved to `known-non-bugs/pip.md`. |
| 4 | + |
| 5 | +## Re-triage |
| 6 | + |
| 7 | +- #1953 (closed by the maintainer): **verified fixed**. Hosted `rollback` and vendored `vendor --revert` now print the `pypi_reinstall_required` advisory (`pip uninstall -y six` then `pip install -r requirements.txt`); following it installs upstream. |
| 8 | +- #1873 (closed): **verified fixed**. `six==${SIXV}` + `pip lock` pylock, vendored: six isn't wired, `vendor --check` covers idna only, and `vex` over a fresh install doesn't attest six. |
| 9 | +- #1851: closed, not re-run (backlog 2). |
| 10 | + |
| 11 | +## Cells (Linux) |
| 12 | + |
| 13 | +| Cell | Result | |
| 14 | +| --- | --- | |
| 15 | +| Common path hosted: scan → force-reinstall → vex → rollback → advisory → reinstall (26.3/py3.12) | pass | |
| 16 | +| Common path vendored: scan → install → `vendor --check` → vex → revert (26.3/py3.12) | pass | |
| 17 | +| Common path agent: scan → `apply --check` → vex → rollback (26.3/py3.13) | pass | |
| 18 | +| pip 20.3.4/py3.8, CRLF + `SIX==X ; marker`, hosted and vendored | pass (restore normalises `SIX` → `six`, known) | |
| 19 | +| Mirror: patch-server pins re-pinned onto the mirror, fresh install patched, vex / list with the mirror | pass | |
| 20 | +| Mirror: hosted run without the setting | pass (`redirect_pin_on_unconfigured_host`, byte-identical) | |
| 21 | +| Mirror: dead port / 404 base | pass (`redirect_mirror_unavailable`, nothing written) | |
| 22 | +| Mirror: eject (`vendor`), `vendor --check`, vendored → hosted takeover, rollback | pass | |
| 23 | +| Mirror: pip-compile hashed root, `--require-hashes` fresh install | pass (patched) | |
| 24 | +| Mirror pins, commands run WITHOUT the setting | **fail → #2272** (rollback / remove / repair / vex: "No patches in this project", list exit 0) | |
| 25 | +| `pip lock` pylock + requirements.txt, hosted, `pip install -r pylock.toml` (26.3) | pass; rollback with all packages hosted = known sole-sibling refusal | |
| 26 | +| pip 26.3 `-r pylock.toml` inside a requirements file | not a pip shape (pip rejects it) | |
| 27 | +| pip 26.3 `--requirements-from-script` lockless PEP 723 script, hosted | not a target (documented warning) | |
| 28 | +| Lock-only `-r base.txt` (hashed pins in include), hosted | `No requirements.txt entry`: root-only rewrite is documented | |
| 29 | + |
| 30 | +## Issues |
| 31 | + |
| 32 | +- Filed: #2272 https://github.com/SocketDev/socket-patch/issues/2272 |
| 33 | +- Commented / closed: none (#1953 and #1873 were already closed by the maintainer). |
| 34 | + |
| 35 | +## False positives ruled out |
| 36 | + |
| 37 | +- Agent rollback "Before blob could not be downloaded": the mock had no blob route. With the route added, rollback passes. |
| 38 | +- Hosted not rewriting a pin that lives only in a `-r` include: documented root-only behaviour. |
| 39 | +- Rollback refusing a pylock where every package is hosted: known (#410 class). |
| 40 | + |
| 41 | +## Next |
| 42 | + |
| 43 | +1. #2272 re-verify once fixed. |
| 44 | +2. #1851 re-verify (out-of-root include). |
| 45 | +3. Mirror follow-ups (fork on the mirror host, 401 + netrc install) and pip 26.3 `--group` from pylock. |
0 commit comments