Skip to content

Reconcile PYTHONPATH guidance across verification and MCP docs #96

Closed

Description

@omsherikar

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 exporting PYTHONPATH=. ... alongside your test command." The form that works today.
  • docs/verification/verify-diff.mdx:36: "Put the verified tree first on sys.path, for example PYTHONPATH=." States no form at all.
  • docs/mcp/: nine pages say "prefix it with PYTHONPATH=." (eight per-client agent prompts plus index.mdx:117); docs/mcp/quickstart.mdx:149 shows testCmd: "PYTHONPATH=. python3 -m pytest -q"; docs/mcp/tool-reference.mdx:178 says "Pass PYTHONPATH=. ... in testCmd". 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 PYTHONPATH mention 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 resulting coverage.tool; paste the results in the PR.
  • One canonical explanation of the mechanism lives in docs/verification/verdicts.mdx under "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:36 states a concrete, working form rather than "for example PYTHONPATH=.".
  • Any claim about a server-level env block 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-engineer reviews wording, and the docs build passes.

Non-goals

Activity

  1. added
    documentation
    on Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions