
Mcp
com.decionisv0.3.0更新於 Sep 30, 2026
Authorize consequential AI agent actions before execution
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"mcp": {
"type": "http",
"url": "https://protocol.decionis.com/mcp"
}
}
}README
AgentSafe
[Continuous integration] [CodeQL] [Secret scanning] [OpenSSF Scorecard] [OpenSSF Best Practices] [License: Apache-2.0]
Put an authority boundary in front of any agent or API.
AgentSafe intercepts consequential actions and checks whether they are authorized before forwarding them. An agent, an application or a tool sends its HTTP request to AgentSafe instead of the target; AgentSafe captures the action as an intent, asks the Decionis control plane (the Independent Execution Authority, bound to the exact action) for a decision, and forwards exactly the authorized request once on a claimed single-use grant, holds it for a person, or refuses it, leaving a chained record of each. It decides nothing itself.
5-minute quickstart · Homebrew · Linux · Docker · Kubernetes · Hosted
The installed forms are produced by the release workflow from
v0.2.0on; the Homebrew formula reaches master by its own pull request after each release. The same commands run from a clone, as the quickstart shows.
The path from here is short: discover, install, test your boundary, see what is exposed, run in shadow, enforce, deploy.
The two systems behind the boundary
Arriving here for the first time, you meet three names. This repository is one of them; the other two are the services it talks to, and neither is in this repository.
- Decionis is the Independent Execution Authority, bound to the exact action: the control
plane AgentSafe asks. For one captured intent it evaluates the organization's policy and answers
ALLOW,ESCALATEorBLOCK; anALLOWcomes with the single-use execution grant the request executes on, anESCALATEwith the human ceremony it needs, and every decision with a signed Decision Dossier that records what was proposed, what was decided and why. It runs at decionis.com (docs); the local demo authority in this repository stands in for it on loopback with a synthetic policy, and says so on every line. - Presence is the adaptive human verification layer. When Decionis answers
ESCALATE, a verified, present person on their own device approves that exact action, and the signed Presence Record that results is evidence Decionis re-checks before it issues a grant, never authority by itself. It runs at presence.decionis.com (what the layer is); the loopback double in this repository simulates the ceremony for the examples and proves nothing about a real one. - AgentSafe, this repository, is the execution boundary between your agent or API and those
two: it captures the exact intent, asks Decionis, resolves an
ESCALATEwith Presence, forwards exactly the authorized request once on the claimed grant, holds or refuses the rest, and leaves chained evidence. It is Apache-2.0 and it decides nothing;OPEN-CORE.mdstates the seam between it and what Decionis operates.
One sentence separates the two systems agents are usually given: decision intelligence determines what an AI wants to do; execution authority determines whether it is permitted to happen. The boundary here binds the second to the exact action, never to the identity that proposed it, because the realistic adversary is not a forged credential but a valid one: an agent whose identity is real, whose credential is current, and whose request is not what anyone authorised. As agents get faster and more autonomous, identity becomes a weaker proxy for authority; the Compromised Principal Test is that failure stated as a test the boundary passes on every pull request, with three ways to run it in under a minute and what each proves; THREAT-MODEL.md states it as a threat.
Test your boundary
Before putting the gateway in front of anything, see what it changes. agentsafe test sends the
same consequential requests three ways at a synthetic target that records what reaches it:
directly, as an agent with nothing in the way; through the gateway in shadow; and through the
gateway in enforcement. Nothing real is called and nothing of yours is read.
The gateways under test are the ones agentsafe proxy runs, behind the same listener; the
authority is the local demo policy. agentsafe test ledger=ledger.internal:443 also dials a real
system of record from where you stand and says whether it answers without the gateway, which is
what an agent could reach by going around. Exit 0 is a boundary that holds; 1 is exposure;
--json is the report as one line. The release smoke test runs it on every packaged binary. The
Caller line is the point: nothing above was refused for who asked, only for what was asked,
which is the Compromised Principal Test in one table; the
last line is the step of the adoption path
the run is.
With a workspace, agentsafe test --hosted sends the same requests with Decionis deciding, in
shadow, at the same synthetic target: the first governed action against Decionis for that
workspace, one signed Decision Dossier per consequential request, and the first record fetched
with the run's own key and shown by its proof. agentsafe login --provision mints the workspace
in one command, no account; the test takes about as long as the local one.
Five-minute quickstart
Nothing here needs an account: without a Decionis key the gateway runs a local demo authority in the same process, on loopback, with a synthetic policy, and says so on every line.
Send it one request:
The caller gets 202 and nothing reached the upstream. {"amount": 50} is ALLOW: forwarded
once, byte for byte, with the dossier id beside the upstream's own answer. {"amount": 5000} is
BLOCK: 403, not forwarded. A GET passes through untouched. Every state has its own heading
and, with a terminal, its own color: ALLOW, BLOCK, ESCALATE, SHADOW, AUTHORITY UNAVAILABLE. --verbose shows the chained evidence lines; agentsafe init writes the
configuration file; agentsafe doctor says what would stop it from governing; agentsafe login
connects a Decionis key, after which the same gateway asks Decionis, in shadow first. A gateway in
shadow keeps its own shadow report: what
enforcement would have held or refused so far, by action, and how many of those refusals the
upstream accepted as sent, which agentsafe status prints, the gateway prints when it stops and
on its own cadence as it runs, ending with the one switch that turns enforcement on;
agentsafe login --provision mints the free Decionis workspace that switch names. The
quickstart is the full walk, and the
CLI reference every command.
How it works
AgentSafe owns ingress and interception, action extraction and normalization, enforcement of the
verdict, claim-before-forward, forwarding, effect evidence, finalization, fail-safe behavior and
the local ergonomics. Decionis owns execution authority: policy evaluation, ALLOW / BLOCK /
ESCALATE, policy versioning, ExecutionBinding semantics, Presence verification, Decision Dossiers,
and the verification of evidence and authority. AgentSafe is not a second policy engine: the local
demo authority is a loopback double of the Decionis routes, named local/demo everywhere, refused
in production.
What is bound and forwarded, and what each outcome finalizes as, is
docs/gateway/http-interception.md; what happens when the
authority cannot be reached is docs/gateway/failure-policy.md;
the configuration, one schema for every distribution with the precedence flags, environment, file,
defaults, is docs/gateway/configuration.md. The gateway is
addressed: the workload is pointed at it. agentsafe intercept holds the same boundary without
configuring the workload, by redirecting a pod's or a container's outbound 80 and 443 into
AgentSafe at the network layer, reporting every destination it reaches, and governing the ones the
operator names under an authority the workload trusts;
docs/gateway/transparent-interception.md says what
is observed, what is governed, and what the authority costs.
Install
One runtime, five ways to run it. The executable, the packages, the image and the chart are built and smoke-tested by the release workflow from the same code; nothing about authority, binding, claim or finalization differs between them.
Every install page ends at the same place: send your first governed action.
Govern, the workflow gate, ships with the same releases as one static binary per platform:
curl -fsSL https://raw.githubusercontent.com/decionis/agent-safe-pipeline/master/govern/install.sh | sh,
brew install govern from the same tap, or go install github.com/decionis/agent-safe-pipeline/govern/v2/cmd/[email protected];
its README has the rest.
Golden adversarial demo
One legitimate path and eight adversarial attempts against the same boundary, offline, in a few seconds, with every expectation asserted:
A treasury agent proposes a USD 250,000 wire, a remote Chief Risk Officer completes a FIDO2 plus liveness ceremony, and exactly one wire executes. Injected authorization fields, a fabricated ALLOW, an asserted approval, a swapped receipt, a post-approval amount change, a replayed grant, 25 concurrent claims, a shadow observation, and an expired grant all fail to execute. The run exits 0 only when that holds. See examples/golden-adversarial-demo, the bank-audience walkthrough in docs/remote-cro-authorization.md, and the receipt semantics in docs/presence-evidence.md.
The same proof for infrastructure, and for the adversary a credential check cannot catch:
An infrastructure agent with a valid identity and a valid credential proposes deployment.scale
for inference in prod-eu at 96 replicas and is allowed. The same agent, with nothing forged,
then proposes 960 replicas, a service outside its remit, another cluster, the 96 decision with 960
substituted after authorization, an approval for 256 presented for 512, a replayed grant, and a
direct call to the cluster: nothing executes, because authority was bound to the exact action and
not to the identity. See examples/infra-scale-demo and the
Compromised Principal Test.
Execution lifecycle
For a consequential action, in every distribution and in the library alike:
An ESCALATE is never turned into an ALLOW locally, and a Presence approval is never trusted
without Decionis reauthorization. The pages under docs/authority
map each step onto the protocol: ExecutionBinding,
claim and finalize, Presence,
evidence. The provider's half, the procedure by which a system of
record or the hop in front of it refuses what the authority never claimed, is the
Verifying Provider Profile, with
vectors any implementation can run and independent verifiers
that run them, for Envoy ext_authz and
Kong, for Spring and Apigee, for
Rust services with a tower layer, and for
ASP.NET Core. A provider that verified the claim can answer with
its own signed receipt of the effect (VP-3): the executor forwards it unread at finalization, and
Decionis verifies it against the key the organisation registered for the provider and records it
with the commit, so the dossier carries the provider's signature over what happened and not only
the executor's report of it.
Production invariants
- Agent input contains only the proposed action, target, and parameters. Tenant, actor, downstream target, and credentials come from trusted runtime configuration.
- The exact canonical intent is hashed and expires quickly.
- Decionis independently decides. Network errors, malformed responses, missing grants, or binding mismatches fail closed.
- Presence proves a human approved that exact intent; Presence never directly authorizes execution. Decionis verifies the receipt and re-evaluates policy.
- The grant is bound to the intent, decision, audience, and expiry and is claimed atomically before the handler runs; the attempt outcome is finalized with the authority afterwards as evidence, never as authority.
- Downstream credentials exist only behind the trusted executor.
- Every decision is evidence-bearing. An ALLOW whose response lacks a dossier identifier or grant is refused as non-executable, and an executed result retains its consumed
{decisionId, dossierId, grantId}binding. A dossier identifier is never an execution credential.
Presence
Presence, the adaptive human verification layer, supports two explicit integration levels. In DIRECT mode, the trusted executor coordinates Presence and returns the receipt reference to Decionis. In MANAGED mode, the executor asks Decionis to orchestrate Presence and polls Decionis for a terminal status. Both modes require independently signed Presence evidence, exact-intent verification, current-policy re-evaluation, and the same claim-before-handler grant path. Invitation delivery and Presence evidence are never execution authority, and approval cannot revive a five-minute intent after it expires.
The gateway holds an ESCALATE and, with presence.managed: true, asks Decionis to orchestrate the ceremony; a resume through /_agentsafe/v1/escalations/{intent_id}/resume asks Decionis again, and only a fresh ALLOW with a grant executes the held request, once. docs/authority/presence.md says what a receipt establishes and what it does not; docs/human-approval.md and docs/presence-evidence.md are the protocol pages.
See docs/trust-boundary.md before integrating a real downstream API.
Decision evidence
Five records matter and are easy to blur in a summary: the captured intent, the verified human approval, the execution grant, the Decision Dossier, and the outcome. Only the grant authorizes anything, once; a dossier identifier is never an execution credential. What each record establishes says so row by row.
The Execution Authority architecture has two load-bearing properties. Position on the execution path creates control: nothing runs without an independent decision at the moment of action. The evidence record creates accountability that compounds: every decision adds to an auditable history of what was authorized, under which policy, on whose approval.
Every Decionis evaluation is recorded as a Decision Dossier, and each GateDecision returns the decisionId and dossierId of that record. Escalations attach the verified Presence receiptDossierId, and every executed action returns the consumed grant's {decisionId, dossierId, grantId, intentHash} binding, so execution results correlate to their evidence without extra bookkeeping. In the research vocabulary, dossiers compound into a Decision Chain: tamper-evident lineage linking evaluation, approval, and execution evidence across workflows. Decionis maintains that record; this repository's contribution is that execution cannot bypass it.
Treat dossier identifiers as audit and support references, never as execution credentials — see docs/decision-dossiers.md.
What each record establishes
Fluent summaries lose these distinctions first. Each row names the record or state, what it establishes, and what it does not.
Verify Decision Dossiers
The repository-owned dossiers/ corpus checks the offline verifier against synthetic
ALLOW, BLOCK, and ESCALATE proof bundles, including an owned-workspace, execution-bound
vector. Its private signing key is intentionally public so anyone can regenerate the corpus; it is
not a production credential and cannot establish that a production dossier is authentic.
To verify the distinct production claim, obtain a live dossier through an authorized route and run the pinned verifier against the live JWKS without committing the dossier:
See the corpus README for regeneration, provenance, expected failures, and the trust boundary between synthetic conformance and production verification.
The intent side of the same offline check is agentsafe verify intent: every vector under
conformance/ reproduced from its bytes by the installed runtime, or the
canonical bytes and hash of a binding of your own, printed to compare with another
implementation's (Agent-Safe Intent v1):
Architecture
This repository ships the library @decionis/agent-safe-pipeline and, over it, the runtime
@decionis/agentsafe, one binary with two ingresses: agentsafe proxy, the HTTP-interception
gateway above, and agentsafe serve, the trusted executor for a bank boundary, with principals, a
downstream credential, a verified host posture, and the deployment kit. Both
run the same lifecycle objects; the discovery report
traces one action through them and ADR 0001
records why the gateway is a second ingress and not a second implementation. None of it is a
hosted authorization service, an identity provider or a KMS, and no process can make a cluster
enforce the network policies the kit and the chart declare; who owns which control
assigns each one.
Canonical source: https://github.com/decionis/agent-safe-pipeline. Copies of this repository at other hosts — including sites that reverse-proxy github.com wholesale — are not maintained by Decionis, lag security fixes, and are not what the npm package, the Zenodo record, or decionis.com cite. Verify any copy against the signed release tags (docs/release-tag-signing.md).
The library
Requirements: Node.js 22.14 or later and pnpm 9.
The demos use an explicitly non-production fixture authority. A production integration uses DecionisGate and DecionisGrantVerifier with server-side credentials.
The executor accepts a captured intent and a decision. It does not accept an arbitrary callback from the agent. A sealed ActionRegistry maps action names to trusted handlers and validates parameters before consuming a single-use grant.
Optional: a signed Decision Dossier from Decionis
Everything above runs locally and always will. The fixture authority evaluates in process, with no network call and no account, and that path stays supported: it is not a trial, not a reduced tier, and nothing in this repository stops working if you never do this step.
What the local path cannot do is prove a decision to someone else. With one variable, every example asks Decionis to evaluate the same intent beside the fixture and ends with the thing only the authority can produce: a Decision Dossier, a signed record of what was proposed, what was decided and why, whose Ed25519 signatures verify against the authority's published keys, offline, with no account.
No key? The run mints one: a free provisional workspace from
POST https://api.decionis.com/v1/public/agents/provision, no signup, no email, no card, with an
allowance of 50 governed decisions a month, kept in ~/.config/agentsafe/credentials.json so the
next run reuses it. The first run says so on standard error:
Then the run prints exactly what it printed before, and ends with:
When the authority attaches a verification page to the decision, one more line names it: a URL
anyone can open, with no account, to see the signatures checked. pnpm decionis:verify <id>
fetches the record with the stored key, resolves the public JWKS the record names, and checks
every signed artifact with @decionis/verify,
which uses only Node's built-in crypto; it prints each check, who minted the record, and VERIFIED
or NOT VERIFIED. Add --out dossier.json to keep the signed record; anyone holding that file can
repeat the check with the command under Verify Decision Dossiers, with
no key at all.
A provisional key evaluates in SHADOW only: the fixture's verdict still governs execution, and the
hosted decision and its dossier are recorded beside it. Every dossier it mints carries a signed
provisional_anonymous issuer tier, so a verifier can always tell it from an owned organization's
record. Claiming the workspace (the response says how) attaches a person and keeps the key and the
ledger. An owned organization's key, from the Decionis console or agentsafe login, takes the mode
you ask for, ENFORCEMENT included.
Which examples do what: basic-agent, shopify-refund-agent, github-deploy-agent,
mcp-tool-gate and procurement-agent evaluate their one proposal beside the fixture;
golden-adversarial-demo, whisper-boundary-demo, crm-outreach-demo, infra-scale-demo and local-escalation run
their adversarial attempts locally by design and end with the golden proposal evaluated by
Decionis; trusted-executor runs the executor process once more in shadow against Decionis; the
two Presence examples need an owned organization with an enrolled approver, and say so when given
a provisional workspace.
How it is wired
createHostedGate in packages/pipeline
reads the environment and returns the authority and verifier the example runs:
Hosted mode fails closed. A timeout, a network error, a non-2xx response, a body that is not the
contract's decision, a verdict the contract does not define, a decision about another intent, or an
intent that expired before evaluation is recorded as BLOCK from the hosted side, with no grant. In
SHADOW that is recorded and the fixture's verdict still governs, so setting a key cannot change what
a working fork does; in ENFORCEMENT it blocks, as the threat model requires. Neither mode is ever
less restrictive than the fixture alone; the matrix is asserted in
ShadowGate.test.ts and every failure mode in
FailClosed.test.ts.
Only the captured intent leaves your process: the action, target and parameters the agent proposed,
and the tenant, actor, downstream target, expiry and context the trusted configuration supplied. It
is the same ExecutionIntentBinding the intent hash covers, and nothing else; credentials live behind
the executor and are never part of an intent. The request body is pinned field by field in
FailClosed.test.ts.
Beside it, every hosted call carries a User-Agent naming this package and its version, and from
the examples the upstream repository slug and the example name, so Decionis can count which example
a key was first used from. That is the whole of it: the header is sent only when a key is set, it
is not decision input and does not enter the dossier, and an integration that passes no source
sends the package name and version alone.
To go back: delete the key. That is the whole rollback.
From the fixture to Decionis
The package is used in three stages. Each stage uses the same IntentCapture, ActionRegistry, and handler code, so nothing is rewritten between them.
Decionis credentials belong only in the trusted executor process, never in the agent runtime:
See the package README for the complete enforcement example and docs/shadow-mode.md for the shadow rollout path. To move an example between the stages with configuration alone, see Optional: a signed Decision Dossier from Decionis.
To run the boundary as its own service rather than in-process, packages/agentsafe is the executor as a process: @decionis/agentsafe, a listener in front of the same components with a seam for your handlers. examples/trusted-executor is its proof over real HTTP against the loopback doubles and the template an adopter starts from. deploy/ is its image, the Kubernetes manifests for the two zones with every credential referenced and never written, and the runbook from shadow to enforcement.
Research and specifications
Decionis Research defines the Execution Authority architecture, this repository demonstrates it as runnable, tested code, and the Decionis platform operates it as a hosted authority. The provenance chain is research paper -> protocol contract -> reference implementation (this repository) -> production service.
Published research:
- Jejelowo, Festus. "The Execution Verifiability Gap: Why Model Governance Cannot Authorize Consequential Actions." Decionis Research, version 1.0, 21 August 2026. Canonical article · Archival PDF · Research index.
Profiles of the protocol: the Banking Execution Authority Profile (BEAP) applies this architecture to a bank's disbursement, payment run, or limit increase — execution domains, the canonical banking instruction, batch binding, multi-party sign-offs, effect evidence — and its reference runtime builds on @decionis/agent-safe-pipeline. BEAP v1.0 was published on 2026-09-15: the profile Decionis publishes and implements, not a standard approved by any body; the 0.1 draft is frozen and mirrored under profiles/beap/v0.1. Half of its runtime is here and half is not: the profile's section 24.5 names @decionis/agentsafe as the reference Trusted Executor, the executor-side subset it implements is listed in docs/beap-conformance.md, and the authority-side half — policy, grants, dossiers, the L1 and L2 requirements — is not in this repository and is not claimed by it. Being named a reference is not a conformance claim, and none is made: the executor implements the 1.0 identifiers, moved together with the profile's other runtimes.
Proof-of-human infrastructure: the proof-of-human infrastructure page on the platform site says what the human-authority layer is — a verified, present person on their own device, bound to one exact action, sealed in a signed Presence Record the authority re-checks before commit — and the Presence property is where it runs; this repository's PresenceApprovalCoordinator and the examples/local-escalation, examples/presence-live-approval and examples/presence-managed-approval examples are the reference for resolving an ESCALATE with it. Production enforcement is sales-assisted; the loopback double simulates the ceremony and proves nothing about a real one.
The execution intent itself is published as Agent-Safe Intent v1 (agent-safe.intent/1): the binding, its canonical form and hash, the requirement that every single-field change is another intent, conformance against the vectors under conformance/, a JSON Schema generated from the reference implementation, a changelog, and the change process. It is the profile Decionis publishes and implements, not a standard approved by any body. agentsafe verify intent <file|dir> runs the corpus offline, or prints the bytes and hash of a binding of your own to compare; spec/intent/v1/frameworks.md says what the OpenAI Responses API and Agents SDK, the Vercel AI SDK and LangChain tool-call records carry of a binding and what the adapter adds, from vectors the reference test reproduces.
Companion notes on the Execution Authority model, the authorization protocol, Presence-verified human approval, and Decision Dossiers are in preparation. Following this repository's discovery rules, a publication link is added here only after its canonical article resolves publicly.
Repository map
packages/pipeline—IntentCapture,DecionisGate, Presence coordination, andSafeExecutor.packages/agentsafe—@decionis/agentsafe, the trusted executor as one deployable process: the HTTP listener, the configuration, escalation resolution, and the handler seam in front ofpackages/pipeline, with its own image.packages/commerce-mcp—@decionis/commerce, the CommerceGate MCP server: lets an AI agent check a price change, stock change, order, fulfillment step, promotion, refund or return against the merchant's policy before acting, and read the signed record afterwards. A client adapter over the published Decionis contract; it holds no policy and contains no marketplace client.packages/commerce-mcp-claude-extension— the dedicated MIT-licensed Claude Desktop wrapper and packaging checks. Its MCPB vendors the unchanged Apache-2.0 CommerceGate runtime with that runtime's license and notice.examples/golden-adversarial-demo— the self-checking proof: one golden path, eight attacks, zero unauthorized executions.examples/whisper-boundary-demo— the same proof for a shopping agent: merchant-text steering, a cross-session credential lookup, a cart changed after signing, constraints lost in context compaction, and principal loss across a delegation hop — six attacks, zero unauthorized effects.examples/crm-outreach-demo— the same proof for a sales-development agent: who can approve a CRM update or an outbound message, a recipient changed after approval, an off-template message, an opted-out contact, an expired approval, and a provider response lost after dispatch that is reconciled once and never re-sent — six attacks, zero unauthorized effects.examples/infra-scale-demo— the Compromised Principal Test: an infrastructure agent whose identity, credential and API are all valid proposes adeployment.scaleit is not authorised for — 960 replicas, another service, another cluster, a post-authorization mutation, a swapped approval, a replayed grant, a direct call to the cluster — seven attacks, zero unauthorized effects.examples/basic-agent— the smallest BLOCK flow.examples/shopify-refund-agent— amount-based ALLOW / ESCALATE / BLOCK.examples/github-deploy-agent— environment and force-push controls.examples/procurement-agent— an in-budget software request held when existing tools still have user capacity.examples/mcp-tool-gate— a real stdio MCP server with a governed tool.examples/presence-live-approval— a Presence-bound enforcement against the real services with a FIDO2 or FIDO2-plus-liveness ceremony; needs real credentials.examples/presence-managed-approval— Decionis-managed Presence orchestration with Decionis-only polling and no Presence credential in the executor.examples/local-escalation— both Presence integration modes against loopback Decionis and Presence doubles, no credentials, ceremony simulated.examples/trusted-executor— the proof of@decionis/agentsafeover real HTTP against the loopback doubles, and the template an adopter starts from: the handler seam and a process of a few lines.govern/— Govern, the gate for workflows: one Go binary for GitHub Actions, GitLab CI, Jenkins and any other runner that captures a step as an execution intent, asks Decionis throughenforce-and-bind, runs the command only on a claimed grant, and finalizes the outcome into the Decision Dossier; thedecionis/governaction's source since 2026-09-21 (v2; v1 was the node20 action on the evaluate-decision API);docs/govern.mdis the page.deploy/— the deployment kit: the executor image, conformance-tested Kubernetes manifests for the agent zone and the executor zone with Secrets referenced and never written, and the runbook from shadow to enforcement.ARCHITECTURE.mdandTHREAT-MODEL.md— trust boundary and abuse analysis.OPEN-CORE.md— what is Apache-2.0 here, what Decionis operates, and the seam between them.docs/— concepts, execution intent, the Compromised Principal Test, outcomes, human approval, Presence Evidence semantics, the remote CRO sequence, shadow mode, Decision Dossiers, trust boundary, the executor's chained evidence, what the executor implements of the BEAP v0.1 banking profile, incident response for the executor, where a bypass of the executor is actually stopped, and assurance notes.spec/intent/v1— Agent-Safe Intent v1: the specification, the JSON Schema generated from the reference implementation, the changelog, and the framework coverage matrix.conformance/agent-safe-intent-v1.json— portable canonical-hash test vector.conformance/vectors/— edge-case canonical-hash vectors (Unicode/astral, NFC vs NFD, negative zero, fractional/exponent numbers, nested arrays, UTF-16 key sort order) and the Compromised Principal Test as a vector (one intent, eight single-field mutations, nine distinct hashes), auto-discovered by the conformance test.conformance/frameworks/— the same refund proposal as an OpenAIfunction_callitem, a Vercel AI SDKtool-callpart and a LangChainToolCall, each with the proposal, the trusted context, the binding, the hash, and a coverage row over the eight producer capabilities.dossiers/— reproducible synthetic Decision Dossier corpus with canonical bytes, SHA-256 digests, Ed25519 signatures, and a deliberately published corpus key.tests/integration/contract/— loopback Decionis and Presence stubs that exercise the packed package's complete wire contract over real HTTP.FIXTURE-PROVENANCE.md— origin and permitted use of every fixture family.profiles/beap/v1.0andprofiles/beap/v0.1— the Banking Execution Authority Profile, mirrored byte for byte from its own repository by that repository's sync script: 1.0, the version this executor implements, and the frozen 0.1 draft, staged here for archival under this repository's concept DOI.DEPENDENCY-LICENSES.md— generated inventory method and platform-conditional dependency notes.SECURITY-EVIDENCE.md— control-to-artifact evidence map and published gaps.PUBLICATION-SIGNOFFS.md— human decisions that automation cannot make.
Installing the Decionis CLI
This repository is also the public distribution home of the decionis command-line tool: its
GitHub releases carry every release's
npm tarball, Debian and RPM packages, Windows archive and registry manifests, and the two
manifests below are what package managers read. The CLI itself is not part of this repository's
Apache-2.0 source; formula/ and apps/ hold metadata only.
- npm:
npm install -g decionis - Homebrew:
brew tap decionis/agent-safe https://github.com/decionis/agent-safe-pipelinethenbrew install decionis(Formula/decionis.rbfetches the npm tarball and pins its SHA-256) - Decionis app install:
app install decionisreadsapps/decionis.json - Windows: the WinGet manifest
Decionis.CLIpoints at each release'sdecionis-windows-x64-<version>.ziphere; until the manifest is accepted into winget-pkgs, download the archive from the release and adddecionis\bintoPATH
Open core
The architecture, intent contract, execution boundary, client adapters, audit contract, shadow mode, conformance vectors, examples, and @decionis/commerce runtime are Apache-2.0. The narrowly scoped Claude Desktop wrapper in packages/commerce-mcp-claude-extension is MIT-licensed to satisfy that directory's extension requirement; its bundle preserves the CommerceGate runtime as a separate Apache-2.0 artifact with license and notice. Decionis operates the policy control plane behind DecionisGate: policy evaluation, grant issuance and atomic consumption, Decision Dossier signing and retention, and Presence. The seam is two exported interfaces, DecisionAuthority and AuthorizationVerifier, plus a published OpenAPI contract; the library checks no plan, key, or entitlement. OPEN-CORE.md states the boundary and the commitments that keep it stable.
Public-repository policy
This is intended to be the public, canonical reference implementation. It should not be mirrored: mirrors create contract and security-fix drift. Public content belongs here—architecture, package source, synthetic policies, and runnable examples. Production policy bundles, customer data, credentials, internal infrastructure, and private incident material do not.
Decionis remains the authoritative decision service, Presence remains the human-verification service, and their server internals can evolve independently behind versioned contracts.
Start here
ONBOARDING.md is the adopter's journey — install, capture, verdict, approval, grant, execute once, outcome, evidence — walked for five families: AI agent, commerce, banking, proof of human, and autonomous workflows, each pointing at the example that runs it and the property that owns it.
Evaluating this repository
EVALUATION-PATH.md is the reviewer's route: which artefact you are looking at, who owns which control, what each piece of evidence establishes and what it does not, and what to run in what order.
Status
The package is published as @decionis/agent-safe-pipeline. Install the latest stable release with npm install @decionis/agent-safe-pipeline; prereleases publish under the next dist-tag and require an explicit request such as npm install @decionis/agent-safe-pipeline@next.
Archived releases are citable under Zenodo concept DOI
10.5281/zenodo.22312955. The
release-metadata contract explains the
preflight checks, version-DOI verification, and human publication boundary.
Development
pnpm verify enforces formatting, Markdown lint, fixture conventions, canonical licensing, separate
production/toolchain audits, deterministic performance tests, types, tests, and coverage thresholds
of 90% for lines/functions/statements and 85% for branches. pnpm mutation checks that
trust-boundary tests kill deliberate code mutations. pnpm fuzz runs deterministic property tests
against canonical intent handling; CI also runs them weekly with a larger bounded sample.
Installation activates the repository's simple-git-hooks pre-commit guardrails.
Testing escalations locally
@decionis/agent-safe-pipeline/testing ships LocalPresence and LocalAuthority, loopback doubles
that the production clients talk to unchanged. They enforce the structural intent-hash binding,
verify receipts the way Decionis does, issue single-use grants, orchestrate managed escalations, and
record finalization. The person's ceremony is a method call or a local control route. See
docs/local-testing.md and examples/local-escalation.
Fixture provenance and loopback origins
Every fixture-bearing file is listed in fixtures/manifest.json and
checked by pnpm fixture:check: the unit tests under packages/pipeline/test, example sources,
conformance vectors, the dossier corpus, synthetic policies, and the integration harness under
tests/integration. The gate requires synthetic identities (synthetic- or fixture_ prefixes,
tenants in the reserved UUID block) and parses every URL-shaped literal it finds, which must resolve
to localhost, 127.0.0.1, example.com, or a .example or .invalid domain. Nothing in the
tests, examples, or harness reaches the network beyond loopback.
Two consequences matter when you add or evaluate tests:
- Loopback stubs bind to
127.0.0.1on an ephemeral port and build their base URL from a plain string constant,const LOOPBACK_ORIGIN = "http://127.0.0.1", appending the port separately. A template literal that interpolates inside the URL, such as`http://127.0.0.1:${port}`, is read by the gate as literal text and rejected as an invalid URL. That is deliberate: the gate does not guess what an interpolated host would resolve to. - A new fixture-bearing file needs its manifest entry in the same change. Discovery uses
git ls-files, so an untracked file is invisible to the gate until it is staged, and the manifest and discovery must match exactly.
See FIXTURE-PROVENANCE.md for the full construction rules and
tests/integration/contract/ for the loopback harness that
follows them.
Contributing, support and license
CONTRIBUTING.md is how a change lands: pnpm verify before a pull request,
the coding, security and discovery rules beside it, and the bot that opens pull requests for
branches. Questions and bug reports are GitHub issues;
the runtime's first governed action, not a star, is the number this repository is measured by, and
docs/reference/telemetry.md says exactly what the runtime records
about that and what it never sends.
Apache-2.0 licensed except for the explicitly scoped MIT Claude Desktop wrapper in packages/commerce-mcp-claude-extension. See LICENSE, OPEN-CORE.md, TRADEMARKS.md, SECURITY.md, and CONTRIBUTING.md. Report suspected vulnerabilities through GitHub's private advisory form, not a public issue.
來源:README.md,提交 2126d70
工具
0版本歷史
2- v0.3.0最新Sep 20, 2026
- v0.2.0Sep 16, 2026
