How Systems Work
This is the operator map from UI action to proof/receipt state.
System Path (UI -> Services -> Settlement)
flowchart LR UI[Frontend: /profile /agent /trade] --> API8003[zkde backend :8003] API8003 --> POL[Policy + trust services] API8003 --> MKT[Opportunity + adapter services] API8003 --> EXEC[Execution builders + wallet signing] API8003 --> SEQ[Proof sequencer bridge] SEQ --> API8002[obsqra backend :8002] API8002 --> MADARA[Madara proof chain :9944] API8002 --> L2[Starknet L2 fallback] EXEC --> L2 MADARA --> RCPT[Receipts + status updates] L2 --> RCPT RCPT --> UI
Route Responsibilities
/profile
- Identity binding and trust/reputation context.
- Gate readiness for flows that depend on policy thresholds.
/agent (Capital OS)
- Capital posture and orchestration controls.
- Pre-trade checks and policy preparation.
/trade (Trade Desk)
- Opportunity selection, adapter route selection, simulation, execution.
Runtime Lifecycle
- Load trust context (
/profile). - Load opportunities + adapter metadata (
/trade). - Evaluate gate/policy state for selected action.
- Build and simulate calldata.
- Sign + submit tx from wallet.
- Reconcile receipts/outcomes back into UI state.
- For proof flows, settlement updates arrive through sequencer path.
Core Health Checks
GET /api/v1/zkdefi/proofs/sequencer-status(zkde backend)GET /api/v1/aggregation/stats(obsqra backend)GET /api/v1/aggregation/madara/health(obsqra backend)
Common Failure Domains
- Opportunity exists but adapter route metadata missing.
- Gate state blocks execution despite valid-looking simulation.
- Wallet submit failure after simulation success.
- Sequencer/settlement unreachable (proof status stalls).
First Triage Order
- Verify route-level health checks above.
- Verify adapter route exists for selected opportunity.
- Re-run simulation with explicit slippage and current state.
- Check settlement path health if proof-related state is stale.
Next: Quick Start | Capital OS | Trade Desk