Serhii2009/brix-protocol

Runtime Reliability Infrastructure for LLM Pipelines — enforce deterministic rules, measure the Balance Index, and audit every decision.

42
/ 100
Emerging

Wraps any LLM client with a composable chain of nine production guards—BudgetGuard, RateLimitGuard, TimeoutGuard, LoopGuard, ContextGuard, SchemaGuard, RetryGuard, ObservabilityGuard, and RegulatedGuard—each addressable via a single `wrap()` call. Provides deterministic guarantees: cost enforcement blocks before token emission, exact-duplicate loop detection injects diversity prompts, and schema validation self-heals via re-prompts. Integrates with OpenAI and Anthropic clients via drop-in adapters; maintains a SHA-256 chained audit log and supports optional semantic loop detection and regulated-domain risk scoring.

Available on PyPI.

Maintenance 13 / 25
Adoption 11 / 25
Maturity 18 / 25
Community 0 / 25

How are scores calculated?

Stars

6

Forks

Language

Python

License

MIT

Last pushed

Mar 18, 2026

Monthly downloads

807

Commits (30d)

0

Dependencies

7

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/rag/Serhii2009/brix-protocol"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.