PoS Connect 0.1.2 — one plugin for every agent
Jerzy Skiba · neonai.shop · Proof-of-Silence™
PoS Connect is a client plugin that puts an AI agent tool behind a Proof-of-Silence gate. One core, thin adapters:
| Where your agent runs | How to connect |
|---|---|
| Any Python function | @pos_guard(client, "send_email") |
| LangChain | pos_connect.adapters.langchain.guard_tools(tools, client) |
| CrewAI | pos_connect.adapters.crewai.guard_tools(tools, client) |
| OpenAI Agents SDK | pos_connect.adapters.openai_agents.guard_tools(tools, client) |
| Any MCP client (Claude, Cursor, …) | pos-mcp-proxy --gate URL -- <mcp server command> |
The plugin talks to your gate only over HTTP (CONTRACT.md). The engine
is not in this repository. This plugin alone is not a Proof-of-Silence
gate, signs nothing, and does not by itself authorise any action. To get a
signed decision record you need a paid Proof-of-Silence gate from
neonai.shop. Wrapped tools fail closed if no gate is
reachable. testgate.py is a local test stub only — it is not
Proof-of-Silence and must not be used as a production gate.
This software was adversarially tested by the author and QA-tested by other AI models; no independent professional security audit yet.
Licence of this plugin: Apache License 2.0 (see LICENSE and NOTICE).
The Proof-of-Silence engine and gate are not included and are not Apache-2.0.
Quick start
from pos_connect import GateClient, evidence_hash, pos_guard
client = GateClient("https://gate.example.com", agent="sales-agent") # token: env POS_GATE_TOKEN
@pos_guard(client, "send_email", evidence=lambda p: [evidence_hash(ticket_text)])
def send_email(to: str, body: str): ...
Only ACT_NOW runs the tool. WAIT, SILENCE, REJECT, timeouts, errors and any malformed
or mismatched gate answer block it (fail-closed). Adapters return a short "BLOCKED" message
to the model instead of running the tool.
MCP (e.g. Claude Desktop config):
{ "command": "pos-mcp-proxy",
"args": ["--gate", "https://gate.example.com", "--agent", "desktop", "--", "npx", "your-mcp-server"] }
Evidence: the real gate needs at least one piece of evidence per action (by hash; the
content stays with you). No evidence → WAIT EVIDENCE_MISSING. A grant authorises exactly
the parameters it names.
Protections
- Secret-looking keys (
token,password,api_key, …) redacted at every depth before sending. request_idand recomputedparams_hashmust match; an allow withoutrecord_hashis rejected.- HTTPS required (plain HTTP only for localhost).
- MCP proxy: duplicate JSON keys, obfuscated method names, tool calls in batches and
tools/callnotifications are never forwarded.
Limits (honest)
- The client does not verify signatures; verify gate records with the PoS offline verifier.
- Secrets inside free-text values (e.g. an email body) are not detected.
testgate.pyis a test stub only. It is not Proof-of-Silence and signs nothing.- MCP proxy sends no evidence yet, so with a real 1.1.2 gate tool calls end in
WAIT. - Your gate must speak
pos-connect/1; if your current/v1/gatediffers, add a thin adapter in front of the gate (that adapter is not part of this repository).
Using this plugin does not by itself make any system meet any law.
Examples
Short scripts in examples/:
01_pos_guard.py—@pos_guarddecorator02_gate_client.py—GateClientand fail-closed handling03_langchain.py— LangChain adapter (pip install "pos-connect[langchain]")04_crewai.py— CrewAI adapter (pip install "pos-connect[crewai]")05_openai_agents.py— OpenAI Agents SDK adapter (pip install "pos-connect[openai-agents]")06_mcp_proxy.py— MCP proxy (pos-mcp-proxy)07_testgate_local.py— local demo with the test stub (NOT a Proof-of-Silence gate)
For a signed decision record you need a paid Proof-of-Silence gate from neonai.shop.
The first six examples use POS_GATE_URL. 07_testgate_local.py runs on 127.0.0.1
without a real gate, and is a stub only.
Tests: pip install -e ".[dev]" && pytest runs the core and MCP tests with the
standard library plus pytest. Adapter tests need the optional extras
langchain, crewai and openai-agents; without them those tests are skipped.
Metadata
Release files for pos-connect 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pos_connect-0.1.5.tar.gz | 27.3 kB | Without provenance | Details for pos_connect-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pos_connect-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for pos_connect-0.1.5-py3-none-any.whl |
Total release size: 47.5 kB
Release files / pos_connect-0.1.5.tar.gz
| Download URL | pos_connect-0.1.5.tar.gz |
|---|---|
| Size | 27.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ac90c613d0f9bd59a6f0615967b9f036cda45767b6174743bf108da4cacc06f
|
|
BLAKE2b-256 checksum How to use checksums |
da0cb9f6d1016b0b45256e4c3b1fa335775d508728db16c501b0dd4a34a79a2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.0
|
Release files / pos_connect-0.1.5-py3-none-any.whl
| Download URL | pos_connect-0.1.5-py3-none-any.whl |
|---|---|
| Size | 20.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f97e28f17a66787ed13a885b67e4f0e3dd2fc819376facc552bbc19a5fe90bd5
|
|
BLAKE2b-256 checksum How to use checksums |
19538f4d6ec462c58b3c2dc0d084c7bcc2d040ee671ef24b5d3b0ef5b5dd0570
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.0
|
Security for pos-connect 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.