Skip to content

feat: --trust presets — one-word trust for the fleet's own ecosystem tools #159

Closed

Description

@ajianaz

What (description of the change)

Add a --trust <preset> flag (repeatable → union; env TOLE_TRUST) with
built-in presets that expand to the existing --allow glob machinery —
pure sugar over the proven AllowlistApprover, zero new approval logic:

  • none (default when the flag/env is absent): today's behavior, byte-identical.
  • internal: auto-allow the fleet's own ecosystem tools — uteke_*,
    cora_search, mcp_cora_* (the cora MCP auto-preset surface),
    verify_package, job_* — i.e. "these tools are ours, don't re-ask".
    Destructive stays structurally denied (the registry refuses it without
    an interactive approver — unchanged); run_command, write_file,
    edit_file, delete_file, git, gh keep prompting.
  • read_only: auto-allow every ReadOnly tool (all native + MCP ReadOnly),
    still prompting for Writes.

The preset lists live in one const table next to the registry wiring,
documented in --help, and expand into allow_patterns before the
approver is built (so AllowlistApprover semantics — match → Allow,
Destructive → always Deny — are the only enforcement path; nothing new
to audit in the decision pipeline). The env var follows the existing
TOLE_MEMORY/TOLE_TRUST-style pattern: flag wins over env; no config
file (per the standing no-tool-DSL decision).

Why (the problem you're solving)

The uteke/cora integrations are first-class (probe-gated native tools +
the cora MCP auto-preset), but using them friction-free today requires
typing --allow 'uteke_*' --allow 'cora_search' --allow 'mcp_cora_*' ...
on every invocation — so in practice the owner either re-approves
internal tools endlessly or runs wide-open --allow-all. A named trust
preset makes the safe configuration the easy configuration: one word
that means "trust the fleet's own tools, still gate everything else",
stable across releases, and visible in --help instead of buried in a
dotfile.

Testing (how you verified this works)

  • Unit: preset table expansion (each preset → exact pattern list); flag ∪ env resolution (flag wins, env used when flag absent, none by default); internal does NOT include write-capable native tools.
  • Live E2E: TOLE_TRUST=internal tole run "recall X then find callers of Y" → uteke_recall + mcp_cora calls auto-approved (no prompt), a write_file call in the same mission still prompts.
  • Regression: no flag/env → session behavior byte-identical (existing suites prove).
  • Suites green both profiles; clippy -D warnings; cora review.

Activity

  1. added
    enhancement
    tools
    on Oct 2, 2026
  2. added 3 commits that reference this issue on Oct 5, 2026
    e1a8e09
    8fd2a98
    3e1058d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementtools

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions