aetre
This server provides decision-theoretic triage, portfolio management, and agent-execution governance via a catalog of mathematical and simulation tools for evaluating proposals, managing reviewer capacity, and gating autonomous actions.
Triage proposals: Route submissions into fast-pass, fast-reject, or deep review using heuristic lexical indicators and VOI scoring.
Calculate Value of Information (VOI): Evaluate Gaussian or heavy-tailed Bayesian VOI for selection decisions.
Monitor pipeline congestion: Forecast queue delays via Kingman's heavy-traffic approximation and get throttling recommendations.
Audit rejected candidates: Estimate hidden breakthrough recall with Horvitz-Thompson unbiased exploration audits.
Model anti-spam staking: Simulate submission fees and quadratic staking deposits to deter AI-generated spam.
Verify recall ceilings: Compute Proposition 1 bounds to see if pipeline capacity mathematically limits breakthrough recall.
Debias multi-agent reviews: Update posterior beliefs while accounting for correlated evaluator noise.
Manage heterogeneous review queues: Identify bottlenecks across specialist domains and suggest capacity rebalancing.
Run author preflight checks: Generate pre-submission diagnostics for novelty, reviewer disagreement risk, and refinement actions.
Simulate institutional pipelines: Run Monte Carlo benchmarks comparing screening regimes, quality throughput, FDR, unconventional recall, and human review load.
Batch triage: Process large proposal cohorts into demonstration streams.
Plot recall scaling curves: Show theoretical recall decay as arrival volume multiplies.
Backtest review policies: Compare multiple triage policies on held-out data with precision/recall and bootstrap intervals.
Calibrate scores: Fit Platt scaling to convert raw scores into calibrated probabilities, returning ECE and Brier scores.
Compute multi-attribute VOI: Evaluate proposals across dimensions like novelty, rigor, impact, and feasibility.
Optimize reviewer assignments: Match proposals to reviewers by affinity while enforcing utilization constraints.
Set sequential stopping rules: Determine when to accept, reject, or request more reviews based on Bayesian confidence.
Govern agent execution: Apply Bellman triage, review boundaries, knapsack admission, and fail-closed pull-request gates for autonomous agents.
Integrates with Git repositories by providing a pre-commit hook definition that enforces the Governed Agent fail-closed verification gate before commits are accepted.
Provides reusable GitHub Actions workflows for automated CI verification and agent pull-request gating with the Governed Agent verification gate.
Configures the Governed Agent verification gate as a pre-commit hook for running fail-closed checks on staged files.
AETRE & The Governed Agent: Unified Decision-Theoretic Operating System
"Governing Autonomous Intelligence in the Age of Abundance."
A high-performance, mathematically unified decision-theoretic operating system uniting macroeconomic proposal/portfolio triage (AETRE) and microeconomic execution governance (The Governed Agent).
Release status: experimental public alpha. The software and mathematical simulations are testable, but the demonstration records are synthetic and do not establish prospective effectiveness in a live conference, grant, or investment workflow. Use outputs as decision-support diagnostics, not as autonomous acceptance, rejection, funding, or investment decisions.
Based on the research series by Clayton Gray (2026):
The Innovation-Absorption Gap: How Artificial Intelligence Can Accelerate Idea Production Faster Than Complementary Institutions Adapt
Clayton Gray (2026a) — SSRN: 7161458The Admission Frontier: An Economically Regulated Decision-Theoretic Runtime and Fail-Closed Verification Gate for Autonomous Agents
Clayton Gray (2026d) — distributed within the replication bundle The Implementation Frontier: Capital Allocation, Deliberative Stopping, and Verified Agent Gatekeeping (Zenodo: 10.5281/zenodo.22814799)
This software is archived under its own DOI, separate from the papers above: AETRE: Adaptive Epistemic Triage & Recall Engine (Zenodo: 10.5281/zenodo.22098366).
The Problem: The Innovation-Absorption Gap
When Artificial Intelligence makes idea and action generation cheap ($c_{\text{gen}} \to 0$), proposal and execution volume ($N$) explodes. However, downstream evaluation, laboratory validation, code review, and human gatekeeper capacity ($K$) remain strictly finite.
This creates three critical pipeline pathologies:
The Kingman Delay Explosion: When evaluator utilization $\rho = \lambda / \mu$ approaches saturation ($\rho > 0.85$), wait times shoot up non-linearly according to Kingman's Heavy-Traffic equation: $$E[W_q] \approx \frac{\rho}{1-\rho} \cdot \frac{c_a^2 + c_s^2}{2} \cdot \frac{1}{\mu}$$
The Asymmetric Payoff Trap: In heavy-tailed domains like venture capital, breakthrough discovery, and agentic code patches (Pareto index $\alpha \approx 1.25$), consensus-seeking scoring systems penalize high-variance, transformative outliers in favor of safe, incremental proposals.
The Finite-Capacity Recall Ceiling (Proposition 1): Without active epistemic triage, true breakthrough recall asymptotically decays towards zero as arrival rates surge: $$R_N \le \min\left(1, \frac{K_N}{H_N}\right) \to 0 \quad \text{as } N \to \infty$$
Related MCP server: sint-epistemic-mcp
Two-Layer Decision-Theoretic Architecture
AETRE unifies Macroeconomic Pipeline Triage (managing institutional review bandwidth and portfolio recall) with Microeconomic Execution Governance (safeguarding agentic execution runtimes and pull-request verification).
========================================================================================
MACRO LEVEL: Institutional Proposal & Portfolio Triage (AETRE / Gray 2026a)
========================================================================================
Incoming Submissions / Dealflow (N)
│
▼
┌─────────────────────────────────────────────────────────┐
│ 1. Bayesian Value-of-Information (VOI) Engine │
│ - Closed-form normal VOI & Pareto heavy-tailed VOI │
│ - Direct-Pass, Fast-Drop, or Deep-Review allocation │
└─────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────┐
│ 2. Kingman Heavy-Traffic Capacity Governor │
│ - Dynamic queue throttling when ρ → 1.0 │
│ - Preserves reviewer quality; deters burnout │
└─────────────────────────────────────────────────────────┘
│ │
▼ ▼
[ Admitted Cohort (K) ] [ Exploration Audit Pool ]
Optimal Conviction Allocation Horvitz-Thompson H_hat_D Unbiased Audit
========================================================================================
MICRO LEVEL: Autonomous Execution & Verification Gate (Governed Agent / Gray 2026d)
========================================================================================
Autonomous PRs / Candidate Actions
│
▼
┌─────────────────────────────────────────────────────────┐
│ 3. Tripartite Review Boundary & Bellman DP (Road A) │
│ - Computes Expected Value of Verification (V*) │
│ - Classifies AUTO_EXECUTE, REQUIRE_REVIEW, or REJECT │
│ - Fail-Closed: Rejects on malformed input/divergence │
└─────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────┐
│ 4. Heterogeneous cμ-Rule Knapsack Controller │
│ - Value density sorting: ρ_i = Δu_i / c_i │
│ - Budget-constrained admission under shadow prices │
└─────────────────────────────────────────────────────────┘
│ │
▼ ▼
[ Auto-Merged / Dispatched ] [ Escalated to Human Gatekeeper ]Repository Structure
.
├── Cargo.toml # Workspace manifest (AGPL-3.0)
├── crates/
│ ├── aetre-core/ # Pure Rust decision engine:
│ │ ├── src/voi.rs # - Bayesian VOI & heavy-tailed Pareto
│ │ ├── src/governor.rs # - Bellman DP & Tripartite Review Boundary (Road A)
│ │ ├── src/knapsack.rs # - Heterogeneous cμ-rule knapsack controller
│ │ ├── src/queues.rs # - Kingman heavy-traffic capacity governor
│ │ ├── src/audit.rs # - Horvitz-Thompson exploration audit
│ │ └── src/staking.rs # - Super-linear anti-sybil staking
│ ├── aetre-cli/ # Native CLI for simulations, bounds & backtests
│ └── aetre-mcp/ # Model Context Protocol server (24 tools, 4 resources, 3 prompts)
├── python/
│ └── governed_agent/ # Python reference runtime for agent execution governance
├── scripts/
│ └── pre-commit-governed-gate.py # Standalone pre-commit verification gatekeeper
├── tests/ # Python unit & regression suite (79 tests)
├── benchmarks/ # Verification benchmarks and institutional queue sweeps
├── examples/
│ ├── datasets/ # Held-out review and dealflow test splits
│ ├── proposals.json # Benchmark evaluation candidates
│ └── mcp_config.json # Claude Desktop & Cursor connection template
├── .pre-commit-hooks.yaml # Pre-commit hook definition for git integration
├── .github/workflows/
│ ├── ci.yml # Rust & MCP server automated verification
│ └── governed-gate-template.yml # Reusable GitHub Actions agent PR gating workflow
├── CITATION.cff # Dual academic citation metadata
├── Dockerfile # Production container definition
├── fly.toml # Serverless Cloud deployment config
├── DATASETS.md # Fixture provenance and third-party data guidance
├── LICENSE # GNU Affero General Public License v3.0 text
├── LICENSING.md # AGPL licensing and publication status
└── README.mdQuickstart & CLI Usage
1. Run the Rust Test Suite & Verification
cargo test --workspace
cargo clippy --workspace --all-targets -- -D warnings2. Run the Python Reference Governance Suite
python -m unittest discover -s tests3. Run the Standalone Governed Agent Pre-Commit Gate
Fast, fail-closed verification gate for agentic code modifications:
python scripts/pre-commit-governed-gate.py --all-files4. Run the Macro Monte Carlo & Dealflow Benchmarks
# Multi-regime academic triage simulation (500 replications)
cargo run -p aetre-cli -- benchmark --replications 500
# Venture Capital Pareto dealflow benchmark (10,000 deals, α = 1.25)
cargo run -p aetre-cli -- vc-benchmark --deals 10000 --budget 100 --alpha 1.25
# Theoretical Proposition 1 recall ceiling bound
cargo run -p aetre-cli -- bound --arrivals 5000 --capacity 200 --high-rate 0.067 --csv5. Simulate Institutional Heterogeneous Agent Queues
Simulates density-greedy $c\mu$-rule knapsack vs. FIFO across varying institutional review capacities:
python evaluate_institutional_queues.pyModel Context Protocol (MCP) Integration
AETRE provides a high-performance native JSON-RPC 2.0 Model Context Protocol (MCP) server implementing 24 Tools, 4 Resources, and 3 Pre-Configured Prompts for Claude Desktop, Cursor, and autonomous agent sidecars.
Configuration (Claude Desktop / Cursor)
Install the binary (cargo install aetre-mcp),
then add to your claude_desktop_config.json. The server speaks stdio by default:
{
"mcpServers": {
"aetre": {
"command": "aetre-mcp"
}
}
}Local HTTP / Container Mode
cargo run -p aetre-mcp -- --serve --headlessHTTP mode binds to 127.0.0.1:8080 by default and does not enable cross-origin browser access. For container deployment, set AETRE_BIND_ADDRESS=0.0.0.0 and set a strong AETRE_HTTP_SERVER_TOKEN. Non-loopback startup fails closed when that token is absent. POST clients must send it in the X-AETRE-Server-Token header. Also place the service behind a TLS reverse proxy. The bundled Dockerfile supplies the bind address and runs as a non-root user.
Comprehensive 24-Tool Catalog
Macroeconomic Pipeline & Portfolio Tools (AETRE)
aetre_system_catalog: Diagnostic catalog of registered tools, resources, and algorithms.aetre_triage_proposal: Full three-stream triage routing (FAST_DROP,VOI_QUEUE,AUTO_PASS).aetre_calculate_voi: Closed-form Gaussian Value-of-Information ($V^*$) calculation.aetre_check_governor: Kingman heavy-traffic queue delay ($E[W_q]$) forecasting and capacity throttling.aetre_exploration_audit: Horvitz-Thompson unbiased discovery rate estimator ($\hat{H}_D$) for rejected pools.aetre_evaluate_staking: Anti-sybil quadratic staking schedule for incoming proposals.aetre_proposition_1_bound: Asymptotic recall bound ($R_N \le \min(1, K_N / H_N)$) verification.aetre_correlated_posterior_update: Multi-agent reviewer consensus correlation debiasing.aetre_heavy_tailed_voi: Pareto power-law ($\alpha \approx 1.25$) expected value of information for extreme outcomes.aetre_quadratic_staking: Continuous super-linear deposit curves to eliminate volume spam.aetre_heterogeneous_queues: Heterogeneous task duration and multi-server queue delay modeling.aetre_author_preflight_benchmark: Pre-flight variance and review risk diagnostic for manuscript drafts.aetre_simulate_benchmark: End-to-end multi-policy institutional pipeline Monte Carlo simulation.aetre_batch_triage: Bulk dataset triage for high-volume portfolio operations.aetre_recall_scaling_curve: Empirical recall scaling curves across arrival volumes.aetre_congestion_matching: Bipartite reviewer-candidate matching under capacity constraints.aetre_sequential_stopping_rule: Wald sequential likelihood ratio multi-round review termination.aetre_platt_calibrate: Empirical score recalibration via Platt sigmoid transformations.aetre_empirical_bootstrap: Non-parametric bootstrap confidence intervals for triage policies.aetre_frontier_sweep: Multi-dimensional ROC and cost-utility frontier sweep.
Microeconomic Agent Runtime Governance Tools (Governed Agent)
governed_bellman_triage: Evaluates agent action triage via Bellman dynamic programming and computes Expected Value of Verification ($V^*$).governed_review_boundary: Computes the tripartite decision boundary ($\Delta u = u_{\text{auto}} - u_{\text{review}}$) classifying candidates intoAUTO_EXECUTE,REQUIRE_REVIEW, orREJECT.governed_knapsack_admit: Density-greedy $c\mu$-rule knapsack controller packing candidates by value density ($\rho_i = \Delta u_i / c_i$) under budget $K$.governed_gate_pr: Road A fail-closed pull request gatekeeper evaluating verification, costs, blast radius, and test regressions.
Autonomous Agent Pre-Commit & CI Integration
The Governed Agent gatekeeper can be integrated into any autonomous coding agent pipeline (Claude Code, Cursor, GitHub Actions, pre-commit):
Pre-Commit Integration (.pre-commit-config.yaml)
repos:
- repo: local
hooks:
- id: governed-gate
name: Governed Agent Verification Gate (Road A)
entry: python scripts/pre-commit-governed-gate.py
language: python
types: [python]GitHub Actions Pull Request Gate
See .github/workflows/governed-gate-template.yml for a complete workflow that fails closed on any unverified autonomous pull request.
Research publication status
AETRE is an independent open-source research project. No new commercial licenses, paid pilots, managed hosting, consulting, or paid support are currently offered. The project website is paused. Reports and questions can be submitted through this repository's issues; see SECURITY.md for private security reports.
The code remains available under AGPL-3.0-or-later, including for commercial use that complies with that license. This publication status does not revoke rights already granted or alter any existing written agreement.
Citation & Academic Reference
If you use AETRE or the Governed Agent runtime in your research or production systems, please cite:
@article{gray2026innovation,
title={The Innovation-Absorption Gap: How Artificial Intelligence Can Accelerate Idea Production Faster Than Complementary Institutions Adapt},
author={Gray, Clayton},
journal={SSRN Electronic Journal},
year={2026},
doi={10.2139/ssrn.7161458},
url={https://ssrn.com/abstract=7161458}
}
@software{gray2026admission,
title={The Admission Frontier: An Economically Regulated Decision-Theoretic Runtime and Fail-Closed Verification Gate for Autonomous Agents},
author={Gray, Clayton},
year={2026},
publisher={Zenodo},
doi={10.5281/zenodo.22814799},
url={https://doi.org/10.5281/zenodo.22814799}
}License & Contact
The code is licensed under AGPL-3.0-or-later, including for commercial use subject to its terms. See LICENSING.md. Third-party components retain their own terms; the locked Rust dependency inventory and bundled notices are in THIRD_PARTY_NOTICES.md.
Bundled demonstration datasets are synthetic fixtures, not empirical validation corpora. This includes the institutional queue examples and the 15-task gatekeeper demonstration. See DATASETS.md for their scope and provenance. Evaluation fingerprints are reproducibility identifiers, not proof of external validation or a guarantee of safe execution.
Author & Maintainer: Clayton Gray
Project questions: GitHub issues
Private security or privacy reports:
privacy@lithiumeel.com
Available Tools
20 toolsaetre_author_preflight_benchmarkC
Comprehensive pre-submission diagnostic scorecard for authors and researchers, calculating crowd novelty percentile, reviewer disagreement risk, and prescriptive refinement actions.
Inputs: text (required), title, api_key, selection_boundary.
aetre_batch_triageC
Batch applies disclosed, uncalibrated lexical indicators to a cohort, computing heuristic ranks, VOI ranks, and demonstration stream allocation (Stream A Fast-Reject, Stream B Deep Review, Stream C Fast-Pass).
Inputs: proposals (required), api_key, selection_boundary.
aetre_calculate_voiA
Calculates the exact Bayesian Value of Information (VOI) for crossing a top-K selection boundary under Gaussian conjugate updates.
Inputs: posterior_mean (required), posterior_variance (required), selection_boundary (required), api_key, +2 more.
aetre_calibrate_scorerA
Fits Platt logistic scaling on continuous model scores and binary labels, returning slope, intercept, Expected Calibration Error (ECE), and Brier score.
Inputs: labels (required), scores (required), api_key, iterations, +1 more.
aetre_check_governorA
Evaluates evaluator queue load using Kingman's Heavy-Traffic approximation and returns governor throttle recommendations when utilization exceeds rho >= 0.85.
Inputs: arrival_rate (required), service_rate (required), api_key, cv_service, +2 more.
aetre_congestion_matchingA
Optimizes reviewer-to-proposal assignment by maximizing domain/keyword affinity while enforcing Kingman queue utilization constraints (rho <= 0.85) on individual reviewer workloads.
Inputs: proposals (required), reviewers (required), api_key, target_utilization.
aetre_evaluate_stakingC
Simulates submitter entry equilibrium under generative AI generation costs and refundable submission deposits to curb spam floods.
Inputs: submission_fee (required), generation_cost (required), acceptance_capacity (required), private_acceptance_value (required), +2 more.
aetre_exploration_auditB
Calculates the unbiased Horvitz-Thompson exploration audit estimator (H_hat_D) and 95% confidence intervals on deprioritized candidates to catch false negative breakthroughs.
Inputs: audited_sample_size (required), deprioritized_pool_size (required), audited_high_value_found (required), api_key.
aetre_heavy_tailed_voiB
Calculates Generalized Pareto / Heavy-Tailed Value of Information (VOI) to optimize selection pipelines for positive black swan breakthrough discovery.
Inputs: posterior_mean (required), posterior_variance (required), selection_boundary (required), api_key, +3 more.
aetre_heldout_backtestC
Runs a multi-policy held-out review allocation backtest across 8 triage policies under fixed review budget K, evaluating true decision flips, precision, recall, and paired bootstrap intervals.
Inputs: split, budget, api_key, dataset, +1 more.
aetre_heterogeneous_queuesB
Evaluates a multi-specialist heterogeneous reviewer network, identifying bottleneck domains and generating capacity rebalancing actions.
Inputs: pools (required), api_key.
aetre_multi_attribute_voiC
Computes multi-attribute Bayesian Value of Information across orthogonal proposal evaluation dimensions (Novelty, Rigor, Impact, Feasibility), outputting composite VOI and optimal dimension-specific review targets.
Inputs: dimensions (required), api_key, composite_threshold, review_cost_per_dim.
aetre_proposition_1_boundB
Calculates Proposition 1 theoretical recall ceiling R_N <= min(1, K_N / H_N) to determine if a pipeline is mathematically capacity-constrained.
Inputs: high_value_rate (required), total_candidates (required), selection_capacity (required), api_key.
aetre_quadratic_stakingA
Calculates super-linear anti-sybil staking deposit requirements (Stake(m) = S_0 * m^gamma) to deter mass AI spam submissions while preserving human entry.
Inputs: base_fee (required), submission_count (required), api_key, generation_cost, +2 more.
aetre_recall_scaling_curveA
Calculates the Proposition 1 theoretical recall decay curve across arrival expansion scales (e.g. 1x, 2x, 5x, 10x, 20x, 50x) demonstrating capacity collapse points.
Inputs: api_key, multipliers, high_value_rate, baseline_arrivals, +1 more.
aetre_sequential_stopping_ruleC
Calculates optimal dynamic Bayesian stopping boundaries for sequential reviews (Accept, Reject, or Solicit More Reviews) based on posterior decision confidence and boundary VOI.
Inputs: reviews (required), threshold (required), prior_mean (required), prior_variance (required), +4 more.
aetre_simulate_benchmarkC
Runs a paired-cohort Monte Carlo simulation across all 4 screening regimes, comparing Quality Throughput, FDR, Unconventional Recall, and Human Reviews with central 95% run-to-run outcome intervals (not confidence intervals for the mean).
Inputs: api_key, replications, baseline_arrivals, evaluation_budget, +4 more.
aetre_system_catalogB
Comprehensive system introspection returning AETRE architecture, bundled synthetic fixtures, optional data adapters, connectors, mathematical tools, and institutional tiers.
Inputs: api_key, query_type.
aetre_triage_proposalB
Applies transparent, uncalibrated lexical routing indicators to proposal text, then calculates a VOI index and demonstration stage route (FAST-PASS, FAST-REJECT, or DEEP REVIEW). Not a validated estimate of scientific quality.
Inputs: text (required), title, api_key, selection_boundary.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Each tool targets a distinct mathematical or operational aspect of the review/triage pipeline, from VOI calculations to staking and congestion management. Even similar tools like aetre_calculate_voi, aetre_heavy_tailed_voi, and aetre_multi_attribute_voi are clearly differentiated by their specific model variants and outputs, eliminating ambiguity.
All tools share the 'aetre_' prefix and follow a consistent snake_case verb_noun or noun_modifier pattern (e.g., 'calculate_voi', 'check_governor', 'system_catalog'). While verbs vary (calculate, check, evaluate, simulate), the naming is uniform and predictable, making tool selection straightforward.
With 20 tools, the set is on the heavier side, but the complexity of the domain (a full simulation and optimization system for scientific review) justifies this count. Each tool addresses a specific functional need, and the server is well-scoped; it would be difficult to reduce the count without losing essential capabilities.
The tool surface covers the major lifecycle stages of the pipeline: triage, VOI, staking, queue analysis, backtesting, calibration, and simulation. Minor gaps exist, such as no explicit tool for managing data inputs/outputs or handling individual review assignments, but these are likely handled by the system catalog and other core functions. Overall, the set is comprehensive for its stated purpose.
Maintenance
Related MCP Connectors
Evidence-weighted decision engines: AI business cases, venture readiness, free soundchecks.
Pre-diligence AI for founders, investors, and firms — multi-agent pitch analysis and deal flow.
Multi-expert decision intelligence with transparent synthesis and auditable workflows.
Traceable scientific novelty and evidence assessment with source-linked results and a human gate.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server that enforces evidence-graded, phase-gated, peer-reviewed research workflows for AI agents to conduct rigorous decision-making.1MIT
- AlicenseNot gradedqualityBmaintenanceTracks what an agent KNOWS vs INFERS vs ASSUMES with calibrated confidence. Provides tools to register, query, and analyze epistemic status of claims across domains.Apache 2.0
- AlicenseAqualityCmaintenanceEnables screening of article titles and abstracts against a research question or clinical query using TypeSafe Jev, returning include/maybe/exclude decisions with calibrated probabilities from PubMed searches, PMIDs, or custom records.32MIT
- AlicenseAqualityCmaintenanceEnables agents to search and reference trusted, out-of-band ingested source state, run claim-bound document reviews, validate evidence-status proposals against admissibility guards, and build evidence matrices. It keeps proposal, evidence, admissibility, and adjudication separate so agents can propose epistemic statuses without creating the source facts, page locators, provenance, or missingness records that support them.5MIT