kosa8 docs

Commands / kosa8 approve check

kosa8 approve check

Show what an action would do and whether it needs approval

Usage

kosa8 check KIND [ARG...]

Classifies an action without running it. KIND is a kosa8 verb (run, exec, rm, rewind) or an assistant tool name (run_container).

Describe the action as it would really happen — including --mount and --egress — because those are what decide the class, not the verb.

Options

FlagTypeWhat it doesDefault
--egressstringnetwork egress the action would set, e.g. deny or allow:api.example.com
--mountstringArrayhost directory the action would expose into the sandbox[]
--policy-editboolthe action rewrites governance or approval policy
--sandboxstringthe existing sandbox the action runs inside
--targetstringwhat it operates on (default: the first argument)

Example

  kosa8 approve check run alpine sh -c 'apk add curl'
  kosa8 approve check --sandbox dev --mount /Users/me/src run node
  kosa8 approve check rm dev