Mahal Systems

Overview › 10Safety

Safety

3 optimizations in 3 sub-categories.

a.Sandboxing

Constrain what the agent can touch

  1. i.

    Constrain what the agent can touch

    Run the agent in an OS-level sandbox with a workspace path guard that resolves symlinks, scrub credentials from the command environment, run agent-written SQL read-only with timeouts and row caps, and set resource limits on generated code.

    Higher costSlower

    Tier 2 · reliability · changes guardrails · any agent · 5 sources

b.Gating risky actions

Gate risky actions behind policy or a human

  1. i.

    Gate irreversible actions: allow, ask or deny by side effect

    Classify every action the agent can take by its side effect (read, reversible write, irreversible or externally visible: sending email, issuing a refund, deleting a record, posting publicly, pushing code) and gate by class: allow, ask a human or a policy, or deny.

    Slower

    Tier 2 · reliability · changes guardrails · any agent · 9 sources

c.Containing data

Keep sensitive data and untrusted input contained

  1. i.

    Contain sensitive data and untrusted input

    Tokenize PII in the client so it never reaches the model, wrap untrusted tool and web results in taint delimiters, scan context files and skills for prompt injection, and state an explicit instruction-precedence order (user, repo, defaults, external data as data).

    Tier 2 · reliability · changes guardrails · any agent · 4 sources

Before you go...

Build better agents, weekly

Our latest research, performance benchmarks, optimization strategies, and updates around AOT development.

One email a week, nothing else. Unsubscribe anytime.