martha#953: engine facts at martha-engine 447ec6ec, and R2a (Developer reads unasked where the gate passed the path) #326

Manually merged
terra merged 0 commits from mercurius/953-r2a-facts into main 2026-12-01 02:11:35 +00:00
Member

Purpose (fix): martha's recorded engine facts match martha-engine main 447ec6ec (1.61.0, which carries martha-ai/martha-engine#24's view tool). Then R2a: the Developer reads (developer__tree, developer__view) run unasked once the gate has passed their path.

Refs martha#953 (Uranus's review R2 on martha-ai/martha-engine#24; standing martha-953-view-unasked-r2a). Rulings: DECIDED 2026-11-30 N1 "Keep all unasked" and N2 "Keep it (Recommended)" (martha-953-chat-rulings).

Commit 1: the engine facts re-recorded at 447ec6ec

  • Widening 1, the crate rename. The upstream sync (martha-ai/martha-engine#20) renamed the goose-* crates to oi-kit-*, so five readers point at their new files: modes, the OpenAI provider, the stdio extension, the tool name parts, and the session key (now oi-kit-agent/src/mcp/client.rs).
  • Widening 2, unadvertised dropped. Upstream #13605 removed the approval's request_was_advertised filter. The engine now answers a call to a tool it never advertised with an error before the approval, so that call never runs. approve_mode_unasked loses its unadvertised field. The reader now requires the approval to hand every call to the check; a filter there makes the part unreadable.
  • view recorded. view is added (ViewParams, on path, read-only, local), so the decisions judge it as a search on its path. The design-table test names its row.
  • Test claims. Three renamed test titles carry Drops-test: claims.

Commit 2: R2a

  • What runs unasked. The Developer tools whose recorded hints say they only read and reach nothing past the machine (today tree and view) run unasked, by whole engine name, like the crew's own tools and the mesh server's. The gate is read first and judges their path.
  • Where the set comes from. theDevelopersReads (host glue, the_engines_decisions.ts) picks them. The launcher hands them to the rules slice, which imports no host glue.
  • Holds. An owner's deny or ask on a reading tool (Read, Grep, bare or with a pattern) now holds every Developer read. Before this, such a rule held nothing, because no read ran unasked.
  • Mutants caught. Kind filter dropped, an open-world tool counted as a read, the hold dropped, the pattern matched whole, and the facts filter throw dropped.

Local proof (tip c8c95ea4)

  • Tests. The whole npm test, via run_the_tests_in_a_namespace_of_their_own.sh, nice 10: 5871 tests, 5833 pass, 0 fail, 38 skipped. That ran on tree 4ef35fa2; it is identical to c8c95ea4, where only the commit messages changed.
  • verify. Every verify step passes: lint (root and installer), tsc, the import-cycle check, and the private, restated-values, base-tests, pictures, names, jobs, timeouts, posted-text and recorded-host checks.
  • Facts. record:goose-engine --check at 447ec6ec reads every part, with no drift.

🤖 Generated with Claude Code

Purpose (fix): martha's recorded engine facts match martha-engine main 447ec6ec (1.61.0, which carries martha-ai/martha-engine#24's `view` tool). Then R2a: the Developer reads (`developer__tree`, `developer__view`) run unasked once the gate has passed their path. Refs martha#953 (Uranus's review R2 on martha-ai/martha-engine#24; standing martha-953-view-unasked-r2a). Rulings: DECIDED 2026-11-30 N1 "Keep all unasked" and N2 "Keep it (Recommended)" (martha-953-chat-rulings). ## Commit 1: the engine facts re-recorded at 447ec6ec - **Widening 1, the crate rename.** The upstream sync (martha-ai/martha-engine#20) renamed the `goose-*` crates to `oi-kit-*`, so five readers point at their new files: modes, the OpenAI provider, the stdio extension, the tool name parts, and the session key (now `oi-kit-agent/src/mcp/client.rs`). - **Widening 2, `unadvertised` dropped.** Upstream #13605 removed the approval's `request_was_advertised` filter. The engine now answers a call to a tool it never advertised with an error before the approval, so that call never runs. `approve_mode_unasked` loses its `unadvertised` field. The reader now requires the approval to hand every call to the check; a filter there makes the part unreadable. - **`view` recorded.** `view` is added (`ViewParams`, on `path`, read-only, local), so the decisions judge it as a search on its path. The design-table test names its row. - **Test claims.** Three renamed test titles carry `Drops-test:` claims. ## Commit 2: R2a - **What runs unasked.** The Developer tools whose recorded hints say they only read and reach nothing past the machine (today `tree` and `view`) run unasked, by whole engine name, like the crew's own tools and the mesh server's. The gate is read first and judges their path. - **Where the set comes from.** `theDevelopersReads` (host glue, `the_engines_decisions.ts`) picks them. The launcher hands them to the rules slice, which imports no host glue. - **Holds.** An owner's deny or ask on a reading tool (`Read`, `Grep`, bare or with a pattern) now holds every Developer read. Before this, such a rule held nothing, because no read ran unasked. - **Mutants caught.** Kind filter dropped, an open-world tool counted as a read, the hold dropped, the pattern matched whole, and the facts filter throw dropped. ## Local proof (tip c8c95ea4) - **Tests.** The whole `npm test`, via `run_the_tests_in_a_namespace_of_their_own.sh`, nice 10: 5871 tests, 5833 pass, 0 fail, 38 skipped. That ran on tree 4ef35fa2; it is identical to c8c95ea4, where only the commit messages changed. - **verify.** Every `verify` step passes: lint (root and installer), tsc, the import-cycle check, and the private, restated-values, base-tests, pictures, names, jobs, timeouts, posted-text and recorded-host checks. - **Facts.** `record:goose-engine --check` at 447ec6ec reads every part, with no drift. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The upstream sync (martha-ai/martha-engine#20) renamed the goose-* crates to oi-kit-*, so five
parts read from their new files: modes, the OpenAI provider, the stdio
extension, the tool name parts, and the session key, now declared in
oi-kit-agent's MCP client.

Upstream #13605 removed the approval's filter that let a call to a tool never
advertised skip the permission check: the engine now answers such a call with
an error before the approval, so it never runs. approve_mode_unasked loses its
`unadvertised` field, and the reader now requires the approval to hand every
call to the check; a filter there is a way to go unasked it does not know, so
the part is unreadable.

The recording gains `view` (ViewParams, on `path`, read-only, local), which the
decisions take as a search on its path: the design-table test names its row,
and its title says so.

Refs martha#953

Drops-test: src/launch_a_goose_member/the_engines_decisions.node-test.ts :: on the recording, the rows are the design table, keyed by the name a call carries: write and edit one file, tree every file below, shell a command, read_image none (#541 package A, design G1)
Drops-test: src/know_the_goose_engines_facts/the_engines_facts_in_its_source.node-test.ts :: what approve mode runs unasked is read as the engine writes it: each user permission level that allows, past a level that asks and a smart-approve-only allow, and the filter before the check (#541 package A, design r=6 R1''; mutants: the smart-approve allow counted, every level read)
Drops-test: src/know_the_goose_engines_facts/the_engines_facts_in_its_source.node-test.ts :: an approve-mode allow this reader does not know, or an approval that no longer allows what its filter keeps out, is unreadable by name (#541 package A; mutants: either throw dropped)
The Developer tools whose recorded hints say they only read and reach nothing
past the machine run unasked, by whole engine name, as the crew's own and the
mesh server's tools do. The engine's decisions pick them (theDevelopersReads)
and the launcher hands them to the rules slice, which imports no host glue. The gate is read first and judges the path each names,
so one runs unasked only where the gate passed it.

An owner's deny or ask rule on a reading tool (Read, Grep, bare or with a
pattern) holds every one of them, read wider than written; before this, such a
rule held nothing, since no read ran unasked.

Refs martha#953 (Uranus's review R2 on martha-ai/martha-engine#24)
The Supervisor's ruling on r1 (Saturnus's note 1): a read is itself the
sending of what it reads to the model's provider, so a developer__view of
~/.ssh that runs unasked has sent the key before any later gate could stop
it. R2 meant "unasked when the path is safe".

theDevelopersReads now takes the launch's checkout and says, per call,
whether the tool's path argument resolves inside it: resolved as the engine
resolves it, against the checkout, with its links followed, so a link in the
checkout to a folder outside is outside. A call with no path, or one that is
not text, is asked. The rules slice runs a read unasked only when that check
passes and no hold names it; every other read is asked of the owner as before.

Mutants caught: the inside check dropped (in the rules and in the
decisions), links not followed, the kind filter dropped, the hold dropped.

Refs martha#953
terra referenced this pull request from a commit 2026-11-30 23:23:59 +00:00
terra manually merged commit dc79b38bec into main 2026-12-01 02:11:35 +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!326
No description provided.