Action Permission Evaluator
Pricing
$0.001 / actor start
Action Permission Evaluator
Check if your AI agent may take an action before it does. Write allow and deny rules with wildcards; get allow, deny or needs-approval plus the rule that matched. $0.001 per run.
Pricing
$0.001 / actor start
Rating
0.0
(0)
Developer
EchoEmpire Machine Foundry (EchoEmpire LLC)
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
a day ago
Last modified
Categories
Features
Share
Evaluate action/resource glob policies with deterministic deny-first precedence, returning allow, deny or approval-required and matching rules.
This Actor runs Action Permission Evaluator only. Supply its native JSON object directly; no utility selector or dispatcher wrapper is accepted. Core computation is deterministic and offline: no LLM calls, remote schema retrieval or target-site requests. Apify runtime storage is used to save the result.
Behavior and limits
Rules match case-sensitive Python shell globs on action names and optional resources. Missing resources cannot satisfy resource-constrained rules. Precedence is deny > approval-required > allow; order does not matter. Missing policy or unmatched rules deny unless an explicit default says otherwise. Unknown effects fail validation. Up to 1,000 policy rules; decisions do not create approvals or execute actions.
Every request is limited to 2,000,000 bytes of canonical UTF-8 JSON. Runtime validation uses the bundled exact input_schema.json. The Console form is a supported Apify schemaVersion 1 presentation: root fields/types are retained, while nested and cross-field constraints run inside the Actor. Inputs containing arbitrary JSON or boolean schemas stay native JSON, without string encoding or forced object conversion. Schema evaluation is intended for bounded trusted workloads; it is not an adversarial multi-tenant sandbox.
Input
| Field | Required | JSON type | Meaning |
|---|---|---|---|
action | yes | "object" | Native utility field; exact nested shape is in input_schema.json. |
policy | no | "object" | Native utility field; exact nested shape is in input_schema.json. |
Example input (example-input.json):
{"action": {"name": "read"},"policy": {"rules": [{"id": "read-only","effect": "allow","actions": ["read"]}]}}
Output and status
The Actor stores one result envelope in the default dataset and the same envelope under key OUTPUT in the default key-value store. Data fields for this utility: decision, matching_rules, reason.
status: pass: execution completed and the result/check passed.status: fail: execution completed and found a failed check, policy or retention constraint. This is a completed Actor run, not a runtime crash.status: error: execution could not complete, with stableerrors[].code, message and JSON Pointer path; the local process exits 2.
The envelope also contains utility, version, request_id, data, errors, warnings and provenance. See the output_schema.json, .actor/dataset_schema.json, and .actor/output_schema.json. Fields named errors inside data are check findings; envelope errors describe execution failures. Do not treat a platform run's success flag alone as a passing policy/check.
Actual core output for the example (example-output.json):
{"utility": "action-permission-evaluator","version": "1.0.0","request_id": "documented-example","status": "pass","data": {"decision": "allow","matching_rules": ["read-only"],"reason": "MATCHED_RULE_PRECEDENCE"},"errors": [],"warnings": [],"provenance": {"engine": "deterministic-python","network_access": false,"input_hash": "sha256:2203134803b9853af326859fe20586dfd65fc7cd1886f141a6a7df65b6f52a9d"}}
The request ID above is fixed for illustration; actual Actor runs generate their own request IDs. Runtime provenance additionally identifies local or Apify storage; the example shows the utility's computed envelope before that storage annotation. Hashes identify supplied data, not independently verified facts.
Run through the API
Replace YOUR_APIFY_USERNAME with the namespace of this Actor's published listing. The fixed Actor name is action-permission-evaluator. This example assumes the Actor has been built and made accessible in that namespace; this README does not itself establish deployment or publication.
curl --fail-with-body --request POST \--header "Authorization: Bearer $APIFY_TOKEN" \--header 'Content-Type: application/json' \--data-binary @example-input.json \'https://api.apify.com/v2/acts/YOUR_APIFY_USERNAME~action-permission-evaluator/run-sync-get-dataset-items?format=json'
The response is an array containing the result envelope. Inspect its status and findings before consuming data. For asynchronous integrations, start a run, wait for completion and retrieve the default dataset or key-value-store OUTPUT. API authorization credentials belong in your client environment, never in utility input or captured fixtures.
Run locally
From this self-contained Actor directory, with Python 3.11 or newer:
python3 -m venv .venv.venv/bin/python -m pip install -r requirements.txt.venv/bin/python -m app --input example-input.json --storage-dir ./storage
This executes the fixed utility using real local SDK filesystem storage. It does not start another Actor or dispatch to another portfolio utility. A completed finding has envelope status fail while completing the storage run normally; execution errors exit 2. Inspect the stored envelope rather than assuming that a zero process exit means a check passed.
Compose with other utilities
Evaluate permission before Tool Budget Gate and Tool Destination Policy Checker. A caller must enforce every result and obtain any required approval before acting.
Composition is explicit caller orchestration: this Actor does not invoke other Actors. Pass only documented data fields between contracts and check every envelope status. Offline core tests use supplied fixtures; the Actor does not fabricate evidence or verify that supplied events, usage or artifact references occurred.