Command reference
oko autonomy policy
Reads the stored autonomy policy (VERB show), or replaces it whole with the policy document on standard input (VERB set).
Invocation#
oko autonomy policy VERB [--state-dir PATH]Inputs and options#
- show reads; set reads one JSON policy, the document show prints, from standard input. --state-dir selects the policy/state directory.
Output and state effect#
- show prints the stored policy; set validates the document, writes it owner-only and prints it.
Refusals and safe exits#
- Without a verb: “oko autonomy policy requires <id>”; any other word: “oko autonomy policy takes show or set; got <word>”.
- show with no stored policy: “no autonomy policy is stored at <path>; …”. set with an unreadable document: “an autonomy policy on standard input is not readable: <error>”; an invalid one names the field.