v0.14.0 (29 October 2026) sends approvals through a broker: the gate files a signed request carrying only the arguments the manifest lists in approval.show, and verifies every receipt the broker hands back before using it. v0.13.0 (28 October 2026) adds MCP over HTTP on both sides of the gate, several servers behind one gate with pinned tool definitions, signed webhooks (Slack, Discord or generic), OpenTelemetry spans, and a Docker image that runs the gate by default. v0.12.0 (27 October 2026) is the gate release: the single-file manifest, Cedar policies, the signed decision ledger, shadow mode, scheduled anchoring and cloakpipe verify. Entries for v0.11.0 and earlier describe the product as it was then, including features that are now out of scope.
Changelog
All notable changes to CloakPipe are documented in this file.
The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.
CloakPipe is pre-1.0 and its formats carry v1alpha1 versions, so minor releases
may contain breaking changes; these are marked Breaking.
Unreleased
0.14.0 - 2026-10-29
Approvals can now go through a broker, such as CloakPipe Cloud or your own:
the gate files a signed approval request carrying only the arguments the
manifest lists in approval.show, polls for signed receipts in the
background, and verifies each receipt locally before writing it, so the
decision path never waits on the network.
Added
- Approvals through a broker (docs/APPROVALS.md), an
open protocol any service can implement (CloakPipe Cloud does):
mcp-proxy --approvals-url <broker>/v1/gates/<id> --approvals-secret-file FILE [--approvals-poll-interval 5s]. A call refused asapproval_requiredis filed with a signedPOST <url>/approvals(cloakpipe.approval-request/v1: fingerprint, release, tool, approver routes, task id, ttl, ledger seq and only theapproval.showvalues), queued and sent in the background, once per fingerprint while open. A poller fetches finished requests with a signedGET <url>/approvals?since=<cursor>, verifies each receipt against--approver-key, the release, tool, task id, fingerprint and ttl, and only then writes it atomically to--approvals; one that does not verify is not written and raisesapproval.mismatch. Decisions never wait on the broker; if it is down, approvals do not arrive. A polled record whosetask_idnames another task (another gate process sharing the gate URL) is skipped quietly. Needs--approvals,--approver-keyand a task context with ataskId, checked at start-up.- The refusal’s
error.datagainsapproval_request(requested,pendingordenied) and ahintto retry after approval. - A new reason,
approval_denied: an approver denied this exact call, and it is refused until the denial’snot_after(else the request’s ttl), without filing a new request. The gate also honours a<fingerprint hex>.denied.jsonmarker in the approvals directory, with or without a broker. An expired request isapproval_requiredagain and is filed anew;approval_expiredstill means a receipt past itsnotAfter. cloakpipe approvals keys --approvals-url URL --approvals-secret-file FILE --out DIRwrites the broker’s approver public keys (GET <url>/approver-keys) as--approver-keyfiles, refusing any key whose keyid is not its own.- Library:
cloakpipe_mcp::broker(ApprovalBroker,BrokerConfig,RequestStatus),ToolGate::with_broker/request_approval,Denial::ApprovalDenied.
- Manifest:
approval.show: [amount, ticket_id], the top-level arguments whose values an approval broker may see (default: none). Names must be declared arguments, not of type object or array; only scalar values are sent.ApprovalRule::shown. A fingerprint of low-entropy arguments can be guessed by brute force; see docs/THREAT_MODEL.md.
Changed
- Breaking (library):
cloakpipe_release::rules::ApprovalRulehas a new public field,show.
0.13.0 - 2026-10-28
The gate now runs over MCP’s HTTP transport on both sides, fronts several MCP servers with pinned tool definitions, and delivers its events to signed webhooks (Slack, Discord or generic), OpenTelemetry and a JSONL log. The Docker image runs the gate by default.
Added
-
MCP over HTTP (Streamable HTTP, spec rev 2025-06-18) on both sides of the gate, with the same decisions, refusals and ledger entries as stdio:
mcp-proxy --listen ADDRserves agents onPOST /mcp(JSON responses;Mcp-Session-Idissued oninitializeand required after it;DELETEends a session;GET /mcpis 405),GET /healthwith the release name and digest,Originchecks, and an optional--listen-token-filebearer token (scheme case-insensitive). An agent’snotifications/cancelledreaches the upstream under the gate’s id for that session’s own request, and never cancels another session’s. The bound address is printed on stderr; SIGTERM stops it cleanly.mcp-proxy --upstream-url URL [--upstream-header 'Name: value'|'Name: env:VAR']fronts an HTTP MCP server (JSON or SSE replies, session id and protocol version carried). It is mutually exclusive with--upstream,--serverand--tools-lock;--upstream-headerwithout it is a usage error.- Upstream transport errors fail closed:
upstream_unavailable(JSON-RPC-32003), orunknown(recorded) for a side-effecting call that was sent. Library:Interceptor::on_upstream_error,UpstreamTransport::Http,Upstream::http,cloakpipe_mcp::http::serve. --listenalso fronts several stdio servers and a tools lock (--server,--tools-lock; librarycloakpipe_mcp::http::serve_servers).- Not yet: SSE response streams and a
GETstream to HTTP agents (upstream notifications are not relayed to them), and HTTP servers behind--server/--tools-lock.
-
Gate events (
cloakpipe_mcp::events, library API): the MCP gate hands each decision worth attention toProxyContext::eventssinks after its ledger entry is written:decision.deny,approval.requested,approval.mismatch,shadow.finding,side_effect.replayed,side_effect.unknown,tool.driftandanchor.failed. Each event names its ledger entry (ledger_seq,entry_hash), carries a deterministic fingerprint (sha256(kind|reason|tool|path|policy_version)) and never an argument value;GateEvent::to_jsonis the stablecloakpipe.event/v1form, delivered by the flags below. -
The MCP interceptor is now a transport-agnostic
Interceptor(agent and upstream messages in,Actions out) with named upstreams (Upstream; the single--upstreamis serverdefault).run_proxy/run_proxy_ioare unchanged; decisions are unchanged. Breaking (library):ProxyContexthas a neweventsfield, so a struct literal needsevents: Vec::new(). -
Event delivery (docs/EVENTS.md). New
mcp-proxyflags:--events-log PATHappends each event to a JSONL file.--webhook URL(repeatable) POSTs each event, signed with--webhook-secret-fileasCloakPipe-Signature: t=<unix>,v1=hex(HMAC-SHA256(secret, "<t>.<body>")), together withCloakPipe-EventandCloakPipe-Fingerprintheaders.--webhook-format generic|slack|discordpicks raw JSON, a Slack Block Kit message or a Discord embed.--otel-endpoint URL(or--otelwithOTEL_EXPORTER_OTLP_ENDPOINT) exports onecloakpipe.decisionspan per tool-call decision, allows included, over OTLP/HTTP JSON.
Delivery runs on background threads with bounded queues: three tries, 5 s timeout, drops counted on stderr, and a flush of up to 5 s on exit. It never delays or changes a decision.
Also new:
cloakpipe events testsends a sample event, andcloakpipe events verify-signaturechecks a signature the way a receiver should.- A failed scheduled anchor is now an
anchor.failedevent. - Library:
JsonlSink,WebhookSink,OtelSink,DecisionRecord,AnchorLoop::spawn_with.EventSinkgains defaultdecisionandflushmethods.
-
mcp-proxy --server NAME=COMMAND(repeatable): one gate in front of several stdio MCP servers. The gate initializes and lists every server at start-up, answersinitialize/pingitself, mergestools/list(all pages), routes eachtools/callto the server that serves the tool under its own request ids, and sends other requests to the server nameddefault(--upstream) or the only one, else refuses them (-32601). A tool name two servers share refuses to start unless the manifest declares it per server as<server>__<tool>. Library:Interceptor::with_servers,run_servers[_io],servers,ServerTools. A server that exits fails its open requests closed at once (upstream_unavailable; a side-effecting call is recordedunknown) while the other servers serve on. -
Tool pinning:
cloakpipe tools pinwritescloakpipe.tools.lock(per server, per tool, sha256 over the JCS ofname,description,inputSchema,annotations, under a lock digest);cloakpipe tools diffshows added/removed/changed tools (exit 1 on changes);mcp-proxy --tools-lockhides a tool that does not match its pin (or has none) fromtools/listand refuses calls to it astool_drift, recorded in the ledger and emitted astool.drift. Without a lock, a tool whose definition changes during the session is refused until restart (also with a plain--upstream). Decision entries carry the lock digest (tools_lock) when there is one; entries without it hash as before, so older ledgers still verify. Breaking (library):Denialhas new variants (ToolDrift,ToolUnavailable), andGateEvent(server) andDecisionDraft/DecisionEntry(tools_lock) have new fields. -
docker/compose.example.yaml(the gate in front of an example MCP server over HTTP) andexamples/support-agent/mock_http_upstream.py(the example’s tools over Streamable HTTP). -
Every
v*tag is now published to crates.io by the release workflow (CARGO_REGISTRY_TOKENrepo secret). A manual run with ataginput publishes an existing tag to crates.io without rebuilding the image. Re-runs skip crate versions already on crates.io, and crates.io’s new-crate rate limit (HTTP 429) is waited out and retried.
Changed
- Breaking (Docker): the image runs the MCP gate over HTTP by default.
Its entrypoint (
docker/gate-entrypoint.sh) buildscloakpipe mcp-proxy --listen 0.0.0.0:8900 --manifest /app/cloakpipe.manifest.yaml --upstream-url $CLOAKPIPE_UPSTREAM_URL ...fromCLOAKPIPE_*variables, and refuses to start without an upstream, a mounted manifest, or (on a non-loopback address)CLOAKPIPE_LISTEN_TOKEN_FILE. The ledger, gate key and operations store are on the/datavolume (CLOAKPIPE_HOME=/data). The PII proxy isdocker run IMAGE start; the rootdocker-compose.ymlnow runs it that way.
0.12.0 - 2026-10-27
CloakPipe is now a self-hosted policy-enforcement gate for AI agent tool
calls: declare a single-file manifest (and optional Cedar policy), enforce it
in cloakpipe mcp-proxy, and prove every decision with a signed, hash-chained
ledger you can export and verify offline. Eval certification, RAG tooling and
the ONNX NER detectors are now opt-in cargo features; the default binary is
the lean gate. Licence: MIT only.
Added
-
cloakpipe-clicargo featuresner,ragandfull(=ner,rag,certification). CI tests the default build and--features full, andtools/check_dep_boundary.shfails if the defaultcloakpipe-cliorcloakpipe-proxydependency tree containsort,tokenizers,ureq,cloakpipe-cert,cloakpipe-treeorcloakpipe-vector. -
crates.io metadata on every crate (
homepage,readme,keywords,categories) and versions on all path dependencies;cloakpipe-local,cloakleakandcloakleak-cliarepublish = false. -
Single-file manifest,
cloakpipe.manifest.yaml(cloakpipe_release::v1,schemas/cloakpipe.manifest.schema.json): top-levelrelease,version, optionalpolicy(a file path; its bytes are digested aspolicy_digest) andtools. Closed by default: a declared tool takes only theargsit lists (none withoutargs), each optional unlessrequired: true. Constraint keystype,pattern,enum,const,min_len,max_len,min,max,items,properties, plusone_of_context(task context paths; string or array values) with anor_patternfallback. Per tool:side_effect/effect: read|write|irreversible, anidempotency_keytemplate ("{ticket_id}:{sha256(body)}") that names the operation, andapproval: {when, approvers, ttl}with a small condition language (amount > 100 && currency == 'EUR'). Everything is checked at load, so a bad rule stops the gate at start-up. The manifest digest is sha256 over the JCS form of the parsed document. -
cloakpipe mcp-proxy --manifestauto-detects the format (top-levelrelease: v1;apiVersion: legacy). Anapproval_requiredrefusal now carries the tool’sapproversroutes and the callfingerprint, and a receipt valid for longer than the tool’sttlisapproval_invalid.approveandaction fingerprinttake a v1 manifest too. -
cloakpipe manifest validate <file>andcloakpipe manifest hash <file> [--json](release, version, manifest_digest, policy_digest). -
Decision ledger:
cloakpipe mcp-proxyappends one entry per gate decision (cloakpipe.decision/v1: allow, deny or require_approval for eachtools/call, messages refused unread, side-effect outcomes committed/failed/unknown, replays andoperations reconcile). Entries carry seq, ts, release, tool, a keyedargs_fingerprint(never raw values), decision, reason, policy_version (the manifest digest), policy_digest (the Cedar policy file’s sha256, when the manifest has one), mode, task_id and outcome, are hash-chained, and each is signed with Ed25519 by the gate signing key (--signing-key/CLOAKPIPE_SIGNING_KEY, else$CLOAKPIPE_HOME/gate.key, created owner-only on first use with its public key printed once).cloakpipe ledger entries | public-keyandcloakpipe-verify decisions <entries.jsonl> --key …verify them offline. -
mcp-proxy --mode enforce|shadow: shadow forwards every call the gate can read and records what enforce mode would have decided (mode: shadow). -
Scheduled anchoring:
mcp-proxy --anchor-every N/--anchor-interval DURATIONseals the decision ledger into numbered, signed epochs (cloakpipe.epoch/v1, each linked to the previous one) and anchors each with an RFC 3161 TSA and Sigstore Rekor on a background thread, off the request path (--tsa,--tsa-root,--rekor,--rekor-key,--no-tsa,--no-rekor; freetsa.org and rekor.sigstore.dev with built-in trust by default). Receipts are kept in the ledger database; a failure printsanchor.failedand is retried, by later runs too. -
cloakpipe ledger export --out audit-pack.tar [--since/--until]: a plain tar with entries.jsonl, the gate public key, every epoch with its RFC 3161 token and Rekor entry, the manifest digests and a pack manifest signed by the gate key. -
cloakpipe verify audit-pack.tar [--key …]: offline verification of the pack with thecloakpipe-verifylibrary (alsocloakpipe-verify pack audit-pack.tar). It reports entries, chain and signatures, anchored epochs (RFC 3161 and Rekor inclusion proofs), gaps (missing epochs, uncovered seq ranges, unanchored epochs), denials, approvals and unknown side effects reconciled, and exits non-zero on any failure or gap. -
cloakpipe-anchor:TsaClient::anchor_artifactandRekorClient::anchor_artifactanchor any bytes; thetestkitfeature (tests only) adds localMockTsaandMockRekorauthorities. -
examples/support-agent/: a support agent whose prompt-injectedsend_emailto an attacker is refused (scope_mismatchon/to, bound to the ticket’s customer), on onecloakpipe.manifest.yamlwith an idempotentsend_emailand a refund that needs approval over 100, a stdlib-only mock MCP server and the exact commands and output. The test suite runs it. -
Cedar policies in the tool gate (new crate
cloakpipe-policy, oncedar-policy4.x). The policy a v1 manifest references (policy:) is parsed at start-up (an invalid one refuses to start) and evaluated for every call that passed its contract: principalRelease::"<release>", actionAction::"<tool>"(Tool::"<tool>"is accepted too), resourceCall::"<fingerprint>"with the arguments asresource.args, and a context of the task context, persistent per-tool counters (context.counters.<tool>_1h/_24h) and the time. Decision order is contract, Cedar, approval: no permit or a forbid ispolicy_denied(the refusal and the ledger hop name the deciding policies by@id); a call whose satisfied permits all carry@approval("<route>")needs a receipt, with the routes merged intoapproval_required; any evaluation error isfail_closed. Withoutpolicy:the gate is contract-only, as before. -
mcp-proxy --state-db(default$CLOAKPIPE_STATE_DB, else$CLOAKPIPE_HOME/state.db,~/.cloakpipeby default): the SQLite store of the policy counters. Only forwarded calls are counted, and the counts survive a restart.cloakpipe manifest validateparses the policy too. -
examples/support-agent/policies/support.cedar: the spec’s email rate limit (50 an hour) and refund tiers (up to 100; 100 to 500 with@approval). -
AgentRelease::gate_issues()(cloakpipe-release): what the tool gate needs from a release (knownapiVersion/kind, agent name, well-formed and distincttool:andpolicy:references), without the certification pinsvalidate()requires. -
Docs for the gate:
docs/MANIFEST.md(format reference),docs/POLICY.md(Cedar entities, context, counters, decisions),docs/THREAT_MODEL.mdanddocs/KEYS.md(gate key, approver keys, anchoring roots, rotation; KMS/HSM on the roadmap), andexamples/filesystem, a read-only manifest and Cedar policy for the reference filesystem MCP server, used by the README’s Claude Code, Cursor and Codex snippets. -
tools/check_docs.py, run in CI: everycloakpipe/cloakpipe-verifycommand in the README,docs/andexamples/*/README.md(code blocks, inline code, MCP host configs) must exist in the default binary with the flags shown, and walkthroughs marked<!-- check-docs: run -->(the README quickstart, the support-agent example, the manifest, policy and key docs) are executed and their output compared with the docs. The filesystem walkthrough, which downloads the server withnpx, runs in a push-onlydocs-networkjob.
Changed
- README rewritten around the action boundary (“Model proposes. Code
disposes.”): a 60-second quickstart with the support-agent example (v1
manifest + Cedar, the prompt-injected email refused, the ledger exported
and verified), Declare / Enforce / Prove, host snippets, what it is not
and an honest roadmap. The support-agent example README now runs as
written with
cloakpipeonPATH, and ends with a pinned-keyverify. - The certification-era docs moved to
docs/legacy/and are marked legacy:CERTIFICATION.md, the releaseAUDIT_PACK.md,AGENT_RELEASE.md, and the 2025 proxyARCHITECTURE.md,TECH.mdandPLAN.md(which showed commands that never existed). cloakpipe verify/cloakpipe-verify packwith several--keys (a rotated gate key) named the first pinned key as the pack’s signer; it now names the key that signedpack.json.cloakpipe operations reconcile --manifestread only the legacy Agent Release and failed on a v1cloakpipe.manifest.yamlwith “unknown fieldrelease”; it now takes either format and binds the reconciliation entry to the manifest digest.- Breaking (build): the default
cloakpipebinary is the lean gate:mcp-proxyand its evidence tooling, plus regex PII detection forstart,scan,mcpandmcp-proxy --transform pii. It no longer links ONNX Runtime, tokenizers, the RAG crates orcloakpipe-cert. Build with--features nerfor the NER detectors (a config with[detection.ner] enabled = truenow warns and runs on regex in a build without them),--features ragfortree,vectorand the proxy’s/v1/embeddingsand/tree/*routes,--features certificationforeval,release certify,release verify-certandrelease audit-pack, or--features fullfor all of it. The Docker image takes--build-arg CLOAKPIPE_FEATURES=.... - Licence: MIT only.
cloakpipe-anchor,cloakpipe-verify,cloakleakandcloakleak-cli(and the CloakLeak sample corpus) move from Apache-2.0 and CC-BY-4.0 to MIT, under the one rootLICENSE. - The workspace and crate descriptions describe the tool-call gate (“Self-hosted policy-enforcement gate for AI agent tool calls”) instead of a privacy proxy.
cedar-policy-coreturns on serde_json’spreserve_orderfeature, somcp-proxynow forwards an agent’s JSON-RPC message with its keys in the order the agent sent them (they used to be sorted). Digests and fingerprints are unaffected: they hash the JCS (RFC 8785) form.- The support-agent example declares the refund
amountas an integer. - Breaking: the denial for an argument the contract does not declare is
undeclared_argument(wasargument_not_allowed), for legacy tool contracts too. - Deprecated: the AgentRelease + ToolContract pair (
--tool-contract). It still works for this release, with a warning on stderr;--tool-contractwith a v1 manifest is a usage error, since its contracts are inline. - Breaking (
cloakpipe mcp-proxy): gate decisions are recorded by default in$CLOAKPIPE_HOME/ledger.db(~/.cloakpipe/ledger.db), or--ledger-db/CLOAKPIPE_LEDGER_DB;--no-ledgeropts out with a warning. A ledger or key that cannot be opened stops the gate, and an entry that cannot be written refuses its call asfail_closed(never forwarded). Gate refusals, approvals and operation states are recorded as decision entries instead ofgate_denial/gate_violation/operation_statemetadata on PII hop records; those hop records are now written only by--transform pii, and old ones are still read.operations reconcilerecords a signedreconcileentry by default instead of anoperation_reconciledhop. mcp-proxy --gate warnis now a hidden alias of--mode shadow.- Breaking (
cloakpipe-mcp):GateMode::WarnisGateMode::Shadow;ProxyContexthas adecisionsfield;reconcile_operationtakes aDecisionLogand the release assha256:text. - Breaking (
cloakpipe mcp-proxy): PII masking is opt-in. By default the proxy forwards tool-call arguments and results unchanged: the gate allows or refuses a call and never rewrites an allowed one, so a tool now receivesdana@customer.examplewhere 0.11 sentEMAIL_1. No vault is opened or keyed, andCLOAKPIPE_VAULT_KEYand the config file are not read.--transform piirestores the 0.11 behaviour (pseudonymize PII in arguments, rehydrate tokens in results, through the vault); users who relied on masking must add it. - Breaking (
cloakpipe mcp-proxy --operations-db): without--transform pii, the proxy refuses to start (exit 1, naming--transform pii) when the operations database holdsdoneoperations whose stored results are masked, since a retry would replay pseudonym tokens the agent cannot read. Every result 0.11 stored counts as masked. Start with--transform piiand the vault the results were masked with (the retry is replayed rehydrated, never re-executed), or use a new--operations-db. Theoperationstable gains a nullableresult_masked INTEGERcolumn, added in place when an existing database is opened. - Breaking (
cloakpipe-mcpAPI):ProxyContext { detector, vault, .. }is nowProxyContext { pii: Option<PiiTransform>, .. }, withPiiTransform { detector, vault }.Begin::Replaycarriesmasked,OperationRowcarriesresult_masked, andOperationStoregainssettle_maskedandmasked_results. Ledger hops of a proxy without the transform recordActionKind::Passthroughinstead ofPseudonymize. - Breaking (
cloakpipe mcp-proxy): the tool gate no longer requires a certification. With--manifest, a call is allowed when the release declares the tool and the call passes the tool contracts the release binds (and approvals / operations, as before). Calls that 0.11 refused asuncertified,expired,revoked,invalid,blockedorwrong_environmentare now forwarded. Default builds no longer accept--certification,--trust,--trust-key,--revoked-statement,--revoked-keyor--environment(clap rejects them, exit 2). The old behaviour is a legacy, source-only cargo feature,certification, off by default (cargo build -p cloakpipe-cli --features certification), kept until certification is removed; published binaries are built without it. - Breaking (
cloakpipe mcp-proxy): the gate loads--manifestwithAgentRelease::gate_issues()instead of the certifiability checks, so a release needs no code commit, prompts, model or pinned runtime image to run the gate. A release whose tool or policy references the gate cannot read still refuses to start (exit 1). cloakpipe-release:spec.code,spec.prompts,spec.modelandspec.runtimemay be omitted (they read as empty, whichvalidate()andrelease validatestill report). Hashes of manifests that set them are unchanged.- Breaking (
cloakpipe-mcpAPI):ToolGate::new(mode, &manifest)takes no certification arguments. With thecertificationfeature,ToolGate::with_certification(environment, envelope, verify)restores the requirement, andDenial::{Uncertified, NotCertified, WrongEnvironment}exist only in that build.cloakpipe-mcpno longer depends oncloakpipe-certby default;tools/check_dep_boundary.shnow checks it. - CI: a new
test-legacy-featuresjob runscargo test --workspace --features certification. - New crate
cloakpipe-receipt. The DSSE layer (Envelope,Signature,TrustedKey,pae,sign,verified_keyids,NoDuplicateKeys,parse_rfc3339) and approval receipts (cloakpipe_receipt::approval) moved out ofcloakpipe-cert, so the MCP gate can verify approvals without the certification pipeline.cloakpipe_cert::statementandcloakpipe_cert::approvalre-export them for one release; the types are the same, not copies. - Breaking (
cloakpipe-verify): release audit packs (thepackmodule and thecloakpipe-verify release-packcommand) are behind the newrelease-packcargo feature, off by default, so the default verifier, and the ledger and anchor crates that depend on it, no longer pull incloakpipe-cert. A verifier built without the feature answersrelease-packwith a usage error (exit 2) naming the feature. ThecloakpipeCLI enables it forrelease audit-pack. CI checks the dependency boundary withtools/check_dep_boundary.sh.
Fixed
mcp-proxyin acertification(orfull) build no longer refuses every call asuncertifiedwhen no certification flag is given: the legacy certification gate applies only with--certification,--trust,--trust-key,--revoked-*or--environment.
0.11.0 - 2026-10-12
Added
- Tool contracts (action boundary). A new
kind: ToolContractartifact (cloakpipe_release::contract,schemas/tool-contract.schema.json) gives argument-level rules for the tools a release calls: closed argument lists, a small deterministic subset of JSON Schema, andbindTo: task.<key>to pin an argument to a trusted task context. A release binds a contract inspec.policiesaspolicy:tool-contract/<name>@sha256:<digest>, so it is covered by the certified release hash.cloakpipe mcp-proxytakes--tool-contract(repeatable) and--task-context(orCLOAKPIPE_TASK_CONTEXT), refuses to start unless the contracts are exactly the ones the release binds, and checks each covered call’s raw arguments before masking. New denial reasonsargument_missing,argument_not_allowed,argument_invalid,scope_mismatch,task_context_missingandapproval_required; denial hops carry the contract path asgate_path. Seedocs/ACTION_BOUNDARY.mdandexamples/action-boundary/. - Signed approval receipts (action boundary). A contract tool with
requiresApproval: truenow runs only with a signed receipt for the exact call: an in-toto Statement (predicate typehttps://cloakpipe.co/attestations/approval/v1alpha1) in a DSSE envelope whose subject is the call fingerprint, SHA-256 overcloakpipe.co/tool-call/v1and the JCS of{release, tool, arguments}(cloakpipe_release::action,cloakpipe_cert::approval). New commandscloakpipe action fingerprintandcloakpipe approve;cloakpipe mcp-proxytakes--approvals <dir>and--approver-key(repeatable). New denial reasonsapproval_invalidandapproval_expired; an approved call’smcp_tool_callhop records the receipt digest (approval) andoperation_id, never the arguments or their fingerprint. New library APIToolGate::with_approvalsandToolGate::authorize. - Operation identity and outcome states (action boundary). A contract
tool with
sideEffect: truenow runs as a tracked operation in a SQLite operations store (cloakpipe mcp-proxy --operations-db, orCLOAKPIPE_OPERATIONS_DB; required for such tools, so the proxy refuses to start without it). The operation id is the approval receipt’soperationId, else derived from the task and the call (cloakpipe.co/operation/v1, an HMAC keyed by the operations database’s own random key, so the ledger’s ids cannot be used to guess arguments); the model never supplies it. Statesin_flight,done,failed,unknownandnot_applied: a retry of adonecall replays the stored result (_meta.cloakpipe.replayed), a call whose reply was lost (upstream exit, broken pipe, crash) becomesunknownand retries are refused withreconcile_before_retry(JSON-RPC-32002) until an operator runs the newcloakpipe operations reconcile <id> --outcome done|not-applied(cloakpipe operations listshows them; anin_flightoperation needs--force). One proxy per operations database: a running proxy holds<db>.lock, and a second one refuses to start. A new operations database is created0600on unix. New denial reasonsoperation_conflict,reconcile_before_retry,request_id_missing,request_id_in_useandoperations_unavailable. Ledger hops carryoperation_idandoperation_state, and a new hop categoryoperation_reconciled(Hop::OperationReconciled) records each reconciliation; the verifier and audit pack count it by type. New library APIcloakpipe_mcp::operations,ToolGate::with_operations,ToolGate::readyandcloakpipe_mcp::reconcile_operation. - Agent Release manifests. A new
cloakpipe-releasecrate gives an AI agent release an exact, verifiable identity: anAgentReleasemanifest that only accepts immutable references, a canonical hash (RFC 8785), a material-change diff that lists the assurance suites a change requires, and in-toto export. New commands:cloakpipe release validate | hash | diff | inspect | register. Ledger records and MCP interceptor hops can be bound to a release hash. Ships with a JSON schema, a Python reference implementation of the hash anddocs/AGENT_RELEASE.md. (#12) - Certification. A new
cloakpipe-certcrate makes a deterministic certify/block decision for a release from its evaluation runs and a certification policy (coverage, pass rate, regressions, critical failures, metric thresholds), and signs the result as an in-toto statement in a DSSE envelope that verifies offline. New commands:cloakpipe release keygen,release certify(exit 0 only when certified) andrelease verify-cert. (#13) - Certification GitHub Action. A reusable
certifycomposite action (.github/actions/certify) lets CI block a release that fails its policy. (#13) - Evaluation import.
cloakpipe eval importturns existing test and eval results into evidence for certification: JUnit XML and native JSON (#13), Braintrust experiments and Langfuse dataset runs with a configurable--pass-threshold(#15). Malformed, duplicate or conflicting input is rejected rather than guessed. - Langfuse experiments import.
cloakpipe eval import --langfuse-experiment FILE --langfuse-experiment-items FILEreads the Langfuse experiments API, which replaces dataset runs, with cursor pagination, item-count and duplicate checks, andtools/fetch_langfuse_experiment.shto download every page. (#20) - Two-way boundary certification. A certification policy’s optional
rules.boundarystops a release passing authorization by refusing everything: cases labelledexpect: allow|deny(JUnit propertycloakpipe.expect, native JSONexpect, Braintrust/Langfuse metadatacloakpipe.expect) are scored both ways in every run that covers a listed suite (each run on its own, never pooled), and the release is blocked withunder_blocking,over_refusalorboundary_incomplete. Enabling the rule requires labelled runs. Policies and runs without these fields keep their hashes. Seedocs/CERTIFICATION.md#two-way-boundary. - MCP tool gate.
cloakpipe mcp-proxy --manifest ... --certification ...only forwards atools/callwhen the tool is declared in the release manifest and the release’s certification verifies at the moment of the call (trusted signer, not revoked, unexpired, right environment). Refused calls never reach the tool, return JSON-RPC error-32001and are recorded in the ledger;--gate warnforwards and flags instead. Input the gate cannot read is refused. (#14) - Transparent MCP interceptor.
cloakpipe mcp-proxy --upstream "<cmd>"sits between an agent and an MCP server, pseudonymizes PII in tool-call arguments and rehydrates tokens in tool results, so the tool never sees raw PII. (27889ca) - Evidence ledger and standalone verifier. A hash-chained, Ed25519-signed
evidence ledger that never stores PII, the standalone
cloakpipe-verifyCLI, Merkle inclusion proofs, signed auditor manifests and the CloakLeak PII-leak benchmark. (#8) The MCP server now records a no-PII ledger hop for each masking call whenCLOAKPIPE_LEDGER_DBis set. (9105613) - Real external anchoring.
cloakpipe anchor <bundle>seals a ledger export and anchors it at an RFC 3161 timestamp authority and Sigstore Rekor.cloakpipe-verify anchors|all --tsa-root ... --rekor-key ...checks both fully offline and fails closed on missing trust inputs, back-dating and downgraded bundles. Seedocs/ANCHORING.md. (#16) - Release audit packs.
cloakpipe release audit-packassembles one signed pack per release (manifest, eval runs, certification, governance events and the release-bound ledger slice), andcloakpipe-verify release-packverifies it offline with separate trust lists per role. It also rejects a re-signed false history, such as a promotion before certification. Seedocs/AUDIT_PACK.md. (#17) - Anthropic Messages API in the proxy.
/v1/messages(and the/v1/anthropic/messagesalias) pseudonymize requests to Anthropic and rehydrate responses, including streamed text deltas. (#11) - Nemotron-v2 PII NER backend, opt-in alongside the existing backends. (129fa8f)
- CloakPipe Cloud reporting. A self-hosted proxy with a
[cloud]config section sends heartbeats and no-PII request telemetry to CloakPipe Cloud. (8d03fd4, 56059ea) docker-compose.ymlfor one-command self-hosting. (f0fb7e4)SECURITY.mdwith the vulnerability reporting process. (#18)
Changed
- Breaking (library):
cloakpipe_mcp::ToolGate::checktakes the call’s raw arguments (check(tool, arguments, now)), andDenialhas new variants.cloakpipe mcp-proxygate configuration errors now exit with the documented codes (2 usage, 1 invalid input) instead of 1. - Breaking: format identifiers moved from the legacy
cloakpipe.devnamespace tocloakpipe.co(for exampleapiVersion: cloakpipe.co/v1alpha1, hash and signing domains, in-toto predicate types and the schema$id). Writers now emitcloakpipe.co/.... Readers and verifiers still accept legacycloakpipe.dev/v1alpha1objects, and every hash and signature issued before the move stays valid. Because theapiVersionand hash domain are part of the release hash, a manifest written in the new namespace has a different release hash than the same manifest in the legacy namespace; update any pinned hashes when you migrate a manifest. (#19) - Evidence bundles are now v4: the signed manifest commits to the chain tip, so a
substituted chain of the same length no longer verifies, and
cloakpipe-verify all --trust-keypins the signer. v3 bundles still verify. (#13) - README rewritten around Evaluate, Certify, Enforce, Prove, with every quick-start
command verified against
main;CONTRIBUTING.mdrefreshed. (#18)
Deprecated
- Langfuse dataset-run import (
--langfuse-run/--langfuse-scores). Langfuse removes those endpoints on Langfuse Cloud on 2026-11-16 (self-hosted: v4); use--langfuse-experimentinstead. (#20)
Removed
- README claims that could not be backed by the code: benchmark, latency and F1
tables, the competitor comparison, Cloud pricing tiers, the crates.io and
Docker Hub badges, and the list of
CLOAKPIPE_*environment variables (most are not read by the CLI). (#18)
Fixed
- Streaming rehydration no longer leaks pseudo-tokens that arrive split across SSE chunks, and a token at the very end of a stream is no longer dropped. Fixes #3. (1e2ea69)
0.10.0 - 2026-06-04
Added
- Multi-stage
Dockerfileand a container config that listens on0.0.0.0:8900and stores state under/data. (#5) - Release workflow that publishes
ghcr.io/rohansx/cloakpipeon each version tag. (#7) - Ready-to-use compliance policy configs:
dpdp,gdpr,hipaa,pci-dssandminimal(TOML). (#5) Cargo.lockis committed for reproducible builds. (#5)
Fixed
- Python SDK health check uses the proxy’s real
/healthroute and default port8900. (#5) - Documentation now matches the binary: real CLI subcommands, a working
build-from-source quick start, the default
127.0.0.1:8900listen address, and the MIT license (previously misstated as Apache-2.0). (#4) - CI is green again (clippy fixes). (#5, #6)
0.9.0 - 2026-03-30
Added
- DistilBERT-PII NER backend (33 entity types, runs on any CPU).
- nvidia/gliner-PII sidecar support.
- Expanded regex detection patterns.
0.8.0 - 2026-03-23
Added
- Format-preserving pseudonymization: phone numbers, emails, Aadhaar and PAN are replaced with fakes of the same format.
- Response scanning: LLM responses are scanned for PII leakage and redacted.
cloakpipe scanto check files and directories for PII before indexing them into a vector database.- LangChain and LlamaIndex packages with drop-in
ChatCloakPipeandCloakPipeLLMwrappers. - Batch detect API in CloakPipe Cloud (
POST /api/detect/batch, up to 100 texts). - Compliance policy files for DPDP 2023, GDPR, HIPAA and PCI-DSS.
0.7.0 - 2026-03-11
Added
- Context-aware pseudonymization: session tracking with coreference resolution
(pronouns, abbreviations, possessives), sensitivity escalation across
sessions, CLI session commands and an MCP
session_contexttool. - GLiNER zero-shot NER backend (
backend = "gliner"): define entity types in plain English, no training, pure ONNX Runtime. - Detection for SSN, Aadhaar, PAN, IPv4, general URLs, natural-language dates,
sk-proj/sk-live/github_patsecrets and INR/USD/EUR amounts. - PII benchmark harness (
cargo run -p cloakpipe-core --example pii_benchmark). - Admin dashboard with privacy chat, detection feed and compliance views.
Fixed
- The phone-number pattern no longer matches IP addresses, years or port numbers.
0.6.0 - 2026-03-09
Added
- Fuzzy entity resolution (Jaro-Winkler similarity, prefix matching and user-defined alias groups), gated by category so a person and a place with the same name are never merged. Works inside the vault with no changes to the detection pipeline.
0.5.0 - 2026-03-09
Added
- Industry profiles (
general,legal,healthcare,fintech) with pre-tuned detection settings. - MCP server with
pseudonymize,rehydrate,detect,vault_statsandconfiguretools.
0.4.0 - 2026-03-06
Added
- ADCPE vector encryption: an orthogonal transform for embedding vectors that preserves cosine similarity, with encrypt/decrypt CLI commands.
0.3.0 - 2026-03-06
Added
- SQLite vault and audit backends with per-value AES-256-GCM encryption.
- ONNX BERT-based NER behind the
nerfeature flag. - Multi-user token scoping.
0.2.0 - 2026-03-06
Added
- CloakTree: vectorless, LLM-driven retrieval for structured documents (PDF and Markdown), with parser, tree indexer, search and CLI subcommands.
0.1.0 - 2026-03-06
Added
- First release: privacy middleware for LLM and RAG pipelines.
Generated from CHANGELOG.md in the open-source repository, the single source of truth for releases.