@wheelerhubbell/whp-standing-client
Fail-closed epistemic standing middleware for autonomous AI agents.
Governed by the Authority Conservation Principle: $A(c) \le P(c)$ (Authority cannot exceed provenance).
Standing detects and stops Coherent Substitution—when an AI agent silently replaces the assigned task with an adjacent one ($q \to q^*$), reasons coherently about the replacement, and executes unauthorized state mutations.
📚 Case Studies & Theory
- Coherent Substitution (v1.1): Theoretical formulation of proposition integrity and why systems fail before their reasoning becomes wrong.
- Mata v. Avianca Epistemic Autopsy: Controlled forensic breakdown showing how an agent citing 100% verified sources still fails by answering the wrong question ($Q_0 \to Q_1$).
⚡ 1-Line Middleware Integration
Install the package:
Place guardAction immediately before tool execution:
If an agent attempts a state-changing operation (file deletion, database write, API mutation) without attributable upstream authorization or provenance, guardAction throws a StandingViolationError before the boundary is crossed.
🔍 Observability: evaluateStanding
For inspection without throwing:
Diagnostic Decision Object
🛡️ Core Semantics
- Fail-Closed by Default: Any state-changing action missing valid provenance or authority is rejected.
- Authority Windows: Bounded by
valid_until timestamps.
- Loop & Recursion Bounds: Halts unbounded agent loops (
executionCount > maxExecutionCount).
- Zero Overhead for Reads: Passive read operations execute without blocking.
🌐 Verifiable Network Verification
The live service has a plain front door for ordinary x402 agents: POST /v1/evaluate with subject, claim and optional provenance, priced at 1.00 USDC on Base (x402 v2). It returns a signed evaluation record. That record is not a sealed Standing Mark. Marks are issued through POST /v1/evaluations, which takes signed submissions per the published contract.
Example using the official x402 client (requires your own funded wallet and spending limits; not yet verified end to end against the live service):
Direct Autonomous Client (StandingClient)
The client provides built-in autonomous wallet signing and settlement over Base USDC (x402-v2):
License
MIT © Wheeler Hubbell Publishing