Three-Layer Architecture
Layer 1: On-Chain (Solana)
Thelucid_reputation program stores immutable reputation data:
- Feedback entries — Score (1-100), category, receipt hash, asset type
- Validation entries — Third-party verification that a receipt is valid
- Passport stats — Rolling aggregates: feedback count, validation count, average score
- Revocation — Original submitters can revoke feedback; scores adjust atomically
Layer 2: Off-Chain (API)
TheIReputationProvider interface aggregates data from multiple sources:
- Database-backed provider for fast queries
- On-chain provider for verified data
- Multiple scoring algorithms via
IReputationAlgorithm
Layer 3: Gateway (PayReputation)
Credit scoring derived from payment history through TrustGate:| Tier | Description |
|---|---|
| Unverified | No payment history |
| Bronze | Basic payment history |
| Silver | Consistent payments |
| Gold | High-volume verified payments |
| Platinum | Extensive verified history |
receipt_events.
Reputation Per Asset Type
Reputation applies to all five AI asset types:| Type ID | Asset Type | What Is Measured |
|---|---|---|
| 0 | Model | Accuracy, latency, consistency |
| 1 | Compute | Uptime, throughput, reliability |
| 2 | Tool | Correctness, availability |
| 3 | Agent | Task completion, user satisfaction |
| 4 | Dataset | Quality, freshness, coverage |
Submitting Feedback
Feedback requires a valid receipt hash, proving the submitter actually interacted with the asset:Revoking Feedback
Only the original submitter can revoke. The on-chain program atomically adjusts the total and average scores. Thefeedback_count is never decremented (it tracks total entries ever created, used as PDA seed), but total_score and avg_score reflect only non-revoked entries.
Cross-Network Reputation
Lucid’s reputation system syncs with external identity standards:| Standard | Integration |
|---|---|
| Metaplex (MIP #52) | Bidirectional sync via syncReputationPlugin() (prep code, awaiting MIP release) |
| 8004 / SATI / SAID | Consume scores from external protocols and feed validated scores back |
.png?fit=max&auto=format&n=VsjUqn6fLqEhBiuI&q=85&s=8b4c7e6431e9a6af1ef23b77bb4ff5fd)
.png?fit=max&auto=format&n=VsjUqn6fLqEhBiuI&q=85&s=d5651a45e4bfbabc33f74e146af3f94a)