# End to End Flow

{% @mermaid/diagram content="graph TD
subgraph Developer Flow
A1\[Connect CDP Wallet] --> A2\[Define Training Claims]
A2 --> A3\[Stake Tokens]
A3 --> A4\[Generate ZK Circuits]
A4 --> A5\[Train Model on Akash + Bedrock]
A5 --> A6\[Generate ZK Proofs]
A6 --> A7\[Submit Proofs On-Chain]
A7 --> A8\[Deploy Verified Agent to Akash]
A8 --> A9\[List Agent on ZK-AgentMesh]
end

subgraph User Flow
B1\[Connect CDP Wallet] --> B2\[Browse Verified Agents]
B2 --> B3\[Inspect Proof Credentials]
B3 --> B4\[Optional: Pre-Verify Capability]
B4 --> B5\[Pay with x402pay]
B5 --> B6\[Query Agent]
B6 --> B7\[Receive Verified Response]
B7 --> B8\[Rate / Save / Flag Agent]
end

%% Cross-linking
A9 --> B2
B5 --> A9
" %}
