Skip to content

Upgrading to 3.0 Open-Core ​

3.0 adds decide rules, narrow questions a self-hosted model answers about a tool call, and opt-in keys for loops, plans, lanes and agent graphs: a qualified requires_before, enforced scope_paths and plan_steps, plan_approval, closed_lanes, on_reask_exhausted, context_isolation and node_kind. A workspace whose SOPs use none of them behaves as it did on 2.9, and its policy snapshot is byte for byte what 2.9 wrote. The changes below apply once a SOP carries one.


Gates older than 3.0 refuse what an enforcing rule covers ​

A gate that cannot evaluate a decide rule must not let through the calls the rule was written to stop. So for every rule stamped enforce, the policy snapshot carries a fallback line: an ordinary block rule on the rule's tools, with an id starting decide-fallback: and the reason

Decide rule prod-data-export (Production data handling): upgrade to Intutic 3.0 to evaluate this rule
  • A 2.x gate (hook gates written before gate body v22, and @intutic/gate or intutic-clawde before 3.0) skips the snapshot's new @format and @decide lines, as it skips any line it does not know, and enforces the fallback line. Every call to the rule's tools is refused, with the refusal code SNAPSHOT.
  • A 3.0 gate decodes the rule's @decide record, checks it against its hash, and skips the fallback line only when the record is intact. A damaged record leaves the fallback line in force, so the call is refused.
  • A rule running as shadow has no fallback line, so a 2.x gate allows those calls as before.
  • A decide: line that does not read gets a fallback line whatever its rollout, and it refuses its tools (every tool, when it names none that can be read) on every gate, 2.x and 3.0 alike, until it is fixed. In a workspace whose intervention mode is silent logging, that line logs instead of refusing.

A rule is stamped enforce only once its rollout is enforce and a passing intutic decide eval has pinned a model for it, so nothing is refused this way on the day you upgrade. When it is, update the gates on each machine that runs the rule: intutic gates install rewrites them on a machine with no login, and a connected machine's sync daemon rewrites them on its next sync. Upgrade @intutic/gate and intutic-clawde to 3.0 in agents that use the gate SDKs.

A 3.0 gate that reads a snapshot format newer than it knows reports snapshot_format_newer and enforces what it can read.


Loop, plan and lane keys need gate body v23 ​

A policy snapshot that carries any of the new loop, plan or graph rules is written in format 3, which gate body v23 reads. An older gate, and the 2.9 gate SDKs, cannot evaluate those rules, so the snapshot carries a fallback line for each, with an id starting <kind>-fallback:, and the older gate refuses what the rule covers:

  • A qualified requires_before (action:run_tests[ok] -> X): every call to X is refused. See qualified prerequisites.
  • scope_paths_mode: enforce: every file change is refused.
  • plan_approval:: every call is refused.

Lane holds are phrase rules that every gate since v12 reads, so older gates hold them too, and one approval releases a held call at every gate. To enforce the new rules rather than refuse through the fallback lines, rewrite the gates as for decide rules: intutic gates install on a machine with no login, or the sync daemon's next sync on a connected one, and upgrade @intutic/gate and intutic-clawde to 3.0.

A gateway older than 3.0.0 ignores the new keys, so on it they do nothing. Saving a SOP that uses one, through the dashboard or POST / PUT /api/v1/sops, still succeeds, but the response carries a sop_key_needs_newer_gateway warning naming each key and each of the organization's registered gateways too old to read it (or that has never reported its version), and the dashboard shows it beside the SOP. Local proxies do not register, so they are never named.


A rule's rollout is rollout, never mode ​

A decide rule carries its own rollout, "rollout": "shadow" (the default) or "rollout": "enforce", inside its JSON:

yaml
decide: {"id":"prod-data-export","on":"tool_call","tools":["Bash"],"questions":{"exports":{"type":"yes_no","ask":"Does this command copy customer data out of the production database?"}},"when":"exports","rollout":"shadow"}
  • There is no mode field. A rule is read strictly, so "mode": "shadow" inside the JSON is an unknown field: the line does not read (decide: unknown field mode) and refuses its tools.
  • A SOP's own mode: shadow runs its decide rules as shadow too, whatever their rollout says; the decide log records the reason as server-shadow. A decide rule also runs as shadow because its own rollout says so, or for one of the other reasons in When a rule enforces.
  • "rollout": "enforce" is a ceiling, not a switch. The rule enforces only on a model a pre-registered intutic decide eval has pinned, and runs as shadow everywhere else.

New refusal codes ​

The hook gates and the gate SDKs refuse with three codes that 2.x gates never used. The hook gates that answer in JSON carry them as code beside ruleId, which is decide.<ruleRef>, for example decide.local:data.md#prod-data-export. The other hook gates print them on stderr with the rule id in brackets.

CodeMeaning
DECIDE_REFUSEDThe rule asked its questions and the answers made its when true
DECIDE_ESCALATEDThe answers left when unknown and the harness cannot ask a person, or the rule's escalate is refuse
GOVERNANCE_UNAVAILABLEAn enforcing rule could not be evaluated: the engine is not configured, its host is not self-hosted, it errored or was asked and did not answer in time, it returned no usable probabilities or failed its known-answer canary; or more than four enforcing rules name the tool. A rule the stored p95 says cannot fit the time left is not asked, and escalates (DECIDE_ESCALATED) instead

The gate SDKs throw IntuticGateEscalation, a subclass of IntuticGateRefusal, for DECIDE_ESCALATED. Code that catches IntuticGateRefusal keeps refusing; code that knows the subclass can ask its user instead. GOVERNANCE_UNAVAILABLE was already a code of the proxy and the SDK clients; it is new on the gates.

Decide escalation by harness says where an escalation asks rather than refuses.

The loop, plan and graph rules add five more:

CodeMeaningWhere
PREREQUISITE_UNMETA qualified requires_before: the latest test run in the session did not pass, none ran, a later file change made the pass stale, or the harness cannot report test outcomes. Since 3.2.0 the gateway also uses it for a plain requires_before: A -> B, refused before the call runsgateway, gates and hooks
OUT_OF_SCOPEA file change outside an enforced scope_pathsgateway, gates and hooks
OFF_PLANUnder plan_approval: strict, the tool is not a step of the session's approved plangates and hooks
PLAN_NOT_APPROVEDplan_approval: requires an approved plan, and the session has nonegates and hooks
NODE_KIND_DENIEDThe calling node's node_kind does not allow the callgateway (403)

A refusal now carries scope and evidence so an agent can retry outside it, and hook harnesses that read exit codes get a [Intutic] Retry scope: line. An OPAQUE workspace gets only the code.


What 3.0 reads but does not enforce ​

  • on: response rules are enforced at the gateway, not by the gates, which see tool calls only. The gateway judges each complete response by them and writes a VIOLATION or AMBIGUOUS note into it, and asks on: tool_call rules about the tool calls in a response too (Decide rules at the gateway). It reads the decide engine from ~/.intutic/decide/engine.json and the INTUTIC_DECIDE_* variables when it starts. A decide: line that does not read refuses its tools at every gate, and every response at the gateway.
  • context: ["last_user_turn"] is reserved. A rule may declare it, and the rule's hash includes it, but no gate supplies the user's last turn, so the rule is asked without it. intutic decide test and intutic decide eval ask without it too, even when the file has a lastUserTurn, so an eval measures what a gate will ask. intutic decide lint and intutic gates install warn about each rule that declares it.

The local judge's environment variables are deprecated ​

The shared gateway's local judge is configured by seven environment variables. They still work in 3.0: the gateway maps them to a decide rule, local-judge, and logs a deprecation warning once. 4.0 removes them.

VariableIn 3.0
INTUTIC_GATEWAY_LOCAL_JUDGEStill turns the local judge on
LITELLM_LOCAL_URLThe model server the rule's questions are asked of (default http://litellm:4000). Its host is allowed as self-hosted because you named it; a hosted decision API is refused
LITELLM_LOCAL_API_KEYThe bearer key sent to that server
LITELLM_LOCAL_TYPED_JUDGE_MODELThe model the rule's two questions are asked of
LITELLM_LOCAL_JUDGE_MODELThe free-text judge's model, and the questions' model when LITELLM_LOCAL_TYPED_JUDGE_MODEL is not set
INTUTIC_GATEWAY_LOCAL_JUDGE_TYPED_LO, INTUTIC_GATEWAY_LOCAL_JUDGE_TYPED_HIThe rule's band: {no_below: σ(LO), yes_at: σ(HI)}

With both band variables set, local-judge asks two yes/no questions about the response, a ("Does the ASSISTANT RESPONSE violate any of the ACTIVE SOP CONSTRAINTS?") and r1 (whether the agent actually took, instructed or produced something that breaks a constraint), and scores them with the combiner {bias: 0, weights: {a: 0.5, r1: 0.5}}: σ(½·logit(p_a) + ½·logit(p_r1)), the mean log-odds the typed judge scored with in 2.x. Its outcomes map back to the judge's verdicts:

Rule outcomeVerdict
refuse (score at or above HI)VIOLATION; the free-text judge only writes the note
allow (score below LO)COMPLIANT
escalate (between them)AMBIGUOUS

Two things differ from 2.x. A score of exactly HI is now a violation, because a decide answer is yes at p ≥ yes_at. And inside the band the free-text verdict no longer decides: the response is AMBIGUOUS. HI must be above 0, since σ(0) is 0.5 and a decide band's yes_at must be above 0.5; a band that cannot be mapped logs one error, and the free-text judge decides as it does without a band.

Without the band variables there is no equivalent decide rule. The free-text verdict keeps deciding, with its own deprecation warning, until 4.0.


Decision calls are governed ​

The proxy now answers POST /v1/systemone and POST /v1/decisions itself, as decision traffic, instead of passing them through as unrecognised requests. So it can refuse a call that 2.9 forwarded; what is checked before the call lists the checks. The two you are most likely to meet are a DLP block pattern in the state and, in the default enforce mode, a model with no pinned version, such as jev-latest (403 policy_denied). Pin the version, or set decision_traffic.mode: shadow or decision_traffic.allow_unpinned: true while you move.


The circuit breaker for AI agents