A read-only view tool, and the kind of a permission call #24

Merged
terra merged 2 commits from titan/953-acp-ux into main 2026-11-30 17:28:17 +00:00
Member

The engine side of martha-ai/martha#953: a read-only view tool for the developer extension, and a permission call's kind.

  • view reads a text file, optionally a line range; it is read-only, bounded by lines, and numbered.
  • The developer instructions and the shell/read_image descriptions point text reads at view (and listings at tree) instead of cat/sed/shell.
  • A permission request's tool call now carries its kind (read/execute/edit), matched on the developer extension only, so a same-named tool from another server is Other.

Refs martha-ai/martha#953

The engine side of martha-ai/martha#953: a read-only `view` tool for the developer extension, and a permission call's `kind`. - `view` reads a text file, optionally a line range; it is read-only, bounded by lines, and numbered. - The developer instructions and the shell/read_image descriptions point text reads at `view` (and listings at `tree`) instead of cat/sed/shell. - A permission request's tool call now carries its kind (read/execute/edit), matched on the developer extension only, so a same-named tool from another server is `Other`. Refs martha-ai/martha#953
martha-engine: a read-only view tool, and the kind of a permission call
Some checks failed
martha-engine checks / The evidence keeps the model server's log (pull_request) Successful in 4s
CI / changes (pull_request) Successful in 42s
CI / Check Rust Code Format (pull_request) Successful in 1m1s
CI / Lint Rust Code (pull_request) Successful in 8m46s
martha-engine checks / Build the engine and run the fork's checks (pull_request) Successful in 12m36s
CI / Build and Test Rust Project (pull_request) Has been cancelled
1c7e391c7d
The developer extension had no text reader: its instructions sent the model to
cat/sed and the shell, and a shell call asks the owner. `view` reads a text file,
optionally a line range, is annotated read-only and bounded, and the instructions,
shell and read_image descriptions send the model to it and to tree. A permission
request's tool call now carries its kind (read/execute/edit) instead of the
default, for clients that show or default by it.

Refs martha-ai/martha#953
Use developer::EXTENSION_NAME in tool_kind_for, not the literal
Some checks were skipped
CI / changes (pull_request) Has been skipped
CI / Check Rust Code Format (pull_request) Has been skipped
CI / Build and Test Rust Project (pull_request) Has been skipped
CI / Lint Rust Code (pull_request) Has been skipped
martha-engine checks / The evidence keeps the model server's log (pull_request) Has been skipped
martha-engine checks / Build the engine and run the fork's checks (pull_request) Has been skipped
173a4a1fac
Refs martha-ai/martha#953
terra merged commit 447ec6ec9b into main 2026-11-30 17:28:17 +00:00
Author
Member

Done-when, checked against the landed merge (447ec6ec, tip 173a4a1f):

  • R1 stale prompt snapshot — regenerated with the five features (chat-recall, code-mode, platform-apps, scheduler, tree-sitter); test_all_platform_extensions green on msi00. Done.
  • R2 "does not ask the owner" overclaim — dropped; the description and instructions say only that view is read-only and bounded. (R2a, martha answering developer__view/developer__tree unasked, is the martha side — a separate package.)
  • R3 tool_kind_for ignored the extension — now matched on developer::EXTENSION_NAME (not the literal), so a same-named tool from another server is Other; read_image is Read; test row x__view → Other. Done.
  • R4 image.rs still sent the model to the shell — its error text now points text reads at view. Done.
  • R5 not named as a fork patch — FORK PATCH markers at tool_kind_for, the two instruction blocks and the shell/read_image description; Refs martha-ai/martha#953. Done.

Fold-in: Some("developer") → Some(EXTENSION_NAME) (no hard-coded literal).

Done-when, checked against the landed merge (447ec6ec, tip 173a4a1f): - **R1 stale prompt snapshot** — regenerated with the five features (`chat-recall, code-mode, platform-apps, scheduler, tree-sitter`); `test_all_platform_extensions` green on msi00. Done. - **R2 "does not ask the owner" overclaim** — dropped; the description and instructions say only that `view` is read-only and bounded. (R2a, martha answering `developer__view`/`developer__tree` unasked, is the martha side — a separate package.) - **R3 `tool_kind_for` ignored the extension** — now matched on `developer::EXTENSION_NAME` (not the literal), so a same-named tool from another server is `Other`; `read_image` is `Read`; test row `x__view` → `Other`. Done. - **R4 image.rs still sent the model to the shell** — its error text now points text reads at `view`. Done. - **R5 not named as a fork patch** — FORK PATCH markers at `tool_kind_for`, the two instruction blocks and the shell/read_image description; `Refs martha-ai/martha#953`. Done. Fold-in: `Some("developer")` → `Some(EXTENSION_NAME)` (no hard-coded literal).
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-engine!24
No description provided.