lazymartha: one Go TUI editor for martha.json that martha init and martha config start, reading one schema Martha publishes #317

Closed
opened 2026-11-30 17:55:46 +00:00 by uranus · 6 comments
Member

Purpose (product): martha init and martha config open one full-screen editor for .martha/martha.json, lazymartha, a Go + bubbletea binary that reads its fields, defaults and hints from one schema file Martha publishes. Then the crew editor is one fast program instead of 1,300 lines of hand-drawn TS.

DECIDED 2026-11-30 "yes, have uranus write the lazymartha design, but implementation should follow quickly" (Raf).
DECIDED 2026-11-25 "i think it should be martha join" (one CLI: the owner types martha, never lazymartha).
DECIDED 2026-11-21 "keep it" (the launcher stays Node/TS).

The shape that yes accepted:

  • lazymartha, Go + bubbletea, Linux x64, released to macula-pub. Repo martha-ai/lazymartha (public).
  • One CLI: martha init and martha config start it. The owner never runs it by hand.
  • One schema file that Martha publishes; lazymartha hard-codes no field.
  • The TS editor from PR 5 (#310) is removed once lazymartha covers it.

v1 scope = what PR 5's editor does today: the eight tabs crew, members, providers, profiles, endpoint, mode, rules and mesh. Fields it does not show are kept on save. Keys are named and never shown. s saves, a dirty quit asks twice, and ? shows help.

Done when:

  • martha config on a terminal opens lazymartha on the declaration; a save is validated by Martha's reader and written through the guarded writer; a refused save shows the reader's line in the editor.
  • martha init on a terminal opens lazymartha on a new crew; its save declares the crew exactly as the questions do (node ids, layout, read-back).
  • A missing lazymartha prints one line naming how to install it; init falls back to the questions.
  • martha-ai/lazymartha v0.1.0 is tagged, and forge CI builds, signs and publishes it to macula-pub; Martha's release image carries the pinned version, checked by its digest.
  • The TS editor files are gone from martha.
  • No test of either repo reaches an outside service.

Design and build packages: first comment. Refs #310

Purpose (product): `martha init` and `martha config` open one full-screen editor for `.martha/martha.json`, `lazymartha`, a Go + bubbletea binary that reads its fields, defaults and hints from one schema file Martha publishes. Then the crew editor is one fast program instead of 1,300 lines of hand-drawn TS. DECIDED 2026-11-30 "yes, have uranus write the lazymartha design, but implementation should follow quickly" (Raf). DECIDED 2026-11-25 "i think it should be `martha join`" (one CLI: the owner types `martha`, never `lazymartha`). DECIDED 2026-11-21 "keep it" (the launcher stays Node/TS). The shape that yes accepted: - `lazymartha`, Go + bubbletea, Linux x64, released to macula-pub. Repo martha-ai/lazymartha (public). - One CLI: `martha init` and `martha config` start it. The owner never runs it by hand. - One schema file that Martha publishes; lazymartha hard-codes no field. - The TS editor from PR 5 (#310) is removed once lazymartha covers it. v1 scope = what PR 5's editor does today: the eight tabs crew, members, providers, profiles, endpoint, mode, rules and mesh. Fields it does not show are kept on save. Keys are named and never shown. `s` saves, a dirty quit asks twice, and `?` shows help. Done when: - `martha config` on a terminal opens lazymartha on the declaration; a save is validated by Martha's reader and written through the guarded writer; a refused save shows the reader's line in the editor. - `martha init` on a terminal opens lazymartha on a new crew; its save declares the crew exactly as the questions do (node ids, layout, read-back). - A missing lazymartha prints one line naming how to install it; `init` falls back to the questions. - `martha-ai/lazymartha` v0.1.0 is tagged, and forge CI builds, signs and publishes it to macula-pub; Martha's release image carries the pinned version, checked by its digest. - The TS editor files are gone from martha. - No test of either repo reaches an outside service. Design and build packages: first comment. Refs #310
Author
Member

Design r1 (Uranus)

1. The seam: Martha owns validation and writing; lazymartha only edits

lazymartha never writes .martha/martha.json. Martha starts it as a child process with files, and reads back an exit code:

lazymartha --schema <schema.json> --in <declaration.json> --out <proposed.json> [--new] [--message "<line>"]
exit 0 = saved (proposed.json written) · exit 3 = quit, nothing saved · other = crashed (martha prints its stderr)
  • martha config: passes the declaration as --in. On exit 0 it runs the same two steps configure_the_crew.ts:46-58 runs today: declareCrew on the proposed text, then writeAChangedDeclaration (only while the file is unchanged). If the reader refuses, Martha restarts lazymartha with --in <proposed.json> --message "<the reader's line>". The owner keeps their edits and sees why; one loop, no IPC.
  • martha init: writes the starter declaration (theEditorForANewCrew → soloDeclaration) to a temp file and passes --new. On exit 0 Martha derives TheCrewsChoices from the proposed declaration and calls declareSoloCrew, as the_crew_the_editor_declares.ts:55-75 does now. A refusal restarts with --message, as above.
  • Why this way: one validator (the TS reader) and one writer (the guard) stay where they are. lazymartha cannot write an invalid crew, and no field rule is coded twice.
  • Temp files: under Martha's state directory, never in /tmp. Martha removes them after the run.

2. The schema file

  • Producer: martha schema prints it. The function that writes it builds it from the constants the reader already uses: THE_EDITORS_SECTIONS and THE_EDITORS_FIELDS, ACTS, the HOUSE_RULE_* keys, REVIEW_MODEL, the GATE_* keys, the mesh keys, GOOSE_MODELS/CLAUDE_CODE_MODELS, and THE_PROVIDERS_INIT_OFFERS. No literal is restated (they move from the_crew_editor.ts to a the_declarations_schema.ts).
  • Committed file: the output is committed at schema/martha.schema.json, and a node test asserts the committed file equals martha schema output. That test is an ordinary test inside npm test, not a new check.
  • Format: JSON Schema 2020-12, with title and description as the hint lines, default, and enum for hosts, terminals, models and providers. One extension, x-martha-tabs (tab order, plus the field order within each tab), carries what JSON Schema has no word for.
  • Versioning: $id: https://macula.io/schema/martha/v1/martha.schema.json plus "x-martha-schema": 1.
    • A new field or enum value keeps v1. Renaming or removing a field bumps it to 2.
    • lazymartha refuses a schema major it does not know, with one line ("lazymartha 0.x reads martha schema 1; this martha ships 2"); that only happens in a dev checkout, since a release carries a matching pair.
  • Delivery: Martha ships the schema in its release bundle and passes its path, so lazymartha never fetches anything.

3. Finding the binary, and when it is missing

  • Lookup: <the running release>/bin/lazymartha (Martha's release image carries it, see §4), then PATH (a dev checkout).
  • Missing:
    • martha config prints martha config needs lazymartha, which this martha does not carry: install a martha release, or put lazymartha on PATH. and ends with EXIT_REFUSED.
    • martha init falls back to the existing questions (theCrewTheAnswersDeclare), which are kept; it prints one line saying so.
  • Not a terminal: same as today. config refuses, and init uses the questions or flags.

4. Repo and release

  • Repo: martha-ai/lazymartha, public. Go 1.25, charmbracelet/bubbletea + bubbles + lipgloss. Layout:
    • cmd/lazymartha
    • internal/schema (read and check the major)
    • internal/editor (a pure model: key in, state out, view)
    • internal/files (in/out)
  • Release: a tag vX.Y.Z makes forge CI build CGO_ENABLED=0 GOOS=linux GOARCH=amd64, write the sha256, sign it like our other release artifacts, and push it to macula-pub as a generic package.
  • Into Martha: martha pins the lazymartha version + sha256 in one facts file. Martha's own release build fetches that file from macula-pub, checks the digest and puts it at bin/lazymartha in the release image, beside the schema. The installer is unchanged: a Martha install already brings lazymartha. Moving the pin is a one-line martha PR.
  • Tests: go test ./... with bubbletea's teatest and golden frames over fixture schema and declaration files copied from martha's tests. No network, no outside call. CI runs go test + go vet only.

5. v1 scope = PR 5's editor

  • Tabs and fields: as in the_crew_editor.ts:11-54.
  • Members, providers and profiles: add and remove rows.
  • Unshown fields (extra) are kept on save.
  • Keys: key_from/key_file name a key and never show it.
  • Keyboard: Tab and arrows move, Enter edits (and selects the value whole), Esc cancels, s saves, q quits (twice when dirty), ? shows help, and Ctrl-C quits without saving.
  • Out of v1: live model lists from providers, mouse, and themes.

6. Build packages (DeepSeek builds, Opus reviews; one builder each)

  • L1 (martha): the schema. Add the_declarations_schema.ts, martha schema, the committed schema/martha.schema.json and the equality test. Depends on: nothing.

  • L2 (lazymartha): the editor. Repo scaffold, the schema reader, and the eight tabs, keys and handshake from §1/§5, with teatest goldens and the forge CI test workflow. Depends on: the L1 schema (it can start on a hand copy and swap at L1's land).

  • L3 (lazymartha): the release. The tag → forge CI build, sign and push to macula-pub, and v0.1.0. Depends on: L2.

  • L4 (martha): the launch. init/config start lazymartha per §1 and §3, plus the pin file and the release-build step that puts the binary in the image. Tests use a stand-in binary that copies --in to --out (captured from a real lazymartha run). Depends on: L1, L3.

  • L5 (martha): the removal. Delete the TS editor:

    • the_crew_editor*
    • run_the_crew_editor.ts
    • the_crew_editor_at_the_terminal.ts
    • the_crew_the_editor_declares.ts (its declare path moves into L4)
    • their tests

    Depends on: L4 landed. Note: PR 5 itself is not yet on main. If it lands before L4, L5 removes it; if L4 is ready first, PR 5's editor half can be dropped from PR 5 instead (Supervisor's call).

  • Parallel: L1 and L2 can run side by side. L3 follows L2; L4 follows L1+L3; L5 follows L4.

Open (not mine to rule)

  • Creating the public repo martha-ai/lazymartha: the yes above names it public; whoever creates it, it goes in L2's menu.
  • Signing: which key signs lazymartha (the same as martha's release artifacts is assumed).
## Design r1 (Uranus) ### 1. The seam: Martha owns validation and writing; lazymartha only edits lazymartha never writes `.martha/martha.json`. Martha starts it as a child process with files, and reads back an exit code: ``` lazymartha --schema <schema.json> --in <declaration.json> --out <proposed.json> [--new] [--message "<line>"] exit 0 = saved (proposed.json written) · exit 3 = quit, nothing saved · other = crashed (martha prints its stderr) ``` - **`martha config`:** passes the declaration as `--in`. On exit 0 it runs the same two steps `configure_the_crew.ts:46-58` runs today: `declareCrew` on the proposed text, then `writeAChangedDeclaration` (only while the file is unchanged). If the reader refuses, Martha restarts lazymartha with `--in <proposed.json> --message "<the reader's line>"`. The owner keeps their edits and sees why; one loop, no IPC. - **`martha init`:** writes the starter declaration (`theEditorForANewCrew` → `soloDeclaration`) to a temp file and passes `--new`. On exit 0 Martha derives `TheCrewsChoices` from the proposed declaration and calls `declareSoloCrew`, as `the_crew_the_editor_declares.ts:55-75` does now. A refusal restarts with `--message`, as above. - **Why this way:** one validator (the TS reader) and one writer (the guard) stay where they are. lazymartha cannot write an invalid crew, and no field rule is coded twice. - **Temp files:** under Martha's state directory, never in /tmp. Martha removes them after the run. ### 2. The schema file - **Producer:** `martha schema` prints it. The function that writes it builds it from the constants the reader already uses: `THE_EDITORS_SECTIONS` and `THE_EDITORS_FIELDS`, `ACTS`, the `HOUSE_RULE_*` keys, `REVIEW_MODEL`, the `GATE_*` keys, the mesh keys, `GOOSE_MODELS`/`CLAUDE_CODE_MODELS`, and `THE_PROVIDERS_INIT_OFFERS`. No literal is restated (they move from `the_crew_editor.ts` to a `the_declarations_schema.ts`). - **Committed file:** the output is committed at `schema/martha.schema.json`, and a node test asserts the committed file equals `martha schema` output. That test is an ordinary test inside `npm test`, not a new check. - **Format:** JSON Schema 2020-12, with `title` and `description` as the hint lines, `default`, and `enum` for hosts, terminals, models and providers. One extension, `x-martha-tabs` (tab order, plus the field order within each tab), carries what JSON Schema has no word for. - **Versioning:** `$id: https://macula.io/schema/martha/v1/martha.schema.json` plus `"x-martha-schema": 1`. - A new field or enum value keeps v1. Renaming or removing a field bumps it to 2. - lazymartha refuses a schema major it does not know, with one line ("lazymartha 0.x reads martha schema 1; this martha ships 2"); that only happens in a dev checkout, since a release carries a matching pair. - **Delivery:** Martha ships the schema in its release bundle and passes its path, so lazymartha never fetches anything. ### 3. Finding the binary, and when it is missing - **Lookup:** `<the running release>/bin/lazymartha` (Martha's release image carries it, see §4), then `PATH` (a dev checkout). - **Missing:** - `martha config` prints `martha config needs lazymartha, which this martha does not carry: install a martha release, or put lazymartha on PATH.` and ends with EXIT_REFUSED. - `martha init` falls back to the existing questions (`theCrewTheAnswersDeclare`), which are kept; it prints one line saying so. - **Not a terminal:** same as today. `config` refuses, and `init` uses the questions or flags. ### 4. Repo and release - **Repo:** martha-ai/lazymartha, public. Go 1.25, `charmbracelet/bubbletea` + `bubbles` + `lipgloss`. Layout: - `cmd/lazymartha` - `internal/schema` (read and check the major) - `internal/editor` (a pure model: key in, state out, view) - `internal/files` (in/out) - **Release:** a tag `vX.Y.Z` makes forge CI build `CGO_ENABLED=0 GOOS=linux GOARCH=amd64`, write the sha256, sign it like our other release artifacts, and push it to macula-pub as a generic package. - **Into Martha:** martha pins the lazymartha version + sha256 in one facts file. Martha's own release build fetches that file from macula-pub, checks the digest and puts it at `bin/lazymartha` in the release image, beside the schema. The installer is unchanged: a Martha install already brings lazymartha. Moving the pin is a one-line martha PR. - **Tests:** `go test ./...` with bubbletea's `teatest` and golden frames over fixture schema and declaration files copied from martha's tests. No network, no outside call. CI runs `go test` + `go vet` only. ### 5. v1 scope = PR 5's editor - **Tabs and fields:** as in `the_crew_editor.ts:11-54`. - **Members, providers and profiles:** add and remove rows. - **Unshown fields** (`extra`) are kept on save. - **Keys:** `key_from`/`key_file` name a key and never show it. - **Keyboard:** Tab and arrows move, Enter edits (and selects the value whole), Esc cancels, `s` saves, `q` quits (twice when dirty), `?` shows help, and Ctrl-C quits without saving. - **Out of v1:** live model lists from providers, mouse, and themes. ### 6. Build packages (DeepSeek builds, Opus reviews; one builder each) - **L1 (martha): the schema.** Add `the_declarations_schema.ts`, `martha schema`, the committed `schema/martha.schema.json` and the equality test. Depends on: nothing. - **L2 (lazymartha): the editor.** Repo scaffold, the schema reader, and the eight tabs, keys and handshake from §1/§5, with teatest goldens and the forge CI test workflow. Depends on: the L1 schema (it can start on a hand copy and swap at L1's land). - **L3 (lazymartha): the release.** The tag → forge CI build, sign and push to macula-pub, and v0.1.0. Depends on: L2. - **L4 (martha): the launch.** `init`/`config` start lazymartha per §1 and §3, plus the pin file and the release-build step that puts the binary in the image. Tests use a stand-in binary that copies `--in` to `--out` (captured from a real lazymartha run). Depends on: L1, L3. - **L5 (martha): the removal.** Delete the TS editor: - `the_crew_editor*` - `run_the_crew_editor.ts` - `the_crew_editor_at_the_terminal.ts` - `the_crew_the_editor_declares.ts` (its declare path moves into L4) - their tests Depends on: L4 landed. Note: PR 5 itself is not yet on main. If it lands before L4, L5 removes it; if L4 is ready first, PR 5's editor half can be dropped from PR 5 instead (Supervisor's call). - **Parallel:** L1 and L2 can run side by side. L3 follows L2; L4 follows L1+L3; L5 follows L4. ### Open (not mine to rule) - Creating the public repo martha-ai/lazymartha: the yes above names it public; whoever creates it, it goes in L2's menu. - Signing: which key signs lazymartha (the same as martha's release artifacts is assumed).
Author
Member

Appended after PASS r=1 (Saturnus): the Supervisor's rulings, 2026-11-30

  1. The repo: Raf created martha-ai/lazymartha himself. It stays private for now, and going public is his call. While it is private, its CI runs on the local host00 runner (runner rule: private repos use local runners, public repos use hosted ones).
  2. Signing: this follows DECIDED 2026-11-24 "Tag = CI build". The key is a repo secret, set by the forge-setup release-setup scripts. That setup is part of L3.
  3. PR 5 (#310): it lands as is, and L5 removes the TS editor.

Builders:

  • L1: Pluto, reviewed by Saturnus.
  • L2: Pallas, reviewed by Jupiter. Saturnus's notes fold into L2:
    • (b) temp files are removed on a crash or a signal;
    • (c) the schema's $id is never fetched.
  • L3: Uranus, once L2 is close.
## Appended after PASS r=1 (Saturnus): the Supervisor's rulings, 2026-11-30 1. **The repo:** Raf created martha-ai/lazymartha himself. It stays **private** for now, and going public is his call. While it is private, its CI runs on the local host00 runner (runner rule: private repos use local runners, public repos use hosted ones). 2. **Signing:** this follows DECIDED 2026-11-24 "Tag = CI build". The key is a repo secret, set by the forge-setup release-setup scripts. That setup is part of L3. 3. **PR 5 (#310):** it lands as is, and L5 removes the TS editor. **Builders:** - L1: Pluto, reviewed by Saturnus. - L2: Pallas, reviewed by Jupiter. Saturnus's notes fold into L2: - (b) temp files are removed on a crash or a signal; - (c) the schema's `$id` is never fetched. - L3: Uranus, once L2 is close.
Author
Member

Appended: Saturnus note (d), for L4 (ruled 2026-11-30 by the Supervisor)

In a dev checkout, when the schema major differs, the refusal line names the version of the lazymartha found on PATH.

## Appended: Saturnus note (d), for L4 (ruled 2026-11-30 by the Supervisor) In a dev checkout, when the schema major differs, the refusal line names the version of the lazymartha found on PATH.
Member

L1 (the schema) landed: bb54e799, PR 318

Design §6 L1 = the_declarations_schema.ts, martha schema, schema/martha.schema.json and the equality test. All four are on main.

  • martha schema prints the schema: MET. It is an act of its own (ACTS_ALONE, in USAGE and HELP), printed line by line because shownSafely escapes a newline inside one string.
  • schema/martha.schema.json is committed: MET. JSON Schema 2020-12, $id https://macula.io/schema/martha/v1/martha.schema.json, x-martha-schema: 1, the eight editor tabs and their field order in x-martha-tabs, hints as title/description, defaults, and enums for hosts (HOSTS_IT_KNOWS), terminals (TERMINALS) and models (the hosts' closed lists).
  • An ordinary test inside npm test asserts the committed file is exactly what the command prints: MET (the_schema_is_the_one_committed.node-test.ts), with guards for the tabs and fields, every house rule/act/mesh value, and the enums read back from their constants.
  • Built from the reader's constants: MET. ACTS, the HOUSE_RULE_* sets, REVIEW_MODEL, GATE_ENFORCES/GATE_AUDITS/GATE_ENFORCE_AS_DRAFTED/EVERY_MEMBER, MESH_KEYS/MESH_SERVICE_KEYS/MESH_SERVICES, ENGINE_ENDPOINT, HOST/PARKED/PROFILE, DECLARATION_FILE, SOLO_MODE, HOSTS_IT_KNOWS, TERMINALS, CLAUDE_CODE_MODELS/GOOSE_MODELS. The mesh block and each service are the one place the schema closes an object, as the reader refuses an unknown mesh key there.
  • Two points the design assumed and this base does not hold: THE_EDITORS_SECTIONS/THE_EDITORS_FIELDS are not on main (PR 5, #310, is unmerged), so L1 defines them in the_declarations_schema.ts and PR 5's editor should import them; and THE_PROVIDERS_INIT_OFFERS does not exist yet, so provider rows are described by their fields and an editor names a provider itself. Neither widens L1's scope.

The issue's Done-when, by package

  • martha config opens lazymartha, a save validated by the reader, a refused save shown: L4.
  • martha init opens lazymartha on a new crew: L4.
  • A missing lazymartha prints one line; init falls back to the questions: L4.
  • martha-ai/lazymartha v0.1.0 tagged, built, signed and published; Martha's release image carries the pin: L3 and L4.
  • The TS editor files are gone: L5.
  • No test of either repo reaches an outside service: MET for L1's test (it reads the committed file and spawns bin/martha schema only).

Checks green on the landed tip: tsc, eslint on the tree, the five schema tests, run_the_martha_command's 87, every_act_is_held_to_the_floor, check:marthas-names, check:no-import-cycle, check:restated-values, check:private, check:base-tests, check:pictures, check:posted-text.

## L1 (the schema) landed: bb54e799, PR 318 Design §6 L1 = `the_declarations_schema.ts`, `martha schema`, `schema/martha.schema.json` and the equality test. All four are on main. - **`martha schema` prints the schema: MET.** It is an act of its own (`ACTS_ALONE`, in `USAGE` and `HELP`), printed line by line because `shownSafely` escapes a newline inside one string. - **`schema/martha.schema.json` is committed: MET.** JSON Schema 2020-12, `$id` `https://macula.io/schema/martha/v1/martha.schema.json`, `x-martha-schema: 1`, the eight editor tabs and their field order in `x-martha-tabs`, hints as `title`/`description`, defaults, and enums for hosts (`HOSTS_IT_KNOWS`), terminals (`TERMINALS`) and models (the hosts' closed lists). - **An ordinary test inside `npm test` asserts the committed file is exactly what the command prints: MET** (`the_schema_is_the_one_committed.node-test.ts`), with guards for the tabs and fields, every house rule/act/mesh value, and the enums read back from their constants. - **Built from the reader's constants: MET.** `ACTS`, the `HOUSE_RULE_*` sets, `REVIEW_MODEL`, `GATE_ENFORCES`/`GATE_AUDITS`/`GATE_ENFORCE_AS_DRAFTED`/`EVERY_MEMBER`, `MESH_KEYS`/`MESH_SERVICE_KEYS`/`MESH_SERVICES`, `ENGINE_ENDPOINT`, `HOST`/`PARKED`/`PROFILE`, `DECLARATION_FILE`, `SOLO_MODE`, `HOSTS_IT_KNOWS`, `TERMINALS`, `CLAUDE_CODE_MODELS`/`GOOSE_MODELS`. The mesh block and each service are the one place the schema closes an object, as the reader refuses an unknown mesh key there. - **Two points the design assumed and this base does not hold:** `THE_EDITORS_SECTIONS`/`THE_EDITORS_FIELDS` are not on main (PR 5, #310, is unmerged), so L1 defines them in `the_declarations_schema.ts` and PR 5's editor should import them; and `THE_PROVIDERS_INIT_OFFERS` does not exist yet, so provider rows are described by their fields and an editor names a provider itself. Neither widens L1's scope. ### The issue's Done-when, by package - `martha config` opens lazymartha, a save validated by the reader, a refused save shown: L4. - `martha init` opens lazymartha on a new crew: L4. - A missing lazymartha prints one line; `init` falls back to the questions: L4. - `martha-ai/lazymartha` v0.1.0 tagged, built, signed and published; Martha's release image carries the pin: L3 and L4. - The TS editor files are gone: L5. - No test of either repo reaches an outside service: MET for L1's test (it reads the committed file and spawns `bin/martha schema` only). Checks green on the landed tip: tsc, eslint on the tree, the five schema tests, `run_the_martha_command`'s 87, `every_act_is_held_to_the_floor`, `check:marthas-names`, `check:no-import-cycle`, `check:restated-values`, `check:private`, `check:base-tests`, `check:pictures`, `check:posted-text`.
Member

L4 (the launch) landed: 876a3dc6, PR 328 (r1 PASS, Uranus)

L4's Done-when lines (Pluto's split, c6630), checked against 876a3dc6:

  • martha config opens lazymartha, the reader validates each save, and a refused save is shown: MET. configure_the_crew.ts runs the §1 handshake (--schema --in --out [--message]; 0 saved, 3 quit, other crashed). A save goes through declareCrew, then writeAChangedDeclaration. A refusal restarts the editor with --message <the reader's line> (tested).
  • martha init opens lazymartha on a new crew: MET. the_lazymartha_declares.ts passes --new on a starter declaration, and each save goes to declareSoloCrew. A refused save restarts with --message. The work files live under Martha's state dir and go only after the loop (tested, mutant caught).
  • A missing lazymartha prints one line, and init falls back to the questions: MET. The lookup is <release>/bin/lazymartha, then PATH. config prints the one line and ends with EXIT_REFUSED; init prints one line and asks the questions (both tested).
  • Note (d): MET. A schema-major refusal from a lazymartha found on PATH names its --version.
  • Martha's release image carries the pin: MET. the_lazymartha_pin.json holds 0.1.0 and its sha256. pack_a_release.sh refuses a tree without schema/martha.schema.json, then fetches the binary into bin/lazymartha with the digest checked (npm run release:fetch-lazymartha). A test pins both lines.
  • #191's .mcp.json write is kept: MET (tested).
  • No test reaches an outside service: MET. Tests use a stand-in binary and a fake fetch.

Still open on #317: L5, removing the TS editor, on saturnus/317-l5. It also takes Uranus's L4 notes 2 and 3: a timeout on the fetch, and an injectable lookup root so the config tests skip the release tree's bin/. Note 1 is martha-ai/lazymartha#3.

## L4 (the launch) landed: 876a3dc6, PR 328 (r1 PASS, Uranus) L4's Done-when lines (Pluto's split, c6630), checked against 876a3dc6: - **`martha config` opens lazymartha, the reader validates each save, and a refused save is shown: MET.** `configure_the_crew.ts` runs the §1 handshake (`--schema --in --out [--message]`; 0 saved, 3 quit, other crashed). A save goes through `declareCrew`, then `writeAChangedDeclaration`. A refusal restarts the editor with `--message <the reader's line>` (tested). - **`martha init` opens lazymartha on a new crew: MET.** `the_lazymartha_declares.ts` passes `--new` on a starter declaration, and each save goes to `declareSoloCrew`. A refused save restarts with `--message`. The work files live under Martha's state dir and go only after the loop (tested, mutant caught). - **A missing lazymartha prints one line, and `init` falls back to the questions: MET.** The lookup is `<release>/bin/lazymartha`, then PATH. config prints the one line and ends with EXIT_REFUSED; init prints one line and asks the questions (both tested). - **Note (d): MET.** A schema-major refusal from a lazymartha found on PATH names its `--version`. - **Martha's release image carries the pin: MET.** `the_lazymartha_pin.json` holds 0.1.0 and its sha256. `pack_a_release.sh` refuses a tree without `schema/martha.schema.json`, then fetches the binary into `bin/lazymartha` with the digest checked (`npm run release:fetch-lazymartha`). A test pins both lines. - **#191's `.mcp.json` write is kept: MET** (tested). - **No test reaches an outside service: MET.** Tests use a stand-in binary and a fake fetch. Still open on #317: **L5**, removing the TS editor, on saturnus/317-l5. It also takes Uranus's L4 notes 2 and 3: a timeout on the fetch, and an injectable lookup root so the config tests skip the release tree's `bin/`. Note 1 is martha-ai/lazymartha#3.
Member

L5 (the removal) landed: 607b194d, PR 333 → 334 (r1 PASS, Uranus)

L5's Done-when line (Pluto's split, c6630), checked against 607b194d:

  • The TS editor files are gone from martha: MET. the_crew_editor*, run_the_crew_editor.ts, the_crew_editor_at_the_terminal.ts, the_crew_the_editor_declares.ts and their tests are not in the tree (git ls-tree on 607b194d), and nothing in src/ imports them. init now gets its choices from the_choices_a_declaration_makes.ts, which reads lazymartha's declaration directly. The deleted test file has its Drops-test-file claim commit (6ade17af). The diff is 15 files, +240/−1297.
  • Folded in: Uranus's L4 notes 2 (THE_FETCH_TIMEOUT_MS, raced so a fetch that ignores its signal still ends) and 3 (an injectable lookup root, so config tests skip the release tree's bin/). The whole npm test passed with 5861 passing and 0 failing, and all 3 mutants were caught.

The issue's Done-when, all lines

  • martha config opens lazymartha, the reader validates each save, and a refused save is shown: MET (L4, c6740).
  • martha init opens lazymartha on a new crew: MET (L4, c6740).
  • A missing lazymartha prints one line, and init falls back to the questions: MET (L4, c6740).
  • lazymartha v0.1.0 is tagged and was built, signed and published; Martha's release image carries the pin: MET. Tag v0.1.0 = cc7b2a61. macula-pub lazymartha/0.1.0 holds lazymartha-linux-amd64, .sha256 and .sig. The binary's sha256 86704a6b…6938eff14 equals the_lazymartha_pin.json.
  • The TS editor files are gone from martha: MET (above).
  • No test of either repo reaches an outside service: MET. In martha, the tests use a stand-in binary and a fake fetch (c6740). In lazymartha, origin/main has 6 _test.go files and no net/net/http import anywhere in its Go code.

Every line is met, so I'm closing this issue. Follow-ups live elsewhere: martha-ai/lazymartha#3 (Uranus's L4 note 1) and lazymartha#5 (the martha-init fixture is not tied to soloDeclaration). Whether lazymartha goes public is Raf's call (c6585).

## L5 (the removal) landed: 607b194d, PR 333 → 334 (r1 PASS, Uranus) L5's Done-when line (Pluto's split, c6630), checked against 607b194d: - **The TS editor files are gone from martha: MET.** `the_crew_editor*`, `run_the_crew_editor.ts`, `the_crew_editor_at_the_terminal.ts`, `the_crew_the_editor_declares.ts` and their tests are not in the tree (`git ls-tree` on 607b194d), and nothing in `src/` imports them. init now gets its choices from `the_choices_a_declaration_makes.ts`, which reads lazymartha's declaration directly. The deleted test file has its `Drops-test-file` claim commit (6ade17af). The diff is 15 files, +240/−1297. - Folded in: Uranus's L4 notes 2 (`THE_FETCH_TIMEOUT_MS`, raced so a fetch that ignores its signal still ends) and 3 (an injectable lookup root, so config tests skip the release tree's `bin/`). The whole `npm test` passed with 5861 passing and 0 failing, and all 3 mutants were caught. ### The issue's Done-when, all lines - `martha config` opens lazymartha, the reader validates each save, and a refused save is shown: MET (L4, c6740). - `martha init` opens lazymartha on a new crew: MET (L4, c6740). - A missing lazymartha prints one line, and `init` falls back to the questions: MET (L4, c6740). - lazymartha v0.1.0 is tagged and was built, signed and published; Martha's release image carries the pin: MET. Tag `v0.1.0` = cc7b2a61. macula-pub `lazymartha/0.1.0` holds `lazymartha-linux-amd64`, `.sha256` and `.sig`. The binary's sha256 `86704a6b…6938eff14` equals `the_lazymartha_pin.json`. - The TS editor files are gone from martha: MET (above). - No test of either repo reaches an outside service: MET. In martha, the tests use a stand-in binary and a fake fetch (c6740). In lazymartha, `origin/main` has 6 `_test.go` files and no `net`/`net/http` import anywhere in its Go code. Every line is met, so I'm closing this issue. Follow-ups live elsewhere: martha-ai/lazymartha#3 (Uranus's L4 note 1) and lazymartha#5 (the martha-init fixture is not tied to `soloDeclaration`). Whether lazymartha goes public is Raf's call (c6585).
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#317
No description provided.