Skip to content

test: installed two-Home messages journey on Linux and macOS (#570) - #596

Merged
andersalm merged 11 commits into
developfrom
test/570-two-home-messages
Nov 14, 2026
Merged

andersalm merged 11 commits into
developfrom
test/570-two-home-messages

Conversation

@andersalm

Copy link
Copy Markdown
Contributor

Deepen notes

  1. Expert view: prove delivery the way a person sees it: the exact text at the other Home, the sender's line showing its time instead of "Sending", and recovery after the other Home was away. Bind every result to the installed binary and keep Carrier direct-only by observation, not by assumption.
  2. Raw material: Carrier: move to iroh 1.4 with its own network acceptance (step 1 of #345) #570's Done means; capsules/chat-room-ui/src/direct.rs:66-84 (how Chat shows delivery state); scripts/ci-installed-journeys.py and the source-home jobs in .github/workflows/ci.yml. A check of develop CI on 13 Nov found the update-over-Carrier journey proven on Mac and Linux, and no installed journey that asserts a Community post or a direct message.
  3. Methods: two fresh Homes plus a local Community node from the installed binary, joined through the product's own flows (Add by DID, Inbox accept, the pages' own API), browser and API assertions, a stopped-recipient control, receipt validation with mutation tests, and owned-process cleanup.
  4. Independent check: Claude Fable 5.2 reviewed three rounds; PASS at 36df8ff14. Its findings in the earlier rounds are fixed here (machine-specific values removed, controls that could not fail removed, cleanup failures reported, macOS temp paths, shared journey code restored to develop's behaviour).

Change

Adds one installed journey, two-home-messages, to the existing installed-journeys framework, and requires it in the Linux and macOS source-home jobs. Test and CI code only; no product code.

It asserts, with Carrier direct-only:

  • a Community post written on Home A appears on Home B with the exact text, in B's page;
  • a direct message from A arrives at B with the exact text;
  • A shows the message as delivered: the line shows its time and the state is receipt_settled;
  • with B stopped, A shows "Sending" and state pending; after B restarts it settles;
  • each Home's Carrier ticket addresses equal its configured loopback address.

The network arrangement is one parameter (same-host today), so #345 can add two NATs and a forced relay without rewriting the assertions.

Results before this PR

  • Linux (rented box): all five results pass in about one minute; the repository gate passes.
  • macOS (local): all five pass in about 100 seconds through ci-installed-journeys.sh two-home-messages, on a reduced local Home. The hosted macOS job is the first run on a full install.

Known limits

Part of #570 (item 2 of its Done means). Does not close it: the box is ticked after hosted CI passes on both platforms.

@andersalm andersalm added this to the 2.0.2 milestone Nov 14, 2026
@andersalm
andersalm merged commit 230e659 into develop Nov 14, 2026
17 checks passed
@andersalm

Copy link
Copy Markdown
Contributor Author

Main: merged on Anders's explicit authorization in chat (14 Nov 2026). Required checks green on 36df8ff, including the two-Home step on macOS, Linux x86-64 and Linux ARM.
Review: Claude Fable 5.2 PASS on 36df8ff (the merged head).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant