Skip to main content

Optimistic GPU Audits & Anti-Spoofing

Tenson guarantees Buyers receive genuine inference from the exact model they paid for without adding per-request cryptographic overhead.


1. How Sampling Works​

When a P2P job completes, the Edge Gateway probabilistically enqueues an audit sample into RAM-only Redis (audit:payload:<job_id> with a hard 300s TTL) and pushes job_id onto Redis Stream tenson:audit_jobs:

Node TierAudit Sampling Rate
Established node (>= 100 completed jobs, clean record)3%
New node (< 100 completed jobs)15%
Warned node (prior warn verdict)25%

2. Verification & Verdicts (services/auditor)​

The independent Auditor worker consumes tenson:audit_jobs, atomically reads and deletes the volatile payload (GETDEL), replays the exact prompt and parameters against a trusted reference GPU, and computes token overlap similarity:

Deterministic Jobs (temperature <= 0.1)​

  • similarity >= 0.88 → pass: +0.5 reputation (capped at 100.0).
  • 0.65 <= similarity < 0.88 → warn: -5.0 reputation; sampling elevated to 25%.
  • similarity < 0.65 → fail_spoof: Permanent ban + 100% stake slash.

Stochastic Jobs (temperature > 0.1)​

  • similarity >= 0.65 → pass: +0.5 reputation.
  • 0.40 <= similarity < 0.65 → warn: -5.0 reputation.
  • similarity < 0.40 → fail_spoof: Permanent ban + 100% stake slash.

3. Enforcement on fail_spoof​

In a single PostgreSQL transaction:

  1. nodes.status is set to 'banned' and reputation_score = 0.
  2. staked_points are slashed (entry_type = 'slash' in ledger_entries).
  3. The node is immediately evicted from every Redis grid:model:* ZSET.
  4. Only numeric metadata (similarity_score, verdict, points_slashed) is stored in audit_logs — zero prompt or completion text is ever persisted.