Predicta Technical TODO π οΈ
A granular checklist of remaining engineering tasks and technical debt.π Security & Infrastructure
- Privy JWT Verification: Implement server-side session validation using
privy-nodeSDK or JWKS public keys for all protected routes. - Farcaster Auth: Full cryptographic signature verification for Frame-based POST requests in
api/frame/route.ts. - Secret Management: Migrate
SIMULATION_SECRETandPRIVY_APP_SECRETto Firebase Secrets for Cloud Functions. - CORS Hardening: Strict origin validation for the
pimlicoProxyCloud Function.
πͺͺ Identity & Persona
- Real Wallet Scanning: Replace stubs with real-time on-chain footprint analysis via Alchemy/Etherscan to seed adaptive risk profiles.
- Preon NFT Metadata: Dynamic SVG generation for Preon identities that updates purely based on on-chain stats.
- Achievement Oracle: Verify achievement eligibility on-chain vs relying on Firestore state.
π Market Data & Oracle
- Real Volume Data: Replace stubs in
marketService.tswith real-time 24h volume from Polymarket. - Cortex Rejection Logging: Implement specific error codes for why a trade was rejected (E1 fail, E3 fail, etc.) and expose via
API. - Resolution Refactor: Move
resolutionService.tsto use Next.js Server Actions for better performance.
π―ββοΈ Mimic Mode (Social)
- Farcaster Following: Connect
mimic_relay.pyto real-time Farcaster hubs to detect new βFollowsβ and trigger vault setup. - Relay Latency: Optimize mimic execution loop to < 30 seconds from Leader trade detection.
βοΈ Governance & PRED
- PRED Staking: Implement the staking contract for PRED tokens to unlock higher tier archetypes.
- Governance Portal: Simple UI for voting on Cortex risk-gate thresholds (E5/E6 levels).
π§ͺ Persona Simulation (QA)
- Multi-step Flows: Implement simulation tests for faction joins and copy-trading follower onboarding.
- Observer Analysis: Automate the export of βObserverβ summaries to a centralized dashboard for regression tracking.
- Network Stress: Simulating βGas Spikeβ conditions to test paymaster fallback logic between CDP and Pimlico.
π§ͺ Documentation & Testing
- Unit Tests: Coverage for
mimic_relay.pyandunified-auth.tsx. - Integration Tests: End-to-end flow for
PreonVault->PredictaCoreV2via Privy MPC signer. - API Docs: Document the
Cortex APIendpoints using Swagger.