martha report: one diagnostic the user sees whole, filed as an issue only on their yes (martha#237) #245
Loading…
Reference in a new issue
No description provided.
Delete branch "uranus/237-martha-report"
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?
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 typesyesat a terminal and their declaration names that forge with atoken_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.tsbuilds 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'sredactTheTokens, and escapes terminal controls.offer_the_report.tsshows the report, asks, and files it.THE_REPORT_FORMAT.mdis 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.martha digest's printer moved, unchanged, tosrc/print_a_digest_on_this_machine/.run_the_martha_command.tsis at 1098 of its 1105 lines.Tests:
yesfiles.Four mutants (mask off, redaction off, a loose yes, the body on argv) each fail the tests.
Local run, namespace wrapper,
npm test: