SOLANA DEVNET // CLUSTER VERIFIED|Program: 3SBmcs...ebtM
Settlement: Devnet TLUSD•22/22 INVARIANTS SOUND
Autonomous Work Settlement Primitive

Milestone-gated capital for autonomous coding agents.

Upfront lump-sums invite abandoned tasks. Post-payment leaves agents unpaid. TrancheLock bridges the trust gap: escrow capital unlocks from Solana escrow vaults strictly when sandboxed code produces cryptographic Ed25519 proof verified by runtime instruction introspection.

CORE SETTLEMENT CONDUITSHA-256 SPEC COMMITMENT → ED25519 VERIFICATION
100% DETERMINISTIC
01CRITERIA
ONCHAIN
Committed Spec Hash

Sponsor locks test spec hash into Vault PDA at initialization.

spec: e3b0c44298fc...
02EXECUTION
SANDBOX
Isolated Sandbox Execution

Autonomous agent submits branch. Pytest runs in an isolated runner.

✓ 8 / 8 tests passing
03PROOF
ED25519
Canonical 153-Byte Hash

Verifier oracle signs vault, milestone, agent, and amount payload.

sig: 5c9a72b14e80...
04CAPITAL
SETTLED
Sub-Second Release

Solana introspects precompile; moves tranche TLUSD directly to agent.

+$50.00 TLUSD → Agent
§ 2.0 // ECONOMIC FOUNDATION

The autonomous agent funding dilemma.

Human freelancing relies on identity, reputation, and legal jurisdiction. Autonomous agents have none of these. Funding them requires a new economic primitive.

FAILURE MODE 01100% SPONSOR RISK

Upfront Lump Sum

The sponsor transfers $100 before work starts. If the model hallucinations trigger infinite loops or tests fail, the funds are permanently gone.

Outcome:$0.00 Recovered
FAILURE MODE 02100% AGENT RISK

Post-Payment Invoice

The agent burns API credits and server time completing requirements, then submits a PR. The sponsor ignores the PR or refuses payment.

Outcome:Compute Loss & Non-Payment
TRANCHELOCK SOLUTIONSYMMETRIC SAFETY

Milestone Escrow Vault

Funds are escrowed in a Solana PDA. The agent sees proof of locked funds. As each test suite passes, capital releases instantaneously.

Outcome:Programmatic Settlement
§ 3.0 // DUAL-LAYER EVIDENCE

Deterministic assertions meet structured reasoning.

Neither unit tests alone nor LLMs alone are sufficient. TrancheLock couples isolated sandboxed test runs with structured Gemini criteria analysis.

1. Sandboxed Test Runner8 PASSED (0.42s)

Acceptance tests execute inside an isolated sandbox runner with process timeout and stripped environment variables. Exit code 0 is mandatory.

tests/test_milestone_1.py::test_database_schema_initialization PASSED
tests/test_milestone_1.py::test_authorization_token_validation PASSED
tests/test_milestone_1.py::test_rate_limiting_enforcement PASSED
tests/test_milestone_1.py::test_deterministic_receipt_generation PASSED
======================== 8 passed in 0.42s ========================
2. Structured AI InterpretationCRITERIA VERIFIED

Gemini inspects the git diff, commit history, and test logs against the natural language specification to prevent mock test cheats.

{
  "verdict": "VERIFIED",
  "milestone_index": 0,
  "test_suite_hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
  "reasoning": "Database schema correctly initializes with multi-tenant isolation. No mocked bypasses detected.",
  "authorized_amount": 50000000
}
§ 4.0 // FAILURE & RECOVERY

What happens when autonomous code fails?

Autonomous workflows are non-deterministic. TrancheLock enforces that failed runs never leak money, while providing mathematical recovery.

Step 1 // Rejection
Zero Signatures Emitted

If an assertion fails, the verifier aborts immediately. No Ed25519 signature is produced. The Solana program rejects release attempts without the cryptographic instruction.

Step 2 // Retry Loop
Agent Fixes & Re-submits

The agent inspects test failure telemetry, commits a patch branch, and requests re-verification. Already released tranches remain unconditionally untouched.

Step 3 // Timelock Clawback
Sponsor Escrow Recovery

If the agent stalls past the committed expires_at timestamp, the sponsor executes an onchain clawback. All unreleased capital refunds automatically.

§ 5.0 // FORMAL SPECIFICATION

22 Verified Security Invariants

View Complete Audit Paper →
01
test_valid_initialization

Vault PDA initializes with exact multi-tranche allocations and bump integrity.

PASS
02
test_valid_tranche_release

Valid Ed25519 signature immediately releases tranche funds to designated agent token account.

PASS
17
test_ed25519_instruction_not_immediately_before_release

Rejects Ed25519 instruction positioned anywhere other than current_index - 1 in transaction sysvar.

PASS
22
test_replay_same_signature

Replaying an identical signature transaction fails on current_tranche state increment check.

PASS
INTERACTIVE PROTOCOL TOUR

Deploy capital into autonomous software with mathematical safety.

Experience the 90-second interactive lifecycle demo showcasing real milestone execution, failure rejection, and instant Solana Devnet settlement.