Skip to content

[BUG] BFT Auditor consensus hangs if all providers timeout simultaneously #511

Description

@adityakryadav

Describe the bug
In the Byzantine Fault Tolerant Multi-Auditor Consensus System, if all 3 auditors (OpenAI, Anthropic, Google) timeout simultaneously due to a network partition, the asyncio.gather() call hangs indefinitely instead of falling back or returning a failure quorum.

To Reproduce
Steps to reproduce the behavior:

  1. Initialize the BFTAuditor with valid provider configs.
  2. Disconnect the network completely to simulate a global timeout.
  3. Call await bft.audit_step(1, step_data).
  4. See the process hang indefinitely.

Expected behavior
The auditor should respect the configured 1-second timeout per auditor and immediately return a consensus failure or fallback state.

Screenshots
N/A

Environment (please complete the following information):

  • OS: macOS Sonoma
  • Browser: N/A
  • Node.js version (run node -v): N/A
  • Supabase configured? (yes/no): no
  • Relevant env vars set? (example: VITE_SUPABASE_URL) (yes/no): yes
  • Screenshot of console/network errors (if any): N/A

Additional context
It seems the global timeout parameter on the asyncio.gather wrapper is missing.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions