@valiron/sdk 1.3.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,17 @@
1
1
  # Quickstart
2
2
 
3
- > Estimated integration time: under 2 minutes.
3
+ > **Request verification:** Examples using `verifyAgentRequest` assume an application-owned verifier imported from your own module, not an SDK export. It must verify a fresh signature against the claimed identity, bind method, full URL and body, and atomically reject replayed nonces. See the [request-proof upgrade guide](https://www.valiron.co/docs/agents/SECURITY-UPGRADE-2026-10-31.md). Missing or invalid proofs return 401 before profile-cache lookup.
4
+
5
+ Configure identity verification before opening a protected endpoint. Existing integrations should follow the [request-proof upgrade guide](./SECURITY-UPGRADE-2026-10-31.md).
6
+
7
+ This quickstart documents the hardened agent identity/trust SDK contract in this source tree. Verify your installed npm version supports `verifyRequest`, `signRequest` and provider request proofs v2 before upgrading a live integration; source changes do not publish a package. For ordinary website crawlers, see [controlled crawler access](./CRAWLER-PROTECTION.md): a separate integration package with a standalone HTTP gateway for other website stacks, in-process Node/Nuxt adapters, shared budgets and a private language-neutral work API. Node.js is required for the gateway service, not for the website behind it. Query-level limits require operation integration; Python/SQLite and Node/Nuxt/MariaDB are tested. It is not installed by `npm install @valiron/sdk` and does not require crawler agent registration.
8
+
9
+ SDK 0.2.0+ requires a Free/Pro/Enterprise operator API key and account-bound activation via `activateCrawlerProtection()` before constructing its runtime. Activation uses a short-lived local lease, refreshed in the background. Each protected HTTP request requires hosted monthly quota admission; database operations are not counted again. See the crawler guide for revocation, outage and recovery behavior.
4
10
 
5
11
  ## Prerequisites
6
12
 
7
13
  1. **Create an account** with email/password, Google, or GitHub on the [Operator Dashboard](./DASHBOARD.md) at [valiron.co/dashboard](https://www.valiron.co/dashboard)
8
- 2. **Complete the guided setup** — every sign-up method enters the same resumable onboarding flow
14
+ 2. **Verify your email for password signup**, then **complete the guided setup** — every sign-up method enters the same resumable onboarding flow
9
15
  3. **Copy your API key** when it is shown; returning incomplete accounts can generate a dedicated setup key
10
16
  4. Add the SDK middleware below to the backend routes agents call. Choose registered, key-based, or ANS/provider-backed identity in the wizard.
11
17
 
@@ -25,13 +31,14 @@ npm install @valiron/sdk
25
31
  import { ValironSDK } from "@valiron/sdk";
26
32
 
27
33
  const valiron = new ValironSDK({
34
+ apiKey: process.env.VALIRON_API_KEY,
28
35
  endpoint: "https://valiron-edge-proxy.onrender.com",
29
36
  chain: "ethereum", // or: monad, arbitrum, base, polygon, solana, etc.
30
37
  timeout: 5000,
31
38
  });
32
39
  ```
33
40
 
34
- No API key is required for read operations.
41
+ Get an operator API key from https://www.valiron.co/dashboard and configure it server-side for profile reads, trust gates, and sandbox runs. Pro is required only for Social Graph (Icebreaker); other capabilities are Free within usage limits.
35
42
 
36
43
  > **Solana agents:** Use `chain: "solana"` and pass the agent's Metaplex Core asset
37
44
  > pubkey (base-58) as the agent ID instead of a numeric token ID.
@@ -78,7 +85,6 @@ For an on-chain agent:
78
85
  const profile = await valiron.getAgentProfile("INCOMING_AGENT_ID");
79
86
 
80
87
  console.log(profile.routing.finalRoute); // "prod"
81
- console.log(profile.routing.meetsThreshold); // true
82
88
  console.log(profile.onchainReputation.averageScore); // 92.5
83
89
  ```
84
90
 
@@ -99,17 +105,18 @@ The fastest way to protect your API — add Valiron as Express middleware:
99
105
  ```typescript
100
106
  import { createValironGate } from "@valiron/sdk";
101
107
 
102
- app.use("/api/paid", createValironGate({ sdk: valiron }));
108
+ app.use("/api/paid", createValironGate({ verifyRequest: verifyAgentRequest, sdk: valiron }));
103
109
  ```
104
110
 
105
- This checks `x-agent-id` first for on-chain agents, then falls back to `x-agent-address` for key-based agents. It returns 403 for untrusted agents, is safe with Express 4 (async errors are handled), and includes a 30-second client-side cache for x402 compatibility.
111
+ The gate identifies the claimed subject from `x-agent-id` or `x-agent-address`, then calls your verifier before every decision, including cache hits. Missing/invalid proofs return 401; denied or pending evaluations return 403; unavailable evaluation returns 503. The 30-second cache stores reputation decisions, never proof authorization.
106
112
 
107
- Pro operators can include wallet history in an endpoint policy:
113
+ Free and paid operators can include wallet history in an endpoint policy:
108
114
 
109
115
  ```typescript
110
116
  const valiron = new ValironSDK({ apiKey: process.env.VALIRON_API_KEY });
111
117
 
112
118
  app.use("/api/high-trust", createValironGate({
119
+ verifyRequest: verifyAgentRequest,
113
120
  sdk: valiron,
114
121
  trustSignals: ["8004", "sandbox", "wallet"],
115
122
  minScore: 80,
@@ -123,20 +130,22 @@ Or use `getAgentProfile()` directly for on-chain custom logic:
123
130
  ```typescript
124
131
  const profile = await valiron.getAgentProfile("INCOMING_AGENT_ID");
125
132
  const { finalRoute, decision } = profile.routing;
126
- if (finalRoute === "prod" || finalRoute === "prod_throttled") {
133
+ if (await verifyAgentRequest(request, "INCOMING_AGENT_ID") &&
134
+ (finalRoute === "prod" || finalRoute === "prod_throttled")) {
127
135
  // Serve the request — agent is trusted
128
136
  } else {
129
137
  // Block — agent is untrusted (tier: profile.localReputation?.tier)
130
138
  }
131
139
  ```
132
140
 
133
- > **Note**: The `gate()` method calls a protected endpoint that requires agent challenge-response auth. Use the middleware (`createValironGate`) or `getAgentProfile()` for server-side trust checks.
141
+ > **Hosted calls:** `gate()`, `proxy()`, `verifyWorldId()` and `createSelfSession()` need operator credentials plus a fresh owner-signed request. Configure `signRequest` as described in the [upgrade guide](./SECURITY-UPGRADE-2026-10-31.md). Key-registration challenges or legacy agent sessions do not replace that proof. Profile reads are authenticated evidence lookups, not caller authentication.
134
142
 
135
143
  For key-based agents, use `getKeyAgentProfile()` directly:
136
144
 
137
145
  ```typescript
138
146
  const profile = await valiron.getKeyAgentProfile("0xAgentAddress");
139
- if (profile.verified && (profile.score ?? 0) >= 65) {
147
+ if (await verifyAgentRequest(request, "0xAgentAddress") &&
148
+ profile.verified && (profile.score ?? 0) >= 65) {
140
149
  // Serve the request
141
150
  } else {
142
151
  // Block or ask the agent to complete https://www.valiron.co/auth.md
@@ -177,6 +186,7 @@ Get notified whenever Valiron evaluates an agent calling your API:
177
186
 
178
187
  ```bash
179
188
  curl -X POST https://valiron-edge-proxy.onrender.com/operator/webhooks/register \
189
+ -H "Authorization: Bearer $VALIRON_API_KEY" \
180
190
  -H "Content-Type: application/json" \
181
191
  -d '{"event": "evaluation_complete", "url": "https://your-endpoint.com/hooks/valiron"}'
182
192
  ```
@@ -194,28 +204,29 @@ Once your integration is live, use the [Operator Dashboard](./DASHBOARD.md) to:
194
204
 
195
205
  ```bash
196
206
  # Check an agent's trust profile
197
- curl https://valiron-edge-proxy.onrender.com/operator/agent/AGENT_ID
207
+ curl -H "Authorization: Bearer $VALIRON_API_KEY" https://valiron-edge-proxy.onrender.com/operator/agent/AGENT_ID
198
208
 
199
209
  # Check a key-based agent profile
200
- curl https://valiron-edge-proxy.onrender.com/operator/key/0x1234...abcd
210
+ curl -H "Authorization: Bearer $VALIRON_API_KEY" https://valiron-edge-proxy.onrender.com/operator/key/0x1234...abcd
201
211
 
202
212
  # Get a key-based identity challenge
203
213
  curl -X POST https://valiron-edge-proxy.onrender.com/operator/key/0x1234...abcd/challenge
204
214
 
205
215
  # Trigger sandbox evaluation
206
- curl -X POST https://valiron-edge-proxy.onrender.com/operator/trigger-sandbox/AGENT_ID
216
+ curl -X POST https://valiron-edge-proxy.onrender.com/operator/trigger-sandbox/AGENT_ID -H "Authorization: Bearer $VALIRON_API_KEY"
207
217
 
208
218
  # Trigger sandbox for key-based agent
209
- curl -X POST https://valiron-edge-proxy.onrender.com/operator/trigger-sandbox-key/0x1234...abcd
219
+ curl -X POST https://valiron-edge-proxy.onrender.com/operator/trigger-sandbox-key/0x1234...abcd -H "Authorization: Bearer $VALIRON_API_KEY"
210
220
 
211
221
  # Gate decision (allow/deny)
212
- curl -X POST https://valiron-edge-proxy.onrender.com/operator/gate/AGENT_ID
222
+ curl -H "Authorization: Bearer $VALIRON_API_KEY" -X POST https://valiron-edge-proxy.onrender.com/operator/gate/AGENT_ID
213
223
 
214
224
  # Behavioral snapshot hash
215
- curl https://valiron-edge-proxy.onrender.com/operator/agent/AGENT_ID/snapshot
225
+ curl -H "Authorization: Bearer $VALIRON_API_KEY" https://valiron-edge-proxy.onrender.com/operator/agent/AGENT_ID/snapshot
216
226
 
217
227
  # Register webhook
218
228
  curl -X POST https://valiron-edge-proxy.onrender.com/operator/webhooks/register \
229
+ -H "Authorization: Bearer $VALIRON_API_KEY" \
219
230
  -H "Content-Type: application/json" \
220
231
  -d '{"event": "evaluation_complete", "url": "https://your-endpoint.com/hooks"}'
221
232
  ```
@@ -225,7 +236,7 @@ curl -X POST https://valiron-edge-proxy.onrender.com/operator/webhooks/register
225
236
  Valiron middleware is the primary backend integration. API Scaffolding is a separate product for exposing an existing HTTPS API through a Valiron-hosted, agent-facing URL.
226
237
 
227
238
  1. Open [valiron.co/dashboard](https://www.valiron.co/dashboard).
228
- 2. Go to **Make API Agent-Ready**.
239
+ 2. Choose **API Scaffolding → Endpoints & testing**.
229
240
  3. Enter your public path, upstream API base URL, price, payment protocol, and optional trust settings.
230
241
  4. Distribute the generated wrapper URL to agent clients:
231
242
 
@@ -253,12 +264,12 @@ process.on("SIGTERM", async () => {
253
264
  ## What's next?
254
265
 
255
266
  - **[End-to-End Middleware Integration](./E2E-MIDDLEWARE-INTEGRATION.md)** — Choose identity, trust signals, and a downstream policy for a production integration
256
- - **[Proxy Gateway](./SDK-REFERENCE.md#proxy-gateway-pro)** — Forward requests through Valiron's edge proxy (Pro)
267
+ - **[Proxy Gateway](./SDK-REFERENCE.md#proxy-gateway)** — Forward requests through Valiron's edge proxy (Free)
257
268
  - **[API Scaffolding](./AGENT-READY-APIS.md)** — Create hosted x402/MPP wrappers for existing APIs
258
269
  - **[Key-Based Agents](./SDK-REFERENCE.md#key-based-agents)** — Support Web2 agents without on-chain identity
259
270
  - **[World ID](./SDK-REFERENCE.md#world-id-methods)** — Verify agent-human linkage
260
271
  - **[Self](./SDK-REFERENCE.md#self-methods)** — Create Self Enterprise sessions and verify eligible-human linkage
261
- - **[Wallet Intelligence](./TRUST-MODEL.md#wallet-intelligence)** — Add explainable wallet-history risk to Pro endpoint policies
272
+ - **[Wallet Intelligence](./TRUST-MODEL.md#wallet-intelligence)** — Add explainable wallet-history risk to endpoint policies on Free or paid accounts
262
273
  - **[Fastify / Next.js / Hono middleware](./SDK-REFERENCE.md#middleware)** — Framework-specific middleware
263
274
  - **[Plans & Limits](./SDK-REFERENCE.md#plans--limits)** — Free vs Pro feature comparison
264
275
 
@@ -274,6 +285,7 @@ Solana agents use a different registry ([QuantuLabs 8004-solana](https://8004.qn
274
285
  import { ValironSDK } from "@valiron/sdk";
275
286
 
276
287
  const valiron = new ValironSDK({
288
+ apiKey: process.env.VALIRON_API_KEY,
277
289
  endpoint: "https://valiron-edge-proxy.onrender.com",
278
290
  chain: "solana",
279
291
  });
@@ -299,7 +311,7 @@ console.log(profile.onchainReputation.solana?.trustTier); // "trusted"
299
311
  Solana agents support a liveness probe that pings their declared service endpoints:
300
312
 
301
313
  ```bash
302
- curl "https://valiron-edge-proxy.onrender.com/operator/agent/1226/liveness?chain=solana"
314
+ curl -H "Authorization: Bearer $VALIRON_API_KEY" "https://valiron-edge-proxy.onrender.com/operator/agent/1226/liveness?chain=solana"
303
315
  ```
304
316
 
305
317
  ### Step 4 — Gate decision (same as EVM)
@@ -315,20 +327,20 @@ if (gate.allow) {
315
327
 
316
328
  ```bash
317
329
  # Get agent profile (sequential ID)
318
- curl "https://valiron-edge-proxy.onrender.com/operator/agent/1226?chain=solana"
330
+ curl -H "Authorization: Bearer $VALIRON_API_KEY" "https://valiron-edge-proxy.onrender.com/operator/agent/1226?chain=solana"
319
331
 
320
332
  # Get agent profile (asset pubkey)
321
- curl "https://valiron-edge-proxy.onrender.com/operator/agent/DFkntsJ9aTCHkK88m6...?chain=solana"
333
+ curl -H "Authorization: Bearer $VALIRON_API_KEY" "https://valiron-edge-proxy.onrender.com/operator/agent/DFkntsJ9aTCHkK88m6...?chain=solana"
322
334
 
323
335
  # Resolve wallet to agent
324
- curl "https://valiron-edge-proxy.onrender.com/operator/resolve-wallet/VSAnVX4MQjEXreHc92iHxWuXPQZ1tjwiKccpFLCgLM9?chain=solana"
336
+ curl -H "Authorization: Bearer $VALIRON_API_KEY" "https://valiron-edge-proxy.onrender.com/operator/resolve-wallet/VSAnVX4MQjEXreHc92iHxWuXPQZ1tjwiKccpFLCgLM9?chain=solana"
325
337
 
326
338
  # Trigger sandbox
327
- curl -X POST "https://valiron-edge-proxy.onrender.com/operator/trigger-sandbox/1226?chain=solana"
339
+ curl -H "Authorization: Bearer $VALIRON_API_KEY" -X POST "https://valiron-edge-proxy.onrender.com/operator/trigger-sandbox/1226?chain=solana"
328
340
 
329
341
  # Trust gate
330
- curl -X POST "https://valiron-edge-proxy.onrender.com/operator/gate/1226?chain=solana"
342
+ curl -H "Authorization: Bearer $VALIRON_API_KEY" -X POST "https://valiron-edge-proxy.onrender.com/operator/gate/1226?chain=solana"
331
343
 
332
344
  # Liveness check
333
- curl "https://valiron-edge-proxy.onrender.com/operator/agent/1226/liveness?chain=solana"
345
+ curl -H "Authorization: Bearer $VALIRON_API_KEY" "https://valiron-edge-proxy.onrender.com/operator/agent/1226/liveness?chain=solana"
334
346
  ```
package/docs/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Valiron — Documentation
2
2
 
3
+ Social Graph (Icebreaker) is a Pro feature. Bot protection is included with Free. All other capabilities are included with Free: 10,000 agent requests/month and 10,000 bot protection requests/month, 3 registered endpoints, and 5 sandbox runs/day. Pro includes 100,000 requests per product/month. Enterprise: email founders@valiron.co. Operator authentication and tenant isolation apply on every plan.
4
+
5
+ Choose a product in the [documentation home](https://www.valiron.co/docs): [Crawler Protection](https://www.valiron.co/docs/crawler-protection), [Agent Access](https://www.valiron.co/docs/agent-access), or [API Scaffolding](https://www.valiron.co/docs/api-scaffolding). Each product has its own setup guide and navigation; accounts and billing are shared. The Markdown references below retain their existing URLs.
6
+
7
+
3
8
  > **Protect your API endpoints from bad or malicious AI agents.** This documentation covers how to integrate Valiron into your API to gate, score, and sandbox agents before they reach your infrastructure.
4
9
 
5
10
  ## What is Valiron?
@@ -14,7 +19,7 @@ Valiron also provides **API Scaffolding** as a separate product for organization
14
19
 
15
20
  | File | Purpose |
16
21
  |------|---------|
17
- | [QUICKSTART.md](./QUICKSTART.md) | Get started in under 2 minutes — install the SDK, gate your first endpoint |
22
+ | [QUICKSTART.md](./QUICKSTART.md) | Install the SDK, configure caller verification and gate an endpoint |
18
23
  | [E2E-MIDDLEWARE-INTEGRATION.md](./E2E-MIDDLEWARE-INTEGRATION.md) | End-to-end middleware integration — identity, trust signals, downstream policy, and testing |
19
24
  | [AGENT-READY-APIS.md](./AGENT-READY-APIS.md) | API Scaffolding — hosted x402/MPP wrappers for existing APIs |
20
25
  | [DASHBOARD.md](./DASHBOARD.md) | Operator Dashboard — manage endpoints, keys, analytics, and playground |
@@ -23,6 +28,7 @@ Valiron also provides **API Scaffolding** as a separate product for organization
23
28
  | [TRUST-MODEL.md](./TRUST-MODEL.md) | How agents are scored, what behaviors are penalized, tier assignments |
24
29
  | [IDENTITY.md](./IDENTITY.md) | Agent identity — ERC-8004/Solana agents and key-based Web2 agents |
25
30
  | [PROVIDER-IDENTITY.md](./PROVIDER-IDENTITY.md) | Provider-backed identity — SDK signing helpers and gates, normalized proofs, replay protection, policies, and ANS |
31
+ | [CRAWLER-PROTECTION.md](./CRAWLER-PROTECTION.md) | Valiron Crawler Protection — source verification, shared quotas, HTTP gateway, language-neutral work API and Node/Nuxt adapters; integration package |
26
32
  | [SANDBOX.md](./SANDBOX.md) | How the sandbox evaluates agents and determines production readiness |
27
33
  | [CHAINS.md](./CHAINS.md) | Supported blockchain networks and contract addresses |
28
34
  | [ERRORS.md](./ERRORS.md) | Error codes, troubleshooting, and retry guidance |
@@ -31,7 +37,7 @@ Valiron also provides **API Scaffolding** as a separate product for organization
31
37
 
32
38
  - **Agent ID**: An agent's ERC-8004 token ID (EVM) or Metaplex Core asset pubkey (Solana) — their on-chain identity. Use this with `x-agent-id` and `/operator/agent/:agentId`.
33
39
  - **Key-Based Agent Address**: A persistent Ethereum-style address for a local, Web2, or non-ERC-8004 agent. Use this with `x-agent-address` and `/operator/key/:agentAddress`.
34
- - **Provider-Backed Identity**: An ANS or future provider identity verified through `ValironSDK.verifyAgentIdentity()`. SDK 1.3 includes signing helpers and dedicated Express, Fastify, Next.js, and generic identity gates. Valiron hosts the ANS credentials and CA configuration.
40
+ - **Provider-Backed Identity**: An ANS or future provider identity verified through `ValironSDK.verifyAgentIdentity()`. The SDK includes signing helpers and dedicated Express, Fastify, Next.js, and generic identity gates. Valiron hosts the ANS credentials and CA configuration.
35
41
  - **Sequential ID** (Solana only): A convenience integer (1, 2, 42…) assigned by the QuantuLabs indexer. Maps to an asset pubkey.
36
42
  - **Trust Tier**: AAA (highest trust) → C (lowest trust). Assigned based on behavioral evaluation.
37
43
  - **Risk Level**: GREEN, YELLOW, or RED.
@@ -39,11 +45,13 @@ Valiron also provides **API Scaffolding** as a separate product for organization
39
45
  - **API Scaffolding**: A separate hosted Valiron wrapper product at `/wrap/{operatorId}/{path}` that can collect x402/MPP payments, optionally gate by trust, and forward to an upstream API.
40
46
  - **Payment Protocol**: `x402` for Base/USDC HTTP payments or `mpp` for Machine Payment Protocol payments through Tempo.
41
47
  - **Sandbox**: An isolated test environment where Valiron evaluates agent behavior before granting production access.
42
- - **Wallet Intelligence**: A Pro trust signal that converts bounded Alchemy or Helius wallet history into an explainable score, risk level, confidence, and reasons.
48
+ - **Wallet Intelligence**: A Free trust signal that converts bounded Alchemy or Helius wallet history into an explainable score, risk level, confidence, and reasons.
43
49
  - **Liveness** (Solana only): Endpoint health probe via `isItAlive()`. See [API-REFERENCE.md](./API-REFERENCE.md#solana-support).
44
50
 
45
51
  ## Which Identity Path Should I Use?
46
52
 
53
+ Ordinary website crawlers need not enroll as key-based or on-chain agents. Their supported source-check path is the separate [Valiron Crawler Protection](./CRAWLER-PROTECTION.md). Network provenance is not signed agent identity, human identity or unlimited permission to crawl.
54
+
47
55
  | Agent type | Use this identifier | Request header | Lookup path |
48
56
  |------------|---------------------|----------------|-------------|
49
57
  | ERC-8004 / on-chain EVM agent | ERC-8004 token ID | `x-agent-id` | `/operator/agent/:agentId` |
@@ -70,3 +78,12 @@ trusted CA bundle live in Valiron's hosted service, not customer applications. S
70
78
  ```
71
79
  https://valiron-edge-proxy.onrender.com
72
80
  ```
81
+
82
+ ## Developer interfaces
83
+
84
+ - [Valiron OpenAPI](https://www.valiron.co/openapi.json)
85
+ - [Valiron developer portal](https://www.valiron.co/developers)
86
+
87
+ ## Upgrading an existing integration
88
+
89
+ Follow [Request-bound identity upgrade](./SECURITY-UPGRADE-2026-10-31.md) before deploying the hardened source contract. Configure local verifiers and hosted signers, migrate provider proofs to v2, re-verify legacy World ID/Self links and re-register tenant-scoped webhooks. Check package availability separately from source changes.
package/docs/SANDBOX.md CHANGED
@@ -33,7 +33,7 @@ You can proactively evaluate agents before they hit your production endpoints, o
33
33
  ```typescript
34
34
  import { ValironSDK } from "@valiron/sdk";
35
35
 
36
- const valiron = new ValironSDK();
36
+ const valiron = new ValironSDK({ apiKey: process.env.VALIRON_API_KEY });
37
37
 
38
38
  // On-chain agent
39
39
  const result = await valiron.triggerSandboxTest("YOUR_AGENT_ID");
@@ -51,10 +51,10 @@ console.log(keyResult.tier); // "A"
51
51
 
52
52
  ```bash
53
53
  # On-chain agent
54
- curl -X POST https://valiron-edge-proxy.onrender.com/operator/trigger-sandbox/YOUR_AGENT_ID
54
+ curl -X POST https://valiron-edge-proxy.onrender.com/operator/trigger-sandbox/YOUR_AGENT_ID -H "Authorization: Bearer $VALIRON_API_KEY"
55
55
 
56
56
  # Key-based agent
57
- curl -X POST https://valiron-edge-proxy.onrender.com/operator/trigger-sandbox-key/0x1234...abcd
57
+ curl -X POST https://valiron-edge-proxy.onrender.com/operator/trigger-sandbox-key/0x1234...abcd -H "Authorization: Bearer $VALIRON_API_KEY"
58
58
  ```
59
59
 
60
60
  ## Auto-Sandbox
@@ -91,10 +91,10 @@ const result = await valiron.triggerKeyAgentSandbox("0x1234...abcd");
91
91
 
92
92
  ```bash
93
93
  # On-chain agent
94
- curl -X POST https://valiron-edge-proxy.onrender.com/operator/trigger-sandbox/YOUR_AGENT_ID
94
+ curl -X POST https://valiron-edge-proxy.onrender.com/operator/trigger-sandbox/YOUR_AGENT_ID -H "Authorization: Bearer $VALIRON_API_KEY"
95
95
 
96
96
  # Key-based agent
97
- curl -X POST https://valiron-edge-proxy.onrender.com/operator/trigger-sandbox-key/0x1234...abcd
97
+ curl -X POST https://valiron-edge-proxy.onrender.com/operator/trigger-sandbox-key/0x1234...abcd -H "Authorization: Bearer $VALIRON_API_KEY"
98
98
  ```
99
99
 
100
100
  ## Tips for Passing Sandbox Tests
@@ -121,9 +121,7 @@ If all endpoints are unreachable (`status: "dead"`), the sandbox may still proce
121
121
 
122
122
  After a sandbox evaluation completes, Valiron writes the computed trust score back to the Solana reputation registry via the ATOM engine's `giveFeedback()`. This closes the loop — sandbox results become on-chain reputation.
123
123
 
124
- Requirements:
125
- - `SOLANA_FEEDBACK_KEYPAIR` environment variable must be set (JSON array of the Ed25519 secret key)
126
- - The keypair must have sufficient SOL for transaction fees
124
+ Feedback write-back is managed by Valiron; SDK users do not configure signing credentials.
127
125
 
128
126
  Feedback write-back is **fire-and-forget** — if it fails, the sandbox result is still returned to the caller.
129
127
 
@@ -140,3 +138,9 @@ Solana reputation includes ATOM engine metrics that EVM agents don't have:
140
138
  | `uniqueCallers` | Number of distinct feedback submitters |
141
139
 
142
140
  These appear in the sandbox/gate response under `onchainReputation.solana` and are factored into the final Valiron risk score alongside the standard behavioral penalties.
141
+
142
+ ## Authorization and pending evaluations
143
+
144
+ Trigger evaluations through the authenticated Valiron operator API. Sandbox work resources require a short-lived capability scoped to the evaluated agent; a resource ID alone is not authorization. Agents never receive observer-control credentials. Provisional or synthetic gate results do not authorize production traffic. New agents remain denied while their real evaluation is pending; retry with the same identity and a fresh request proof after the indicated delay.
145
+
146
+ Agent metadata and probe targets must resolve to permitted public HTTPS destinations. Private/link-local addresses, redirects and overlarge or timed-out responses are rejected; response bodies do not expose internal transport errors.