{"protocol":"BRIDGE","version":"2.0.0","description":"Universal AI Communication Protocol — enables any AI system to share state, hand off work, and coordinate without human translation.","layers":[{"id":"L0","name":"State Store","description":"Structured, versioned, conflict-aware shared memory. PostgreSQL + pgvector."},{"id":"L1","name":"Handoff Protocol","description":"Structured machine-readable packets for agent-to-agent task passing."},{"id":"L2","name":"Conflict Resolution","description":"pgvector cosine similarity detects contradictions before they cascade."},{"id":"L3","name":"Agent Registry","description":"Every AI system gets a BRIDGE agent ID. Cross-company identity."},{"id":"L4","name":"Audit Trail","description":"Immutable, HMAC-signed log of every action. Append-only."},{"id":"L5","name":"Translation Protocol","description":"Normalizes every AI's native format into BRIDGE's universal schema."},{"id":"L6","name":"AI Marketplace","description":"Discovery and routing layer. Route tasks to the best AI for the job."}],"supported_protocols":[{"id":"mcp","name":"Anthropic MCP","provider":"Anthropic","adapter":"mcp_server.py"},{"id":"openai_functions","name":"OpenAI Function Calling","provider":"OpenAI","adapter":"adapters/openai_adapter.py"},{"id":"gemini","name":"Google Gemini Tools","provider":"Google","adapter":"adapters/gemini_adapter.py"},{"id":"rest","name":"REST API","provider":"Universal","adapter":"Direct HTTP"}],"data_schema":{"bridge_agents":{"description":"Universal agent registry","fields":["id","bridge_agent_id","agent_type","provider","capabilities","native_protocol","model_version","is_verified"]},"bridge_projects":{"description":"Project registry with state versioning","fields":["id","name","description","owner_agent_id","agent_registry","state_version"]},"bridge_decisions":{"description":"Decisions with pgvector embeddings for conflict detection","fields":["id","project_id","agent_id","decision_type","title","reasoning","outcome","confidence","embedding"]},"bridge_handoffs":{"description":"Structured agent-to-agent task transfer","fields":["id","project_id","from_agent_id","to_agent_id","status","work_completed","work_remaining","context","priority"]},"bridge_conflicts":{"description":"Detected conflicts with resolution tracking","fields":["id","project_id","conflict_type","decision_a_id","decision_b_id","similarity_score","status","resolution"]},"bridge_audit_log":{"description":"Immutable HMAC-signed audit trail","fields":["id","project_id","agent_id","action","resource_type","resource_id","data","signature"]}},"agent_roles":{"admin":{"level":4,"can":["read","write","handoff","resolve_conflicts","manage_access"]},"executor":{"level":3,"can":["read","write","handoff","resolve_conflicts"]},"contributor":{"level":2,"can":["read","write","handoff"]},"read_only":{"level":1,"can":["read"]}},"conflict_thresholds":{"soft":0.4,"hard":0.7,"embedding_model":"text-embedding-3-small","dimensions":1536},"pricing_tiers":{"starter":{"price_monthly":0,"max_projects":1,"max_agents":3,"max_events":10000},"builder":{"price_monthly":49,"max_projects":5,"max_agents":-1,"max_events":100000},"team":{"price_monthly":199,"max_projects":25,"max_agents":-1,"max_events":1000000},"enterprise":{"price_monthly":"custom","max_projects":-1,"max_agents":-1,"max_events":-1}},"security":{"api_key_format":"br_{env}_{random}","key_hashing":"SHA-256","audit_signing":"HMAC-SHA256","encryption_at_rest":"AES-256 (Supabase)","encryption_in_transit":"TLS 1.2+","rbac":true,"key_rotation":true,"key_scoping":true,"ip_allowlisting":true}}