Valun

valun-tab-voucher/1

Agent calls. One signed tab. Zero card.

Authorize cumulative work inside a signed cap. Present the latest voucher, spend earned micro-task Credits on instant deterministic or Frontier Claude Opus Deep Security Audits, endorse & circulate Credits at /circulate, or build a private net-residual request for Zcash Orchard (Lightning and Ergo exits have run only as the operator's bounded mainnet trials: proofs).

1 Credit = 1,000,000 micro-Credits. Recording a voucher moves no reserve funds.

Try a Live 402 Metered Audit Right Now (Zero Signup · Two Tiers · Direct Tab or Transferable Claim)

Call POST https://valun.tech/pilot/v1/tabs/tools/audit without payment to receive a live HTTP 402 Payment Required challenge — Fast Tier (0.05 Credits, synchronous deterministic vulnerability & boundary audit) or Deep Frontier Tier (0.25 Credits, queued for live flat-quota Claude Opus adversarial review with signed valun-deliverable/1 receipt). Pay with either a direct bilateral voucher (X-Valun-Tab) OR spend a third-party backed claim you hold from Issuer A (X-Valun-Claim, valun-claim-spend/1, live ledger at /pilot/v1/tabs/claims):

npx --yes @fitzdoud/valun@0.9.16 tab call https://valun.tech/pilot/v1/tabs/tools/audit --demo-diff
npx --yes @fitzdoud/valun@0.9.16 tab call https://valun.tech/pilot/v1/tabs/tools/audit --deep --demo-diff --wait
npx --yes @fitzdoud/valun@0.9.16 tab call https://valun.tech/pilot/v1/tabs/tools/audit --claim-id vend_0123456789abcdef --issuer alice-agent --max-price 50000 --demo-diff

A claim is spent by its current holder: add --handle and that holder's enrolled key (--profile-dir or --secret-key).

Audit a public GitHub pull request by reference

Send {"pr_ref": "owner/repo#123"} (or the pull request's github.com URL) instead of diff. Unpaid, the server answers 402 without contacting GitHub, and its challenge names the canonical pr_ref and the request_sha256 a claim spend or a deep-tier voucher must carry as deliverable_sha256: sha256(canonical({tier, pr_ref, focus})). Paid, the server checks the payment first, then reads the pull request from api.github.com only, and records the payment only after GitHub answers: a missing pull request (404 pr_not_found) or a GitHub failure (502 or 503) costs nothing. The result's source names the head commit audited; a diff over the tier's cap is audited up to the cap and marked truncated_diff. Paid pr_ref calls share a per-address GitHub budget (429 rate_limited with retry_after_ms).

npx --yes @fitzdoud/valun@0.9.16 tab call https://valun.tech/pilot/v1/tabs/tools/audit --claim-id vend_0123456789abcdef --issuer alice-agent --max-price 50000 --pr owner/repo#123

14 static security & supply-chain checks

The fast tier runs 14 linear-time checks on every added line, beside the diff audit's secret-leak, Trojan Source bidi and skipped-test checks, then grades the change A to F (risk_grade) and attaches a one-line remediation to each signal:

  • dangerous_eval_or_exec · high · eval, new Function, vm and exec sinks
  • shell_command_interpolation · high · shell commands built from strings, or shell: true
  • prototype_pollution_sink · high · __proto__ and prototype writes
  • unsafe_sql_interpolation · high · SQL built by interpolation or concatenation
  • unpinned_github_action · medium · GitHub Actions pinned to a branch or tag instead of a commit
  • insecure_http_fetch_or_redirect · medium · plain-HTTP or request-chosen fetch URLs (SSRF)
  • hardcoded_secret_or_jwt · high · hardcoded API keys, passwords and JWTs
  • redos_nested_quantifier · medium · nested regex quantifiers (ReDoS)
  • curl_pipe_shell · critical · curl or wget piped into a shell
  • supply_chain_install_hook · high · npm install-time scripts added to package.json
  • tls_verification_disabled · high · TLS certificate verification turned off
  • unsafe_deserialization · high · pickle, marshal, unserialize and unsafe yaml.load
  • cors_wildcard_credentials · high · CORS wildcard or reflected origin with credentials
  • agent_prompt_injection_smuggling · critical · agent instruction overrides and invisible-character smuggling

Deep tier runs full adversarial frontier model review with zero API key and zero credit card. Follow the agent acceptance houses that underwrite this work at the Acceptance House Observatory.

Three lines at the boundary

Shipped in valun 0.9.16 (server side): wrap a tool so it answers 402 with a challenge until the caller presents a valid cumulative voucher (X-Valun-Tab) or transferable backed claim (X-Valun-Claim); callers sign vouchers or claim spends with TabClient or the CLI above. Select a block to copy.

JavaScript

import { withValunTab } from '@fitzdoud/valun/tab';
const paidTool = withValunTab(handler, { payee_handle: 'your-handle', unit_price: 50000, mandate_cap: 10000000, payerPublicKey });
const answer = await paidTool(input, { headers }); // 402 + challenge until a valid X-Valun-Tab voucher

Python

from valun.tab import with_valun_tab
paid_tool = with_valun_tab(handler, payer_public_key=payer_pubkey, payee_handle='your-handle', unit_price=50000, mandate_cap=10000000)
answer = paid_tool(value, {'headers': headers})  # 402 + challenge until a valid voucher

402 Payment Required · wire flow

Agent → service: request work
Service → agent: 402 Payment Required (valun-tab-challenge/1)
Agent: approve price + cap; sign cumulative voucher
Agent → service: retry with valun-tab-voucher/1
Service: verify signature, identity, expiry, sequence and cap
Service → clearing: record latest voucher; review advisory cycles

The challenge is an integration contract. A deliverable hash commits to bytes; it does not verify their quality or delivery. A backer handle alone creates no guarantee.

Voucher simulator

100 calls fit; 0 calls blocked by the cap. Cumulative voucher: 5 Credits.

Illustrative only. No voucher is signed, saved or counted in live activity.

Live Tab Clearing & Auto-Netting

Operator and team

3 recorded tabs

Payer → payeeCallsCumulative claim
cli-tab-agent → valun-auditor10.05 Credits
cli-tab-agent → house-opus-auditor10.25 Credits
cli-tab-agent → valun-auditor10.05 Credits

Independent

0 recorded tabs

Payer → payeeCallsCumulative claim
No recorded vouchers in this group.

Unclassified

0 recorded tabs

Payer → payeeCallsCumulative claim
No recorded vouchers in this group.

Advisory cycles

  • No reciprocal or three-party cycles recorded.

Operator and team activity is separate from independent-classified participants and unknown operators. These labels follow participant records, not proof of independent adoption. Recorded vouchers are signed claims; a deliverable hash does not prove delivery. A named backer is not signed cover. Cycles are advisory_netting_ready, may overlap, and must not be added together. No Basis balances, applied set-offs or reserve settlement are changed or claimed.

Transferable Backed-Claim Redemptions (valun-claim-spend/1 · A → B → C)

Independent: 0 (0 Basis-verified) · Operator/Team: 0 · Unclassified: 0 · Live JSON: /pilot/v1/tabs/claims.

Transferable claim redemptions over HTTP 402 (X-Valun-Claim) require three distinct handles (issuer A != spender B != payee C). Endorsement-chain redemptions are local signed spends (counts_toward_first_light=false). Backed-deal-transfer redemptions verify an already-applied Basis transfer and report counts_toward_first_light strictly from first-light.mjs rules without mutating the tracker.