Verified block
Matched tested policy condition: regulated data cannot leave the approved destination set.
blocked before simulated executionGovern declared AI agent actions before a side effect occurs. 5D applies versioned deterministic policy at the action boundary, with optional semantic evidence for context-sensitive cases.
When the host supplies the required action identity, routes every relevant path through the gate, and records the outcome, 5D's versioned decision records can help reconstruct what was evaluated and why. The host still owns identity validation, path coverage, execution, recovery, and any legal or assurance conclusion.
$ pip install fivedrisk
from fivedrisk.hooks import gate
@gate(
tool_name="write_to_database",
autonomy_context=2,
)
async def write_record(table, data):
...
# GREEN or YELLOW → execute
# ORANGE → hold for host-owned review
# RED → block Matched tested policy condition: regulated data cannot leave the approved destination set.
blocked before simulated executionPolicy selected explicit human review. The simulated reviewer recorded acceptance; policy then resolved the declared review branch to PERMIT.
simulated permit · no external actionThe tool, target, purpose, and authority matched an explicit policy rule.
simulated permit · no external actionApply deterministic red lines before a supported tool path runs, and route other high-impact actions according to policy.
Explore the path ↗ Approved data boundariesEvaluate declared data class, destination, and purpose before an external transfer.
Explore the path ↗ Selective human reviewResolve explicit rules in policy and hold only the actions your policy routes for an authorised decision.
Explore the path ↗ Runtime recordsPreserve the versioned policy decision, evidence, review, execution attempt, and outcome state for declared governed actions.
Explore the path ↗Layer only what the risk path needs. The deterministic policy remains the permission authority. Optional observers add evidence; a policy-selected HITL step provides final approval.
Applies declared prohibitions, thresholds, and routing policy to normalized action context.
Adds: typed semantic evidence for contextual risk signals.
Adds: host-selected review when intent cannot be reduced to fixed rules.
Adds: final approval by an authorised human before the host may execute a policy-held action.
Fail-closed rule: observer evidence can tighten or hold a decision, but cannot clear an explicit block. When a required observer is missing, malformed, or timed out, the action is held or blocked according to policy. When policy requires HITL, missing or declined human approval keeps the action held or blocked.
Use deterministic policy for declared action paths, then reserve optional semantic evidence or human review for the cases your policy selects.
Tool, target, purpose, principal, and context enter one declared contract.
Versioned rules resolve declared inputs on documented integration paths.
Observer evidence can tighten or hold. It cannot clear an explicit block.
Declared assumptions, not measured 5D performance.
365-day illustrative year. Currency is a display/input unit; no exchange-rate conversion is applied.
Policy intent, implementation, threat review, human disposition, and reconstructable evidence stay connected without transferring organisational accountability to a model.
Start from public primitives: inspectable policy evaluation, verdicts, documented adapters and gateways, and evidence records. The support matrix states what version 0.7.0 verifies and what the host still owns.
Routing share depends on your policy and traffic.
Observer cost is user-supplied; it is not a 5D price or forecast.
Estimated variable observer spend excludes deterministic infrastructure, human review, retries, and other deployment costs.
Model cost and latency vary with provider, model, caching, concurrency, and deployment design.
Describe the tool, target, data, identity, and autonomy context.
Run hard prohibitions first, then evaluate the five action-risk dimensions.
Add optional semantic evidence, then permit, hold, or block. Observers cannot clear an explicit block.
The host executes or refuses, while disposition, review, and outcome remain separate.
No single package entry point implements every step. The integration support matrix shows what the tested core handles, what needs additional wiring, and what remains the host application's responsibility.
pip install fivedrisk The 5D setup skill helps a coding agent inspect an existing project, scaffold policy, wire a supported path, and run the verification checklist. It produces a reviewable integration; it is not proof that the surrounding deployment is secure.
5D provides an AI action-risk score from five independently inspectable dimensions. Each runs from lower to higher risk on the same 0 to 4 scale; the score informs policy rather than claiming confidence in the agent's reasoning.
See why these five dimensionsWhat information the action touches.
Public → secretsHow much power the invoked tool holds.
Read-only → destructiveWhether the effect can be recovered.
Easy to undo → irreversibleHow far the action can reach.
Local → untrusted externalHow far the action sits from a person.
User-direct → autonomous5D began as the security layer inside a personal agentic system where useful autonomy needed a deterministic boundary around dangerous actions.
Read how 5D beganTechnical evidence, not certification. 5D records what its declared policy path evaluated and decided; deployment assurance depends on the surrounding system.