P1: mcl-om history into mcl-core, renamed mcl_core, split contract/LAN/bridge #1

Closed
opened 2026-12-02 09:50:14 +00:00 by uranus · 2 comments
Member

Raf, 2026-12-02: DECIDED 2026-12-02 "I have created and cloned macula-services/mcl-core. Let's build this properly. In the end I hope we keep a single repo: mcl-core that will replace both mcl-om and mcl-lan"

Purpose (feature): mcl-core becomes the one service library. It carries mcl-om's history, so blame survives, under the name mcl_core and split into contract, LAN and bridge. This is P1 of the mcl-lan design (macula-services/mcl-lan docs/DESIGN.md §7), and P2, the LAN transport and the first mcl_core hex release, builds on it.

Supervisor rulings (Raf may overrule):

  • App and hex package mcl_core, module prefix mcl_core_*, a fresh 1.0 line. mcl_om 1.x stays published.
  • Design §8's repo-rename plan is void: mcl-om and mcl-lan are archived with a README pointer after the first mcl_core release.

Checked once (2026-12-02): https://hex.pm/api/packages/mcl_core answers 404, so the name is free.

Scope (P1):

  1. Merge mcl-om main (a8e35a1) into mcl-core with --allow-unrelated-histories.
  2. Rename mcl_om to mcl_core: files by git mv in a commit of their own, then content, so git log --follow and blame reach mcl-om's commits.
  3. Split src/ into contract/, bridge/ and lan/ per design §1.2, behind a transport boundary. No behaviour change: every existing test passes.
  4. Move docs/DESIGN.md and the two C4 SVGs from mcl-lan into docs/ and assets/, shown by README.
  5. Port mcl-om's forge CI (the workflows from mcl-om#13) to the new name. Actions are switched on for the PR only once the port is in.

Done when:

  • git log --follow src/contract/mcl_core.erl reaches mcl-om commits from before the merge.
  • No mcl_om is left in src/, test/, test_live/, priv/, config/, scripts/, rebar.config or the workflows, except where it names the old package on purpose (CHANGELOG history, the pointer to mcl_om 1.x).
  • The modules sit in src/contract, src/bridge and src/lan as in design §1.2.
  • rebar3 compile, xref, lint, dialyzer, eunit and ct pass on OTP 28, and nothing in them reaches outside.
  • README shows assets/*context*.svg and assets/*container*.svg, and docs/DESIGN.md is in the repo.
  • The forge workflows run green on the PR head.
  • No tag and no hex publish: those wait for Mars's word.

Later packages (P2-P4) get their own issues. Jupiter's P4 advisory (macula-services/mcl-lan#1 comment 8141: the token request carries the public key, and a key whose SHA-256 is not the claimed node id is refused) goes onto the P4 issue.

Refs macula-services/mcl-lan#1

Raf, 2026-12-02: DECIDED 2026-12-02 "I have created and cloned macula-services/mcl-core. Let's build this properly. In the end I hope we keep a single repo: mcl-core that will replace both mcl-om and mcl-lan" Purpose (feature): mcl-core becomes the one service library. It carries mcl-om's history, so blame survives, under the name `mcl_core` and split into contract, LAN and bridge. This is P1 of the mcl-lan design (macula-services/mcl-lan `docs/DESIGN.md` §7), and P2, the LAN transport and the first `mcl_core` hex release, builds on it. Supervisor rulings (Raf may overrule): - App and hex package `mcl_core`, module prefix `mcl_core_*`, a fresh 1.0 line. `mcl_om` 1.x stays published. - Design §8's repo-rename plan is void: mcl-om and mcl-lan are archived with a README pointer after the first `mcl_core` release. Checked once (2026-12-02): `https://hex.pm/api/packages/mcl_core` answers 404, so the name is free. Scope (P1): 1. Merge mcl-om `main` (a8e35a1) into mcl-core with `--allow-unrelated-histories`. 2. Rename `mcl_om` to `mcl_core`: files by `git mv` in a commit of their own, then content, so `git log --follow` and blame reach mcl-om's commits. 3. Split `src/` into `contract/`, `bridge/` and `lan/` per design §1.2, behind a transport boundary. No behaviour change: every existing test passes. 4. Move `docs/DESIGN.md` and the two C4 SVGs from mcl-lan into `docs/` and `assets/`, shown by README. 5. Port mcl-om's forge CI (the workflows from mcl-om#13) to the new name. Actions are switched on for the PR only once the port is in. Done when: - [ ] `git log --follow src/contract/mcl_core.erl` reaches mcl-om commits from before the merge. - [ ] No `mcl_om` is left in `src/`, `test/`, `test_live/`, `priv/`, `config/`, `scripts/`, `rebar.config` or the workflows, except where it names the old package on purpose (CHANGELOG history, the pointer to mcl_om 1.x). - [ ] The modules sit in `src/contract`, `src/bridge` and `src/lan` as in design §1.2. - [ ] `rebar3 compile`, `xref`, `lint`, `dialyzer`, `eunit` and `ct` pass on OTP 28, and nothing in them reaches outside. - [ ] README shows `assets/*context*.svg` and `assets/*container*.svg`, and `docs/DESIGN.md` is in the repo. - [ ] The forge workflows run green on the PR head. - [ ] No tag and no hex publish: those wait for Mars's word. Later packages (P2-P4) get their own issues. Jupiter's P4 advisory (macula-services/mcl-lan#1 comment 8141: the token request carries the public key, and a key whose SHA-256 is not the claimed node id is refused) goes onto the P4 issue. Refs macula-services/mcl-lan#1
Author
Member

Landed on main at 1256ced9df as a fast-forward (PR 5, Terra), so mcl-om's history is kept. Jupiter PASS r=1, with one inline fix: the LICENSE notice "Copyright 2026 Raf Lefever, BEAM Campus" restored (Apache §4(c)). Mars read main back.

Done when, checked on main:

  • git log --follow src/contract/mcl_core.erl gives 35 commits, back to mcl-om's d295033.
  • No mcl_om is left in src, test, test_live, priv, config, scripts, rebar.config or the workflows, except history: CHANGELOG, version mentions, mcl-om#N references, and the ownership-proof vector's provenance (test/vector/ownership_proof_v2/README.md).
  • src/contract, src/bridge and src/lan, as in design §1.2. src/lan holds only a note, since the LAN modules are P2 (#3).
  • compile, xref, lint, dialyzer, eunit (480, 0 failures) and ct pass on OTP 28.4.3: run 6800 "lint + eunit + ct (OTP 28.4.3)". Nothing in them reaches outside.
  • README shows assets/mcl-lan-context.svg and assets/mcl-lan-container.svg, and docs/DESIGN.md is in the repo (§9 appended).
  • Forge workflows on the PR head: 6797 and 6799 docs, 6798 advisories and 6800 lint-and-test are green. 6801 template-lint-image (job 27743, yq: command not found) is the accepted red, #2.
  • No tag and no hex publish.

Left for later and recorded in DESIGN §9: the pool start moves to the bridge in P3, and services' publish calls move to the boundary in P2 (#3).

Landed on main at 1256ced9dfe291c04ee48f8e925c019f2030c295 as a fast-forward (PR 5, Terra), so mcl-om's history is kept. Jupiter PASS r=1, with one inline fix: the LICENSE notice "Copyright 2026 Raf Lefever, BEAM Campus" restored (Apache §4(c)). Mars read main back. Done when, checked on main: - [x] `git log --follow src/contract/mcl_core.erl` gives 35 commits, back to mcl-om's d295033. - [x] No `mcl_om` is left in src, test, test_live, priv, config, scripts, rebar.config or the workflows, except history: CHANGELOG, version mentions, `mcl-om#N` references, and the ownership-proof vector's provenance (`test/vector/ownership_proof_v2/README.md`). - [x] `src/contract`, `src/bridge` and `src/lan`, as in design §1.2. `src/lan` holds only a note, since the LAN modules are P2 (#3). - [x] compile, xref, lint, dialyzer, eunit (480, 0 failures) and ct pass on OTP 28.4.3: run 6800 "lint + eunit + ct (OTP 28.4.3)". Nothing in them reaches outside. - [x] README shows `assets/mcl-lan-context.svg` and `assets/mcl-lan-container.svg`, and `docs/DESIGN.md` is in the repo (§9 appended). - [x] Forge workflows on the PR head: 6797 and 6799 docs, 6798 advisories and 6800 lint-and-test are green. 6801 template-lint-image (job 27743, `yq: command not found`) is the accepted red, #2. - [x] No tag and no hex publish. Left for later and recorded in DESIGN §9: the pool start moves to the bridge in P3, and services' publish calls move to the boundary in P2 (#3).
Member

mcl_core 1.0.0 is live on hex (the forge-ci publish was staged; the owner approved it on 2026-12-02). Evidence:

  • Readback GET (Supervisor): repo.hex.pm/tarballs/mcl_core-1.0.0.tar 200.
  • Content check (Terra, run once locally): scripts/is_hex_serving_what_git_says.sh 1.0.0 v1.0.0 rc=0 against tag v1.0.0 (914650a): 88 files in the package, 0 differing, 0 absent from the tag; rebar.lock is the expected packaging artifact.
  • mcl-om and mcl-lan archived (Supervisor, archived=true read back).
  • Release run 6918 stays red on v1.0.0: publish job 27995 reports "Published", then its serve check fails because hex had staged the release. That is understood and accepted; if 1.1.0 is staged too, whoever tags it files an issue to change the serve check wording to "staged, awaiting owner approval".
mcl_core 1.0.0 is live on hex (the forge-ci publish was staged; the owner approved it on 2026-12-02). Evidence: - Readback GET (Supervisor): repo.hex.pm/tarballs/mcl_core-1.0.0.tar 200. - Content check (Terra, run once locally): `scripts/is_hex_serving_what_git_says.sh 1.0.0 v1.0.0` rc=0 against tag v1.0.0 (914650a): 88 files in the package, 0 differing, 0 absent from the tag; rebar.lock is the expected packaging artifact. - mcl-om and mcl-lan archived (Supervisor, archived=true read back). - Release run 6918 stays red on v1.0.0: publish job 27995 reports "Published", then its serve check fails because hex had staged the release. That is understood and accepted; if 1.1.0 is staged too, whoever tags it files an issue to change the serve check wording to "staged, awaiting owner approval".
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
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-core#1
No description provided.