Skip to content

docs(dev): ARCHITECTURE and TESTING as the current design, PLAN trimmed, AGENTS.md (#192) - #262

Merged
mmcky merged 2 commits into
mainfrom
docs/192-dev-docs-current
Nov 5, 2026
Merged

mmcky merged 2 commits into
mainfrom
docs/192-dev-docs-current

Conversation

@mmcky

@mmcky mmcky commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

PR 5 of the user manual (#178), under its decision 4: docs/dev describes the project as it is, with no dated status blocks, "corrected on" notes or resolved questions. ARCHITECTURE and TESTING are rewritten as the current design, PLAN is trimmed to what is open, and a root AGENTS.md replaces .github/copilot-instructions.md. It also closes #201: no container size is written into the docs any more.

Why

Changes

File Change
docs/dev/ARCHITECTURE.md Rewritten as the current design. The parts and where they live; how a build fits together (pointing at the manual's composition chapter); and the design decisions: composite actions, one job each, and the @v0 siblings that follow from it; the environment as an image (one shared image in two variants, container mode detected by the marker file, standard mode kept, images changed only by reviewed pull requests); the two caches and why the build cache is keyed on the environment; credentials kept out of the jobs that run notebooks; pinned installs; inputs through env: and scripts found from $GITHUB_ACTION_PATH; failure alerting and its != 'true' guards; the generated manual; releases. A current repository layout.
docs/dev/TESTING.md Rewritten as how testing works now. A table of the five layers (harness, validate-containers.yml, test-container.yml, the lecture matrix, the canary); the harness's gate, its IGNORED list and self-test, the docs checks it runs, and harness-summary's rule; its three fixtures; what each action's jobs assert, written from the 43 jobs in test-actions.yml; the templates' jobs; adding a job; the containers; the canary's three workflows; local checks; and what none of it covers.
docs/dev/PLAN.md Trimmed to the current state, the consumers table and the canary's limits, the priorities (P0 0a–0d and backlog items 11, 12, 15 and 18, keeping the numbers issues cite, such as #228's "PLAN item 18"), the dependency policy, the open issues grouped by area, and rollout. Closed items, closed issues' rows, the "Last updated" history and the dated corrections go. 0b and the #100 row say the harness tests release-asset packaging (publish-release-packaging). The release line says v0.15.0 is tagged and staged, with @v0 still on v0.14.0.
AGENTS.md (new) Where to look for what, a short list of rules that are easy to miss (generated descriptions, the CHANGELOG and staged releases, no paths: on the harness, env: and $GITHUB_ACTION_PATH, what a containers/** merge does, docs describe the present), and the checks to run. It points at docs/dev, CONTRIBUTING and the manual rather than repeating them. Root AGENTS.md is already in the gate's IGNORED.
.github/copilot-instructions.md Removed. Copilot code review reads a root AGENTS.md as repository instructions (GitHub's custom-instructions support table), so the review keeps its instructions. Its tool-specific advice about writing gh bodies to files was for one assistant's terminal, and does not carry over.
docs/dev/CONTAINER-VALIDATION.md Beyond #192's checklist, on the organiser's word, since it is the same decision 4 in a file this PR already edits. Rewritten as the lecture matrix as it runs: when (after each image build, weekly on Monday at 02:00 UTC, by hand), what it builds (both images, four repositories, the per-repo time limits, the builders in turn, a repository's legs one at a time, the HTML retry with --all, lecture-jax out until lecture-jax#284), and how to read a run (the leg names, the runner CPU in the summary, the retry's artifacts, the tracking issue a failed or cancelled run opens). The 6 February 2026 results and timings go; the size column gives way to a pointer to the size report (#201).
tests/README.md Its table no longer says the harness has 14 jobs, and lists all three fixture directories; the canary row says what the canary runs that the harness cannot.
CONTRIBUTING.md The doc-update table gains rows for docs/dev/TESTING.md and docs/dev/ARCHITECTURE.md.
CHANGELOG.md One Documentation entry under the new [Unreleased].

What I checked, and how

The issue's premises, against origin/main (sent to the organiser before I built on them):

#201's sizes. A grep of every .md file for 8.60, 7.32, 3.33, 2.93, the 2026.07 figures and any N GB, and of every .yml, .py, .sh, .js, .cjs and Dockerfile for N GB. Before this PR the hits outside history were ARCHITECTURE l.15 and l.54, TESTING l.187, copilot-instructions l.33, l.34 and l.135, and CONTAINER-VALIDATION l.21–22; all are gone. What remains is in released CHANGELOG sections and the .qe/dev/log review records, which are history, and nothing in the non-Markdown files.

The facts in the rewrites, read from main:

  • Every harness job's name and needs: from test-actions.yml (parsed with PyYAML: 43 jobs, plus gate and harness-summary), harness-summary's rule from its script, the gate's step names, and the three fixture directories.
  • That no harness job files a real issue (create-issue-on-failure: 'false' throughout), and that its header records build-jupyter-cache's @v0 siblings.
  • The canary's cache.yml schedule (cron: '0 3 * * 0'), and its ci.yml and publish.yml triggers.
  • The lecture matrix's triggers, matrix, per-repo timeout-minutes, job-level concurrency group, HTML retry and artifact names, runner-CPU summary line and notify-failure condition, from test-containers-lectures.yml; lecture-jax#284 is still open.
  • The scripts each action reaches through $GITHUB_ACTION_PATH; the pinned third-party actions; each action directory's files.
  • The consumers table's pins, re-read from each repository's workflows after the release: eight call sites on @v0.12.0, the rest on @v0.
  • Every open issue (gh issue list --state open) has a place in PLAN's open-issues table, and no closed issue does.

The checks:

  • python3 scripts/generate-docs.py --check --check-examples --actionlint with actionlint 1.7.12: generated docs current, 57 steps and 14 workflows checked, actionlint clean.
  • A link and anchor check over 31 Markdown files, the manual, the dev docs and every root README: no broken relative link or #anchor. Nothing refers to .github/copilot-instructions.md any more.
  • No strikethrough, "Last updated", "Updated:" or "Corrected" lines in docs/dev or AGENTS.md.
  • CHANGELOG.md from ## [0.15.0] down is byte-identical to main's (cmp), and the entry sits under the new empty ## [Unreleased].

Removing .github/copilot-instructions.md is not a path the gate ignores, so the whole harness runs on this PR.

What to watch after merge

  • v0 moving to v0.15.0. PLAN's release line says @v0 is still on v0.14.0; when it moves, the next PLAN edit says so, as does the follow-up that removes Getting started's IMPORTANT alert.

Not in this PR

Closes #192
Closes #201

🤖 Generated with Claude Code

https://claude.ai/code/session_01WT8bMXc6EroDo2qFL1pCjS

…ed, AGENTS.md (#192)

PR 5 of the user manual (#178), under its decision 4: docs/dev
describes the project as it is.

ARCHITECTURE.md is the current design: the parts, and why the actions
are composite, the environment an image, the two caches keyed as they
are, deploys kept in jobs of their own, installs pinned, inputs passed
through env:, failures alerted and the manual generated. The pitch,
performance targets, migration plan, resolved questions and success
criteria are gone.

TESTING.md is how testing works now: the harness's gate and summary,
its fixtures, what each action's jobs cover (from the 43 jobs in
test-actions.yml), the container checks, the canary, local checks, and
what nothing covers. It had said the preview actions and
publish-gh-pages were untested.

PLAN.md keeps the current state, consumers, the open priorities under
their original numbers, the dependency policy, open issues by area and
rollout. Closed items and the history go; 0b and the #100 row now say
the harness tests release-asset packaging.

A root AGENTS.md replaces .github/copilot-instructions.md, pointing at
docs/dev rather than repeating it. CONTAINER-VALIDATION.md points at
the Test Container size report, so no image size is written into the
docs (#201). tests/README.md and CONTRIBUTING's doc-update table
follow.

Closes #201

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMXc6EroDo2qFL1pCjS
Copilot AI balanced review requested due to automatic review settings November 5, 2026 07:58
… runs (#192)

The file opened with "This document records validation test results"
and carried the 6 February 2026 results, which #178's decision 4 drops
from docs/dev. It now says when the matrix runs, what it builds (both
images, four repositories, the per-repo time limits, the builders in
turn, the HTML retry), and how to read a run: the leg names, the
runner CPU in the summary, the retry's artifacts, and the tracking
issue a failed or cancelled run opens.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMXc6EroDo2qFL1pCjS

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Note

Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.

🟢 Approval recommended

The change is a documentation refresh with only minor wording nits noted and no unresolved issues affecting the update’s intent or maintainability.

No open issues 🎉

What changed in this PR

This pull request refreshes maintainer-facing documentation to describe the repository’s current architecture, testing practices, and planning state, removes stale historical/status content (including hard-coded container size figures), and replaces the legacy Copilot instructions file with a root-level AGENTS.md.

Changes:

  • Rewrite docs/dev/ARCHITECTURE.md and docs/dev/TESTING.md as current-state references (design decisions, repo layout, testing layers, harness mechanics/coverage).
  • Trim docs/dev/PLAN.md to current priorities, consumers/rollout, dependency policy, and open issues (dropping closed/history sections).
  • Remove embedded container image sizes and point to workflow size reports; introduce AGENTS.md and remove .github/copilot-instructions.md; update supporting docs and changelog entry.

Outstanding nits from review:

  • Consider clarifying the CHANGELOG wording (“inputs passed through env:”) to avoid implying the migration away from ${{ }} interpolations in run: is complete.
  • Consider rewording docs/dev/TESTING.md’s summary table row about templates’ hand-offs being tested on every PR, given templates/ is in the gate’s IGNORED list (templates-only PRs won’t run the fan-out jobs).

This pull request is ready to be approved.

File Summary
tests/​README.md Updates test-assets inventory to match current harness fixtures and clarifies the canary’s role.
docs/​dev/​TESTING.md Rewritten to document current testing layers, harness gate/fixtures, job coverage, and known gaps (with a noted nit about templates-only PR behavior).
docs/​dev/​PLAN.md Trimmed to current priorities/backlog references, consumers/rollout, dependency policy, and open issues grouped by area.
docs/​dev/​CONTAINER-VALIDATION.md Removes hard-coded image size figures; points to per-run size reporting instead.
docs/​dev/​ARCHITECTURE.md Rewritten as the current architecture/design decisions and repository layout (no historical “pitch/status” blocks).
CONTRIBUTING.md Adds doc-update guidance entries for the rewritten dev docs.
CHANGELOG.md Adds an [Unreleased] Documentation entry summarizing this docs refresh (with a noted nit on wording).
AGENTS.md New root guidance file pointing to canonical docs and listing key contribution rules/checks.
.github/​copilot-instructions.md Removed in favor of root AGENTS.md.

Review effort: Balanced

@mmcky
mmcky merged commit 2e50906 into main Nov 5, 2026
49 checks passed
@mmcky
mmcky deleted the docs/192-dev-docs-current branch November 5, 2026 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants