martha report: one diagnostic the user sees whole, filed as an issue only on their yes (martha#237) #245

Manually merged
terra merged 0 commits from uranus/237-martha-report into main 2026-12-01 06:43:30 +00:00
Member

Refs #237

martha report [-- <the command that failed>] builds one diagnostic and shows it whole. It is filed as an issue on git.macula.io/martha-ai/martha only when the user types yes at a terminal and their declaration names that forge with a token_file. Otherwise it prints the text and the issues/new link to paste it into. It never runs on its own, and it sends no telemetry.

The threat model and Mars's rulings are in #237 c5679.

  • src/report_a_problem/ (slice): the_report.ts builds the report. It masks the named declaration fields (names imported from their own slices), writes the home in its short form, runs every string through #646's redactTheTokens, and escapes terminal controls. offer_the_report.ts shows the report, asks, and files it. THE_REPORT_FORMAT.md is the spec.
  • src/report_a_problem_on_this_machine/ (host adapter): reads the facts. These are versions, OS, Node, podman then docker, the declaration and the newest relay journal.
  • read_the_ci_of_a_host/the_forges_transport.ts: one POST, theForgePostOf. The body goes in a private file and the content type in the curl config. It is refused for a host with no token file. The command's own io alone carries the real post; tests use stand-ins.
  • Ceiling move: martha digest's printer moved, unchanged, to src/print_a_digest_on_this_machine/. run_the_martha_command.ts is at 1098 of its 1105 lines.

Tests:

  • Planted secrets: one in each masked field, plus tokens in free text, a key, the command, the journal and a version. None appears in the output.
  • yes / y / YES / empty / no terminal: only yes files.
  • What is filed equals what was shown.
  • The body and the token are not on curl's argv.
  • The output matches the spec.

Four mutants (mask off, redaction off, a loose yes, the body on argv) each fail the tests.

Local run, namespace wrapper, npm test:

  • installer: 168 of 168 pass.
  • main suite: 5541 of 5583 pass, 4 fail. The fails are the martha#195 stuck-file signal tests (SIGHUP, SIGINT, SIGTERM) and a #205 launcher-pid test. None is in a file this touches. Both files run alone: 4 of 4 pass.
Refs #237 `martha report [-- <the command that failed>]` builds one diagnostic and shows it whole. It is filed as an issue on git.macula.io/martha-ai/martha only when the user types `yes` at a terminal and their declaration names that forge with a `token_file`. Otherwise it prints the text and the issues/new link to paste it into. It never runs on its own, and it sends no telemetry. The threat model and Mars's rulings are in #237 c5679. - `src/report_a_problem/` (slice): `the_report.ts` builds the report. It masks the named declaration fields (names imported from their own slices), writes the home in its short form, runs every string through #646's `redactTheTokens`, and escapes terminal controls. `offer_the_report.ts` shows the report, asks, and files it. `THE_REPORT_FORMAT.md` is the spec. - `src/report_a_problem_on_this_machine/` (host adapter): reads the facts. These are versions, OS, Node, podman then docker, the declaration and the newest relay journal. - `read_the_ci_of_a_host/the_forges_transport.ts`: one POST, `theForgePostOf`. The body goes in a private file and the content type in the curl config. It is refused for a host with no token file. The command's own io alone carries the real post; tests use stand-ins. - Ceiling move: `martha digest`'s printer moved, unchanged, to `src/print_a_digest_on_this_machine/`. `run_the_martha_command.ts` is at 1098 of its 1105 lines. Tests: - Planted secrets: one in each masked field, plus tokens in free text, a key, the command, the journal and a version. None appears in the output. - yes / y / YES / empty / no terminal: only `yes` files. - What is filed equals what was shown. - The body and the token are not on curl's argv. - The output matches the spec. Four mutants (mask off, redaction off, a loose yes, the body on argv) each fail the tests. Local run, namespace wrapper, `npm test`: - installer: 168 of 168 pass. - main suite: 5541 of 5583 pass, 4 fail. The fails are the martha#195 stuck-file signal tests (SIGHUP, SIGINT, SIGTERM) and a #205 launcher-pid test. None is in a file this touches. Both files run alone: 4 of 4 pass.
martha#237: martha report: one diagnostic the user sees whole, filed as an issue only on their yes
Some checks failed
dependency advisories / node in . (container) (pull_request) Has been skipped
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (pull_request) Has been skipped
dependency advisories / node in installer (container) (pull_request) Has been skipped
CI / nothing private (pull_request) Has been skipped
dependency advisories / node in . (pull_request) Successful in 15s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 13s
c4 model / c4-model-1 (pull_request) Successful in 3s
dependency advisories / node in installer (pull_request) Successful in 15s
c4 model / c4-model (pull_request) Successful in 0s
dependency advisories / advisories (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 6s
CI / Martha's names are its own (pull_request) Successful in 31s
CI / structural floor (pull_request) Successful in 35s
CI / no import cycle (pull_request) Successful in 28s
CI / gate coverage (pull_request) Has been cancelled
CI / the relay loads in the recorded host (pull_request) Has been cancelled
CI / the host drift check bites (pull_request) Has been cancelled
CI / the engine drift check bites (pull_request) Has been cancelled
CI / the posted text check bites (pull_request) Has been cancelled
CI / the clean-install proof removes its container (pull_request) Has been cancelled
CI / the ring reaches the owner on the live run's tmux (pull_request) Has been cancelled
CI / workflows are valid (pull_request) Has been cancelled
CI / installer (pull_request) Has been cancelled
CI / no test the base passed goes missing (pull_request) Has been cancelled
CI / the pictures change only with the version (pull_request) Has been cancelled
CI / no literal restates a defined value (pull_request) Has been cancelled
CI / every check runs in a job (pull_request) Has been cancelled
CI / every job has a timeout (pull_request) Has been cancelled
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Has been cancelled
standalone / the pinned Node is nodejs.org's (pull_request) Has been cancelled
0066e2a597
martha#237 r2: no ask when the output is no terminal, owner masked, Martha's forge spelled once
All checks were successful
dependency advisories / node in . (container) (pull_request) Has been skipped
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (pull_request) Has been skipped
dependency advisories / node in installer (container) (pull_request) Has been skipped
CI / nothing private (pull_request) Has been skipped
dependency advisories / node in . (pull_request) Successful in 12s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 8s
dependency advisories / advisories (pull_request) Successful in 0s
c4 model / c4-model-1 (pull_request) Successful in 3s
c4 model / c4-model (pull_request) Successful in 0s
dependency advisories / node in installer (pull_request) Successful in 9s
CI / links resolve (pull_request) Successful in 5s
CI / structural floor (pull_request) Successful in 27s
CI / no import cycle (pull_request) Successful in 27s
CI / Martha's names are its own (pull_request) Successful in 30s
CI / the engine drift check bites (pull_request) Successful in 21s
CI / the posted text check bites (pull_request) Successful in 8s
CI / the host drift check bites (pull_request) Successful in 1m26s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 13s
CI / workflows are valid (pull_request) Successful in 15s
CI / no test the base passed goes missing (pull_request) Successful in 34s
CI / the pictures change only with the version (pull_request) Successful in 21s
CI / every check runs in a job (pull_request) Successful in 15s
CI / every job has a timeout (pull_request) Successful in 15s
CI / no literal restates a defined value (pull_request) Successful in 1m4s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 32s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 16s
CI / installer (pull_request) Successful in 3m51s
CI / the relay loads in the recorded host (pull_request) Successful in 17m15s
CI / gate coverage (pull_request) Successful in 18m0s
CI / the clean-install proof removes its container (pull_request) Successful in 25m39s
f947833498
R1 (T3): with the output sent to a file or a pipe the user is not asked, so a yes cannot file a report they never saw.
R2: the declaration's owner is masked (martha init fills it from git's user.name).
R3: the forge host and repository are spelled once, in offer_the_report; check:private's declared.ts reads them from
there. T7 pins the path the post was called with.

Refs martha-ai/martha#237
The forge transport takes main's write (martha#45 row 4); the report's POST is
a thin wrapper over it and keeps its refusal for a host with no token file.
run_the_martha_command.ts is main's with report re-applied and digest moved out
(1091 lines, main 1099); forgePost moves to the_io_of_this_process.ts. The
member placeholder is main's THE_MEMBERS_PLACE.
Main added base_path to PROVIDER_KEYS, which shifted the positional picks and left
account unmasked (T1/T2 caught it). Each field is now picked by name, checked by the
compiler against its slice's list. The refusal to write to a host with no token file
moves out of the shared transport into theForgePostOf, so main's friction filing
(#45 row 4) is unchanged.
terra manually merged commit ecb6f372e4 into main 2026-12-01 06:43:30 +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!245
No description provided.