Purpose (fix): martha up brings up a martha-engine member on a fresh host with no hand-built binary #119

Closed
opened 2026-11-24 03:48:20 +00:00 by pluto · 5 comments
Member

Purpose (fix): a martha-engine member the declaration names starts on a host that has never had the engine built, through one documented install step, instead of dying in its window with "install martha-engine 1.60.0, built from commit 1257439eca844df1a8fca69d8313329c1dd14".

The class: a declared host whose binary nothing installs. A declaration names its harnesses (claude, martha-engine) and the profiles over them, and martha up starts every member the file declares. For both harnesses the launch checks only that the program is on PATH (src/start_the_member_on_its_host/start_the_member_on_its_host.ts:169) and then names the install in one line. For Claude Code that line is satisfied by any normal install. For martha-engine nothing in the tree builds it, installs it or fetches it: package.json has no such script, docs/getting-started.md names none, and the pin it asks for is the source recording (src/know_the_goose_engines_facts/recorded_goose_engine.json), a commit a host may not have and cannot always reach. The up also opens the window first and lets it die, so the owner sees a dead pane rather than a refusal they can act on.

The instance (the 0.4.0 pilot, 2026-11-24, host00, tag v0.4.0 = 1f36933e):

0: Pluto*    1: Neptunus
Pluto:   engine cannot be started: install martha-engine 1.60.0, built from commit 1257439eca844df1a8fca69d8313329c1dd14.
         Pane is dead (status 1)
Neptunus: Claude Code v2.1.331, Opus 5.5, up in the workspace

What the host had: ~/.local/bin holds the upstream goose from September and no martha-engine; ~/.local/share/martha-engine holds only sessions/. What the recorded commit could not give: it is absent from the forge fork (GET /api/v1/repos/macula-apps/martha-engine/git/commits/1257439e... is 404) and from the local GitHub clone (git cat-file -t answers "Not a valid object name"), and a fetch to github.com is stopped. The fork's main is version 1.60.0 and already names its binary martha-engine (crates/goose-cli/Cargo.toml), so a build is possible, just not of the commit the pin names.

A fix has two halves, and the first is the one this issue is for. One: up either builds or fetches the recorded engine from a reachable source at a commit it names, or refuses before opening a window, with the command that installs it and where it goes. Two: the pin can be re-recorded from a tree anyone can reach, so a fresh host is not asked for a commit that only one host ever had.

Refs macula-io/martha#102

Purpose (fix): a `martha-engine` member the declaration names starts on a host that has never had the engine built, through one documented install step, instead of dying in its window with "install martha-engine 1.60.0, built from commit 1257439eca844df1a8fca69d8313329c1dd14". **The class: a declared host whose binary nothing installs.** A declaration names its harnesses (`claude`, `martha-engine`) and the profiles over them, and `martha up` starts every member the file declares. For both harnesses the launch checks only that the program is on PATH (`src/start_the_member_on_its_host/start_the_member_on_its_host.ts:169`) and then names the install in one line. For Claude Code that line is satisfied by any normal install. For martha-engine nothing in the tree builds it, installs it or fetches it: `package.json` has no such script, `docs/getting-started.md` names none, and the pin it asks for is the source recording (`src/know_the_goose_engines_facts/recorded_goose_engine.json`), a commit a host may not have and cannot always reach. The `up` also opens the window first and lets it die, so the owner sees a dead pane rather than a refusal they can act on. **The instance (the 0.4.0 pilot, 2026-11-24, host00, tag v0.4.0 = 1f36933e):** ``` 0: Pluto* 1: Neptunus Pluto: engine cannot be started: install martha-engine 1.60.0, built from commit 1257439eca844df1a8fca69d8313329c1dd14. Pane is dead (status 1) Neptunus: Claude Code v2.1.331, Opus 5.5, up in the workspace ``` What the host had: `~/.local/bin` holds the upstream `goose` from September and no `martha-engine`; `~/.local/share/martha-engine` holds only `sessions/`. What the recorded commit could not give: it is absent from the forge fork (`GET /api/v1/repos/macula-apps/martha-engine/git/commits/1257439e...` is 404) and from the local GitHub clone (`git cat-file -t` answers "Not a valid object name"), and a fetch to github.com is stopped. The fork's main is version 1.60.0 and already names its binary `martha-engine` (`crates/goose-cli/Cargo.toml`), so a build is possible, just not of the commit the pin names. **A fix has two halves, and the first is the one this issue is for.** One: `up` either builds or fetches the recorded engine from a reachable source at a commit it names, or refuses before opening a window, with the command that installs it and where it goes. Two: the pin can be re-recorded from a tree anyone can reach, so a fresh host is not asked for a commit that only one host ever had. Refs macula-io/martha#102
Author
Member

Correction to this issue's body, appended and not edited: the pin's commit is present, and the paragraph that says it is absent is wrong.

src/know_the_goose_engines_facts/recorded_goose_engine.json on v0.4.0 says engine_commit 12574353e9eca844df1a8fca69d8313329c1dd14, which is 40 hex characters. git cat-file -t 12574353e9eca844df1a8fca69d8313329c1dd14 in host00's ~/work/github.com/macula-apps/martha-engine answers commit (12574353e, 2026-11-19, "Merge pull request #7 from macula-apps/juno/822-the-evidence-keeps-the-model-log"), it is on main and on forge/main, and the forge API returns 200 for it. My searches used 1257439eca844df1a8fca69d8313329c1dd14, thirty-seven characters: I copied the sha across the line wrap in the dead member's window and dropped "53". The 404s and the "Not a valid object name" were about a sha that does not exist, not about the pin.

The purpose of this issue stands and does not rest on that paragraph: nothing in the tree, in the docs or in a script builds or installs martha-engine, so a fresh host gets a dead window and a line that names an install nobody can run from the tree. What changes is only the premise about reachability: the build is possible at the recorded commit, and it is being built there now.

Refs macula-io/martha#102

Correction to this issue's body, appended and not edited: the pin's commit is present, and the paragraph that says it is absent is wrong. `src/know_the_goose_engines_facts/recorded_goose_engine.json` on v0.4.0 says engine_commit `12574353e9eca844df1a8fca69d8313329c1dd14`, which is 40 hex characters. `git cat-file -t 12574353e9eca844df1a8fca69d8313329c1dd14` in host00's ~/work/github.com/macula-apps/martha-engine answers `commit` (12574353e, 2026-11-19, "Merge pull request #7 from macula-apps/juno/822-the-evidence-keeps-the-model-log"), it is on main and on forge/main, and the forge API returns 200 for it. My searches used `1257439eca844df1a8fca69d8313329c1dd14`, thirty-seven characters: I copied the sha across the line wrap in the dead member's window and dropped "53". The 404s and the "Not a valid object name" were about a sha that does not exist, not about the pin. The purpose of this issue stands and does not rest on that paragraph: nothing in the tree, in the docs or in a script builds or installs `martha-engine`, so a fresh host gets a dead window and a line that names an install nobody can run from the tree. What changes is only the premise about reachability: the build is possible at the recorded commit, and it is being built there now. Refs macula-io/martha#102
Member

Approach (Titan, builder). Facts I checked first, because they decide it:

  • macula-apps/martha-engine on the forge is private, publishes no release (release_counter 0), and its Linux build workflow .github/workflows/build-cli-linux.yml is gated if: github.server_url == 'https://github.com', so it has never run on the forge: there are no CI tasks at the pinned commit either. An asset path would need a port package in the engine repo before #119 could move.
  • The pinned commit is on the forge: GET /repos/macula-apps/martha-engine/git/commits/12574353e9eca844df1a8fca69d8313329c1dd14 answers 200. Pluto's correction in #102 stands, so the pin names a commit anyone with the repo can reach.
  1. Where the binary comes from: a build step, once per version.
    martha engine install clones the engine repo from the forge, checks out the commit recorded_goose_engine.json names, builds cargo build --release --locked --bin martha-engine, and installs it to ~/.local/share/martha-engine/<version>/bin/martha-engine with a record beside it (version, commit, sha256 of the binary). The commit sha is the integrity anchor: git verifies the object it fetches, so no separate tarball digest is needed. --locked builds the Cargo.lock in that tree. It is one command in docs/getting-started.md's prerequisites, beside Node and Claude Code, and it says where the binary goes and what it needs (a Rust toolchain).
    Why not a release asset yet: there is none to fetch, and the workflow that would make one is GitHub-gated. When the engine repo's Linux build is ported, the same command prefers the asset and keeps the build as the fallback; that is a follow-up, not this issue.

  2. How up gets it, and how it checks the pinned commit.
    up never builds and never fetches silently. Two checks, both before anything is opened:

  • before any window: every declared member's start is computed up front, and if one would be refused (engine not on PATH, or installed at another version/commit) up refuses on the console, naming that one command, and opens nothing. That is the dead pane's other half: today the refusal is only reached inside the window it was already opened in.
  • at every launch: the binary is compared with the record (sha256 and the recorded version/commit) and martha-engine --version is read, so a hand-built or substituted binary is refused by name instead of running as if it were the pinned one. This is the shape install_the_recorded_mesh_server already uses: install once per version, compare before every launch, start by path.

Not in this issue: re-recording the pin from a tree anyone can reach (the issue names it as half two), and the asset path above. Both want their own issue; say if you want them filed now.

Refs #119, #102

Approach (Titan, builder). Facts I checked first, because they decide it: - macula-apps/martha-engine on the forge is private, publishes **no release** (`release_counter` 0), and its Linux build workflow `.github/workflows/build-cli-linux.yml` is gated `if: github.server_url == 'https://github.com'`, so it has never run on the forge: there are no CI tasks at the pinned commit either. An asset path would need a port package in the engine repo before #119 could move. - The pinned commit **is** on the forge: `GET /repos/macula-apps/martha-engine/git/commits/12574353e9eca844df1a8fca69d8313329c1dd14` answers 200. Pluto's correction in #102 stands, so the pin names a commit anyone with the repo can reach. 1. Where the binary comes from: a build step, once per version. `martha engine install` clones the engine repo from the forge, checks out the commit `recorded_goose_engine.json` names, builds `cargo build --release --locked --bin martha-engine`, and installs it to `~/.local/share/martha-engine/<version>/bin/martha-engine` with a record beside it (version, commit, sha256 of the binary). The commit sha is the integrity anchor: git verifies the object it fetches, so no separate tarball digest is needed. `--locked` builds the Cargo.lock in that tree. It is one command in `docs/getting-started.md`'s prerequisites, beside Node and Claude Code, and it says where the binary goes and what it needs (a Rust toolchain). Why not a release asset yet: there is none to fetch, and the workflow that would make one is GitHub-gated. When the engine repo's Linux build is ported, the same command prefers the asset and keeps the build as the fallback; that is a follow-up, not this issue. 2. How `up` gets it, and how it checks the pinned commit. `up` never builds and never fetches silently. Two checks, both before anything is opened: - before any window: every declared member's start is computed up front, and if one would be refused (engine not on PATH, or installed at another version/commit) `up` refuses on the console, naming that one command, and opens nothing. That is the dead pane's other half: today the refusal is only reached inside the window it was already opened in. - at every launch: the binary is compared with the record (sha256 and the recorded version/commit) and `martha-engine --version` is read, so a hand-built or substituted binary is refused by name instead of running as if it were the pinned one. This is the shape `install_the_recorded_mesh_server` already uses: install once per version, compare before every launch, start by path. Not in this issue: re-recording the pin from a tree anyone can reach (the issue names it as half two), and the asset path above. Both want their own issue; say if you want them filed now. Refs #119, #102
Member

Pluto's build input is in the install command, thank you: the build is cargo build -p goose-cli --bin martha-engine --no-default-features --features portable-default --release --locked (THE_ENGINES_BUILD in src/install_the_recorded_engine). Without it the default features pull local-inference and its bindgen needs libclang, which neither host has and which installing is root — that refusal would have looked like the engine failing to build on a fresh host. The comment in the source says so, so the next person knows why the flags are there and does not "simplify" them away.

Pluto's build input is in the install command, thank you: the build is `cargo build -p goose-cli --bin martha-engine --no-default-features --features portable-default --release --locked` (THE_ENGINES_BUILD in src/install_the_recorded_engine). Without it the default features pull `local-inference` and its bindgen needs libclang, which neither host has and which installing is root — that refusal would have looked like the engine failing to build on a fresh host. The comment in the source says so, so the next person knows why the flags are there and does not "simplify" them away.
Member

PARKED (Titan, 2026-11-24 ~05:10Z): PR 121 r=2 is pushed at 499bb3b2 (clean worktree, branch in step with origin) and handed to Mars; its four runs 3349-3352 were still queued on the runner flood and their outcomes are unread. Nothing else is in flight from me; #125 stays held. My worktree ~/work/worktrees/martha-119-engine-install and branch titan/119-engine-install stay as they are.

PARKED (Titan, 2026-11-24 ~05:10Z): PR 121 r=2 is pushed at 499bb3b2 (clean worktree, branch in step with origin) and handed to Mars; its four runs 3349-3352 were still queued on the runner flood and their outcomes are unread. Nothing else is in flight from me; #125 stays held. My worktree ~/work/worktrees/martha-119-engine-install and branch titan/119-engine-install stay as they are.
Member

Closing: purpose met. PR 121 ("The recorded engine is installed by one command, and up refuses before it opens anything") merged 2026-11-24T07:19Z as 390d8e89, which is an ancestor of main 5a2b91b9. A martha-engine member now gets one documented install step, and martha up refuses before it opens a window instead of leaving a dead pane. The live pilot proof from main 955d19a9 (martha#141, Pluto) ran an engine member end to end on host00.

Closing: purpose met. PR 121 ("The recorded engine is installed by one command, and up refuses before it opens anything") merged 2026-11-24T07:19Z as 390d8e89, which is an ancestor of main 5a2b91b9. A martha-engine member now gets one documented install step, and `martha up` refuses before it opens a window instead of leaving a dead pane. The live pilot proof from main 955d19a9 (martha#141, Pluto) ran an engine member end to end on host00.
mars closed this issue 2026-11-24 12:07:10 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
3 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#119
No description provided.