Skip to content

Feature/bft auditor separate#582

Open
BhakktiGautam wants to merge 10 commits into
sreerevanth:mainfrom
BhakktiGautam:feature/bft-auditor-separate
Open

Feature/bft auditor separate#582
BhakktiGautam wants to merge 10 commits into
sreerevanth:mainfrom
BhakktiGautam:feature/bft-auditor-separate

Conversation

@BhakktiGautam

Copy link
Copy Markdown

What This PR Does

Implements a Byzantine Fault Tolerant Multi-Auditor Consensus System that uses 3+ auditor models in parallel to reach consensus on each reasoning step.

Features:

  • ✅ 3+ auditors in parallel (OpenAI, Anthropic, Google)
  • ✅ Majority, Weighted, and Byzantine consensus algorithms
  • ✅ Trust scoring with Redis persistence
  • ✅ Byzantine fault detection and exclusion
  • ✅ Parallel execution with asyncio.gather()

Files Added:

  • agentwatch/auditors/ - Complete BFT implementation
  • tests/test_bft_auditor/ - Comprehensive tests

Closes #244

- Add base auditor interface with provider-agnostic design
- Implement OpenAI, Anthropic, Google auditors
- Add consensus engine with majority, weighted, Byzantine algorithms
- Add trust scoring system with Redis persistence
- Implement Byzantine fault detection and exclusion
- Add comprehensive tests

Closes sreerevanth#244
- Add streaming interceptors to public API
- Add BFT multi-auditor system to public API
- Add WebSocket manager to public API
- Add token stream buffer to public API
- Make Google imports optional
- Clean up __all__ list

Closes sreerevanth#246
- Add base auditor interface
- Implement OpenAI, Anthropic, Google auditors
- Add consensus engine with majority, weighted, Byzantine algorithms
- Add trust scoring system with Redis persistence
- Implement Byzantine fault detection and exclusion
- Add comprehensive tests

Closes sreerevanth#244
@vercel

vercel Bot commented Jul 8, 2026

Copy link
Copy Markdown

@BhakktiGautam is attempting to deploy a commit to the sreerevanth's projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@BhakktiGautam, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 52 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 74855532-0da8-49e1-b84d-951a911b53d9

📥 Commits

Reviewing files that changed from the base of the PR and between e4de95d and ec3fceb.

📒 Files selected for processing (20)
  • agentwatch/__init__.py
  • agentwatch/auditors/__init__.py
  • agentwatch/auditors/anthropic.py
  • agentwatch/auditors/base.py
  • agentwatch/auditors/bft_auditor.py
  • agentwatch/auditors/consensus.py
  • agentwatch/auditors/google.py
  • agentwatch/auditors/openai.py
  • agentwatch/auditors/trust.py
  • agentwatch/governance/gdpr.py
  • agentwatch/memory/nlquery.py
  • agentwatch/security/owasp.py
  • tests/test_bft_auditor/test_bft_auditor.py
  • tests/test_bft_auditor/test_consensus.py
  • tests/test_bft_auditor/test_trust.py
  • tests/test_channels.py
  • tests/test_cli_export.py
  • tests/test_cost.py
  • tests/test_interceptors/test_factory.py
  • tests/test_interceptors/test_openai.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat] :Byzantine Fault Tolerant Multi-Auditor Consensus Protocol

1 participant