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
No Branch/Tag specified
main
terra/land-367
ceres/367-crew-screen-up
terra/batch-337-237
uranus/251-fold-ci
saturnus/229-land-skip
titan/2-worktree-finish-branch-form
neptunus/232-repo-delete-clean
neptunus/230-force-push
uranus/111-gitlink-eisdir
venus/129-no-launcher-endpoint
saturnus/45-branch-move-head
jupiter/45-volatile-mesh-say
venus/8-land-on-any-host-2
titan/111-gitlinks
juno/040-host-rerecord
vesta/24-remove-github-sponsors
ceres/19-signin-probe
vesta/67-set-a-exports-git-dir
jupiter/47-status-clock
pallas/46-forge-ci-seam
juno/39-offline-private-scan
ceres/19-relay-end-written
venus/8-land-on-any-host
ceres/19-relay-frame
venus/28-budget-line
vesta/48-git-guard
ceres/47-hourly-status
terra/batch3-forge-b
pluto/23-declared-digests
ceres/318-friction-note-rebuilt
neptunus/check-private-digests
hygiea/5-tsx-typecheck
terra/batch2-forge
vesta/973-ask-proof-and-pr-base
jupiter/16-5-3-forge-repo-links
jupiter/check-private-stop
terra/batch3-forge
saturnus/1016-crew-mail
venus/999-refresh-modes
uranus/601-martha-forge-workflows
ceres/1041-work-graph
jupiter/957-gap-19-prompt-text
mercurius/987-stranger-text-gate
jupiter/check-private-stop-posted
pluto/1045-under-600
ceres/1041-contract-lines
pluto/1045-free-splits
diverged/hygiea/962-worktree-finish-owner-and-branch
ceres/967-provider-key
saturnus/1016-mesh-key
hygiea/962-worktree-finish-owner-and-branch
pluto/1045-cognitive-complexity
venus/999-refresh-modes-held-merge
pluto/1010-repo-numbers
pluto/1010-drift-numbers
terra/batch-terra-1121e
hygiea/916-provider-subscription-refusal
venus/999-brief-notice
hygiea/992-job-timeouts
jupiter/1016-crew-memory
terra/batch-terra-1121c
mars/1000-progress-off-tasks
uranus/989-confinement-v
hygiea/985-launcher-verbs-r2
mars/985-rename-handover-match
jupiter/979-guard-places
uranus/980-assign-model
ceres/959-wake-on-idle
uranus/989-confinement-u
juno/802-a-handle-on-my-run
pluto/989-confinement
terra/batch-terra-1120f
mercurius/987-rebased-keep
vesta/308-a-week-of-the-ledger-vesta
jupiter/984-gap-5-crew-state
hygiea/985-launcher-verbs
vesta/915-worktree-finish
terra/batch-terra-1120b
terra/981-review-fix
venus/review-917
final-tip
keep-318-tip
neptunus/1006-review
hygiea/976-the-ci-wait-by-run
terra/979-review-fix
terra/962-review
hygiea/601-row-174-the-engines-settings-watch
uranus/968-markers-r1
terra/981-review
vesta/308-a-week-of-the-ledger
terra/986-review
saturnus/511-up-config
hygiea-601-last3b
hygiea-601-last3
hygiea-601-pre-rebase
jupiter/batch-92
venus/venus-review-929
venus/venus-review-934
uranus/511-up-claude
saturnus/511-refusals
venus/906-token-fixture
jupiter/541-a-engine-start-clean
uranus/614-slice3-approved-skills-on
uranus/614-dw6-unrooted-skill-folders
venus/639-redact-stdin
venus/venus-review-913
neptunus/547-s6-kitty-launch
venus/venus-review-897
neptunus/907-review
venus/898-bundle-main-installer
hygiea/309-a-declared-goal
venus/614-engine-skills-2
neptunus/893-review
venus/639-night2
venus/venus-review-883
jupiter/541-c4-goose-call-answered-by-the-entry
venus/venus-review-866
venus/541-9a-slice-2
mercurius/614-engine-skills
titan/637-updater-switch
pluto/755-fewer-judge-starts
uranus/836-review
mercurius/846-posted-text
neptunus/828-review-r1
titan/801-hint-text
uranus/785-part-2
uranus/797-review
neptunus/830-review
venus/venus-review-837
uranus/724-reap
juno/784-the-launch-a-start-builds
neptunus/784-review-fix
juno/784-the-adapter-under-its-ceiling
diverged/juno/784-the-launch-a-start-builds
juno/784-the-adapter-back-under-origin
neptunus/694-review-fix
juno/732-the-cap-holds-b
neptunus/732-review-fix
titan/541-c3-hints-record
jupiter/host-2.1.328
juno/732-the-cap-holds
ceres/781-launcher-path
uranus/785-hint-files
ceres/724-part-2
neptunus/766-review-fix
uranus/755-hook-filter
jupiter/review-788
neptunus/745-review-fix
uranus/772-judge-env
jupiter/753-keys-declared-twice
pallas/784-launch-request
ceres/562-wire-the-scan
jupiter/744-split-prove-the-core
titan/541-c2-goose-gate-rows
pallas/765-approve-listing
pr-766-tip
terra/769-review
pallas/748-cycle-roots
uranus/uranus-batch-69
venus/venus-review-756
pr-733-head
neptunus/727-shell-quoting
venus/venus-review-738
pallas/694-a-trial-line-keeps-its-transcript
ceres/724-part-1-a-test-leaves-nothing-behind-v2
ceres/tests-leave-nothing-in-the-temp-directory
neptunus/541-2-4-3-the-recording
ceres/700-the-stand-in-reports-its-start
titan/541-6b-multi-host-review-model
uranus/uranus-733r1
scratch-703
titan/541-5-member-host
neptunus/541-2-4-2-the-tool-call
ceres/625-release-redraw
mars/541-acp-transport
ceres/batch-62-redraw
neptunus/541-6-host-model-vocabulary
heads/pr/672
pr/672c
heads/pr/673
juno/541-6-host-model-vocabulary
pr/668b
saturnus/612-no-answer-gets-a-second-launch
ceres/601-release-bump
heads/pr/625
heads/pr/668
pr/656b
heads/pr/666
pallas/611-init-layout
pr/654-r2b
heads/pr/656
pr/662-new
pr/654-new
pr/660-new
saturnus/632-retire-owner-guard
saturnus/602-own-config
ceres/638-read-shape
neptunus/541-10-recorded-goose-host
titan/611-init-layout
venus/244-member-half
titan/165-stand-in-case
pallas/177-tree-stat-record
ceres/314-volatile-path-note-clean
uranus/uranus-batch-48
jupiter/160-where-we-are
uranus/uranus-batch-46
juno/513-budget-r2
pallas/437-trial-builder-r2
pallas/437-trial-builder
saturnus/289b-shell
saturnus/289b-rules
saturnus/289-record-values
ceres/170-vouching-on-real-events
ceres/170-vouching-reaches-the-member
neptunus/136-member-memory
mercurius/4-claw-code-analysis
mercurius/5-scaffold-theme
v0.5.0
dry-run-v0.5.0
installer-v2.0.4
dry-run-installer-v2.0.4
v0.4.3
installer-v2.0.3
dry-run-installer-v2.0.3
dry-run-v0.4.3
v0.4.2
dry-run-v0.4.2
installer-v2.0.2
dry-run-installer-v2.0.2
v0.4.1
dry-run-v0.4.1
installer-v2.0.1
installer-v2.0.0
tested-locks
v0.4.0
ci-tools
v0.3.0
installer-v1.1.1
v0.2.0
installer-v1.1.0
v0.1.0
installer-v1.0.2
installer-v1.0.1
installer-v1.0.0
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
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
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Purpose (product):
martha initandmartha configopen 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 typesmartha, neverlazymartha).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).martha initandmartha configstart it. The owner never runs it by hand.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.
ssaves, a dirty quit asks twice, and?shows help.Done when:
martha configon 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 initon a terminal opens lazymartha on a new crew; its save declares the crew exactly as the questions do (node ids, layout, read-back).initfalls back to the questions.martha-ai/lazymarthav0.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.Design and build packages: first comment. Refs #310
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:martha config: passes the declaration as--in. On exit 0 it runs the same two stepsconfigure_the_crew.ts:46-58runs today:declareCrewon the proposed text, thenwriteAChangedDeclaration(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 derivesTheCrewsChoicesfrom the proposed declaration and callsdeclareSoloCrew, asthe_crew_the_editor_declares.ts:55-75does now. A refusal restarts with--message, as above.2. The schema file
martha schemaprints it. The function that writes it builds it from the constants the reader already uses:THE_EDITORS_SECTIONSandTHE_EDITORS_FIELDS,ACTS, theHOUSE_RULE_*keys,REVIEW_MODEL, theGATE_*keys, the mesh keys,GOOSE_MODELS/CLAUDE_CODE_MODELS, andTHE_PROVIDERS_INIT_OFFERS. No literal is restated (they move fromthe_crew_editor.tsto athe_declarations_schema.ts).schema/martha.schema.json, and a node test asserts the committed file equalsmartha schemaoutput. That test is an ordinary test insidenpm test, not a new check.titleanddescriptionas the hint lines,default, andenumfor 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.$id: https://macula.io/schema/martha/v1/martha.schema.jsonplus"x-martha-schema": 1.3. Finding the binary, and when it is missing
<the running release>/bin/lazymartha(Martha's release image carries it, see §4), thenPATH(a dev checkout).martha configprintsmartha config needs lazymartha, which this martha does not carry: install a martha release, or put lazymartha on PATH.and ends with EXIT_REFUSED.martha initfalls back to the existing questions (theCrewTheAnswersDeclare), which are kept; it prints one line saying so.configrefuses, andinituses the questions or flags.4. Repo and release
charmbracelet/bubbletea+bubbles+lipgloss. Layout:cmd/lazymarthainternal/schema(read and check the major)internal/editor(a pure model: key in, state out, view)internal/files(in/out)vX.Y.Zmakes forge CI buildCGO_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.bin/lazymarthain 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.go test ./...with bubbletea'steatestand golden frames over fixture schema and declaration files copied from martha's tests. No network, no outside call. CI runsgo test+go vetonly.5. v1 scope = PR 5's editor
the_crew_editor.ts:11-54.extra) are kept on save.key_from/key_filename a key and never show it.ssaves,qquits (twice when dirty),?shows help, and Ctrl-C quits without saving.6. Build packages (DeepSeek builds, Opus reviews; one builder each)
L1 (martha): the schema. Add
the_declarations_schema.ts,martha schema, the committedschema/martha.schema.jsonand 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/configstart 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--into--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.tsthe_crew_editor_at_the_terminal.tsthe_crew_the_editor_declares.ts(its declare path moves into L4)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)
Appended after PASS r=1 (Saturnus): the Supervisor's rulings, 2026-11-30
Builders:
$idis never fetched.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.
L1 (the schema) landed:
bb54e799, PR 318Design §6 L1 =
the_declarations_schema.ts,martha schema,schema/martha.schema.jsonand the equality test. All four are on main.martha schemaprints the schema: MET. It is an act of its own (ACTS_ALONE, inUSAGEandHELP), printed line by line becauseshownSafelyescapes a newline inside one string.schema/martha.schema.jsonis committed: MET. JSON Schema 2020-12,$idhttps://macula.io/schema/martha/v1/martha.schema.json,x-martha-schema: 1, the eight editor tabs and their field order inx-martha-tabs, hints astitle/description, defaults, and enums for hosts (HOSTS_IT_KNOWS), terminals (TERMINALS) and models (the hosts' closed lists).npm testasserts 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.ACTS, theHOUSE_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.THE_EDITORS_SECTIONS/THE_EDITORS_FIELDSare not on main (PR 5, #310, is unmerged), so L1 defines them inthe_declarations_schema.tsand PR 5's editor should import them; andTHE_PROVIDERS_INIT_OFFERSdoes 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 configopens lazymartha, a save validated by the reader, a refused save shown: L4.martha initopens lazymartha on a new crew: L4.initfalls back to the questions: L4.martha-ai/lazymarthav0.1.0 tagged, built, signed and published; Martha's release image carries the pin: L3 and L4.bin/martha schemaonly).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.L4 (the launch) landed:
876a3dc6, PR 328 (r1 PASS, Uranus)L4's Done-when lines (Pluto's split, c6630), checked against
876a3dc6:martha configopens lazymartha, the reader validates each save, and a refused save is shown: MET.configure_the_crew.tsruns the §1 handshake (--schema --in --out [--message]; 0 saved, 3 quit, other crashed). A save goes throughdeclareCrew, thenwriteAChangedDeclaration. A refusal restarts the editor with--message <the reader's line>(tested).martha initopens lazymartha on a new crew: MET.the_lazymartha_declares.tspasses--newon a starter declaration, and each save goes todeclareSoloCrew. A refused save restarts with--message. The work files live under Martha's state dir and go only after the loop (tested, mutant caught).initfalls 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).--version.the_lazymartha_pin.jsonholds 0.1.0 and its sha256.pack_a_release.shrefuses a tree withoutschema/martha.schema.json, then fetches the binary intobin/lazymarthawith the digest checked (npm run release:fetch-lazymartha). A test pins both lines..mcp.jsonwrite is kept: MET (tested).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.L5 (the removal) landed:
607b194d, PR 333 → 334 (r1 PASS, Uranus)L5's Done-when line (Pluto's split, c6630), checked against
607b194d:the_crew_editor*,run_the_crew_editor.ts,the_crew_editor_at_the_terminal.ts,the_crew_the_editor_declares.tsand their tests are not in the tree (git ls-treeon607b194d), and nothing insrc/imports them. init now gets its choices fromthe_choices_a_declaration_makes.ts, which reads lazymartha's declaration directly. The deleted test file has itsDrops-test-fileclaim commit (6ade17af). The diff is 15 files, +240/−1297.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'sbin/). The wholenpm testpassed with 5861 passing and 0 failing, and all 3 mutants were caught.The issue's Done-when, all lines
martha configopens lazymartha, the reader validates each save, and a refused save is shown: MET (L4, c6740).martha initopens lazymartha on a new crew: MET (L4, c6740).initfalls back to the questions: MET (L4, c6740).v0.1.0= cc7b2a61. macula-publazymartha/0.1.0holdslazymartha-linux-amd64,.sha256and.sig. The binary's sha25686704a6b…6938eff14equalsthe_lazymartha_pin.json.origin/mainhas 6_test.gofiles and nonet/net/httpimport 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).