Skip to content

Document /random in server.py's docstring and the /hall 301 in README - #100

Merged
dmccoystephenson merged 2 commits into
mainfrom
feature/docs-sweep-random-hall-redirect
Nov 20, 2026
Merged

dmccoystephenson merged 2 commits into
mainfrom
feature/docs-sweep-random-hall-redirect

Conversation

@dmccoystephenson

Copy link
Copy Markdown
Member

Summary

Stage A documentation accuracy sweep. README's host, route, API, configuration and CLI tables, the Dockerfile ENV defaults, the usage-reporting section and the server.py module docstring were each checked against the source. The configuration table, the API status codes, the CLI examples and the Dockerfile defaults were all found to match. Three gaps were found and fixed:

  • src/arcade/server.py module docstring: the list of play.<base> routes left out /random (the 302 to a random deployed game). It has been added.
  • src/arcade/server.py comment above GET /api/games: it named ?tag=, ?org= and ?engine= but not ?q=, which filters.Filter.parse also takes and README documents. ?q= has been added.
  • README, "The hall": the 301 from /hall to /hall/ (the query is kept) was not mentioned. A sentence has been added. The behavior is pinned by test_hall_redirects_to_its_directory_keeping_the_query.

No behavior changes, so no CHANGELOG entry was added. __version__ is unchanged.

black --check src/arcade/server.py already reports pre-existing formatting drift on main (the long from arcade import … line and several others). None of it is on lines this PR touches, so it has been left for a formatting-only sweep, per the scope rule.

Skipped issues

Test plan

  • python3 -m pytest -q: 553 passed, 13 skipped
  • check-registry examples/games.yaml: 1 game(s) OK
  • CI: test (3.8), test (3.12), docker

No tracking issue: the gaps were found during this cycle's documentation sweep.

This PR description was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener).


drafted by Claude on behalf of Daniel Stephenson

🤖 Generated with Claude Code

dmccoystephenson and others added 2 commits November 19, 2026 21:48
A documentation accuracy sweep against the source found three gaps:
server.py's module docstring lists every play.<base> route except
/random, the comment over GET /api/games names ?tag=, ?org= and
?engine= but not ?q=, which filters.Filter.parse also takes, and README
does not say that /hall answers 301 to /hall/ keeping the query
(pinned by test_hall_redirects_to_its_directory_keeping_the_query).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@dmccoystephenson

Copy link
Copy Markdown
Member Author

Self-review rubric (an inline self-review: the author and the reviewer are the same session, so this is not an independent review):

  • Scope: PASS. Two files changed: README.md (+2/-1) and src/arcade/server.py (a docstring and one comment). Every hunk fixes drift found by the sweep. The pre-existing black drift in server.py has been left alone.
  • Tests-new: PASS (not applicable). No new function or method.
  • Tests-fix: PASS (not applicable). No bug fix and no behavior change.
  • Sibling structure: PASS. No new files. The new docstring line follows the column layout of the existing play.<base>/… lines.
  • Sibling renames: PASS (not applicable). Nothing renamed.
  • Docs: PASS. The README sentence matches _hall (self._send(301, …, Location "/hall/" + "?" + query)) and test_hall_redirects_to_its_directory_keeping_the_query. The docstring's /random line matches _random and README's /random row, including the fallback to the list. The comment's ?q= matches filters.Filter.parse and README's API row.
  • Issue resolution: PASS (not applicable). No Closes; this is a Stage A sweep with no tracking issue.
  • CI: PASS. test (3.8), test (3.12), docker and engine are all green on head after the second commit.
  • Stdlib-only / Py3.8 / naming: PASS. No code lines were added, only a docstring and a comment.
  • Vendored client untouched: PASS. trace_client.py is not in the diff.
  • Config / CLI documented: PASS (not applicable). No ARCADE_* variable and no CLI flag changed.
  • Changelog: PASS (not applicable). No user-visible behavior change, so there is no [Unreleased] entry. __version__ is unchanged.

Findings:

  • src/arcade/server.py:11: the first version of the new /random docstring line left out the fallback to the list when no game is deployed. This was fixed in the second commit.
  • src/arcade/server.py:609: the hunk sits next to the /api/games handler's public=True (CORS) line, but it changes only the comment, so the do-not-auto-merge rule for CORS logic is not triggered.

Summary: the PR is docs-only, so the regression gate does not apply. It meets the merge bar.

This review comment was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener).


drafted by Claude on behalf of Daniel Stephenson

@dmccoystephenson
dmccoystephenson merged commit e2f7a3b into main Nov 20, 2026
4 checks passed
@dmccoystephenson
dmccoystephenson deleted the feature/docs-sweep-random-hall-redirect branch November 20, 2026 04:57
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.

1 participant