Skip to content

Say which half of the worker the everyday gates already cover - #384

Merged
max-sixty merged 2 commits into
mainfrom
fix/worker-gate-claim
Sep 7, 2026
Merged

max-sixty merged 2 commits into
mainfrom
fix/worker-gate-claim

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

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.

Evidence

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:

_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.

@leaf-agent leaf-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 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.

Comment thread CLAUDE.md Resolved
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.
@max-sixty
max-sixty merged commit 40bcf9c into main Sep 7, 2026
7 checks passed
@max-sixty
max-sixty deleted the fix/worker-gate-claim branch September 7, 2026 16:06
max-sixty pushed a commit that referenced this pull request Sep 7, 2026
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]>
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