Agent Input Trust Gate Verification & Gating Logic
How does the agent input gate evaluate multi-source observation bundles before allowing an action?
This interactive tool processes multi-source observations across multiple signals (such as ETH/USD price and rainfall) through a sequential three-stage gating pipeline: freshness, median agreement, and quorum. First, observations older than the signal's maximum allowable age are classified as stale. Second, the median of the fresh values establishes an anchor center, and a relative percentage tolerance band filters out deviant outliers. Finally, an individual signal passes only if the count of accepted observations equals or exceeds its quorum requirement. The overall decision is conjunctive: every required signal must pass its quorum for the gate to permit execution.
The model applies deterministic, heuristic in-browser arithmetic to synthetic observation bundles. It does not check cryptographic digital signatures, verify oracle node identity, enforce transport layer security, or validate Byzantine fault tolerance across decentralized networks. The relative median band heuristic assumes honest majority among fresh reporting sources; if compromised feeds form the median, genuine readings could be flagged as deviant.
Try a worked example
Click 'Evaluate trust' with the default bundle. The engine evaluates two signals: ETH/USD has three observations with maximum age 60s, yielding a fresh median center of 3510.00 and ±1% band (3474.90 to 3545.10); source_A (3500) and source_B (3510) are accepted while source_C (4200) is rejected as deviant, meeting the quorum of 2. Rainfall has three observations where station_C is 400s old (exceeding the 300s limit), leaving station_A (22) and station_B (23) to establish a fresh median of 22.50 within ±10%, satisfying its quorum of 2. Because both signals meet quorum, the gate displays ALLOW. Clicking 'Corrupt ETH source' modifies source_B to 4000, leaving only one observation within the tolerance band, causing ETH to fail quorum and flipping the gate to BLOCK.
Three-Stage Evaluation Pipeline
For each signal group in the parsed CSV, the gate first discards rows where age_seconds exceeds max_age_seconds. The remaining observations form the fresh cohort.
The median of the fresh values is calculated as the signal center. A tolerance threshold is calculated as the absolute center multiplied by tolerance_pct / 100. Observations deviating from the center by more than this band are marked as deviant, while those within tolerance are accepted.
The signal passes if the accepted count meets or exceeds the specified quorum. The system requires all designated signals to pass for an overall ALLOW decision.