Typed decision plane (decision_plane)

Agentic Recipe. Project structured state, ask a batch of bounded questions in one inference step, keep deterministic facts in code, apply final policy in code, and escalate when confidence is too low.

Surface

Value

Catalog id

decision_plane

Module

mechaharness.graph_templates.decision_plane

Substrate

GraphTemplate

Owning stories

fangore_decision_plane_recipe, fangore_decision_plane_projection, fangore_decision_plane_policy, fangore_decision_plane_shadow, fangore_decision_plane_telemetry, fangore_decision_plane_model_policy, taloneth_decision_plane_shadow_compare, fangore_jev_citation_matching_claim, fangore_jev_context_budget_pack, fangore_jev_req_review_template_shape, fangore_jev_task_route_simple_local, fangore_jev_action_safety

Runtime

mechaharness.decision_plane_runtime

When to use

  • High-volume, well-defined decisions with enumerable actions

  • Moving routine triage off a frontier model while keeping policy in code

Do not use when the model must invent open-ended commands with no action envelope.

Soft points

Name

Kind

Role

project_kind

runner_kind

Builds the deliberate state projection

ask_kind

runner_kind

One batched decision inference call

policy_kind

runner_kind

Deterministic final policy

escalate_kind

runner_kind

Routable escalation exit

shadow_ask_kind

runner_kind

Non-gating shadow path

confidence_floor

policy

Minimum confidence before accept

shadow_mode

policy

Add shadow ask without gating execution

decision_model

model

Flavor / router ref (DP-09; not param count)

questions / state_projection / facts

task_state

Via params.inputs or soft bindings

Tiling example

from mechaharness.graph_templates import (
    DecisionPlaneTemplate,
    GraphTemplateParams,
)

graph = DecisionPlaneTemplate().instantiate(
    GraphTemplateParams(
        goal="route refund triage",
        inputs={
            "state_projection": {"ticket_id": "T-1"},
            "facts": {"duplicate_charge": True},
            "questions": [
                {
                    "id": "team",
                    "kind": "choice",
                    "options": ["billing", "technical"],
                    "allowed_actions": ["billing", "technical"],
                },
                {"id": "risk", "kind": "score", "min": 0, "max": 1},
            ],
            "confidence_floor": 0.7,
            "shadow_mode": True,
        },
    )
)
assert graph.template_name == "decision_plane"

Runtime (DP-01..09)

Helper

Role

project_decision_state

Structured projection + facts without a model

evaluate_decision_batch / run_decision_plane_policy

Batched evidence; code-owned action or escalate

assemble_context_within_budget

Deterministic RAG packing from scored candidates

compare_shadow_decision

Candidate vs production; production controls

build_decision_plane_telemetry

Evaluation-ready metrics without raw context

Execute walk: mechaharness.decision_plane_runner + CLI DecisionPlaneRecipeAdapter (run_recipe name=decision_plane).

Node components

Graph node

Components

project_state

soft_point (project_kind, state_projection, facts)

ask_batch

soft_point (ask_kind, questions, confidence_floor, decision_model); inference when a live judge is bound

apply_policy

soft_point (policy_kind, confidence_floor)

escalate

soft_point (escalate_kind)

shadow_ask

soft_point (shadow_ask_kind, shadow_mode)

See Node components.