async function getMemoryStats() { try { const res = await fetch("https://api.blackroad.io/memory/stats", { next: { revalidate: 60 } }) return res.ok ? res.json() : null } catch { return null } } export default async function MemoryPage() { const stats = await getMemoryStats() const mockStats = { sessions: 847, journals: 12593, facts: 4201, sources: 89, hash_chain_verified: true, } const data = stats ?? mockStats return (

🧠 Memory

PS-SHA∞ hash-chain persistent memory system

{[ { label: "Sessions", value: data.sessions, color: "text-blue-400" }, { label: "Journal Entries", value: data.journals, color: "text-purple-400" }, { label: "Verified Facts", value: data.facts, color: "text-green-400" }, { label: "Trusted Sources", value: data.sources, color: "text-amber-400" }, ].map((item) => (
{item.label}
{typeof item.value === "number" ? item.value.toLocaleString() : item.value}
))}

Hash Chain Status

{data.hash_chain_verified ? "Verified — chain integrity intact" : "Verification failed"}

All journal entries are cryptographically linked via PS-SHA∞

Memory Types

{[ { type: "fact", desc: "Verified true/false claims with confidence scores", color: "bg-green-400" }, { type: "observation", desc: "System observations logged during runtime", color: "bg-blue-400" }, { type: "inference", desc: "Agent-inferred conclusions from pattern matching", color: "bg-purple-400" }, { type: "commitment", desc: "Explicit agreements and action commitments", color: "bg-amber-400" }, ].map((m) => (
{m.type} {m.desc}
))}
) }