mcpField
Q
Quesen Deterministic Agent Decision Layer

Quesen Deterministic Agent Decision Layer

Remote
github.com/ShxnqueSecurity2Updated 2d ago
Repository

About Quesen Deterministic Agent Decision Layer

Quesen is a deterministic decision and receipt service for autonomous agents, turning typed security context into verdicts, reason codes, and replayable receipts. It uses no model inference in scoring, for integrations that need auditable action gates; this repository contains documentation and examples, not the engine source.

Key features

  1. 01Deterministic action verdicts
  2. 02Risk scores and reason codes
  3. 03Replayable, independently verifiable receipts
  4. 04Python and JavaScript SDKs
  5. 05LangChain, CrewAI, and AutoGen wrappers

Use cases

  1. 01Gate high-risk actions before agent execution
  2. 02Reproduce and audit past decision receipts
  3. 03Integrate the decision service through SDKs or frameworks

MCP support

The production endpoint exposes five tools to MCP clients over Streamable HTTP. Client configuration instructions are documented.

Configuration

Remote servers need no local install. Pick your client, then copy the config or install in one click.

Endpointhttps://web-production-3df26.up.railway.app/mcp
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.

All endpoints
Streamable HTTPhttps://web-production-3df26.up.railway.app/mcpAuth required

Tools

Details

From the project README

Quesen — Developer Portal

MCP compatible MCP Registry Smithery ASP version Engine version PyPI npm Verified receipts License X

Quesen is the deterministic decision-and-receipt core for agent actions — a typed security context in, a PASS / REVIEW / BLOCK / SKIP verdict out, with machine reason codes and a receipt you can re-run byte-for-byte and prove. No model inference is in the scoring path, so the same input always yields the same verdict. It is built to sit behind injection detection, on top of agent identity, and to bill per decision (ASP/402).

Unlike log-based governance layers whose audit trail is their word, kept by them, a Quesen receipt is independently verifiable by the caller — recomputable, and (engine signing enabled) Ed25519-signed. See docs/architecture-gap-closers.md and client-side enforcement + receipt verification in quesen-sdk ≥ 0.5.0. Production engine signing is live — verify a real signed receipt yourself in docs/verify-live-receipt.md (no trust in Senueren required).

This repository is the public developer portal. It contains only documentation, integration guides, examples, registry manifests, and reference links. No engine source code lives here. Quesen's engine implementation is sovereign, non-public infrastructure.

Live production

SurfaceURL
REST APIhttps://api.senueren.co.za
MCP (Streamable HTTP)https://api.senueren.co.za/mcp
OpenAPI 3.1https://api.senueren.co.za/openapi.json
Swagger UIhttps://api.senueren.co.za/docs
Healthhttps://api.senueren.co.za/health
Versionhttps://api.senueren.co.za/version

Quick start (30 seconds)

Fastest path — no install, no signup, no card. Self-serve a free sandbox key and run a real deterministic decision against production. Full guide: docs/QUICKSTART.md · try it in the browser at senueren.co.za/try.

# 1 · get a free sandbox key
curl -X POST https://api.senueren.co.za/sandbox/keys

# 2 · evaluate an action (use the api_key from step 1)
curl -X POST https://api.senueren.co.za/validate \
  -H "X-API-Key: sk_sandbox_..." \
  -H "Content-Type: application/json" \
  -d '{"domain_age_days": 1, "engagement_ratio": 0.95, "scam_keyword_count": 4}'
# -> {"decision":"SKIP","risk_score":1.0,"conflict_triggers":[...],"input_snapshot_hash":"..."}
SDKs

Published. The SDKs are live on PyPI and npm (quesen-sdk 0.5.0 / npm 0.5.0; quesen-langchain, quesen-crewai, quesen-autogen 0.3.0). The base_url + X-API-Key (including the sandbox key above) are identical across all SDKs.

Python
pip install quesen-sdk   # PyPI: https://pypi.org/project/quesen-sdk/
from quesen_sdk import QuesenClient

q = QuesenClient(base_url="https://api.senueren.co.za",
                 api_key="YOUR_KEY")   # a sandbox key from /sandbox/keys works here

verdict = q.validate(domain_age_days=1, engagement_ratio=0.95, scam_keyword_count=4)
if verdict.decision == "SKIP":
    return  # respect the deterministic answer
JavaScript / TypeScript
npm i quesen-sdk   # npm: https://www.npmjs.com/package/quesen-sdk
import { QuesenClient } from "quesen-sdk";

const q = new QuesenClient({
  baseUrl: "https://api.senueren.co.za",
  apiKey: process.env.QUESEN_API_KEY,
});

const verdict = await q.validate({
  domain_age_days: 1,
  engagement_ratio: 0.95,
  scam_keyword_count: 4,
});
Framework wrappers
FrameworkPackageRepository
LangChain / LangGraphquesen-langchainShxnque/quesen-langchain
CrewAIquesen-crewaiShxnque/quesen-crewai
AutoGen v0.4+quesen-autogenShxnque/quesen-autogen
Python (core)quesen-sdkShxnque/quesen-sdk-py
JavaScript / TypeScriptquesen-sdk (npm)Shxnque/quesen-sdk-js
MCP (Claude Desktop, Cursor, Windsurf, etc.)

Quesen exposes five MCP tools over the production endpoint. See docs/mcp.md for the client-config snippet.


Why Quesen?

Autonomous agents make more decisions per second than any human oversight can audit. When those decisions involve capital — launching a token, opening a position, executing a trade, greenlighting a smart-contract deployment — the marginal cost of a bad decision is fatal.

Quesen answers exactly one question:

Should the calling agent proceed with this action?

Inputs are typed. Outputs are one of PROCEED, REVIEW, SKIP, always with a risk_score in [0.0, 1.0], a confidence in [0.0, 1.0], and the exact conflict rules that fired. Same inputs → same output. Every time. Every response embeds engine_version, weights, and thresholds. Fully reproducible. Fully auditable.

What Quesen is not
  • Not an LLM wrapper. No prompts. No probabilities.
  • Not a chatbot. It is A2A infrastructure.
  • Not a KYC/identity system. It scores risk, not identity.
  • Not chain-locked / framework-locked / LLM-locked. Ecosystem-neutral by design.

Documentation

Independent verification

Published receipts are independently reproducible from this repo alone — no hosted service or private engine required:

python3 verify/verify_receipts.py          # offline, stdlib-only
python3 verify/verify_receipts.py --live   # also cross-check the live engine

All six UCP #724 vectors show a byte-for-byte three-way match between the published fixture, the public reference, and the live engine (verify/README.md, verify/three_way_match.json). That doc also states honestly where independent verification stops today (the production ruleset commit_sha is not publicly resolvable; receipts are not yet cryptographically issuer-signed).

The egress/authority decision subset — the part security integrators gate on — is now independently verdict-replayable offline too, with zero network:

python3 evaluation/conformance/verify_conformance.py   # offline; recomputes decision+reasons+hash

Six cases (OWASP-agentic + LoopX prepared-Effect PASS/REVIEW/BLOCK) recompute byte-for-byte from the public reference evaluator, plus a prod-1→prod-2 integrity-flip check — no signup, key, or hosted call (evaluation/conformance/README.md).

Tutorials

Live status

  • Production: https://api.senueren.co.za
  • Health check: GET /health returns {"status":"ok","engine_version":"1.10.0"}
  • Version snapshot: GET /version returns full engine + billing + on-chain flags (ASP/1.0)
  • Uptime and version widget on senueren.co.za/quesen

Registry presence

Quesen is discoverable via Model Context Protocol registries and the standard agent-directory ecosystem. See docs/registries.md for the current state of each submission. Manifests:


Contributing

This is a documentation-only repository. Engine PRs cannot be accepted here. If you have integration-specific feedback, please open an issue or read CONTRIBUTING.md.

SDK contributions belong in the corresponding public SDK repository:

Security issues: please read SECURITY.md before filing publicly.


Community

Follow build updates, agent-governance notes, and Quesen releases on X: @SenuerenGroup · web: senueren.co.za · senueren.co.za/quesen.

If a Quesen integration or a merged contribution helped your project, a follow or a note at @SenuerenGroup is always appreciated.


License

MIT. See LICENSE.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.