A crew that declares a mesh starts each Claude Code member on the recorded mesh server (martha#324) #335

Manually merged
terra merged 4 commits from neptunus/324-mesh-in-own-mcp-json into main 2026-12-01 04:42:51 +00:00
Member

Refs #324 (follows #191). Based on main 7daf547b. Ruling: option (b), Supervisor 2026-12-01.

When the crew declares a mesh (a realm or a station), the launch adds the newest recorded @macula-io/mcp pin to its own snapshot copy of the servers file, and that copy is what the member is started with. The existing placement then starts it from the recorded tree and hands it MACULA_MESH_STATIONS and MACULA_MESH_REALMS, as for an owner's own pin.

  • The owner's .mcp.json is never touched.
  • An owner entry that installs the mesh server wins. An owner entry under the name macula also wins, whatever it installs. In both cases nothing is added.
  • A checkout with no .mcp.json at all gets the snapshot copy named with --mcp-config.
  • A crew that declares no mesh: the start hands no mesh_settings, and nothing is added. Before, it handed {}, which has the same effect downstream.
  • aCrewDeclaresAMesh (in the_crews_workspace.ts) is now the one rule for "declares a mesh". The engine member's start (#181) and the Claude Code start both use it.
  • No new check or refusal. A copy the mesh-server check refuses is passed on unchanged, so the refusal still names the owner's server.
  • Not touched: any file of #317 L5 (PR 333), including configure_the_crew.ts.

Tests (launch_a_claude_code_member.node-test.ts, "#324", real launches on the fake host; the recorded tree comes from the loopback fake registry, so no outside host is reached):

  • The owner's file names only another server: the member gets that server unchanged plus macula, placed from the newest recorded tree with the crew's stations and realm key. The owner's file is byte-identical afterwards.
  • No .mcp.json: the member gets macula only, and no file is written into the checkout.
  • The owner's file names the mesh server under another key: only that entry is used.
  • The owner's file has a non-mesh server under macula: it is used as written.
  • No mesh declared: only the owner's server.
  • start_the_member_on_its_host.node-test.ts #158: a crew with no mesh now hands its launch no mesh_settings.

Mutants, each run and each failing a test:

  • the macula-key guard dropped
  • the installs guard dropped
  • the declared-mesh check dropped
  • no --mcp-config switch added for a checkout with no file
  • the call in readyLaunch dropped
  • the start handing mesh_settings to a crew that declares no mesh
Refs #324 (follows #191). Based on main `7daf547b`. Ruling: option (b), Supervisor 2026-12-01. When the crew declares a mesh (a realm or a station), the launch adds the newest recorded `@macula-io/mcp` pin to its **own snapshot copy** of the servers file, and that copy is what the member is started with. The existing placement then starts it from the recorded tree and hands it `MACULA_MESH_STATIONS` and `MACULA_MESH_REALMS`, as for an owner's own pin. - The owner's `.mcp.json` is never touched. - An owner entry that installs the mesh server wins. An owner entry under the name `macula` also wins, whatever it installs. In both cases nothing is added. - A checkout with no `.mcp.json` at all gets the snapshot copy named with `--mcp-config`. - A crew that declares no mesh: the start hands no `mesh_settings`, and nothing is added. Before, it handed `{}`, which has the same effect downstream. - `aCrewDeclaresAMesh` (in `the_crews_workspace.ts`) is now the one rule for "declares a mesh". The engine member's start (#181) and the Claude Code start both use it. - No new check or refusal. A copy the mesh-server check refuses is passed on unchanged, so the refusal still names the owner's server. - Not touched: any file of #317 L5 (PR 333), including `configure_the_crew.ts`. Tests (`launch_a_claude_code_member.node-test.ts`, "#324", real launches on the fake host; the recorded tree comes from the loopback fake registry, so no outside host is reached): - The owner's file names only another server: the member gets that server unchanged plus `macula`, placed from the newest recorded tree with the crew's stations and realm key. The owner's file is byte-identical afterwards. - No `.mcp.json`: the member gets `macula` only, and no file is written into the checkout. - The owner's file names the mesh server under another key: only that entry is used. - The owner's file has a non-mesh server under `macula`: it is used as written. - No mesh declared: only the owner's server. - `start_the_member_on_its_host.node-test.ts` #158: a crew with no mesh now hands its launch no `mesh_settings`. Mutants, each run and each failing a test: - the `macula`-key guard dropped - the installs guard dropped - the declared-mesh check dropped - no `--mcp-config` switch added for a checkout with no file - the call in `readyLaunch` dropped - the start handing `mesh_settings` to a crew that declares no mesh
Ruled option (b): the launch adds the newest recorded mesh server's pin to its
own snapshot copy of the servers file when no server there installs it, and
names that copy with --mcp-config when the checkout has no .mcp.json at all.
The owner's file is never touched; an owner's entry that installs the mesh
server, or any entry under the name Martha's would take, wins. A crew that
declares no mesh is handed no mesh_settings and gets nothing added.

aCrewDeclaresAMesh is the one rule for "declares a mesh", now shared by the
engine member's start (martha#181) and the Claude Code start.

Refs #324
terra manually merged commit 3f092f10f2 into main 2026-12-01 04:42:51 +00:00
Sign in to join this conversation.
No reviewers
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
martha-ai/martha!335
No description provided.