Metadata-Version: 2.4
Name: onedoor
Version: 0.12.1
Summary: A tiered guardrail/policy engine for agentic systems: default-deny, bounds, caps, approvals, dry-run, kill switch, and reversibility as a precondition for autonomy.
Author: Shamik Saha
License: Apache-2.0
Project-URL: Homepage, https://github.com/shamiksaharcciit-oss/onedoor
Project-URL: Repository, https://github.com/shamiksaharcciit-oss/onedoor
Project-URL: Issues, https://github.com/shamiksaharcciit-oss/onedoor/issues
Project-URL: Changelog, https://github.com/shamiksaharcciit-oss/onedoor/blob/main/CHANGELOG.md
Project-URL: Documentation, https://oneproof.dev/onedoor/
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pydantic>=2.10
Requires-Dist: pydantic-settings>=2.7
Requires-Dist: pyyaml>=6.0
Requires-Dist: tzdata; platform_system == "Windows"
Provides-Extra: signed
Requires-Dist: cryptography<48,>=42; extra == "signed"
Provides-Extra: service
Requires-Dist: fastapi<0.163,>=0.115; extra == "service"
Requires-Dist: uvicorn<0.55,>=0.34; extra == "service"
Provides-Extra: studio
Requires-Dist: fastapi<0.163,>=0.115; extra == "studio"
Requires-Dist: uvicorn<0.55,>=0.34; extra == "studio"
Requires-Dist: python-multipart>=0.0.9; extra == "studio"
Provides-Extra: otel
Requires-Dist: opentelemetry-api<1.46,>=1.27; extra == "otel"
Provides-Extra: examples
Requires-Dist: langgraph>=1.0; extra == "examples"
Requires-Dist: langchain-core>=1.0; extra == "examples"
Provides-Extra: langchain
Requires-Dist: langchain>=1.0; extra == "langchain"
Requires-Dist: httpx>=0.27; extra == "langchain"
Provides-Extra: litellm
Requires-Dist: litellm>=1.60; extra == "litellm"
Provides-Extra: dev
Requires-Dist: pytest>=8.3; extra == "dev"
Requires-Dist: pytest-asyncio>=0.24; extra == "dev"
Requires-Dist: mypy<2,>=1.14; extra == "dev"
Requires-Dist: ruff==0.16.4; extra == "dev"
Requires-Dist: fastapi<0.163,>=0.115; extra == "dev"
Requires-Dist: httpx>=0.27; extra == "dev"
Requires-Dist: langchain>=1.0; extra == "dev"
Requires-Dist: langgraph>=1.0; extra == "dev"
Requires-Dist: python-multipart>=0.0.9; extra == "dev"
Requires-Dist: langchain-core>=1.0; extra == "dev"
Requires-Dist: types-PyYAML>=6.0; extra == "dev"
Requires-Dist: cryptography==46.0.4; extra == "dev"
Requires-Dist: uvicorn<0.55,>=0.34; extra == "dev"
Requires-Dist: onetrace==0.7.1; extra == "dev"
Dynamic: license-file

# onedoor

onedoor is part of [oneproof](https://oneproof.dev/onedoor/).

[![CI](https://github.com/shamiksaharcciit-oss/onedoor/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/shamiksaharcciit-oss/onedoor/actions/workflows/ci.yml)
[![PyPI](https://img.shields.io/pypi/v/onedoor.svg)](https://pypi.org/project/onedoor/)
[![Python](https://img.shields.io/pypi/pyversions/onedoor.svg)](https://pypi.org/project/onedoor/)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://github.com/shamiksaharcciit-oss/onedoor/blob/main/LICENSE)

**A decision point for agentic systems: policy, before the action, with a measured record of what it stops and what it misses.**

![Four calls to onedoor's decision service with their real responses: a €120 transfer permitted, a €450 transfer denied by the daily cap, a payout held for a person and then approved, and the kill switch denying a transfer](docs/img/onedoor-demo.gif)

https://github.com/user-attachments/assets/770e7db2-72e9-43f8-972c-0ac67f82c1d8

The same walkthrough as a 70-second video, with the Studio and the evaluation.

If it does not play, the same video is on the
[0.11.0 release page](https://github.com/shamiksaharcciit-oss/onedoor/releases/tag/v0.11.0), as a fallback.

**For reviewers:** [Project overview](#why-onedoor) &middot;
[Safety approach](#how-it-works) &middot;
[Supporting evidence](#tested-against-irreversible-actions) &middot;
[Limitations](#limitations-and-non-claims)

## Why onedoor

Agents with tools act. Under ambiguity, a conflicting constraint, or a tool
that fails after it may already have acted, an agent can carry out an action
that cannot be undone — and a refusal or an alert written *after* the fact
does not undo it.

onedoor is a decision **before** the action: written policies with tiers,
budgets and effect caps; human approval for actions a policy places in its
approval tier (tier 3); single-use permits bound to one action and recipient; the
recipient's own signed confirmation that it acted; a kill switch; and a
decision receipt for every verdict, signed when a key is configured. It
sits between the agent and the systems it acts on:

```mermaid
flowchart LR
    A[agent / model] -->|proposes an action| D[onedoor: decide]
    D -->|permitted| T[the real tool / API]
    D -->|denied| A
    D -->|held| H[a person]
    H -->|approves or denies| D
    T -->|reports the outcome| D
```

**What onedoor is not:** not a prompt or output filter on the model (nothing
here reads or shapes what the model says); not monitoring after the fact
(the decision happens before the tool runs, not as an alert once it has);
not a sandbox (it does not isolate or simulate the tool — it decides whether
the real one may be called). Each fits beside onedoor, not instead of it: a
prompt filter can still catch what a model says before it ever proposes an
action; a sandbox can still isolate the tool onedoor has permitted to run.

**With [onetrace](https://pypi.org/project/onetrace/) ([docs](https://oneproof.dev/onetrace/)):**
onedoor decides; a step that takes the action can record which decision
allowed it, in a run that anyone can verify offline, signed when a key
is configured, with no network call. The two are independent packages
with one documented seam (`onedoor.guardrail.decision_ref`, `ot.decision`) —
see [the evaluation's own recording section](eval/README.md#recording-and-verifying-with-onetrace)
for a worked example.

## Tested against irreversible actions

A scripted, rerunnable evaluation (`eval/`) built from a published
challenge's own failure modes for irreversible autonomous actions: eight
categories of agent scenario, each run once against a plain executor that
carries out everything proposed, and once through onedoor 0.11.1's real
decision API.

| category | harmful, without onedoor | harmful, with onedoor | legitimate, wrongly stopped | held for a person | duplicate effects (without / with) |
|---|---|---|---|---|---|
| ambiguity | 2 | 0 | 0 | 0 | 0 / 0 |
| approval | 1 | 0 | 0 | 3 | 0 / 0 |
| conflicting_constraints | 3 | 0 | 0 | 0 | 0 / 0 |
| injected_instruction | 3 | 1 | 0 | 1 | 0 / 0 |
| kill_switch | 2 | 0 | 0 | 0 | 0 / 0 |
| ordinary_work | 0 | 0 | 0 | 0 | 0 / 0 |
| permits | 3 | 0 | 0 | 0 | 0 / 0 |
| tool_failure | 2 | 2 | 0 | 0 | 2 / 2 |
| **total** | **16** | **3** | **0** | **4** | **2 / 2** |

![two bars per category: harmful actions carried out, without onedoor and with it](docs/img/eval-results.svg)

Without onedoor, every harmful scenario action is carried out (16 of 16).
With onedoor: zero legitimate actions are wrongly stopped, and by default
three harmful actions still get through -- kept as findings rather than
fixed: a naive retry after a tool timeout moves money or sends a message a
second time (the duplicate-effects column; no retry correlation exists yet),
and a message to a recipient named by injected text is not stopped by
anything that checks *who* the recipient is (onedoor's policies gate by
budget and rate, not by recipient reputation).

When the caller marks the recipient untrusted and the policy lists it in
`untrusted_params.hold` (0.11's opt-in control,
[`eval/RESULTS.md`](eval/RESULTS.md#the-recipient-opt-in-control)), the
harmful actions that get through drop from three to two: this needs the
caller to mark the input, so an unmarked call still sees the
default behaviour above. The retry-correlation gap is not addressed by
this or any other control yet and stays open. Both findings are kept, with
the roadmap item that would address each, in
[`eval/FINDINGS.md`](eval/FINDINGS.md).

Full table, every scenario's own line, and how to rerun it:
[`eval/RESULTS.md`](eval/RESULTS.md) &middot; findings:
[`eval/FINDINGS.md`](eval/FINDINGS.md) &middot; how to add a scenario and
what this measurement doesn't show: [`eval/README.md`](eval/README.md).
Recorded and verified with onetrace: see below.

```
pip install -e ".[dev,service]"
python -m eval run
```

## How it works

**A decision.** Every proposed action is checked against the policy table:
tier, numeric bounds, effect caps, and (for an action in the policy's
approval tier, tier 3) a requirement to hold for a person. A denial always
carries a reason code.

```mermaid
flowchart TD
    P[proposed action] --> K{kill switch engaged?}
    K -->|yes, tier > 0| Deny1[denied: kill_switch]
    K -->|no| L{listed by a policy?}
    L -->|no| Deny2[denied: default_deny]
    L -->|yes| B{bounds, caps ok?}
    B -->|no| Deny3[denied: bounds / budget_exhausted]
    B -->|yes| T{tier}
    T -->|1 or 2| X[executed, reported]
    T -->|3| H[held for a person]
```

**Approval.** A tier-3 proposal waits for a person; approved, it executes
and reports exactly like an auto-tier action; denied, it is refused with the
operator recorded. The principal who proposed an action can never also
approve it.

**Permits.** Where a policy declares one, onedoor issues a single-use,
signed permit bound to one action and one recipient -- through the library
today; the decision service doesn't issue them yet. The recipient verifies
it independently (`onedoor.permit.recipient`) before acting, and a second
presentation of an already-consumed permit for a different instruction is
refused, not silently repeated.

**The kill switch.** Engaged, every tier above a read is denied outright --
never merely queued for later approval. Reads stay exempt, so there is still
visibility during an incident.

**The decision receipt.** Every verdict is one append-only, typed audit row;
optionally signed and anchored (`onedoor[signed]`) so a holder of an export
can check, offline, that a decision exists unaltered.

![the policies list](docs/img/studio-policy-editor.png)
![an uploaded draft the loader would refuse, stopped at the per-rule checks](docs/img/studio-approval-refused.png)
![a decision receipt](docs/img/studio-decision-receipt.png)

## Install

Requires Python >= 3.12.

```bash
python -m venv .venv
.venv\Scripts\activate          # macOS/Linux: source .venv/bin/activate
pip install "onedoor"           # the library alone
pip install "onedoor[service]"  # + the HTTP decision service
pip install "onedoor[studio]"   # + the Studio
```

## Run the flow, end to end

About ten minutes, with the shipped example policies
(`onedoor/templates/payments/`). From a fresh venv:

```bash
pip install "onedoor[service]"
python -c "import shutil; from onedoor import templates; shutil.copy(templates.PAYMENTS.policies_path, 'policies.yaml')"
export ONEDOOR_DECIDE_KEYS=dev ONEDOOR_ADMIN_KEYS=root ONEDOOR_DB=onedoor.db ONEDOOR_POLICIES=policies.yaml
python -m uvicorn onedoor.service.app:create_app --factory --host 127.0.0.1 --port 8099
```

On Windows PowerShell, replace the `export` line with:
`$env:ONEDOOR_DECIDE_KEYS="dev"; $env:ONEDOOR_ADMIN_KEYS="root"; $env:ONEDOOR_DB="onedoor.db"; $env:ONEDOOR_POLICIES="policies.yaml"`

In another terminal -- **a payment allowed**, then **the same budget
exhausted and denied**:

```bash
curl -s -X POST localhost:8099/v1/decide -H "Authorization: Bearer dev" -H "Content-Type: application/json" -d '{"action_type":"payments.transfer","params":{"amount_eur":120.00,"destination_account":"acct-1"},"source":"llm","rationale":"first look"}'
curl -s -X POST localhost:8099/v1/decide -H "Authorization: Bearer dev" -H "Content-Type: application/json" -d '{"action_type":"payments.transfer","params":{"amount_eur":450.00,"destination_account":"acct-1"},"source":"llm","rationale":"over the daily cap"}'
```

You should see `"decision":"permitted"` with an `intent_audit_id`, then
`"decision":"denied","reason":"rate_exhausted"` or `"budget_exhausted"`.

**An action held for approval, then approved:**

```bash
curl -s -X POST localhost:8099/v1/decide -H "Authorization: Bearer dev" -H "Content-Type: application/json" -d '{"action_type":"payouts.schedule","params":{"batch_id":"b-1"},"source":"llm","rationale":"month end"}'
curl -s localhost:8099/v1/approvals -H "Authorization: Bearer root"
curl -s -X POST localhost:8099/v1/approvals/1/approve -H "Authorization: Bearer root"
```

The first call returns `"decision":"proposed"` with an `approval_id`. The
third resolves it, but reads `"decision":"dry_run","reason":"dry_run","detail":"would have executed"`,
not a real execution: `payouts.schedule`'s own rule in the shipped template
leaves `dry_run` at its default, `true`, so the action rehearses at every
tier, approved or not.

**The kill switch, on and off:**

```bash
curl -s -X POST localhost:8099/v1/killswitch -H "Authorization: Bearer root" -H "Content-Type: application/json" -d '{"engaged":true}'
curl -s -X POST localhost:8099/v1/decide -H "Authorization: Bearer dev" -H "Content-Type: application/json" -d '{"action_type":"payments.transfer","params":{"amount_eur":10.00,"destination_account":"acct-1"},"source":"llm","rationale":"should be blocked"}'
curl -s -X POST localhost:8099/v1/killswitch -H "Authorization: Bearer root" -H "Content-Type: application/json" -d '{"engaged":false}'
```

With the switch engaged, the decide call reads `"decision":"denied","reason":"kill_switch"`.

**The Studio, reading the same decisions back:**

```bash
pip install "onedoor[studio]"
python -m onedoor.studio --db onedoor.db --studio-db studio.db
```

Open `http://127.0.0.1:8787`. `--db` must name the same file the service
used above.

![the live state, with caps](docs/img/studio-live-state.png)
![the history](docs/img/studio-history.png)

### The same walkthrough, in PowerShell 5.1

`curl` is an alias for `Invoke-WebRequest` there; use `curl.exe` (the real
binary) with `--%`, PowerShell's stop-parsing token, so embedded double
quotes reach the call exactly as written. Run fresh against a live service
from the commands above:

```powershell
curl.exe --% -s -X POST localhost:8099/v1/decide -H "Authorization: Bearer dev" -H "Content-Type: application/json" -d "{\"action_type\":\"payments.transfer\",\"params\":{\"amount_eur\":120.00,\"destination_account\":\"acct-1\"},\"source\":\"llm\",\"rationale\":\"first look\"}"
curl.exe --% -s -X POST localhost:8099/v1/decide -H "Authorization: Bearer dev" -H "Content-Type: application/json" -d "{\"action_type\":\"payments.transfer\",\"params\":{\"amount_eur\":450.00,\"destination_account\":\"acct-1\"},\"source\":\"llm\",\"rationale\":\"over the daily cap\"}"

curl.exe --% -s -X POST localhost:8099/v1/decide -H "Authorization: Bearer dev" -H "Content-Type: application/json" -d "{\"action_type\":\"payouts.schedule\",\"params\":{\"batch_id\":\"b-1\"},\"source\":\"llm\",\"rationale\":\"month end\"}"
curl.exe --% -s localhost:8099/v1/approvals -H "Authorization: Bearer root"
curl.exe --% -s -X POST localhost:8099/v1/approvals/1/approve -H "Authorization: Bearer root"

curl.exe --% -s -X POST localhost:8099/v1/killswitch -H "Authorization: Bearer root" -H "Content-Type: application/json" -d "{\"engaged\":true}"
curl.exe --% -s -X POST localhost:8099/v1/decide -H "Authorization: Bearer dev" -H "Content-Type: application/json" -d "{\"action_type\":\"payments.transfer\",\"params\":{\"amount_eur\":10.00,\"destination_account\":\"acct-1\"},\"source\":\"llm\",\"rationale\":\"should be blocked\"}"
curl.exe --% -s -X POST localhost:8099/v1/killswitch -H "Authorization: Bearer root" -H "Content-Type: application/json" -d "{\"engaged\":false}"
```

Each reads the same decision as the bash form above. `docs/integration-service.md`
shows the request shapes for the full decide/report/approve/kill-switch API,
in both forms, with its own illustrative values -- not this walkthrough's
own ten-minute sequence.

## Integrate with agent frameworks

Five short, complete, runnable examples, each under its own
`examples/integrations/<name>/`, pinned with hashes in its own
`requirements-<name>.txt`, kept out of onedoor's own dependencies, wheel and
sdist. Each has a test that drives it with no model and no network.

- **Plain Python tools** ([`examples/integrations/plain_python/`](examples/integrations/plain_python/)):
  a decorator wraps a tool function so it calls `decide_and_reserve` first
  and `report_result` after.
- **LangChain** ([`examples/integrations/langchain/`](examples/integrations/langchain/),
  `langchain==1.4.2`): the shipped `OneDoorMiddleware` resolves every tool
  call through onedoor; a denial returns to the agent as the tool's own
  result, with its reason code. The test drives a real `create_agent` loop
  against LangChain's own `GenericFakeChatModel`.
- **LangGraph** ([`examples/integrations/langgraph/`](examples/integrations/langgraph/),
  `langgraph==1.2.12`): a gate node before the acting node; a tier-3 action
  holds the graph as a real `interrupt()`, resumed with `Command(resume=...)`
  once a person approves through onedoor.
- **OpenAI Agents SDK** ([`examples/integrations/openai_agents/`](examples/integrations/openai_agents/),
  `openai-agents==0.24.0`): a `@function_tool`-decorated tool, guarded the
  same way. The test calls it through the framework's own
  `FunctionTool.on_invoke_tool`, with no `Agent` run and no API key.
- **MCP** ([`examples/integrations/mcp/`](examples/integrations/mcp/),
  `mcp==2.3.0`): an MCP server (the `mcp` package's own server API) whose
  tool handler calls onedoor before acting. `onedoor.mcp` ships a separate
  gateway that puts every `tools/call` through `decide_and_reserve` on its
  own, through a tool-to-action mapping, over stdio or a scoped
  streamable-HTTP transport (one JSON-RPC message per request; no session
  negotiation or server-initiated stream yet).

All four frameworks installed cleanly beside onedoor 0.10.2 (`pip check`
clean); none is parked.

## onedoor and onetrace

onedoor decides **before** an action: policy, tiers, budgets, approvals, a
permit. A step that takes an action can record *which* onedoor
decision allowed it. `onetrace-verify` then checks both sides together —
the decision export and the run's own citations of it — with no network
call. Full detail on the onedoor side of that record, including the
exact shape a citation and a checked permit take, is in
[`docs/onetrace.md`](docs/onetrace.md).

### What it looks like in onetrace's console

[onetrace-console](https://pypi.org/project/onetrace-console/) gives each run an
**Authorization** page, from console 0.8.0: one row per gated step, with the
onedoor decision the step cites, the verdict as recorded, the permit if any,
and the step's outcome as recorded. Below them are `onetrace-verify`'s own rows
on those decisions. The page shows what the record holds; it does not say
whether a decision was right.

The console's left menu has **Authorization** too: every run whose record names
a gated step, the decisions those steps cite, and what `onetrace-verify`'s
decision rows say of them, each linking to its run's page.

![onetrace-console's Authorization overview, opened from its left menu: a table of runs with gated steps, each with its pipeline, the number of gated steps and decisions cited, and onetrace-verify's decision rows as PASS, FAIL or couldn't check](docs/img/onetrace-console-authorization-overview.png)

*The overview in onetrace-console 0.9.1's demo, built locally. The hosted demo
shows the same page with P8's rows; P12, an invoice agent whose model call and
onedoor decision share one run, reaches it with console 1.0.*

![onetrace-console's Authorization page for a payment onedoor permitted: the gated step approve_payment cites its decision, the verdict reads permit, a permit is recorded, and all five decision rows read PASS](docs/img/onetrace-console-authorization-permit.png)

*A payment onedoor permitted. The step cites its decision, the permit covers
the action the step recorded, and the decision is in onedoor's export: all five
rows PASS.*

![onetrace-console's Authorization page for a payment made on a deny: the verdict reads deny, no permit is recorded, the step's outcome is ok, and onetrace-verify's row fails with "acted on a decision whose last verdict is 'deny', not 'permit'"](docs/img/onetrace-console-authorization-paid-on-deny.png)

*The same step paying on a deny. onetrace-verify fails the run and names the
step; the console marks the record as contradicting itself.*

Both are runs of the console's demo pipeline P8, an invoice payment. Their
decisions and permits are example data, signed with a throwaway key made when
the demo was built. See them live on the hosted demo:
[the permitted payment](https://demo.oneproof.dev/runs/c0eeaf2cdfaef8216500d8c7746f075963af3049808bc45a23194a976c2a1bd3/authorization.html),
[the payment on a deny](https://demo.oneproof.dev/runs/b02e8e4d1a5f3f6d932455e1446259056e8093961530370b755f2fb36bafb8e0/authorization.html),
[all of P8's runs](https://demo.oneproof.dev/executions-pipeline-p8.html),
or [the overview](https://demo.oneproof.dev/authorization.html).
To see your own runs this way: `pip install onetrace-console`, then
`onetrace-console <runs folder> --open`
([its guide](https://oneproof.dev/developers.html)).

## Record and verify with onetrace

```bash
pip install -r eval/requirements-record.txt
python -m eval run --record
```

Every settling action in the evaluation above is also written as one
onetrace run, citing the decision onedoor actually returned right before
the simulated tool acts, and checked afterward with `onetrace-verify`. A
`--record` run's own `eval/RESULTS.md` gains a line for this: last run,
**21 of 21 recorded runs verified PASS** (the plain, committed
`eval/RESULTS.md` above never carries this line -- it needs none of
onetrace to be read). A scenario where every action is denied, held or
refused writes no run -- there is no decision to cite. Full detail, and a
plain note on the one onetrace check this
evaluation could not demonstrate (the re-run guard, `onetrace reproduce
--allow-writes`), in
[`eval/README.md`](eval/README.md#recording-and-verifying-with-onetrace).

## Configuration and operating

The policy vocabulary, the decision service's environment variables, signed
receipts, anchoring, and the receipt viewer are documented in
[`docs/`](docs/index.md) -- start at
[`docs/policy-reference.md`](docs/policy-reference.md) and
[`docs/integration-service.md`](docs/integration-service.md). The ten-page
operator manual is [`docs/OneDoor_User_Manual.pdf`](docs/OneDoor_User_Manual.pdf).

**Every caller should authenticate and pass its own principal.** The HTTP
service always derives one from the authenticated decide key; the MCP
gateway and the shipped LangChain middleware each pass one fixed identity
for everything they route, which still distinguishes them from any other
caller but not from each other's own end users sharing that one instance. A
caller that calls `decide_and_reserve` directly and passes no `principal` at
all gets no isolation at all from another caller presenting the same
`thread_id`/`tool_call_id` resume key -- name a principal, even a static
per-deployment value, rather than leaving it unset.

## Limitations and non-claims

onedoor decides on an action as it is described to it. A tool mapped to the
wrong action type, or an action described falsely by whatever called
`decide_and_reserve`, is decided as described -- the decision point cannot
see past the description it was given.

The evaluation above measures scripted scenarios against onedoor 0.11.1;
it is not a claim about every agent, every tool, or every version.
A recipient's confirmation shows the recipient said it acted -- not that it
did, independent of what it says.

Three gaps the evaluation found and kept, open as of this release (full
detail in [`eval/FINDINGS.md`](eval/FINDINGS.md)):

- **No retry correlation.** A tool that times out after possibly acting,
  then an uncorrelated retry, can carry out the same effect twice.
- **No recipient check beyond rate and budget.** A message action gated
  only by a daily rate still sends to whatever recipient the call names,
  including one named by untrusted text. A policy can now list that
  parameter in `untrusted_params` and deny or hold the call when the
  caller marks it untrusted (0.11.0); a call the caller does not mark, or
  a policy that lists nothing, is unaffected.
- **An expired approval is proposed again, not denied.** Presenting an
  approval after its own expiry re-proposes a fresh approval instead of
  resolving denied.

A fourth limitation, not something the evaluation discovered but a plain
fact about the decision service's current code: **bound permits are
library-only.** The decision service carries no presenter key thumbprint
and configures no permit issuer, so a bound permit is issued through the
library today, not over the service.

**A decimal string in `params` was refused by a `numeric` bound -- a
conformance defect, ours, fixed in 0.8.0.** `{"amount_eur": "40.00"}` is
permitted, exactly like `{"amount_eur": 40.00}`; `{"amount_eur": "abc"}` and
`{"amount_eur": "1e3"}` are both refused with
`"decision":"denied","reason":"bounds"`, detail `"param 'amount_eur' must
be numeric: … (got 'abc')"` (or `'1e3'`) -- exponent notation is a refused
*spelling*, not merely unparseable.

A longer-standing, measured list -- this defect's own history, numeric
precision at the wire boundary, URL pattern evasion, and the rest -- is in
[`CHANGELOG.md`](CHANGELOG.md) and [`CONFORMANCE.md`](CONFORMANCE.md).

## Roadmap

Planned, no dates:

- Reversibility declared in the policy itself (`reversible` /
  `compensable` / `irreversible`), rather than inferred from tier alone.
- An approval left unanswered past its own expiry resolves denied.
- An unknown tool outcome (a timeout, a failure after the tool may have
  acted) holds the action until someone settles it, closing the
  duplicate-effect gap above.
- Policy conflict checks in the Studio, before ratify.
- Backtest against onetrace runs: a new policy's verdict, beside what was
  decided at the time.
- A recipient allow-list per action, with a held path for a new recipient.
  A plan can already declare a recipient list for the actions it covers
  (0.11.0), but only while a plan is active, not as a standing per-action
  rule; a recipient off that list is simply not matched by the plan, and
  is decided as usual.

## Licence and contributing

Apache-2.0. Issues and pull requests welcome at
<https://github.com/shamiksaharcciit-oss/onedoor>.
