Wave 2: whiteboard carries its own names and its own store, and its gates run on the forge (mcl-martha#1) #3

Closed
opened 2026-12-02 07:56:01 +00:00 by pluto · 2 comments
Member

Purpose (feature): mcl-whiteboard can stand in one mcl-martha bundle beside mcl-kanban. Its two read-model apps carry whiteboard-own names instead of the ones kanban already holds, and every evoq dispatch names :board_store instead of leaning on evoq's one-per-VM store_id app env. Its own standalone release keeps working exactly as it does today, and its gates run on the forge.

Raf, 2026-12-02: "Yes, resume for mcl-martha (Recommended)" (resumed for this package only)
Raf, 2026-12-02: "Run the whole path (Recommended)"
DECIDED 2026-11-21 "move all our work off Github" (the CI port below)
DECIDED 2026-11-18: whiteboard is paused; the rename is the only change consolidation needs from it.

Refs martha-ai/mcl-martha#1, macula-services/mcl-om#8, macula-io/martha#601
Consolidation analysis §2.1 C2 and C4; §2.3 "whiteboard: only C4 (the renames) and C2".

What changes here

  1. C4, whiteboard's own names. The app atoms :project_boards and :query_boards, and the modules ProjectBoards.* and QueryBoards.*, are the only names this repository shares with mcl-kanban (apps/project_boards/mix.exs:6 in both). They become :project_whiteboard_boards / :query_whiteboard_boards and ProjectWhiteboardBoards.* / QueryWhiteboardBoards.*, with the app directories and every reference in the umbrella (release list, deps, supervisor names, docs) following. The wire does not move: no event type, aggregate type, ETS table or mesh topic name changes, only the names the BEAM node holds.
  2. C2, the dispatch names its store. Every :evoq_router.dispatch/1 call (13 sites: the Maybe* desks in guide_board_lifecycle, and mcl_whiteboard_web's default-board initiate) names the store on dispatch. One module names the id, and both the dispatchers and MclWhiteboard.Service.event_store/0 read it from there, so the id is written once. The store_id: :board_store line leaves the evoq block of config/runtime.exs: in a bundle it is one value per VM, set differently by every service that uses evoq. The adapters stay.
  3. The gates run on the forge. ci.yml was still the GitHub shape: ubuntu-latest, a ghcr image with no pull credentials, actions/checkout/upload-artifact in a toolchain image that carries no node, and save for test, every job guarded if: github.server_url == 'https://github.com'. Ported as mcl-bookclub-phoenix#3 did it: a forge docker runner, the forge registry's macula-ci-pq by digest with the org's read-only pull account, the node step the JavaScript actions need, no artifact hand-off, and the GitHub-only publish chain (guard, image, attest, promote-latest) removed with the two pinned copies only it called. c4-model.yml was already forge-shaped (its job is green in mcl-mail today) and gets no change; c4-design-gate.yml stays: it runs on an issues event the forge does not have, and is guarded GitHub-only. The workflows stay in .github: the forge reads .github/workflows where no .forgejo exists, which mcl-mail's green runs 6582/6583 prove.

Done when

  1. No app atom :project_boards or :query_boards and no ProjectBoards. / QueryBoards. module remains in this repository; mcl-kanban's own are untouched (it is not in this package).
  2. The wire is unchanged: the diff renames no event type, aggregate type, ETS table or mesh topic.
  3. No code reads evoq's store_id app env, the line is out of config/runtime.exs, and a test proves a dispatch reaches :board_store with no store_id in evoq's env.
  4. mix format --check-formatted, mix compile --warnings-as-errors, mix credo, mix test and mix dialyzer are green on OTP 28 / Elixir 1.18.4.
  5. A standalone release still builds and boots as it does today.
  6. On the forge, the gates job and the c4 model workflow run on the pull request and are green.
Purpose (feature): mcl-whiteboard can stand in one mcl-martha bundle beside mcl-kanban. Its two read-model apps carry whiteboard-own names instead of the ones kanban already holds, and every evoq dispatch names `:board_store` instead of leaning on evoq's one-per-VM `store_id` app env. Its own standalone release keeps working exactly as it does today, and its gates run on the forge. Raf, 2026-12-02: "Yes, resume for mcl-martha (Recommended)" (resumed for this package only) Raf, 2026-12-02: "Run the whole path (Recommended)" DECIDED 2026-11-21 "move all our work off Github" (the CI port below) DECIDED 2026-11-18: whiteboard is paused; the rename is the only change consolidation needs from it. Refs martha-ai/mcl-martha#1, macula-services/mcl-om#8, macula-io/martha#601 Consolidation analysis §2.1 C2 and C4; §2.3 "whiteboard: only C4 (the renames) and C2". ## What changes here 1. **C4, whiteboard's own names.** The app atoms `:project_boards` and `:query_boards`, and the modules `ProjectBoards.*` and `QueryBoards.*`, are the only names this repository shares with mcl-kanban (`apps/project_boards/mix.exs:6` in both). They become `:project_whiteboard_boards` / `:query_whiteboard_boards` and `ProjectWhiteboardBoards.*` / `QueryWhiteboardBoards.*`, with the app directories and every reference in the umbrella (release list, deps, supervisor names, docs) following. **The wire does not move**: no event type, aggregate type, ETS table or mesh topic name changes, only the names the BEAM node holds. 2. **C2, the dispatch names its store.** Every `:evoq_router.dispatch/1` call (13 sites: the `Maybe*` desks in `guide_board_lifecycle`, and `mcl_whiteboard_web`'s default-board initiate) names the store on dispatch. One module names the id, and both the dispatchers and `MclWhiteboard.Service.event_store/0` read it from there, so the id is written once. The `store_id: :board_store` line leaves the `evoq` block of `config/runtime.exs`: in a bundle it is one value per VM, set differently by every service that uses evoq. The adapters stay. 3. **The gates run on the forge.** `ci.yml` was still the GitHub shape: `ubuntu-latest`, a ghcr image with no pull credentials, `actions/checkout`/`upload-artifact` in a toolchain image that carries no node, and save for `test`, every job guarded `if: github.server_url == 'https://github.com'`. Ported as mcl-bookclub-phoenix#3 did it: a forge `docker` runner, the forge registry's macula-ci-pq by digest with the org's read-only pull account, the node step the JavaScript actions need, no artifact hand-off, and the GitHub-only publish chain (guard, image, attest, promote-latest) removed with the two pinned copies only it called. `c4-model.yml` was already forge-shaped (its job is green in mcl-mail today) and gets no change; `c4-design-gate.yml` stays: it runs on an `issues` event the forge does not have, and is guarded GitHub-only. The workflows stay in `.github`: the forge reads `.github/workflows` where no `.forgejo` exists, which mcl-mail's green runs 6582/6583 prove. ## Done when 1. No app atom `:project_boards` or `:query_boards` and no `ProjectBoards.` / `QueryBoards.` module remains in this repository; mcl-kanban's own are untouched (it is not in this package). 2. The wire is unchanged: the diff renames no event type, aggregate type, ETS table or mesh topic. 3. No code reads evoq's `store_id` app env, the line is out of `config/runtime.exs`, and a test proves a dispatch reaches `:board_store` with no `store_id` in evoq's env. 4. `mix format --check-formatted`, `mix compile --warnings-as-errors`, `mix credo`, `mix test` and `mix dialyzer` are green on OTP 28 / Elixir 1.18.4. 5. A standalone release still builds and boots as it does today. 6. On the forge, the `gates` job and the `c4 model` workflow run on the pull request and are green.
Author
Member

Landed. PR 4 merged into main at 509c6c5309 (fast-forward, read back on the origin).

Done-when, checked on main at that sha:

  1. No :project_boards / :query_boards atom and no ProjectBoards. / QueryBoards. module remains; the apps are project_whiteboard_boards and query_whiteboard_boards, and mcl-kanban was not touched.
  2. The wire is unchanged: board_initiated_v1 and the board_list_query / shape_mutation_request / presence topics keep their strings; only BEAM-side names moved.
  3. config/runtime.exs carries no store_id setting (only a comment saying why), all 14 :evoq_router.dispatch/2 sites pass %{store_id: GuideBoardLifecycle.Store.id()}, and that one module holds @id :board_store; apps/mcl_whiteboard/test/event_store_test.exs proves a dispatch reaches it.
  4. mix format, compile --warnings-as-errors, credo, test and dialyzer on OTP 28.4.3 / Elixir 1.18.4 are green in the gates job.
  5. The gates job still builds and boots the standalone release.
  6. On the forge the gates and c4 model workflows were green on the pull request (runs 6671, 6672) and on the main push (run 6695 c4-model jobs 27381-27383, run 6696 gates job 27384), all status=success.

Review: Jupiter PASS r=2, nit folded in at 509c6c5.

Landed. PR 4 merged into `main` at 509c6c53097237652b3901c150d167db51136b6a (fast-forward, read back on the origin). Done-when, checked on `main` at that sha: 1. No `:project_boards` / `:query_boards` atom and no `ProjectBoards.` / `QueryBoards.` module remains; the apps are `project_whiteboard_boards` and `query_whiteboard_boards`, and mcl-kanban was not touched. 2. The wire is unchanged: `board_initiated_v1` and the `board_list_query` / `shape_mutation_request` / `presence` topics keep their strings; only BEAM-side names moved. 3. `config/runtime.exs` carries no `store_id` setting (only a comment saying why), all 14 `:evoq_router.dispatch/2` sites pass `%{store_id: GuideBoardLifecycle.Store.id()}`, and that one module holds `@id :board_store`; `apps/mcl_whiteboard/test/event_store_test.exs` proves a dispatch reaches it. 4. `mix format`, `compile --warnings-as-errors`, `credo`, `test` and `dialyzer` on OTP 28.4.3 / Elixir 1.18.4 are green in the `gates` job. 5. The gates job still builds and boots the standalone release. 6. On the forge the gates and c4 model workflows were green on the pull request (runs 6671, 6672) and on the main push (run 6695 c4-model jobs 27381-27383, run 6696 gates job 27384), all `status=success`. Review: Jupiter PASS r=2, nit folded in at 509c6c5.
Author
Member

Correction to item 5 above: the gates job does not build or boot a release (its steps are toolchain, deps, format, compile, credo, test, dialyzer). Done-when 5 was proven locally on this same code, as the pull request body records: the standalone release builds with mix release and boots, opening :board_store and its evoq subscription, until the smoke run stops it. The gates job covers lines 4 and, with the c4 model workflow, line 6.

Correction to item 5 above: the gates job does not build or boot a release (its steps are toolchain, deps, format, compile, credo, test, dialyzer). Done-when 5 was proven locally on this same code, as the pull request body records: the standalone release builds with `mix release` and boots, opening `:board_store` and its evoq subscription, until the smoke run stops it. The gates job covers lines 4 and, with the c4 model workflow, line 6.
pluto closed this issue 2026-12-02 08:56:34 +00:00
Sign in to join this conversation.
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#3
No description provided.