Skip to content

Build the End-to-End Real-Time Guidance Streaming Pipeline #34

@sahoo-tech

Description

@sahoo-tech

Labels: hard enhancement gssoc-2026

Connect every module together into a single real-time loop: Perception Bus → Processing → Intelligence Core → Trust Scorer → WebSocket broadcast. This is the core runtime that makes Execra live.

What you'll code:

  • Create core/pipeline.py
  • Implement ExecraPipeline class:
    • __init__(domain, mode) — initialises all subsystems: PerceptionBus, ContextEngine, IntelligenceCore, GuidanceDispatcher, ActionLogger
    • async def run() — the main async loop: consumes frames from the perception bus queues, runs processing, calls intelligence core, dispatches guidance via WebSocket
    • Implement backpressure: if the processing queue is full, drop the oldest frame (never block perception)
    • Implement guidance deduplication: do not send the same instruction twice in a row
    • Target latency: ≤500ms from frame arrival to WebSocket broadcast
    • async def stop() — cleanly shuts down all subsystems
  • Integrate pipeline startup into main.py and api/main.py startup event
  • Write end-to-end integration tests with mocked perception and LLM
  • Benchmark latency and document results

Skills needed: Python · asyncio · system design · performance engineering · integration

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions