Script Master Labs · The SML Stack

VAPL

Verifiable Agent Provenance Layer. Every API response is a cryptographically signed credential. Know exactly who the agent is, what it did, and whether you can trust it — without a registry lookup, without custody, without intermediaries.

v1.0.0 · live
W3C VC 2.0 · Ed25519
DID:key · zero custody
eddsa-vapl-2024
01What VAPL is

VAPL is the provenance and reputation layer for autonomous AI agents in the SML stack. Every service — SqueezeOS, Crawltoll, Ghost Layer — issues a W3C Verifiable Credential 2.0 on every successful API response. The credential proves: who issued it (a persistent DID:key soul), who the agent is, what action was taken, and when. The proof is an Ed25519 signature over canonical JSON. No oracle, no database — offline-verifiable in one Ed25519 verify call.

Reputation is computed from those VCs: accuracy (40%), reliability with 30-day half-life decay (30%), contribution volume on a log scale (20%), and tenure (10%). Reputation grows automatically as the agent interacts with the stack and its signals prove accurate. The loop is self-sustaining.

02Why it matters
03How it works — the VC on every response
# Every 2xx API response carries three headers:
X-VAPL-VC: <base64url(W3C InteractionCredential)>
X-VAPL-Issuer: did:key:z6Mk... # service's persistent DID
X-VAPL-VC-ID: urn:vapl:vc:z6Mk...:1750000000:nonce

# The VC body (after base64url decode):
{
"type": ["VerifiableCredential", "InteractionCredential"],
"issuer": "did:key:z6Mk...",
"credentialSubject": {
"interaction": { "type": "CouncilVerdict", "outcome": "success", ... }
},
"proof": { "cryptosuite": "eddsa-vapl-2024", "proofValue": "..." }
}
04Reputation tiers
TierScore thresholdUnlocks
Elite≥ 0.90Priority routing, lower fees, top signal access
Premium≥ 0.70Full scan access, marketplace listing
Standard≥ 0.40All free endpoints, VC issuance
Basic0.00 +Discovery, rate-limited free tier

Score = 0.40 × accuracy + 0.30 × reliability + 0.20 × log₁₀(contributions+1)/5 + 0.10 × ln(tenure_days+1)/ln(366). Reliability uses a 30-day half-life exponential decay — recent signals count more than old ones. Scores update on every registry submission.

05The Beast loop — self-sustaining

The Beast agent runs as a GitHub Actions cron (5× weekday at market open, mid-day, and close). Each run: fetches live SqueezeOS signals → pays RLUSD via XRPL if premium access is needed → issues InteractionVC + AccuracyVC + ContributionVC per interaction → submits all VCs to the VAPL registry → collects reputation. The agent's accuracy record grows. Its tier improves. Its signals get sharper. The loop never needs human intervention.

08:45 ET fetch signal_preview(IWM) # free
08:45 ET pay 0.10 RLUSD on XRPL # if council needed
08:45 ET receive X-VAPL-VC header # council verdict + proof
08:45 ET issue AccuracyVC # link prediction → outcome
08:45 ET POST /register to registry # score updates +Δ
reputation compounds · tier improves · loop repeats
06Install & integrate
# Python (SqueezeOS / Ghost Layer)
$ pip install cryptography
# copy vapl/ module into your Flask/FastAPI app
from vapl import get_soul, issue_interaction_vc
install_vapl_middleware(app) # adds X-VAPL-VC on every 2xx

# Node.js (Crawltoll)
const vapl = require("./vapl.js") # zero npm deps, built-in crypto only
const vc = vapl.issueInteractionVc(soul, agentDid, type, resource)
res.setHeader("X-VAPL-VC", Buffer.from(JSON.stringify(vc)).toString("base64url"))

# Discovery
GET /.well-known/vapl.json # on every SML service
07Live discovery endpoints

SqueezeOS

Market Intelligence

Council verdicts, squeeze scanner, options flow — every response carries a signed InteractionCredential.

/.well-known/vapl.json →

Crawltoll

Data Paywall

x402 data feeds issue VCs on successful paid fetch. Prove which agent fetched which feed at what time.

/.well-known/vapl.json →

Ghost Layer

Ephemeral Gateway

Gateway proxies emit GhostGatewayForward VCs on every successful token-validated request.

/.well-known/vapl.json →

VAPL Registry

Reputation Engine

Submit VCs, query reputation scores, aggregate provenance across the full SML agent fleet.

Health check →

08The rest of the stack

Every response is a proof.

VAPL is open-source, MIT licensed, and live across the SML stack. Drop in the middleware, get signed credentials on every API response, and let reputation build itself.