Black-Box Reliability Certification for AI Agents via Self-Consistency Sampling and Conformal Calibration
Charafeddine Mouzouni · Under review, TMLR (double-blind) · 2026
Given a black-box AI system and a task, how far can a practitioner trust its answers? We answer with a single reliability level per system-task pair that needs only API access: each query is answered K times, the distinct answers are ranked by frequency, and split-conformal calibration of that rank gives a finite-sample, distribution-free guarantee.
Result: Across five benchmarks and five models from three families, the reliability level ranges from 66.5% (GPT-4.1-nano on MMLU) to 96.8% (GPT-4.1 on TruthfulQA). Two negative findings are reported with them: a single-call LLM judge approves 38 to 94% of the incorrect answers it sees, and certified early stopping saves no samples at typical API budgets.
StatusUnder review at TMLR
ImplementationTrustGate (open source)
Invitations to Search: System-Prompt Sentences That Raise Backdoor-Seeking in Coding Agents
Charafeddine Mouzouni · Cohorte AI · arXiv preprint · 2026
Which system-prompt sentences send a coding agent looking for a planted test-runner backdoor? Agents solved programming tasks in Docker sandboxes, every prompt carrying an explicit access-policy instruction plus one varied sentence. 36 sentences across 12 dimensions on four models, 4,968 valid trials of 7,400 attempted. The harness measures backdoor-seeking, not cheating: it cannot tell whether an agent relied on the file it found.
Result: Only two of 144 comparisons survive correction, both on Claude Sonnet 4: a puzzle frame and a capture-the-flag frame raised seeking from 0/150 to 39% and 34% over three runs. CTF framing also raised it on o4-mini, GPT-5-mini and DeepSeek-V3 to 9–13%. GPT-4.1 was never flagged in 2,250 trials.
StatusarXiv preprint, 2026
Code & dataPublic repository
Context Kubernetes: Declarative Orchestration of Enterprise Knowledge for Agentic AI Systems
Charafeddine Mouzouni · arXiv preprint, v4 · December 2026
Delivering the right knowledge, to the right agent, with the right permissions, at the right freshness, within the right cost envelope, across an organization, is structurally the container-orchestration problem Kubernetes solved a decade ago. We introduce a declarative manifest, a reconciliation loop, and a permission model in which an agent's authority is a strict subset of its user's, with high-risk actions approved over a channel the agent cannot read or write.
Result: A 3,711-line prototype on a synthetic corpus of eight documents. The main finding is our own failure, missed in versions 1 to 3: unscoped connectors stamped every file with the connector's own role, so the governed pipeline sent HR and finance content to a sales agent in most queries while every permission check passed. With the labels corrected, a size-matched access-control filter answers more of the queries the agent may answer, 116 of 134 against 105, at the same pooled precision. Access control is only as good as its labels.
StatusarXiv preprint, v4 (December 2026)
Reference implementationContext Kubernetes (open source)
Congestion or Temperature? Expert Routing as a Mean-Field Game, Tested Across Mixture-of-Experts Training
Charafeddine Mouzouni · arXiv preprint, v2 · December 2026
A congestion game is the textbook model of how a Mixture-of-Experts router trades expert quality against load. We fit its mean-field version, whose single parameter is a congestion coefficient, to 14 public training checkpoints of OLMoE-1B-7B. Near balanced load, the equilibrium agrees to first order with softmax routing at a shifted temperature, so congestion and temperature are confounded.
Result: Once a temperature is fitted alongside congestion, no positive congestion improves the fit by more than 0.002, and the constrained fit returns zero in every layer at every checkpoint but one. What training changes is the effective temperature: 0.95, falling to 0.90 by step 25K, rising to 1.08 at the released model. Version 1 reported a three-phase congestion trajectory. It came from an estimator that is not invariant to a common shift of the gate logits, and v2 withdraws it.
StatusarXiv preprint, v2 (December 2026)
Code & dataPublic repository