delimit_gov_evaluate
Evaluate whether a proposed action triggers governance gating. Use before any action with uncertain policy class to get the gate verdict.
Instructions
Evaluate whether a proposed action triggers governance gating (Pro).
When to use: BEFORE performing any action whose policy class is uncertain — deploy, external PR submission, schema change, npm publish, force-push, force-update of a floating tag, account switch, ruleset edit. This is the canonical pre-action check the orchestrator and CI hooks call; the response is the gate verdict. When NOT to use: to read the policy rules themselves (use delimit_gov_policy), to materialize a tracked task from a "gating required" verdict (delimit_gov_new_task), or to check engine health (delimit_gov_health). Also: do not call after starting the action — the verdict is decision-time and a retroactive call has no gating effect.
Sibling contrast: delimit_gov_policy returns the rules; this evaluates a candidate action against them. delimit_external_pr_check handles the specialised external-PR duplicate path; this is the general action evaluator. delimit_gov_new_task is what you call AFTER this returns "gating required" to mint a tracked task.
Side effects: read-only on policy storage and gated by
require_premium — unlicensed callers receive a license payload
and no evaluation runs. On a licensed call, invokes
backends.governance_bridge.evaluate_trigger which loads the
active policy and returns a verdict; no task is created, no
ledger write, no evidence file. Inputs are coerced before the
backend call: a string context is wrapped as {"text": ...}
via _coerce_dict_arg; a malformed context short-circuits with
an error response.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | Proposed action name to evaluate (e.g. "external_pr", "deploy"). Empty string returns an error. | |
| context | No | Optional dict with action-specific context (e.g. target repo, author). Strings are auto-coerced to {"text": ...} via _coerce_dict_arg. | |
| repo | No | Filesystem path to the repository. Default "." (cwd). | . |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||