Evaluate Proposed Action Policy
astrix_evaluate_policyEvaluate a proposed ActionIntent against Astrixfile.ax policies in the opened repository to return allowed, denied, and requires_approval booleans with an optional reason before action execution.
Instructions
Evaluate a proposed ActionIntent against the Astrixfile.ax policies in the opened repository and return allowed, denied, and requires_approval booleans with an optional reason. Use this before carrying out a proposed action; it evaluates policy but does not execute the action. For changed-file impact use astrix_get_blast_radius, and for selected test execution use astrix_run_impacted_tests. The required intent object contains actor.type, target.env, modified_files, and diff.modifies_tests (the string "true" or "false"); set approved=true only when approval has already been recorded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| intent | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| denied | Yes | Whether an explicit policy rule denies the action. | |
| reason | No | Explanation of the policy decision, when available. | |
| allowed | Yes | Whether policy permits the proposed action, including any approval requirement. | |
| requires_approval | Yes | Whether policy requires approval before the action may proceed. |