Skip to content

Improvement: a change to what runs on an instrument stays a draft until its exact build ran on a unit - #1697

Merged
repeat98 merged 3 commits into
mainfrom
improvement/draft-until-tested
Nov 17, 2026
Merged

repeat98 merged 3 commits into
mainfrom
improvement/draft-until-tested

Conversation

@repeat98

Copy link
Copy Markdown
Owner
  • What was wrong or hard: npm run pr:ready ends with "Ready: this PR can merge without the owner repairing it" once the checks pass. That reads like a test verdict, and nothing tied a pull request that changes what runs on an instrument to a run on a unit. On 17 November 2026 base 0.7.8 (Improvement: Octatrack base 0.7.8, a module that no track uses rests #1694) went up ready to merge after only development twins had run. The exact release build, a full module set, the USB base update and a power cycle had not been tested. AGENTS.md already said to push only after the developer's testing, and that wasn't enough.
  • What this changes:
    • pr:ready: a branch that changes a built package or base (.mwrm, .elemod) now ends "Ready to open as a draft: the checks pass. Mark it ready for review once the exact build has run on a unit". It also gives gh pr create --draft and the line the description needs.
    • CI's description check (pr-flags.yml, main's scripts/pr-body.mjs): a ready pull request of that kind must have a line naming the build that ran, such as "Tested on a unit: base 8d1db124 (or the package's sha256), MKII, what ran". The alternative is "Not tested on a unit: ", for the owner to decide. Drafts pass. The check also reruns when a pull request is marked ready or turned back into a draft. It still runs no PR code: the description, the draft flag and the changed file names (from the API) are passed as data.
    • Written rule: AGENTS.md, the modwerk-pr-ready skill (both copies) and the pull request template say the same thing.
  • How I checked it: scripts/pr-body.test.mjs covers drafts, ready pull requests with and without a named build, a build named without a hash, "Not tested on a unit", and package versus source, docs or site changes. scripts/pr-ready.test.mjs covers the verdict and its notes. The YAML parses. npm run pr:ready passed every check except scripts/module-doctor.test.mjs, whose 30 s limit the doctor exceeded on this Mac under load 17-22 from other sessions. That test passes on its own (6 of 6), and node scripts/module-doctor.mjs --all with the board off exits 0 with no ✗. This branch does not touch the doctor; CI runs it on a clean runner.
  • Tested on a unit: nothing here runs on an instrument.
  • What the guides lacked or got wrong, and where I fixed it: AGENTS.md's "push only once the developer says their testing is done" had no mechanical counterpart, and pr:ready's wording suggested more than it checks. Fixed in AGENTS.md, the modwerk-pr-ready skill and the template.

🤖 Generated with Claude Code

repeat98 and others added 3 commits November 17, 2026 19:22
…il its exact build ran on a unit

pr:ready says Ready to open as a draft when a branch changes a .mwrm package or .elemod base, and
CI's description check refuses a ready pull request of that kind unless a line names the build
that ran (Tested on a unit: … with its hash) or says plainly that it was not tested. Drafts pass.
The check also runs when a pull request is marked ready or turned back into a draft. Base 0.7.8
(#1694) went up ready to merge after only development twins had run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the enhancement New feature or request label Nov 17, 2026
@repeat98
repeat98 merged commit beb3f43 into main Nov 17, 2026
13 checks passed
@repeat98
repeat98 deleted the improvement/draft-until-tested branch November 25, 2026 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant