Solana agents are stateless. We're the memory layer.
Locus is the Solana protocol for verifiable AI memory. Memory roots committed on-chain. Pay-per-query in SOL. Cryptographic retrieval attestations for every AI-driven action.
Memory isn't a database problem. It's a coordinate problem.
Things you retrieve together should live near each other in space — and that geometry should be cryptographically committable.
Position is relationship. No foreign keys. No learned topology. Just geometry.
Two surfaces. One primitive.
Memory data is mutable and cheap — it lives off-chain in ARMS. Memory provenance is immutable and cheap — it lives on-chain as a 32-byte hash plus per-query receipts.
The agent owner computes a Merkle root over their current ARMS memory state and posts it on-chain.
The AgentMemory PDA's version increments. Subsequent retrievals reference this version.
{`// programs/locus/src/lib.rs
pub fn commit_memory(ctx: Context, root: [u8; 32]) -> Result<()> {
let agent = &mut ctx.accounts.agent_memory;
agent.memory_root = root;
agent.version += 1;
agent.last_updated = Clock::get()?.unix_timestamp;
emit!(MemoryCommitted { agent: agent.key(), version, root, timestamp });
Ok(())
}`}
A requester pays read_fee_lamports in SOL to the agent owner.
A RetrievalAttestation PDA is created on-chain with the query hash, result hash, memory root snapshot, and version.
{`// programs/locus/src/lib.rs
pub fn attest_retrieval(
ctx: Context,
query_hash: [u8; 32],
result_hash: [u8; 32],
nonce: u64,
) -> Result<()> {
// fee transfer: requester -> owner
system_program::transfer(..., agent.read_fee_lamports)?;
// new attestation PDA, immutable
attestation.query_hash = query_hash;
attestation.result_hash = result_hash;
attestation.memory_root = agent.memory_root;
Ok(())
}`} Anchor program · two PDA types · all SBF code public · zero off-chain trust required to read.
ARMS spatial memory fabric (Rust) · Axum HTTP service · locus-relayer keeps Merkle root in sync.
Pay-per-query SOL fees · protocol take 5–10% · long-tail compliance licensing on top.
The audit layer for on-chain agents.
Same primitive — memory commitments plus paid attested retrievals — solves four different on-chain problems.
Trading agents
When an autonomous agent makes a $10K on-chain decision, the attestation PDA records exactly which memories shaped it. Reconstruct decision lineage. Audit. Insure.
Governance agents
DAO votes are increasingly delegated to AI. Locus lets the delegate prove which proposals, votes, and discussions informed each new vote. Audit a governance agent like a human delegate.
DePIN coordinators
Multi-agent fleets sharing operational memory across nodes need a verifiable common substrate. The on-chain Merkle root is the consistency primitive.
Compliance auditors
Reading attestation PDAs is free — anyone with a Solana RPC can reconstruct an agent's decision history. Audit-as-a-service without trusted intermediaries.
Every link below is a real Solana account.
Click any tx or PDA to inspect it on Solana Explorer. Memory commitment, retrieval, and attestation — all on chain right now.
Bring your own wallet, hit the program with attest_retrieval, watch a new PDA appear.
No login. No SDK required. Solana JSON-RPC is enough.
Locus is the memory primitive you'll need.
Open source. MIT licensed. Live on devnet today. If you're working on trading agents, governance bots, DePIN coordination, or compliance-grade autonomy, we should talk.