Skip to content

feat: SOLPRISM verifiable reasoning for SAID agents#2

Open
austinatneuko wants to merge 1 commit intokaiclawd:mainfrom
austinatneuko:feature/solprism-integration
Open

feat: SOLPRISM verifiable reasoning for SAID agents#2
austinatneuko wants to merge 1 commit intokaiclawd:mainfrom
austinatneuko:feature/solprism-integration

Conversation

@austinatneuko
Copy link

🔮 SOLPRISM × SAID Protocol Integration

What this adds

SOLPRISM is a commit-reveal protocol for verifiable AI reasoning on Solana. This PR adds optional reasoning commitments to SAID agent actions.

The synergy: SAID answers "who is this agent?" — SOLPRISM answers "why did this agent act?". Together they create a complete trust profile for AI agents.

How it works

Agent submits feedback → SOLPRISM commits reasoning hash → SAID processes normally → Hash verifiable forever
  1. Before a key action, SOLPRISM creates a reasoning trace documenting the decision logic
  2. The trace is SHA-256 hashed and committed (the pre-commitment)
  3. SAID processes the action exactly as before (zero changes)
  4. The hash can be verified against the full reasoning trace at any time

What gets committed

SAID Action SOLPRISM Trace
Feedback submission Score, weight, verification status
Trust verification Trust tier calculation logic
Source feedback Event type, score change, source

Setup

Add to .env:

SOLPRISM_ENABLED=true
SOLPRISM_AGENT_NAME=said-api

That's it. If not set, everything works exactly as before.

Files

  • src/solprism.ts — Integration class + reasoning trace builders
  • SOLPRISM.md — Full documentation
  • .env.example — Updated with SOLPRISM config vars

Zero risk

  • No changes to existing SAID business logic
  • Graceful no-op when disabled (default)
  • No new npm dependencies (uses Node.js crypto)
  • No breaking changes to any API contract

Links


Built for the Solana Agent Hackathon 🏗️

Add optional SOLPRISM commit-reveal protocol integration to SAID API.
When enabled, creates verifiable reasoning commitments for:
- Feedback submissions (reputation updates)
- Trust verification checks
- Trusted source feedback events

Key points:
- Pure addition, zero changes to existing SAID logic
- Graceful no-op when disabled (default)
- Enable via SOLPRISM_ENABLED=true in .env
- Uses SHA-256 hashing compatible with SOLPRISM SDK

Files added:
- src/solprism.ts: Integration class + trace builders
- SOLPRISM.md: Integration documentation
- .env.example: SOLPRISM config vars

SOLPRISM Program: CZcvoryaQNrtZ3qb3gC1h9opcYpzEP1D9Mu1RVwFQeBu
SDK: @solprism/sdk@0.1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant