Business Ops¶
Autonomous Business Operations — controlled delegation harness (spec: agentic_business_operations.md).
Cluster: Uncategorised | Type: component | MCP Tools: None
Overview¶
Public API¶
AuthorityDecision¶
| Field | Type | Default |
|---|---|---|
decision | str | required |
risk_tier | str | required |
reliability_label | str | required |
requires_human | bool | required |
reasons | list[str] | field(default_factory=list) |
Methods:
to_dict() -> dict¶
BusinessOpsContract¶
Read-only facade over the existing deterministic business-ops core.
Methods:
authorize(action: ProposedAction, contract: WorkflowContract) -> AuthorityDecision¶
classify_risk(action: ProposedAction, approve_above_amount: float | None = None) -> str¶
ApprovalPolicy¶
§7/§10 approval policy — the conditions that force a human approval gate.
| Field | Type | Default |
|---|---|---|
require_approval_when_vip | bool | True |
require_approval_when_angry | bool | True |
require_approval_when_first_time | bool | True |
require_approval_when_legal_terms | bool | True |
approve_above_amount | float \| None | None |
require_approval_for_external | bool | True |
WorkflowContract¶
§7 the central artifact that turns vague delegation into controlled execution.
| Field | Type | Default |
|---|---|---|
workflow_id | str | required |
read_actions | frozenset[str] | frozenset() |
draft_actions | frozenset[str] | frozenset() |
execute_without_approval | frozenset[str] | frozenset() |
execute_with_approval | frozenset[str] | frozenset() |
forbidden_actions | frozenset[str] | frozenset() |
approval_policy | ApprovalPolicy | field(default_factory=ApprovalPolicy) |
Methods:
known_action(action_type: str) -> bool¶
ProposedAction¶
An action the harness wants to take, plus the risk-relevant context (§9 factors).
| Field | Type | Default |
|---|---|---|
action_type | str | required |
external_visible | bool | False |
money_amount | float | 0.0 |
irreversible | bool | False |
legal_or_regulatory | bool | False |
data_sensitive | bool | False |
novel_case | bool | False |
customer_is_vip | bool | False |
customer_angry | bool | False |
first_time_customer | bool | False |
suspected_injection | bool | False |
suspected_fraud | bool | False |
model_confidence | float | 0.0 |
model_uncertainty | float | 0.0 |
tool_uncertainty | float | 0.0 |
Functions¶
authorize_action(action: ProposedAction, contract: WorkflowContract) -> AuthorityDecision¶
Authorize
actionagainstcontract. Fail-closed; confidence never authorizes.
classify_action_risk(action: ProposedAction, approve_above_amount: float | None = None) -> str¶
Return the action's risk tier T0..T5 (the max single-factor contribution).