Files
ARTEX/docs/runtime-script-targets.md

40 lines
2.4 KiB
Markdown

# Script target extraction in required Docker mode
Bash and custom command/script handlers execute behind the mandatory per-task
proxy. For a task with no enabled global/task block rules and no enabled task
allow rules, Bash command strings and rendered command/script bodies are no
longer interpreted as evidence of a network request. Printing a URL, a heredoc,
or grepping an IP does not create target approval requests at those scan
points. Main already avoids DNS for unapproved names after #993. Actual connections still require proxy scope.
This is independent of the network_access tool in #815. Native HTTP tools,
unmanaged remote tools, and sandbox-off execution retain their target gates.
Only trusted sandbox context setup enables the optimization; JSON arguments
cannot do so. Retests use conversation scopes rather than task scopes and keep
the classic scan: local commands pass, while declared targets require approval.
Custom tool preflight still scans input parameters. Only their rendered
command/script handlers can skip a scan; HTTP handlers always gate the rendered
URL. No tool-kind/name snapshot is retained at intent start, so changing a
custom tool to HTTP cannot leave its generic preflight exempt.
Block and task allow rules are reread before each skipped scan. Any enabled
rule restores the existing scan for that task, including URL and fuzzy-IP
blocks. Task allow rules can grant proxy egress but cannot satisfy the target
gate's human pin or remove its audit trail. Unreadable policy refuses execution.
The conservative block fallback remains necessary until matching runtime deny
coverage is available; URL/path rules cannot simply be handed to an opaque
CONNECT proxy. No deny transport, matcher, or proxy protocol is added here.
Default installs retain the classic scan: the four seeded, enabled global
block rules prevent this optimization. Disabling protection to activate it is
not recommended; general default-policy support requires runtime deny handling
(#821). This PR only covers tasks whose policy already has no such rules.
On the skipped path there is no per-destination target pin or target-decision
row. Approved task/company scope is the network authorization, enforced by the
mandatory proxy; out-of-scope connections are denied. Proxy egress events and
tool history are not a replacement for target-gate decision auditing. Runtime
approval and equivalent decision auditing remain follow-up work, not guarantees
of this PR.