Skip to main content

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_id and recomputed params_hash must match; an allow without record_hash is rejected.
  • HTTPS required (plain HTTP only for localhost).
  • MCP proxy: duplicate JSON keys, obfuscated method names, tool calls in batches and tools/call notifications 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.py is 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/gate differs, 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_guard decorator
  • 02_gate_client.py — GateClient and fail-closed handling
  • 03_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.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pos-connect 0.1.3
File Size Uploaded Provenance Actions
pos_connect-0.1.3.tar.gz 27.0 kB Without provenance Details for pos_connect-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pos-connect 0.1.3
File Interpreter ABI Platform Actions
pos_connect-0.1.3-py3-none-any.whl Python 3 none any Details for pos_connect-0.1.3-py3-none-any.whl

Total release size: 47.1 kB

Release files / pos_connect-0.1.3.tar.gz

Download URL pos_connect-0.1.3.tar.gz
Size 27.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8903c4aacea61ecaebf907e736bf254cab31ced330ae173f4f104976b86b356a
BLAKE2b-256 checksum
How to use checksums
bed7e8f1c5971f9a83073d683e9f23bff7334ab2cf7c435f380864b9d4b0eda3
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.3-py3-none-any.whl

Download URL pos_connect-0.1.3-py3-none-any.whl
Size 20.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7909de377623422307e254e788c13664967ee71f8968cd8437dea77d01f4f578
BLAKE2b-256 checksum
How to use checksums
a3c283f6236e8b844bf3786085526356681fc7f67fdd665d1dd5800f58baf873
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.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page