Wave 2: whiteboard's own names and its own store, and its gates on the forge (mcl-whiteboard#3) #4
Loading…
Reference in a new issue
No description provided.
Delete branch "pluto/3-c4-c2-forge-ci"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
ci.ymlwas still the GitHub shape (ghcr image without pull credentials,actions/checkoutandupload-artifactinside a container with no node, every job buttestguarded to github.com). The gates now run on a forgedockerrunner: 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.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.store_idline leaves evoq's app env.What to check
GuideBoardLifecycle.Store.id/0is the only place the store id is written;MclWhiteboard.Service.event_store/0and all 13 dispatch sites read it there.store_idapp env not naming this store; the mutant that drops the opts fromMaybeInitiateBoardwas run and the test went red.Review r=1, folded in (
762f573)F1: only
MaybeInitiateBoardwas covered, so the other desks could dropstore_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, andboard_live's initiate is public and held the same way. Mutants:MaybeHostBoard,MaybeArchiveBoardandboard_liveeach dropped, each red; restored, green. F2: the architecture README's EventStore row now says the id is written once inGuideBoardLifecycle.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 withmix releaseand boots, opening:board_storeand its evoq subscription, until the smoke run stops it.🤖 Generated with Claude Code
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