Repository navigation
Description
Blocked on #95.
Problem
Three documentation surfaces recommend three different forms of the same PYTHONPATH remedy, and one of those forms does not work today. A reader following the MCP pages writes the form that silently disables coverage; a reader following verdicts.mdx writes the form that works. Nothing tells them the two differ.
Evidence
grep -rln 'PYTHONPATH=' docs/ returns 13 files: 11 under docs/mcp/ and 2 under docs/verification/.
docs/verification/verdicts.mdx:215: "by exportingPYTHONPATH=.... alongside your test command." The form that works today.docs/verification/verify-diff.mdx:36: "Put the verified tree first onsys.path, for examplePYTHONPATH=." States no form at all.docs/mcp/: nine pages say "prefix it with PYTHONPATH=." (eight per-client agent prompts plusindex.mdx:117);docs/mcp/quickstart.mdx:149showstestCmd: "PYTHONPATH=. python3 -m pytest -q";docs/mcp/tool-reference.mdx:178says "PassPYTHONPATH=.... intestCmd". All prefix form.
The prefix form's failure is #95. docs/mcp/tool-reference.mdx:178 is worth calling out separately: it is not part of the per-client prompt set, so a fix that only touches the eight client pages will miss it.
Why this matters now
The PYTHONPATH remedy exists to fix shadow bypass, which is a correctness problem in the verdict itself: without it, the suite exercises the installed copy and the run proves nothing about the change. The population reading these pages is precisely the population whose verdicts are otherwise meaningless. Guidance that is inconsistent across three pages, one of which is inert, is guidance people will follow wrongly and never know.
These pages shipped to main in #94.
Acceptance criteria
- Blocked until Coverage silently fails when testCmd has a leading NAME=VALUE prefix #95 lands or is declined. The correct wording differs in each case, and writing it before then means writing it twice.
- Every
PYTHONPATHmention across all 13 files describes a form that works against the shipped build. Proof: run each distinct documented form once against a real project and record the resultingcoverage.tool; paste the results in the PR. - One canonical explanation of the mechanism lives in
docs/verification/verdicts.mdxunder "Make sure the tests run the code being verified". Every other mention links to it instead of restating it. Today three pages restate it in three ways, which is how they drifted. -
docs/verification/verify-diff.mdx:36states a concrete, working form rather than "for examplePYTHONPATH=.". - Any claim about a server-level
envblock in MCP client config as an alternative is verified against a real client config before it ships, not asserted. If it is not verified, it is not written. -
grep -rn 'PYTHONPATH=' docs/output is pasted in the PR and contains no instruction in an unsupported form. -
documentation-engineerreviews wording, and the docs build passes.
Non-goals
- Any change to engine behavior. That is Coverage silently fails when testCmd has a leading NAME=VALUE prefix #95.
- Rewriting the eight per-client MCP pages beyond the
PYTHONPATHparagraph. - Adding a new docs page. This is a consistency pass, not a new surface.
- Documenting an
envfield onverify_changethat does not exist.
Activity
docs(changelog): record the MCP tab and the PYTHONPATH reconciliation