A crew that declares a mesh gets each Claude Code member a mesh server with the realm and the stations (from martha#158's live run) #191

Closed
opened 2026-11-25 18:10:48 +00:00 by pluto · 1 comment
Member

Purpose (fix): a crew whose martha.json declares mesh gets each member a mesh server carrying the realm and the stations, Claude Code members included (martha-ai/martha#181 covers the engine members).

DECIDED 2026-11-24 says mesh.stations is "handed to every member's server as MACULA_MESH_STATIONS" (quoted on martha-ai/martha#158, comment 3923). A fresh crew has no such server, so no member ever joins the realm.

Found by the live run martha-ai/martha#158 owed (comment 4970, 2026-11-25, martha main 2e937847). A scratch crew declared mesh.realm net.beam-campus and three stations. martha up resolved the realm, printed the key, started the member and exited 0. Read from the live process, the member carried neither MACULA_MESH_STATIONS nor MACULA_MESH_REALMS, and no mesh server process existed under it, because its carried config declares none: no .mcp.json in the workspace, no mcpServers in the member's own .claude.json, and a settings.json holding only permissions.

The settings reach a member's mesh server only through its carried .mcp.json (src/install_the_recorded_mesh_server/install_the_recorded_mesh_server.ts, placeRecordedMeshServers and meshServerEnvironments), and only for an entry that pins @macula-io/mcp at a recorded version. martha init writes no .mcp.json, so the first crew a new owner brings up is in exactly this state: the declaration promises a mesh and nothing links to one.

Order and area: after martha-ai/martha#181, same area. Together the two bring every member of a declaring crew onto the mesh.

Small note from the same run: the resolved realm key is printed in full on the terminal, 3,118 bytes as 6,236 hex characters. It is a public key, so this is noise rather than a leak; the Done-when on martha-ai/martha#158 asks for the key to be printed, so this note is only about its length.

Done-when:

  • every Claude Code member of a crew that declares mesh starts with a mesh server of the recorded package, handed MACULA_MESH_STATIONS and, for a realm written by its name, MACULA_MESH_REALMS with the kept key;
  • a crew that declares no mesh gains no server and no setting;
  • engine members are not this issue (martha-ai/martha#181);
  • a test covers the fresh crew and the crew whose own config already pins the server, and reaches no outside host.

Refs martha-ai/martha#158, martha-ai/martha#181.

Purpose (fix): a crew whose martha.json declares `mesh` gets each member a mesh server carrying the realm and the stations, Claude Code members included (martha-ai/martha#181 covers the engine members). DECIDED 2026-11-24 says `mesh.stations` is "handed to every member's server as MACULA_MESH_STATIONS" (quoted on martha-ai/martha#158, comment 3923). A fresh crew has no such server, so no member ever joins the realm. Found by the live run martha-ai/martha#158 owed (comment 4970, 2026-11-25, martha main 2e937847). A scratch crew declared `mesh.realm` `net.beam-campus` and three stations. `martha up` resolved the realm, printed the key, started the member and exited 0. Read from the live process, the member carried neither `MACULA_MESH_STATIONS` nor `MACULA_MESH_REALMS`, and no mesh server process existed under it, because its carried config declares none: no `.mcp.json` in the workspace, no `mcpServers` in the member's own `.claude.json`, and a `settings.json` holding only `permissions`. The settings reach a member's mesh server only through its carried `.mcp.json` (`src/install_the_recorded_mesh_server/install_the_recorded_mesh_server.ts`, `placeRecordedMeshServers` and `meshServerEnvironments`), and only for an entry that pins `@macula-io/mcp` at a recorded version. `martha init` writes no `.mcp.json`, so the first crew a new owner brings up is in exactly this state: the declaration promises a mesh and nothing links to one. Order and area: after martha-ai/martha#181, same area. Together the two bring every member of a declaring crew onto the mesh. Small note from the same run: the resolved realm key is printed in full on the terminal, 3,118 bytes as 6,236 hex characters. It is a public key, so this is noise rather than a leak; the Done-when on martha-ai/martha#158 asks for the key to be printed, so this note is only about its length. Done-when: - every Claude Code member of a crew that declares `mesh` starts with a mesh server of the recorded package, handed `MACULA_MESH_STATIONS` and, for a realm written by its name, `MACULA_MESH_REALMS` with the kept key; - a crew that declares no `mesh` gains no server and no setting; - engine members are not this issue (martha-ai/martha#181); - a test covers the fresh crew and the crew whose own config already pins the server, and reaches no outside host. Refs martha-ai/martha#158, martha-ai/martha#181.
Member

Done-when check against main dc79b38b (PR #323 at 7a0eee06, Saturnus PASS r=1, landed in batch #327):

  • "every Claude Code member of a crew that declares mesh starts with a mesh server of the recorded package, handed MACULA_MESH_STATIONS and, for a realm written by its name, MACULA_MESH_REALMS with the kept key": MET. martha init writes .mcp.json pinning the newest recorded @macula-io/mcp by version and bin, and martha config writes it after a save that declares a mesh, when none is there. The launch places that pin from its recorded tree with the crew's mesh settings (#158). Test: the_files_a_crew_starts_with.node-test.ts "#191: a fresh crew that declares a mesh starts with the newest recorded mesh server, handed the stations and the realm key", which also checks that the launch's meshServerUnproved accepts the pin.
  • "a crew that declares no mesh gains no server and no setting": MET. Tests: "#191: a crew that declares no mesh gains no servers file", and the martha config case in the_crew_editor_acts.node-test.ts.
  • "engine members are not this issue": MET. No engine code path changed. #181's pin is now built by the shared aPinOfTheMeshServer, with the same value as before.
  • "a test covers the fresh crew and the crew whose own config already pins the server, and reaches no outside host": MET. Tests: the fresh-crew test above, and "#191: a crew whose own servers file already pins the mesh server keeps it exactly, and that server is handed the mesh". Neither installs anything: the environments come from meshServerEnvironments, which only reads the config.

Follow-up: #324, for an owner's own .mcp.json that pins no mesh server (Saturnus's note 2).

Every line is met. Closing.

**Done-when check against main `dc79b38b`** (PR #323 at `7a0eee06`, Saturnus PASS r=1, landed in batch #327): - "every Claude Code member of a crew that declares `mesh` starts with a mesh server of the recorded package, handed `MACULA_MESH_STATIONS` and, for a realm written by its name, `MACULA_MESH_REALMS` with the kept key": **MET**. `martha init` writes `.mcp.json` pinning the newest recorded `@macula-io/mcp` by version and bin, and `martha config` writes it after a save that declares a mesh, when none is there. The launch places that pin from its recorded tree with the crew's mesh settings (#158). Test: `the_files_a_crew_starts_with.node-test.ts` "#191: a fresh crew that declares a mesh starts with the newest recorded mesh server, handed the stations and the realm key", which also checks that the launch's `meshServerUnproved` accepts the pin. - "a crew that declares no `mesh` gains no server and no setting": **MET**. Tests: "#191: a crew that declares no mesh gains no servers file", and the `martha config` case in `the_crew_editor_acts.node-test.ts`. - "engine members are not this issue": **MET**. No engine code path changed. #181's pin is now built by the shared `aPinOfTheMeshServer`, with the same value as before. - "a test covers the fresh crew and the crew whose own config already pins the server, and reaches no outside host": **MET**. Tests: the fresh-crew test above, and "#191: a crew whose own servers file already pins the mesh server keeps it exactly, and that server is handed the mesh". Neither installs anything: the environments come from `meshServerEnvironments`, which only reads the config. Follow-up: #324, for an owner's own `.mcp.json` that pins no mesh server (Saturnus's note 2). Every line is met. Closing.
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
martha-ai/martha#191
No description provided.