# review.sh - OpenShell writes a proposal for what it refused. You decide.
# A proposal reaches the gateway with the sandbox's next report. Read it.
sleep 12
openshell rule get demo --status pending

# There is one proposal, and you have read it: approve it.
openshell rule approve-all demo

# The sandbox picks up a new rule within about ten seconds. Try again.
sleep 12
openshell sandbox exec -n demo -- python3 ask_github.py

# Another address is still closed, and OpenShell proposes to open that too.
openshell sandbox exec -n demo -- curl -sS https://example.com/
sleep 12
openshell rule get demo --status pending

# This one you do not want. Throw the pending proposals away.
openshell rule clear demo
openshell policy list demo
