Wave 2: whiteboard's own names and its own store, and its gates on the forge (mcl-whiteboard#3) #4

Manually merged
terra merged 5 commits from pluto/3-c4-c2-forge-ci into main 2026-12-02 08:35:31 +00:00
Member

Wave 2 (mcl-martha#1), the two changes consolidation needs from whiteboard, plus the CI port that makes its gates run on the forge.

Refs macula-services/mcl-whiteboard#3, martha-ai/mcl-martha#1, macula-services/mcl-om#8

Commits

  1. ci: the gates run on the forge, and the dead publish chain goes. ci.yml was still the GitHub shape (ghcr image without pull credentials, actions/checkout and upload-artifact inside a container with no node, every job but test guarded to github.com). The gates now run on a forge docker runner: verify toolchain (OTP 28.4.3, ML-DSA, Elixir 1.18.4), deps.get, format, compile --warnings-as-errors, credo, test, dialyzer. guard, image, attest and promote-latest are removed with the two pinned copies only they called, as mcl-bookclub-phoenix 1dcf7a2f did: whiteboard ships inside the mcl-martha bundle, not as its own image.
  2. ci: pin the public macula-ci-ex118, no credentials. The macula-io copy is moving to macula-private and being deleted (macula-realm#36). The pin is git.macula.io/macula-pub/macula-ci-ex118@sha256:942fc83e…cb52, taken from macula-ci-images#39's close (comment 7761, main 37a83d30), whose own pull reported Elixir 1.18.4 on OTP 28.4.3.
  3. C4 + C2. The two read-model apps get whiteboard's own names, so they stop colliding with mcl-kanban's; every evoq dispatch names the store from one module, and the store_id line leaves evoq's app env.

What to check

  • The wire did not move: no event type, aggregate type, ETS table or mesh topic changed. The C4 SVGs are regenerated from their generator (two box labels), not redrawn.
  • GuideBoardLifecycle.Store.id/0 is the only place the store id is written; MclWhiteboard.Service.event_store/0 and all 13 dispatch sites read it there.
  • The new test dispatches through the real router with evoq's store_id app env not naming this store; the mutant that drops the opts from MaybeInitiateBoard was run and the test went red.

Review r=1, folded in (762f573)

F1: only MaybeInitiateBoard was covered, so the other desks could drop store_id. Driving every desk on one board does not close that, because evoq's aggregate registry is keyed {aggregate, id} with no store and a running aggregate keeps the store it started with; measured, the driven-board test passed with two desks mutated. So the test runs all twelve desks and holds the options each hands the router, and board_live's initiate is public and held the same way. Mutants: MaybeHostBoard, MaybeArchiveBoard and board_live each dropped, each red; restored, green. F2: the architecture README's EventStore row now says the id is written once in GuideBoardLifecycle.Store.id/0.

Verified locally

On OTP 28.4.3 / Elixir 1.18.4: mix format --check-formatted, mix compile --warnings-as-errors, mix credo (no issues), mix test (124 tests, 0 failures), mix dialyzer (passed; the repo's configured skips only). The standalone release builds with mix release and boots, opening :board_store and its evoq subscription, until the smoke run stops it.

🤖 Generated with Claude Code

Wave 2 (mcl-martha#1), the two changes consolidation needs from whiteboard, plus the CI port that makes its gates run on the forge. Refs macula-services/mcl-whiteboard#3, martha-ai/mcl-martha#1, macula-services/mcl-om#8 ## Commits 1. **ci: the gates run on the forge, and the dead publish chain goes.** `ci.yml` was still the GitHub shape (ghcr image without pull credentials, `actions/checkout` and `upload-artifact` inside a container with no node, every job but `test` guarded to github.com). The gates now run on a forge `docker` runner: verify toolchain (OTP 28.4.3, ML-DSA, Elixir 1.18.4), deps.get, format, compile --warnings-as-errors, credo, test, dialyzer. guard, image, attest and promote-latest are removed with the two pinned copies only they called, as mcl-bookclub-phoenix 1dcf7a2f did: whiteboard ships inside the mcl-martha bundle, not as its own image. 2. **ci: pin the public macula-ci-ex118, no credentials.** The macula-io copy is moving to macula-private and being deleted (macula-realm#36). The pin is `git.macula.io/macula-pub/macula-ci-ex118@sha256:942fc83e…cb52`, taken from macula-ci-images#39's close (comment 7761, main 37a83d30), whose own pull reported Elixir 1.18.4 on OTP 28.4.3. 3. **C4 + C2.** The two read-model apps get whiteboard's own names, so they stop colliding with mcl-kanban's; every evoq dispatch names the store from one module, and the `store_id` line leaves evoq's app env. ## What to check - The wire did not move: no event type, aggregate type, ETS table or mesh topic changed. The C4 SVGs are regenerated from their generator (two box labels), not redrawn. - `GuideBoardLifecycle.Store.id/0` is the only place the store id is written; `MclWhiteboard.Service.event_store/0` and all 13 dispatch sites read it there. - The new test dispatches through the real router with evoq's `store_id` app env not naming this store; the mutant that drops the opts from `MaybeInitiateBoard` was run and the test went red. ## Review r=1, folded in (762f573) F1: only `MaybeInitiateBoard` was covered, so the other desks could drop `store_id`. Driving every desk on one board does not close that, because evoq's aggregate registry is keyed `{aggregate, id}` with no store and a running aggregate keeps the store it started with; measured, the driven-board test passed with two desks mutated. So the test runs all twelve desks and holds the options each hands the router, and `board_live`'s initiate is public and held the same way. Mutants: `MaybeHostBoard`, `MaybeArchiveBoard` and `board_live` each dropped, each red; restored, green. F2: the architecture README's EventStore row now says the id is written once in `GuideBoardLifecycle.Store.id/0`. ## Verified locally On OTP 28.4.3 / Elixir 1.18.4: `mix format --check-formatted`, `mix compile --warnings-as-errors`, `mix credo` (no issues), `mix test` (124 tests, 0 failures), `mix dialyzer` (passed; the repo's configured skips only). The standalone release builds with `mix release` and boots, opening `:board_store` and its evoq subscription, until the smoke run stops it. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The workflow was still the GitHub shape, so nothing ran on the forge: a ghcr
toolchain image with no pull credentials, `ubuntu-latest` with actions/checkout
and upload-artifact inside a macula-ci image that carries no node, and every
job but `test` guarded `if: github.server_url == 'https://github.com'`, so those
could never run again once GitHub CI was retired (DECIDED 2026-11-21 "move all
our work off Github"). On the forge, `attest` is a reusable job needing the
skipped `image`, the failure mcl-bookclub-phoenix hit and fixed in 1dcf7a2f.

- ci.yml: the gates (format, compile, credo, test, dialyzer) run on a forge
  `docker` runner in the forge registry's macula-ci-pq by digest, with the org's
  read-only pull account and the node step the JavaScript actions need. The
  tested-lock hand-off leaves with the image job that read it.
- guard, image, attest and promote-latest are removed: whiteboard ships inside
  the mcl-martha bundle, not as its own image. The Containerfile and
  scripts/assert_release_matches_lock.sh stay for a forge release path when one
  is asked for.
- ci-images-attest-image.yml and ci-images-release-guard.yml are deleted: no
  job calls them any more. c4-model.yml (already forge-shaped, green in
  mcl-mail today) and c4-design-gate.yml (an `issues` event the forge does not
  have) keep their shape.

Refs macula-services/mcl-whiteboard#3
Refs macula-io/martha#601
The macula-io copy of the toolchain package is moving to macula-private and
being deleted (macula-io/macula-realm#36), so the gates pin the public
git.macula.io/macula-pub/macula-ci-ex118 by digest instead. The digest is the
one macula-io/macula-ci-images#39's close read back from the registry
(comment 7761, tag ex118-20261202-0640, main 37a83d30): it is built from the
same Containerfile.ci-pq-ex118, and that comment's own pull of it reported
Elixir 1.18.4, OTP_VERSION 28.4.3, which is what these gates need.

This repository is public, so the job carries no pull credentials: the pin is
an anonymous read.

Refs macula-services/mcl-whiteboard#3
Refs macula-io/macula-ci-images#39
The two changes consolidation needs from this paused service, nothing else
unless it follows from them.

C4, the names. The app atoms :project_boards and :query_boards and the
modules ProjectBoards.* / QueryBoards.* were the only names this repository
shared with mcl-kanban, which holds the same two app names for different
code. They become :project_whiteboard_boards / :query_whiteboard_boards and
ProjectWhiteboardBoards.* / QueryWhiteboardBoards.*, with the app directories,
the release's application list, every umbrella dependency, the Containerfile's
COPY lines and the C4 diagrams following. The wire does not move: no event
type, aggregate type, ETS table or mesh topic changes, only the names the BEAM
node holds. The diagrams are regenerated from architecture/c4_diagrams.py, a
rename of two box labels, not a redraw.

C2, the dispatch names its store. Every :evoq_router.dispatch/1 call (the
twelve Maybe* desks and the web app's default-board initiate) now passes
store_id, read from GuideBoardLifecycle.Store.id/0, which is the one place the
id is written: MclWhiteboard.Service.event_store/0 opens the store under the
same value. The store_id line leaves the evoq block of config/runtime.exs:
evoq falls back to it on any dispatch that names none, and in a bundle it is
one value per VM for every service that uses evoq.

The new test dispatches a board through the real router with evoq's store_id
app env not naming this store, so it fails if a desk stops naming the store;
it went red when the opts were dropped from MaybeInitiateBoard and green when
they were restored.

Refs macula-services/mcl-whiteboard#3
Refs martha-ai/mcl-martha#1
F1 (a surviving mutant). Only MaybeInitiateBoard was dispatched in any test,
so eleven desks and board_live's initiate could drop `store_id` and the suite
stayed green. Driving every desk on one board does NOT close this: evoq's
aggregate registry is keyed {aggregate, id} with no store, and an aggregate
already running keeps the store it started with, so only a board's first
dispatch (always the initiate) resolves the option. Measured: with the option
dropped from MaybeHostBoard and MaybeArchiveBoard, a driven-board test passed.

- every_desk_names_the_store_test: runs all twelve desks and captures the
  options each hands the router, failing unless every one names
  GuideBoardLifecycle.Store.id/0. Mutants dropped from MaybeHostBoard and
  from MaybeArchiveBoard each turned it red; restored, green.
- board_live's initiate is public now (documented), and a test holds its
  options the same way: dropped, red; restored, green.
- Architecture README, EventStore row: the id is written once in
  GuideBoardLifecycle.Store.id/0, not twice with a test comparing them.

Refs macula-services/mcl-whiteboard#3
Review r=2 nit: the setup binding the desk test never reads (mcl-whiteboard#3)
All checks were successful
c4 model / c4-model-1 (pull_request) Successful in 4s
c4 model / c4-drift (pull_request) Successful in 4s
c4 model / c4-model (pull_request) Successful in 0s
ci / gates (OTP 28.4.3 / Elixir 1.18.4) (pull_request) Successful in 6m7s
c4 model / c4-drift (push) Successful in 2s
c4 model / c4-model-1 (push) Successful in 2s
c4 model / c4-model (push) Successful in 0s
ci / gates (OTP 28.4.3 / Elixir 1.18.4) (push) Successful in 8m15s
509c6c5309
`_opts`, so compiling the test no longer warns on the unused variable.

Refs macula-services/mcl-whiteboard#3
terra manually merged commit 509c6c5309 into main 2026-12-02 08:35:31 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
macula-services/mcl-whiteboard!4
No description provided.