Independent AI intelligence Two editions daily · ET
Fervor AI

Analysis · December 1, 2026 · repo

Apache Makaagent-harnessagent-securitylocal-aimcp

Apache Maka Won't Retry an Agent Action It Can't Prove Failed. Copy That Rule.

The local agent workspace from the Apache incubator treats "I don't know if that happened" as an answer, not an error to retry.

An AI agent starts sending an invoice email, and the laptop lid closes halfway through. On restart there is no reply from the mail server, so most agent setups simply try again, and the customer gets billed twice. Apache Maka, a new agent workspace from the Apache incubator, refuses to guess: it marks that action Unknown and waits for proof.

That one rule closes a whole family of bugs: the double invoice, the migration that runs twice, the refund that goes out twice. Maka writes it into its design docs in one blunt sentence: "Once caller intent is recorded, a missing receipt never proves non-execution." An interrupted action becomes Unknown, and Unknown blocks automatic replay. That rule is the best idea in a project with about 6,000 GitHub stars as of December 1, and you can copy it into your own agents whether or not you ever install Maka.

What Maka is

Apache Maka (Incubating) is a local-first agent workspace that runs in your terminal or as a desktop window. "Local-first" means the agent's state lives on your machine, in a folder Maka calls the State Root (by default ~/.maka/application/host), not on someone's server.

The interesting part is the shape. A background program written in Rust, called the Host, owns everything that matters: calling the model, running tools, sandboxing, permissions, and a SQLite database that keeps, in the README's words, "an auditable record of every run, approval, and tool receipt." The terminal and desktop windows are just views. Close the window and in-flight work finishes in the background.

It is in incubation at the Apache Software Foundation, which means it is an Apache project in training, not a finished one. The DISCLAIMER says incubation is not necessarily a reflection of how complete or stable the code is, but that the project has yet to be fully endorsed by the ASF. The license is Apache-2.0. The README names 0.2.2 (incubating) as the latest approved release, and nightly builds land daily.

The rule: write it down before you do it

Think of a restaurant kitchen. The server writes the order on a ticket before the cook touches the stove. If the power cuts out mid-service, nobody cooks a second steak on a hunch. They look at the ticket, look at the pan, and decide.

Maka's architecture document describes a two-step record for every action with side effects (anything that changes the world: writing a file, calling an API, sending a message):

  1. Intent first. Before the action reaches the tool that performs it, the Host records what the caller asked for: which target, which method, a unique operation ID, and a fingerprint of the request (a short hash that identifies exactly what was asked). On a retry or restart, Maka checks this journal "rather than blindly re-issuing mutations."
  2. Outcome second, and only three possibilities. When the tool answers, its confirmation (Maka calls it a receipt) is recorded. The result is NotExecuted, Returned, or Unknown. Separately, cleanup of any resources it touched is tracked as Unconfirmed, Confirmed, or Failed.

If the action was interrupted, it settles to Unknown. Maka won't replay it automatically. If proof shows up later that it did finish, Maka still accepts that late answer.

The same rule runs through the rest of the design. When the agent restarts mid-run and can't establish whether an earlier action happened, the docs say "the run fails explicitly rather than re-running side effects under a new ID." One logical run keeps the same ID through approvals, retries and restarts, so the record stays one story instead of three overlapping ones.

It even applies to other agents. Maka can drive Claude Code, Codex and Google's Antigravity as external tools inside a session. The agent docs say that for those, "process exit, silence, or EOF alone never marks a turn successful," and that unconfirmed interruptions "never trigger blind prompt replay." A crashed Claude Code process does not count as a finished task, and Maka won't paste the prompt in again just to see.

This is not glamorous. It is the difference between an agent you can leave running overnight and one you have to babysit.

Who holds the keys

The second idea is that the model never gets to grant itself anything. The security policy says the Host owns "call admission, capability scopes, canonical SQLite state, and resource cleanup," and that "neither UI clients nor model outputs can escalate their own capabilities."

Under that, each operating system gets its own sandbox for workspace tools:

  • macOS: Seatbelt, Apple's built-in app sandbox.
  • Linux: bubblewrap plus network namespaces, which give a process its own walled-off view of files and network.
  • Windows: Microsoft MXC, or restricted low-privilege job accounts.

When the agent writes and runs its own scripts (Maka calls this Code Mode), JavaScript runs in an embedded V8 engine and Python in a bounded subprocess. Neither has direct access to files, network or other programs. Every outside action goes back through the Host and its approvals.

And when you approve something, the docs say approval "authorizes one concrete capability grant." You approve this action, not a vague category of actions the model might describe later.

The catch: MCP servers sit outside the fence

Here is the part to read twice. MCP servers (the Model Context Protocol plugins that give an agent extra tools, like a GitHub or Slack connector) are not inside that sandbox.

The security policy calls installed plugins and configured MCP servers "trusted extensions." The agent docs are more specific: stdio MCP servers, the common kind that run as a local program and talk over standard input and output, "execute as the Host OS user outside workspace file sandboxes." The security policy adds that session permissions and per-call approvals "gate tool invocation, not server startup."

In plain words: Maka will ask before the agent calls a tool on an MCP server. It won't stop the server program itself from doing whatever it likes on your machine with your account's rights, from the moment it starts. A malicious or sloppy MCP server is as dangerous in Maka as it is anywhere else.

That's an honest design choice, clearly documented, and the same is true of most agent hosts. It just means the sandbox story stops at the MCP config file, and you have to pick up from there.

Put this into practice

If you want to try Maka, build from source. The README's prerequisites are Rust stable, Node.js 24 or newer, npm, and just, a command runner. Desktop automation also needs Xcode Command Line Tools on macOS or X11 development libraries on Linux.

git clone https://github.com/apache/maka.git
cd maka
just setup
just run

just run opens the terminal workbench and starts the local Host. Expect a long first build: it compiles a Rust workspace with an embedded V8 engine. Run maka --help (or just --list from the repo) to see the subcommands, which include inspect, checkpoint and sandbox.

Skip npm install -g @maka-agent/cli for now. As of December 1, the package's latest tag on npm points to 0.0.0-placeholder.2, and the README marks the stable npm install as "once published on @latest." The @nightly tag works but is, in the README's words, an unofficial developer preview "not approved by an ASF release vote."

Before you add MCP servers, look at where they're configured: Settings, then MCP servers, or .maka/mcp.json and .agents/mcp.json in the project or your home folder. Treat each entry as a program you are installing with your own account's rights, because that is what it is. Read its source or use one from a vendor you'd trust with your shell.

To copy the rule into your own agent, you don't need Maka at all. Four steps:

  1. Give every side-effecting tool call an operation ID before it runs.
  2. Write the ID and the request to durable storage (a SQLite table is enough) before calling the tool.
  3. Record the result when it comes back. If the agent restarts and finds an ID with no result, mark it Unknown.
  4. Never auto-retry an Unknown. Check the outside world (did the email land in Sent?) or ask a human.

Here is the whole idea as a sketch you can adapt. It is not Maka's code, just the pattern:

# before the side effect
db.execute("INSERT INTO ops(id, request, status) VALUES (?, ?, 'pending')", (op_id, req_json))
result = send_email(req)              # the risky call
db.execute("UPDATE ops SET status='returned', receipt=? WHERE id=?", (result.id, op_id))

# on restart
for op in db.execute("SELECT id FROM ops WHERE status='pending'"):
    mark_unknown(op)                  # do NOT call send_email again
    ask_human_or_check_sent_folder(op)

Most payment APIs already work this way through idempotency keys, a unique ID that makes a repeated request harmless. Maka's contribution is treating every agent tool call with the same care as a payment.

Honest limitations

  • It is early. Incubating, one approved release, daily nightlies, and an npm latest tag that is still a placeholder. Expect breaking changes.
  • It is heavy. Rust, Node 24, V8 and a desktop shell make for a big build. This is not a pip install afternoon.
  • This article reads the design docs, not the code. Everything above comes from the README, ARCHITECTURE.md, SECURITY.md and the agent README at commit c993e6e. Whether the code fully lives up to "a missing receipt never proves non-execution" in every path is a question for an audit, not a docs review.
  • Unknown means more work for you. Refusing to retry is safer, and it also means interrupted runs stop and wait. If your agent does lots of small, harmless writes, that friction adds up.
  • MCP is outside the sandbox. Covered above. It is the biggest practical gap for most users.
  • Its own eval runner exists, but no published numbers. The repo ships a containerized evaluation runner (Harbor), and the README shows no benchmark results to compare.

The question to ask your agent stack

You don't have to switch tools to get value from this. Open whatever runs your agents today and ask one question: if the process dies halfway through a tool call, what happens on restart?

If the honest answer is "it tries again," you have a duplicate-action bug waiting for a bad night. Maka's answer is to write it down first and admit uncertainty when the record runs out. That's a rule worth stealing.

Sources: apache/maka README, ARCHITECTURE.md, SECURITY.md, plugins/agent/README.md, packages/cli/README.md, and DISCLAIMER, all at commit c993e6e (December 1, 2026); @maka-agent/cli on npm (dist-tags read December 1, 2026); star count from the GitHub API, December 1, 2026.