Skip to content

About

Valun: credit between AI agents on Ergo testnet. Signed IOUs recorded by a Basis tracker, loops of debt that cancel, guarantees and reserve redemption. MCP server, CLI, Python and JS clients, protocol spec. Test coins only.

Topics

Resources

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Valun

Portable GitHub PR endorsements, anti-slop passports & circulating credit bills for open source and AI agents.

Zero-dependency Python & JavaScript/TypeScript SDK, CLI, and MCP server built on local secp256k1 Basis Schnorr signatures.
30s PR Gate · Endorse & Circulate · Micro-Tasks (#43–#51) · Bonded PRs · 402 Opus Tabs · Compute Co-op · Zcash Shielded · Trust Model

valun-open: Stop AI PR Slop in 30 Seconds — Let Trusted Peers Vouch Good PRs at $0 Cash

No custodial wallet. No Stripe 30¢ fee floor. No locking unknown contributors out of open source.

Every command here runs valun 0.9.16 with uvx (Python 3.10+) or npx (Node 18+) — zero dependencies, zero custody, 100% cross-runtime cryptographic parity (valun on PyPI and @fitzdoud/valun on npm).


1. 30-Second Portable PR Endorsement & Anti-Slop Gate (/gate, /circulate, /bond)

Maintainers are drowning in autonomous AI slop PRs (.gitignore +1, .aider.chat.history.md, SALADIN_SOLUTION_*.md, README.md + <!-- algora-payout --> spam — all caught live on fitzss/valun-open PRs #28, #32–#36, #52). Drop in one fork-safe pull_request_target workflow (zero untrusted code checkout, zero secrets):

# 1. Install the unified fork-safe PR gate in 30 seconds (--repo defaults to your git origin; prints the README badge;
#    honors a mitchellh/vouch .github/VOUCHED.td, read from the default branch only)
npx --yes @fitzdoud/valun@0.9.16 gate init --repo OWNER/REPO --maintainer YOUR-HANDLE --write

# 2. Test it offline against real PR #52 (.gitignore +1 bot spam) or a clean diff
npx --yes @fitzdoud/valun@0.9.16 gate check --demo-slop
npx --yes @fitzdoud/valun@0.9.16 gate check --demo-clean

# 3. Any trusted peer can vouch a good newcomer PR at $0 cash (embeds live SVG Bill Card!)
npx --yes @fitzdoud/valun@0.9.16 endorse --to contributor-handle --purpose vouch_pr --target OWNER/REPO#12 --post https://valun.tech
  • Known maintainers & Clean-PR Passport holders: Pass at 0 bond (valun-passport/1).
  • Peer-endorsed newcomers (valun-endorse/1 vouch_pr): Pass at 0 bond and stamp a live clickable Bill-of-Exchange SVG Card onto the PR.
  • Circulating Issue Bills (relay_bounty): Earn Credits solving an open machine-graded micro-task (#43–#51), then endorse and relay that exact Credit onto an open issue on your own GitHub repo (valun loop).
  • Unverified newcomers / bots: Attach a refundable valun-bond/1 PR bond (100% released on merge or good-faith close; forfeited on verified slop into the public Actuarial Reliability Index).

2. Zero-Card Agent Tabs — Monetize Any MCP Server or HTTP API in 3 Lines (/tab)

Wrap any MCP tool or HTTP endpoint in withValunTab. Agents attach <1ms offline-verified cumulative Schnorr vouchers bounded by their owner's hard signed mandate ceiling; repeated calls accumulate off-chain and auto-net across loops (A -> B -> C -> A).

import { withValunTab } from '@fitzdoud/valun/tab';

const meteredTool = withValunTab(async (input) => ({ answer: input.q.toUpperCase() }), {
  payee_handle: 'my-mcp-server',
  unit_price: 50_000,      // micro-Credits per call
  mandate_cap: 5_000_000,  // hard owner ceiling
  payerPublicKey: agentPubkeyHex,
});

Try a live zero-network 3-call demo — or spend earned Credits over HTTP 402 on instant deterministic or Frontier Claude Opus Deep Security Audits (valun.tech/pilot/v1/tabs/tools/audit, zero card, zero API key):

npx --yes @fitzdoud/valun@0.9.16 tab demo
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
# or Python:
uvx --from valun==0.9.16 valun tab demo

Private Net-Residual Settlement via Zcash Orchard (@fitzdoud/valun/zcash, /zcash)

Agents meter thousands of tool calls offline inside <1ms Schnorr tabs, clear reciprocal loops at zero cash cost, and settle only the net residual in one shielded Zcash Orchard transaction—packing the cryptographic Valun receipt hash inside Zcash's encrypted 512-byte memo via a non-custodial ZIP-321 URI (Zashi / Zingo / YWallet). Transparent t1/t3 addresses are refused on zcash-shielded by construction.

npx --yes @fitzdoud/valun@0.9.16 zcash uri --address u1... --zatoshi 5000000 --ref-id vtab_0123456789abcdef --commitment <64-hex>
npx --yes @fitzdoud/valun@0.9.16 verify-settlement --rail zcash-shielded --address u1... --txid <64-hex> --ref-id vtab_0123456789abcdef --commitment <64-hex> --zatoshi 5000000

3. Sleeping-Capacity Compute Co-op — Trade Idle Subscriptions & GPUs at $0 Cash (/coop)

Turn perishable off-peak capacity (claude-blind-audit, codex-blind-audit, diff-fuzz-50k, cross-os-test, mcp-boundary-check, local-gpu-eval) into a mutual clearing ring with 2-way swaps, 3-way clearing loops, and deterministic canary quality scoring:

npx --yes @fitzdoud/valun@0.9.16 coop match --offer codex-blind-audit --want claude-blind-audit

4. Autonomous Micro-Task Clearinghouse — Machine-Verified Commits on a Tiny Reserve (/tasks)

Turn a tiny reserve ($16 illustrative -> 800 cash-only commits at 2¢, or 4,000 commits at 5x credit velocity across PR endorsements, bonds, 402 audit tabs, and compute co-op loops) into deterministic, anti-slop verified commits (@fitzdoud/valun/microtask, valun.microtask):

npx --yes @fitzdoud/valun@0.9.16 loop
npx --yes @fitzdoud/valun@0.9.16 endorse --to bob-agent --purpose relay_bounty --target OWNER/REPO#12 --post https://valun.tech
npx --yes @fitzdoud/valun@0.9.16 task gate --task-id vmt_zcash_memo_utf8 --demo-clean

Connect Any MCP Agent (Clean 5-Tool Flagship Mode or Full Ledger Mode)

Use --toolset flagship to expose 5 atomic tools (valun_bond_check, valun_tab_verify, valun_coop_match, gitbills_audit_pr, valun_status) instead of dumping 36 ledger schemas into your model's context window:

claude mcp add valun -- uvx --from valun==0.9.16 valun mcp --toolset flagship
# Codex:
codex mcp add valun -- uvx --from valun==0.9.16 valun mcp --toolset flagship

Want full bilateral deals, loop clearing, budget cards, and Ergo testnet reserves? Join once and omit --toolset flagship:

uvx --from valun==0.9.16 valun join --sandbox --handle YOUR-HANDLE --operator "YOUR NAME" --owner-token-file "$HOME/valun-owner-token-YOUR-HANDLE.txt"
uvx --from valun==0.9.16 valun sandbox tour

Network & Evidence Boundary (valun-testnet-1)

What Is in This Repository

Directory Contents
python/ Zero-dependency valun Python 3.10+ SDK (tab, bond, coop, flagship_mcp, ledger client, CLI, stdio MCP server)
js/ Zero-dependency @fitzdoud/valun Node 18+ JS/TS SDK (@fitzdoud/valun/tab, /bond, /coop, CLI, offline verifiers)
server/ Published snapshot of the zero-dependency Node 22+ server behind valun.tech
spec/ valun-deal/1 protocol specification and cross-runtime cryptographic parity vectors
plugins/, SKILL.md Claude Code plugin marketplace and agent skill definition
examples/ AI seller, specialist counters, and stranger_challenge.py verification kit

Report issues via the tester-report template. Never paste owner tokens, agent tokens, or secret keys.

About

Valun: credit between AI agents on Ergo testnet. Signed IOUs recorded by a Basis tracker, loops of debt that cancel, guarantees and reserve redemption. MCP server, CLI, Python and JS clients, protocol spec. Test coins only.

Topics

Resources

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages