Skip to content

docs: name shared/steps/ in the lists of suites root pytest collects - #1065

Merged
max-sixty merged 2 commits into
mainfrom
fix/claude-md-shared-steps
Aug 27, 2026
Merged

max-sixty merged 2 commits into
mainfrom
fix/claude-md-shared-steps

Conversation

@tend-agent

@tend-agent tend-agent commented Aug 27, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Four live files enumerate the suites a root uv run pytest collects, and all four still describe the pre-port set — "generator/, proxy/, and the install-tend scripts". The bash→Python port of the composite-action step bodies (9a330b8, 374f1b1) added a fifth directory, shared/steps/, whose test_*.py files contribute 164 of the 717 tests the root run now collects, about 23% of the Python suite.

Those lists are the repo's own statement of what one pytest covers, and a session reading any of them comes away thinking the step bodies — the security preflight, the rate-limit gate, the agent supervisor, the outage tracker — are tested somewhere else, or not at all. pyproject.toml's is the sharpest case: it's the file that configures the collection, and its comment contradicts itself two lines apart, naming shared/steps/ in the sentence right after the list that omits it.

Fix

Add shared/steps/ to all four, and reflow the paragraphs that the added words pushed past their files' wrap width.

CHANGELOG.md's #977 entry carries the same list and is left alone — it records what was true at that release.

Verification

$ uv run pytest --collect-only -q | grep -c '^shared/steps'
164
$ uv run pytest -q
717 passed

That run was from the first commit's session; uv isn't on the PATH in this repo's agent sandbox, so the follow-up commit's verification is CI's own test job. Every change in it is a comment or prose line — no Python, no YAML key, no wt step body — and nothing under generator/tests or shared/steps asserts on these strings (grep -rn 'install-tend scripts\|Every Python test' --include='*.py' is empty).

No regression test: the change is a noun in four documentation lists. A test tying those sentences to the set of directories pytest actually collects is the kind of machinery CLAUDE.md itself rules out — complexity earns its place by preventing a wrong outward action, and a stale doc sentence is not one.

@tend-agent tend-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The claim checks out: shared/steps/ really is part of the root pytest run — pyproject.toml's own workspace comment names it two sentences later ("proxy/, shared/steps/ and the install-tend scripts dir aren't packages, so pytest's prepend import mode names their test modules by basename alone"). The edit itself is right.

The same stale list is in three other live files, and the description says it isn't.

The PR body asserts that .github/workflows/ci.yaml "already names shared/steps/ in the comment above its uv run --python 3.12 pytest, so CLAUDE.md is the one place left describing the pre-port set." ci.yaml does mention shared/steps/, but in the interpreter-pinning comment ("the step bodies under shared/steps/ execute on the runner's own /usr/bin/python3") — a different claim about a different thing. Its enumeration is the comment introducing the test: job, and it reads "Every Python test in the repo — pytest collects generator/, proxy/, and the install-tend scripts from the root": stale in exactly the way CLAUDE.md's was.

Two more:

  • pyproject.toml, the workspace-root comment — "collecting from the root reaches generator/, proxy/, and the install-tend scripts". The next sentence names shared/steps/, so the comment contradicts itself two lines apart.
  • .config/wt.toml, the wt test comment — "one pytest from the repo root covers every Python test (generator/, proxy/, the install-tend scripts)".

(CHANGELOG.md's #977 entry carries the same list, but it's a historical record of what was true then — leave it.)

The PR's own argument is that a reader of the list comes away thinking the step bodies — the security preflight, the rate-limit gate, the agent supervisor, the outage tracker — are tested elsewhere or not at all. That argument covers all four sites equally; pyproject.toml's is arguably the worst of them, since it's the file that actually configures the collection. Fixing one of four while asserting the rest are already correct leaves the drift in place under a stronger claim. Worth folding the three into this PR — and the "one place left" sentence needs correcting either way.

Where each one is

Comment thread CLAUDE.md Resolved
The same enumeration of what a root `uv run pytest` collects appears in
`.github/workflows/ci.yaml` (the comment above `test:`), `pyproject.toml`
(the workspace-root header), and `.config/wt.toml` (the `wt test` comment).
All three predate the bash to Python port of the composite-action step
bodies and still omit `shared/steps/`. `pyproject.toml`'s contradicted
itself two lines apart, naming `shared/steps/` in the sentence after the
list that excluded it.

Also reflows the CLAUDE.md paragraph the previous commit pushed to 91
columns, and leaves CHANGELOG.md's copy alone: it records what was true at
that release.
@tend-agent tend-agent changed the title docs: name shared/steps/ among the suites root pytest collects docs: name shared/steps/ in the lists of suites root pytest collects Aug 27, 2026
@tend-agent

Copy link
Copy Markdown
Collaborator Author

Right on all three, and the "one place left" claim was wrong in the way you describe: .github/workflows/ci.yaml does say shared/steps/, but in the interpreter-pinning comment about which python3 the step bodies execute on — not in the enumeration above test:, which was as stale as CLAUDE.md's. Folded the three in as 7a7a34c and rewrote the PR body so the claim matches: four sites, all four fixed, CHANGELOG.md's left as the historical record.

pyproject.toml and .config/wt.toml needed the same reflow as CLAUDE.md — inserting shared/steps/ pushed a line past each file's own width — so that's in the commit too.

One gap worth naming: uv isn't on the PATH in this repo's agent sandbox, so I couldn't re-run pytest or pre-commit locally after the follow-up commit. Every line in it is a comment or prose, and no Python asserts on these strings, so CI's test job is the verification. Polling it now.

@max-sixty
max-sixty merged commit f556fff into main Aug 27, 2026
10 checks passed
@max-sixty
max-sixty deleted the fix/claude-md-shared-steps branch August 27, 2026 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants