Aegis-Gateway: A Provable Filter-Ordering Billing Invariant and a Preliminary Case Study of Perimeter Prompt Filtering in a Reactive LLM Gateway

This paper presents Aegis-Gateway, a reactive perimeter gateway for Large Language Model (LLM) applications that combines prompt inspection, tenant authentication, token-budget enforcement, distributed tracing, and cross-provider failover. Its primary contribution is a formally stated filter-ordering billing invariant: under explicit architectural assumptions, placing the security filter strictly before the token-budgeting filter guarantees zero client-side token deduction for security-rejected requests. The paper also presents a preliminary pilot case study of a two-tier inspection cascade consisting of an in-memory heuristic pre-filter and a dense-vector prototype matcher. The pilot measures inspection latency and threshold-constrained detection behavior, including the impact of remote embedding latency and benign–attack score overlap. Results are explicitly treated as directional and hypothesis-generating because of the small, single-author, single-run, author-curated evaluation. The paper documents the gateway architecture, formal assumptions, experimental methodology, security controls, limitations, and directions for larger independently sourced follow-up studies.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-10-03
DOI
https://doi.org/10.5281/zenodo.23112097
Primary Topic
Software System Performance and Reliability
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

Aegis-Gateway: A Provable Filter-Ordering Billing Invariant and a Preliminary Case Study of Perimeter Prompt Filtering in a Reactive LLM Gateway

Shaikh Mohammed Burhan
Zenodo (CERN European Organization for Nuclear Research)
Software System Performance and Reliability
preprint

Aegis-Gateway: A Provable Filter-Ordering Billing Invariant and a Preliminary Case Study of Perimeter Prompt Filtering in a Reactive LLM Gateway

Shaikh Mohammed Burhan
preprint en

Abstract

This paper presents Aegis-Gateway, a reactive perimeter gateway for Large Language Model (LLM) applications that combines prompt inspection, tenant authentication, token-budget enforcement, distributed tracing, and cross-provider failover. Its primary contribution is a formally stated filter-ordering billing invariant: under explicit architectural assumptions, placing the security filter strictly before the token-budgeting filter guarantees zero client-side token deduction for security-rejected requests. The paper also presents a preliminary pilot case study of a two-tier inspection cascade consisting of an in-memory heuristic pre-filter and a dense-vector prototype matcher. The pilot measures inspection latency and threshold-constrained detection behavior, including the impact of remote embedding latency and benign–attack score overlap. Results are explicitly treated as directional and hypothesis-generating because of the small, single-author, single-run, author-curated evaluation. The paper documents the gateway architecture, formal assumptions, experimental methodology, security controls, limitations, and directions for larger independently sourced follow-up studies.

Zenodo (CERN European Organization for Nuclear Research)
Software System Performance and Reliability
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Aegis-Gateway: A Provable Filter-Ordering Billing Invariant and a Preliminary Case Study of Perimeter Prompt Filtering in a Reactive LLM Gateway — Shaikh Mohammed Burhan · Zenodo (CERN European Organization for Nuclear Research) (2026) | TGRS Research Map | TGRS