Repository navigation
Say which half of the worker the everyday gates already cover - #384
Conversation
leaf-agent
left a comment
There was a problem hiding this comment.
The correction is right and the evidence checks out: tests/test_website_server.py does spec_from_file_location("website_server", ROOT / "worker" / "server.py"), it carries no nightly mark so it is in the everyday suite, and .pre-commit-config.yaml's exclude does not name worker/, so the ruff hooks take server.py. working-directory: appears only for worker in ci.yaml, so the map passage's "the one part of the tree with a gate of its own" still holds, and test_the_root_instructions_name_every_directory_ci_gates_on_its_own passes on this branch because `worker/` stays named.
One precision point, in the sentence the rewrite adds. Running the hooks against the TypeScript half shows prettier and eslint skipping it, as the passage says — but four other hooks take those files:
$ uv run pre-commit run --files worker/src/index.ts worker/src/routing.ts
trim trailing whitespace.................................................Passed
fix end of files.........................................................Passed
mixed line ending........................................................Passed
prettier.............................................(no files to check)Skipped
eslint...............................................(no files to check)Skipped
typos....................................................................Passed
So "Nothing on either landing path reads worker/src/" is the same shape of literal claim the PR is fixing on the other half — the passage's own sense of "reads" is "takes the file as input", which those four do. What is actually absent is anything that parses the TypeScript. Suggestion inline.
The rewrite's own sentence said nothing on either landing path reads `worker/src/`, which is the literal-claim shape the PR is fixing on the other half: pre-commit's whitespace and typos hooks do take those files. What is absent is anything that parses them.
The root instructions say the everyday suite and pre-commit never read
`worker/`, so a worker change is ungated until CI's `website-worker` job
runs. That is true of `worker/src/`, but not of `worker/server.py`,
which both gates already cover — and `worker/server.py` is where the
container adapter lives, including the website-agent turn and reply
endpoints added yesterday. A session that takes the paragraph literally
runs the npm gate, which never touches `server.py`, and skips the suite
that does.
This rewrites both passages to say which half is ungated. No behavior
changes, so there is no regression test to add; the claim is checked
below against the two gates it describes, and the existing
`test_the_root_instructions_name_every_directory_ci_gates_on_its_own`
still passes because `` `worker/` `` stays named in the repository map.
<details><summary>Evidence</summary>
`tests/test_website_server.py` loads the adapter directly rather than
importing a package, so a grep for `import` in the suite does not show
it:
```python
_spec = importlib.util.spec_from_file_location(
"website_server", ROOT / "worker" / "server.py"
)
```
Both gates, run on this branch:
```
$ uv run pytest tests/test_website_server.py -q
4 passed in 2.09s
$ uv run pre-commit run ruff-check --files worker/server.py
ruff check...............................................................Passed
```
`.pre-commit-config.yaml`'s `exclude` does not name `worker/`, so every
Python hook takes `worker/server.py`. `ci.yaml`'s `website-worker` job
runs `npm ci`, `npm run typecheck`, `npm test`, and the wrangler dry run
— all under `working-directory: worker`, all against the TypeScript
project, none of which reads `server.py`.
The paragraph landed in #331 the day after
`tests/test_website_server.py` landed in #313, so it has been describing
the wrong half since it was written.
</details>
---------
Co-authored-by: leaf-agent <[email protected]>
The root instructions say the everyday suite and pre-commit never read
worker/, so a worker change is ungated until CI'swebsite-workerjob runs. That is true ofworker/src/, but not ofworker/server.py, which both gates already cover — andworker/server.pyis where the container adapter lives, including the website-agent turn and reply endpoints added yesterday. A session that takes the paragraph literally runs the npm gate, which never touchesserver.py, and skips the suite that does.This rewrites both passages to say which half is ungated. No behavior changes, so there is no regression test to add; the claim is checked below against the two gates it describes, and the existing
test_the_root_instructions_name_every_directory_ci_gates_on_its_ownstill passes because`worker/`stays named in the repository map.Evidence
tests/test_website_server.pyloads the adapter directly rather than importing a package, so a grep forimportin the suite does not show it:Both gates, run on this branch:
.pre-commit-config.yaml'sexcludedoes not nameworker/, so every Python hook takesworker/server.py.ci.yaml'swebsite-workerjob runsnpm ci,npm run typecheck,npm test, and the wrangler dry run — all underworking-directory: worker, all against the TypeScript project, none of which readsserver.py.The paragraph landed in #331 the day after
tests/test_website_server.pylanded in #313, so it has been describing the wrong half since it was written.