Skip to content

Improvement: the owner can trust a module author to approve and publish their own updates - #2523

Merged
repeat98 merged 6 commits into
mainfrom
improvement/trusted-authors
Dec 2, 2026
Merged

repeat98 merged 6 commits into
mainfrom
improvement/trusted-authors

Conversation

@repeat98

@repeat98 repeat98 commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Works: the owner can now trust a module author to approve and publish their own updates. A trusted author signs their own module's approval record, and the release bot merges it with the module's package. AForceTrulyEvil (Grain) is the first entry. Who must act: the owner reviews and merges this, because it changes the release gate. On a unit: nothing here runs on a unit.

  • What was wrong or hard: a registered author could release updates only when every check had full evidence. Anything else needed a sdk/approvals/<id>-build-approval.json record signed repeat98, and the author bot refused any change to it. Once a module had one of those records, every later version failed modules:check until the owner wrote a new one, which is where Grain 0.2.0 (Grain 0.2.0: EDGE, Flex recording fix, POS lock fix #2426) is stuck. The bot also refused every Octatrack package file (public/octatrack-modules/<id>/*.mwrm, octatrack-module-packages.json, frame-costs.json), so no Octatrack author update could merge automatically at all.
  • What this changes: sdk/approvals/trusted-authors.json lists the authors the owner trusts, by numeric GitHub id and with his statement. Only the owner can change it: it sits under sdk/approvals/, which the author bot refuses and a maintainer's merge doesn't count for. A listed author may sign their own Octatrack module's build approval with their own login, under the owner's rules: exact version and native source, never verified hardware, only the five waivable items. The bot then merges it together with the module's .mwrm and its own rows in the package list and frame costs, with other modules' rows unchanged. One mayApprove rule replaces the hard-coded approvedBy === 'repeat98' in modules:check, the release-cost waiver, the perf audit and module:doctor. A trusted author also skips the new-address check (owner's call, 2 December 2026), so a new hook or stock site doesn't need the owner either. The owner notice on every automatic release and the 48-hour follower hold stay on. The package files are open only to trusted authors, because CI doesn't rebuild a .mwrm from source.
  • How I checked it: new cases in src/release/author-updates.test.ts, scripts/author-update-git.test.mjs and src/catalog/module-qualification.test.ts, then the affected suites and npm run pr:ready (Ready on bf8194d). I replayed Grain 0.2.0: EDGE, Flex recording fix, POS lock fix #2426 on this branch with a Grain 0.2.0 record signed by AForceTrulyEvil. The scope check accepts every file it changes, and modules:check passes with the 105.3 % release-cost waiver. The same replay as another registered author: "Another author owns grain". Before the address skip, Grain 0.2.0: EDGE, Flex recording fix, POS lock fix #2426 still went to owner review: it names 0x40007960, 0x400041cc, 0x400041c4 and 0x460d174c, a new hook on the stock FLEX reader's PCM copy. With the skip, the unmodified scope check accepts it. A new test checks that a trusted author may reach a new address, but the same login under another account id may not.
  • Tested on a unit: Not tested on a unit: no built package or base changes.
  • Edge cases: none, because no built package or base changes. The authorization cases (wrong signer, another module's record, the trusted list itself, another module's package or row, a stale package path, a reused login with another id) are in the unit tests.
  • What the guides lacked or got wrong, and where I fixed it: docs/MODULE_AUTHOR_UPDATES.md said every release exception needs owner review. It now has a "Trusted authors" section, and the two lines that said so point to it.

🤖 Generated with Claude Code

repeat98 and others added 5 commits December 2, 2026 10:20
…sh their own updates

sdk/approvals/trusted-authors.json lists authors by numeric id with the
owner's statement. A listed author signs their own Octatrack module's
build approval with their own login, and the author workflow merges it
together with the module's .mwrm package and its own rows in
octatrack-module-packages.json and frame-costs.json. The address check,
the owner notice and the 48-hour follower hold stay. First entry:
AForceTrulyEvil (Grain).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…at a trusted author signed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…les:check now reads

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t the owner

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the enhancement New feature or request label Dec 2, 2026
@repeat98
repeat98 enabled auto-merge December 2, 2026 10:42
@repeat98
repeat98 merged commit e37716e into main Dec 2, 2026
13 checks passed
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