Skip to content

Improvement: Board: a filter-id claim kind - #2447

Merged
repeat98 merged 1 commit into
repeat98:mainfrom
Claptom-music:improvement/board-filter-id
Nov 30, 2026
Merged

repeat98 merged 1 commit into
repeat98:mainfrom
Claptom-music:improvement/board-filter-id

Conversation

@Claptom-music

Copy link
Copy Markdown
Contributor

What was wrong or hard

The Digitakt II base now has module filter types (core_filters, base code in draft #2446). Each filter module takes a fixed filter type number from 7, and kits save it, so it needs the protection a machine id has. The board had no kind for it. The merged proposal (#2180) asked for one: a filter-id kind, with pr:ready noticing a package's new filter:<type> the way it notices machine:<id>. Its stopgap, claiming machine-id digitakt-ii/filter-7, does not work either: the server only takes a number after the machine in a machine-id key.

What this changes

  • Migration 0107 widens both board tables' kind lists (agent_claims.kind, agent_messages.topic_kind) with filter-id.
    • SQLite cannot widen a CHECK in place, so both tables are rebuilt with every row kept, as in 0086 and 0096.
    • The rebuild now also carries the columns 0103 added (parent_issue, parent_claim, outcome, evidence) with their CHECKs and indexes.
    • Dropping the old agent_claims would set every wanted task's parent_claim to NULL (ON DELETE SET NULL). The migration keeps those links in a scratch table and writes them back.
  • Server: filter-id keys like digitakt-ii/7 (the same form as machine ids).
  • npm run board -- check / pr:ready: a manifest that adds filter:<type> to platform.claims needs filter-id <machine>/<type>.
  • Board page, MCP text and docs/AGENT_BOARD.md name the kind ("Filter type").

How I checked it

  • npm run pr:ready: Ready (local checks passed in 289 s). Migration 0107 is claimed on the board.
  • scripts/agent-board.test.mjs and src/community/agent-board.test.ts: 58 pass, including a new filter type found in a manifest and filter-id keys accepted and refused.
  • The migration on a scratch SQLite database built from every migration up to 0106, seeded with claims and messages: a wanted task under a claim, one under an issue, a question with a reply carrying an outcome, and a released claim.
    • After 0107, every row and column is identical, including the parent_claim link.
    • filter-id claims and topics are accepted, and an unknown kind is refused.
    • ON DELETE SET NULL and the reply cascade still work, foreign_key_check is clean, and no scratch table is left.
  • Not run against the live D1: the migration applies on deploy.

Guides

docs/AGENT_BOARD.md had no row for an added filter type's number. It now has a filter-id row.

🤖 Generated with Claude Code

An added filter type's number (a manifest's filter:<type>, the Digitakt II's core_filters from 7) is saved in kits like a machine id, so it gets its own claim kind and message topic: migration 0107 widens both board tables' CHECKs (rebuilt with every row kept, the wanted tasks' parent_claim links set aside and written back), the server accepts filter-id keys like digitakt-ii/7, board check asks for one when a manifest adds filter:<type>, and the page, MCP text and AGENT_BOARD.md name it.
@github-actions github-actions Bot added the enhancement New feature or request label Nov 30, 2026
@repeat98
repeat98 merged commit 439bc65 into repeat98:main Nov 30, 2026
13 checks passed
repeat98 added a commit that referenced this pull request Nov 30, 2026
* Turn the support dialog into a support page with each device maintainer's Ko-fi

"Support Modwerk" opens #support instead of a dialog. Each device names one
maintainer (machine.json deviceMaintainer): repeat98 for the Octatrack, npp1993
for both Analog Rytm models, prodbysmolec for the Digitone II and durchgemacht
for the Model:Cycles. Each gets a card with their Ko-fi and a bar for this
month's tips against a goal they set; the owner's card keeps the site's Ko-fi,
its webhook and the running costs.

Maintainers connect their own Ko-fi in Creator settings → Device support. The
single Ko-fi webhook URL now tells whose Ko-fi was paid by the verification
token (the site's secret, or a maintainer's token kept only as its SHA-256), and
kofi_payments records the recipient (migration 0107). Device maintainers can use
the developer GitHub sign-in even without a module.

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

* Keep the app development guide's support paragraph short

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

* Renumber the device support migration to 0108: 0107 is claimed on the agent board (#2447)

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

* Design the support page, give it a path and a link preview, list devices without a maintainer

The page leads with the ways to help, then one panel for the site's running costs, then the maintainers as the
overview's machine panels with their photo, goal and Ko-fi; the site stays anonymous and the owner's card comes last.
Devices nobody maintains yet follow, each a mail to support@ to apply. Support Modwerk is a sidebar and menu entry
marked New (Base firmware loses its badge), and /support/ is a real path with its own card, set like the Start
developing and Other projects cards, now all in Host Grotesk.

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

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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.

2 participants