Running analyzers and linters on this host

Two commands run somebody else's code on your machine:

CommandWhat runsWhat it can execute
roteiro lint clippya builder — it compiles your treeyour tree's build scripts and proc macros
roteiro security run <analyzer>a reader — it parses your treewhatever the tree's config tells the tool to load

Both run as a child process on this host, with no isolation boundary. Roteiro has no sandbox: the opt-in microVM backend (exec-boxlite) was removed in ADR-0030, and nothing replaced it — no container fallback, no other backend. So the only thing between a tree you did not write and your filesystem and credentials is your consent, and neither command assumes it.

One document rather than two, because the rules are one set of rules: neither runs without a grant, neither falls back to anything when refused, and both record isolation: none so the evidence says what actually happened.

Why "reader" is not "safe"

It is tempting to think only builders execute repository code. Measured, a .pylintrc containing nothing but an init-hook= line was executed by pylint, silently; the same shape holds for mypy (plugins=), sqlfluff and eslint. Whether a tool executes code is a property of the repository, not of the tool (ADR-0020 §6). That is why neither command has a per-tool exemption: the consent gate applies to every run.

roteiro lint: granting host execution

roteiro lint clippy refuses unless host execution has been granted, and the refusal says how to grant it. Either of these is enough — you do not need both:

$ roteiro lint clippy --allow-unsandboxed        # this run
# ~/.roteiro/config.toml — standing, for you
[lint]
allow_unsandboxed = true

The grant is inverted, because roteiro.toml is committed and shared:

LayerMay denyMay grant
Built-in defaultrefuses—
Project roteiro.tomlyesno
User ~/.roteiro/config.tomlyesyes
--allow-unsandboxed—yes

A merged line granting it would be consent given by someone else and noticed by nobody, so a repository's roteiro.toml may deny host execution for everyone working in it (allow_unsandboxed = false) and may never grant it. In a repository that denies it, --allow-unsandboxed does not override that, and the refusal says so. roteiro config prints the key, every layer, and which one decided.

It needs a Rust toolchain with the clippy component installed. A missing cargo or a toolchain without clippy is an error naming what to install, never an empty report. Nothing is stored (ADR-0020 v1.1): the report names the linter's version, the rustc version and the feature set it resolved with, because a lint count is only comparable to one produced by the same compiler.

roteiro security run: the flag, every time

roteiro security run <analyzer> refuses without --allow-unsandboxed, and the refusal offers the two ways forward: pass the flag, or run the analyzer somewhere else and roteiro security ingest its report.

$ roteiro security run semgrep --allow-unsandboxed   # records isolation=none

There is no standing key for this one. The flag is required on every run, and since exec-subprocess is a default feature it is the only gate left — it must not be weakened.

Roteiro never installs an analyzer. It provisions the pinned inputs a host run reads — rule sets and advisory databases, via roteiro security prefetch (see Working offline) — and refuses with assets-unavailable-offline when they are missing, rather than fetching during a run.

Or execute nothing: roteiro security ingest

ingest accepts a normalized report produced anywhere — a CI job, a colleague's machine, a container you run yourself — and files it as a findings layer of exactly the shape a local run produces, recording isolation=ingested. It needs no analyzer on this machine and no grant, and it is the zero-install default (ADR-0014).

If you used the sandbox before

The microVM backend is gone, and so is everything that existed only for it:

Leftover caches are not removed for you. Delete them by hand if present:

rm -rf ~/.roteiro/security/boxlite-home      # the old image store — can be many GB
rm -rf ~/.roteiro/security/boxlite-runtime   # the runtime archive

(Under ROTEIRO_SECURITY_ASSETS or ROTEIRO_HOME/security if you relocated the store.) Findings recorded by an earlier sandboxed run stay readable: their runner and isolation fields still say how they were produced.

See also