Skip to content

About

πŸ›‘οΈ Declarative eval boundary controller in Rust β€” enforcing predictive blast-radius selection, 95% Wilson confidence intervals, and zero-drift release gates.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Eval-Boundary-Controller

πŸ›‘οΈ Declarative eval boundary controller written in Rust β€” enforcing predictive test blast-radius selection, 95% Wilson confidence intervals, and zero-drift release gates for high-velocity and AI-native software delivery.


🧭 System Architecture

In high-velocity engineering environments, autonomous AI agents and automated code generation tools have accelerated code creation, shifting the primary engineering bottleneck to continuous qualification and verification:

Developer / AI Agent PR
          β”‚
          β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚        Eval-Boundary-Controller        β”‚
β”‚                                        β”‚
β”‚  1. Predictive Blast Radius Analysis   β”‚ ──► Maps Git diff to affected components (40-80% CI speedup)
β”‚  2. Continuous Evaluation Runner       β”‚ ──► Executes deterministic assertions & probabilistic LLM evals
β”‚  3. Shannon Entropy Flaky Quarantine   β”‚ ──► Isolates non-deterministic test noise from blocking PRs
β”‚  4. Statistical Release Gate Engine    β”‚ ──► Computes 95% Wilson confidence bounds & p99 latency ceilings
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          β”‚
          β”œβ”€β”€ [APPROVED] ──────────► 100% Production Rollout
          β”œβ”€β”€ [CANARY REQUIRED] ───► 5% Traffic Canary (Continuous Telemetry)
          └── [REJECTED] ──────────► Release Blocked & Offending Commit Quarantined

⚑ Core Capabilities

1. Predictive Test Impact Analysis (Blast Radius)

  • Inspects Git diffs against declarative component boundaries defined in boundary.yaml.
  • Automatically calculates the minimal subset of affected tests, safely skipping unrelated test suites and saving 40%–85% of CI runner time.

2. Statistical Release Gating (Wilson Score Intervals)

  • Eliminates brittle boolean assumptions (assert a == b) for non-deterministic AI outputs and heuristic models.
  • Replaces naive pass percentages with Wilson Score Confidence Intervals (at 95% confidence): $$\frac{p + \frac{z^2}{2n} \pm z \sqrt{\frac{p(1-p)}{n} + \frac{z^2}{4n^2}}}{1 + \frac{z^2}{n}}$$
  • Enforces behavioral output drift thresholds and hard p99 latency ceilings.

3. Flaky Test Entropy Quarantine

  • Computes normalized Shannon Entropy ($H(p) = -p \log_2 p - (1-p) \log_2 (1-p)$) across historical execution windows.
  • Automatically quarantines unstable tests so non-deterministic flakiness never blocks critical delivery pipelines.

πŸš€ Installation & CLI Usage

The repository produces two high-performance binaries:

  • eval-boundary-controller (standard command)
  • ebc (fast alias)

Available Commands

# 1. Initialize configuration and sample eval suites
eval-boundary-controller init

# 2. Compute Predictive Test Blast Radius on current branch / commit
eval-boundary-controller analyze --base-ref main

# 3. Execute deterministic and probabilistic eval suites
eval-boundary-controller eval --suite-path suites.json

# 4. Evaluate release gate policy against current commit
eval-boundary-controller gate --config-path boundary.yaml --commit 7d8a9b2

# 5. Run full interactive simulation demonstration
eval-boundary-controller demo

(You can substitute ebc for eval-boundary-controller in all commands above).


πŸ“‹ Declarative Configuration (boundary.yaml)

project_name: "enterprise-core-service"
version: "1.0.0"

# Continuous Verification Release Gate Policy
gate_policy:
  # Minimum lower-bound pass rate calculated with Wilson score at 95% confidence (0.0 to 1.0)
  min_wilson_pass_rate: 0.980
  # Maximum allowable behavioral/output drift percentage between baseline and release
  max_allowed_drift_pct: 3.5
  # Maximum allowed p99 latency in milliseconds
  max_p99_latency_ms: 650
  # Allow quarantined test failures without failing the gate
  allow_quarantined_failures: true
  # Minimum samples required for probabilistic evaluation suites
  min_probabilistic_samples: 50

# Blast Radius & Dependency Mapping for Predictive Test Selection
dependency_map:
  "src/auth/.*":
    - "tests/auth_test"
    - "evals/auth_agent_eval"
  "src/models/.*":
    - "evals/semantic_inference_eval"
    - "evals/hallucination_gate"
  "src/api/.*":
    - "tests/api_contract"
    - "tests/load_p99_test"
  "src/workers/.*":
    - "tests/billing_worker_test"
    - "tests/reporting_etl_test"

# Flaky Test Entropy Detection & Quarantine Engine
quarantine_settings:
  flakiness_threshold: 0.15
  history_window_size: 20
  auto_quarantine: true

πŸ“Š Live Controller Dashboard Output

================================================================================
  EVAL BOUNDARY CONTROLLER: CONTINUOUS VERIFICATION RELEASE GATE                
  Declarative Reliability Boundary & Statistical Quality Gating Engine          
================================================================================

Project: enterprise-core-service
Commit Ref: commit-7d8a9b2 (feat: agent context memory)
Evaluation Time: 2026-11-22T17:22:00Z

FINAL GATE VERDICT:  [ REJECTED / RELEASE BLOCKED ] 

SUITE NAME                   PASS RATE  95% CONFIDENCE   p99 LATENCY  DRIFT     
--------------------------------------------------------------------------------
Core Authentication & JWT    100.0%     [91.2% - 100.0%] 45ms         0.00%     
Semantic Agent Evals         98.3%      [91.1% - 99.7%]  45ms         0.17%     
Distributed Cache Races      50.0%      [9.5% - 90.5%]   45ms         49.49%    
--------------------------------------------------------------------------------
Aggregate Lower-Bound Pass Rate (@95% CI): 93.1% (Requirement: >= 98.0%)
Aggregate p99 Latency: 45ms (Requirement: <= 650ms)
Aggregate Max Output Drift: 49.49% (Requirement: <= 3.50%)

POLICY VIOLATIONS:
  βœ– Suite [Semantic Agent Evals] has 1 non-quarantined failure(s)
  βœ– Suite [Distributed Cache Races] output drift (49.49%) exceeded threshold (3.50%)
  βœ– Statistical lower-bound pass rate (93.1% @ 95% CI) below required threshold (98.0%)

DEPLOYMENT RECOMMENDATIONS:
  β„Ή Release BLOCKED. Revert offending commit or inspect non-quarantined failures and p99 regression.

πŸ”„ CI/CD Integration (.github/workflows/eval-boundary-controller.yaml)

name: Eval Boundary Controller Release Gate

on:
  pull_request:
    branches: [main, master]
  push:
    branches: [main, master]

jobs:
  continuous-verification:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Code
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Install Rust Toolchain
        uses: dtolnay/rust-toolchain@stable

      - name: Build eval-boundary-controller
        run: cargo build --release

      - name: Predictive Blast Radius Analysis
        id: blast-radius
        run: |
          ./target/release/eval-boundary-controller analyze --base-ref ${{ github.event.pull_request.base.sha || 'HEAD~1' }}

      - name: Continuous Verification & Release Gating
        id: release-gate
        run: |
          ./target/release/eval-boundary-controller gate --config-path boundary.yaml --commit ${{ github.sha }}

About

πŸ›‘οΈ Declarative eval boundary controller in Rust β€” enforcing predictive blast-radius selection, 95% Wilson confidence intervals, and zero-drift release gates.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages