Skip to content
The Algorithm logoThe Algorithm
The Algorithm Labs

Research at the edge of
regulated AI.

Foundational research into the safety, governance, and failure modes of AI systems operating in regulated environments. Not proof-of-concepts. Problems we have encountered in production, studied, and published.

What Labs Is
LAB

The Algorithm Labs is the research function of The Algorithm. Every platform we build — ALICE, SentienGuard, Regure, clinIQ — generates edge cases that become research problems. Labs documents, studies, and publishes those problems.

We publish on SSRN. We share findings with our clients. We present at relevant conferences.

This is not marketing. It is engineering honesty about the hardest problems in the spaces we work.

Research Areas

Three active
research programs.

Every area originated in a production problem. The research informs architecture. The architecture informs the next research question.

AI Governance in Autonomous Systems

When AI agents make decisions autonomously — in clinical workflows, compliance pipelines, financial processing — the question of accountability becomes structural. Who is responsible when a HIPAA-compliant AI misclassifies a patient record? When an autonomous trading system breaches an FCA rule between update cycles? Traditional governance frameworks assume a human decision-maker at every step. We study what governance looks like when the decision-maker is a model, and what audit trail requirements must be built into the architecture from the start.

Status: Active
Papers: Prompting as Governance; Constraint-Based Determinism; The Evidence Warrant

Healthcare Data Sovereignty

The assumption that data residency equals data sovereignty is breaking down. PHI processed by a US-based cloud provider for a UK NHS trust, governed by UK GDPR, processed under HIPAA, stored in an EU data center — the jurisdictional layers are not theoretical. They are in production. We study the technical and legal intersections of multi-jurisdiction PHI handling, including cross-border AI training data governance and the implications of AI Act Article 9 for regulated health AI.

Status: Active
Papers: Patient-Owned Health Records; Domain-Aware De-Identification

Stochastic Logic Drift in AI Agents

Large language models and agentic systems do not degrade uniformly. They drift. A model that passes compliance validation in testing may produce subtly non-compliant outputs in production — not because the model was updated, but because the distribution of real-world inputs diverges from the test distribution over time. We call this stochastic logic drift. We are studying detection methods, alerting thresholds, and architectural patterns that make drift observable before it produces a regulatory incident.

Status: Active
Paper: Verifiable Resilience via ProofGrid Proof-of-Action Protocols
Research Into Production

Platforms built on
Labs research.

The findings do not stay in papers. They become architecture decisions, enforcement gates, and monitoring patterns inside the platforms we operate.

Publications

What we've put
our name on.

Nine papers by Piyoosh Rai, founder, published on SSRN. Each one started as a production problem.

Healthcare AISSRN · 2026

The Evidence Warrant: Why Healthcare AI Should Assert Claims Through Auditable Evidence Contracts, Not Confidence Scores

Confidence scores say how reliable a model is on average, not whether the evidence behind one specific claim is enough to state it. The paper proposes evidence contracts that declare required evidence and allowed behaviours (assert, qualify, downgrade, abstain), with a 10,000-scenario benchmark that tests whether a system honours its own contracts.

Read on SSRN →
Data SovereigntySSRN · 2026

Domain-Aware De-Identification for AI-Assisted Document Processing in Regulated Industries: A Taxonomy-Driven Framework

Generic entity recognition masks business terms that look like personal data, which breaks downstream AI. A four-stage tokenize, classify, extract, re-identify pipeline guided by a domain vocabulary keeps personal data away from the model while preserving the terminology it needs. Validated in a production insurance deployment under the Swiss FADP.

Read on SSRN →
Verifiable AuditSSRN · 2026

Cryptographic State-Transition Anchoring: A Merkle-Tree Framework for Zero-Knowledge Regulatory Compliance in Insurance Operations

Mutable databases and access-controlled logs ask regulators to trust the vendor. The Regure Immutable Audit protocol organises insurance events into per-tenant Merkle trees, signs daily roots with hardware-backed keys, and anchors them to independent immutable witnesses so an auditor can verify any single event without seeing personal data.

Read on SSRN →
AI GovernanceSSRN · 2026

Constraint-Based Determinism in Agentic Insurance Workflows: A Hybrid Symbolic-Neural Architecture for Claims Adjudication

A formal state machine sits between LLM reasoning and execution, so agents can only take transitions inside a verified graph of permitted actions. Model checking against a P&C claims lifecycle showed policy constraint violations eliminated by the execution architecture itself, not by improving the model.

Read on SSRN →
AI GovernanceSSRN · 2026

Prompting as Governance: Behavioral Gaps and Control System Failures in AI-Assisted Infrastructure Operations

Across 570 controlled experiments on 90 infrastructure scenarios, governance quality depended heavily on how operators prompted, and degraded sharply under time pressure, with idempotency collapsing entirely. The conclusion: prompting cannot stand in for architectural enforcement where compliance and change control are mandatory.

Read on SSRN →
Decision ScienceSSRN · 2026

Evaluating Recruitment Robustness: A Multi-Dimensional Ranking Framework Using Type-Reduced q-Rung Orthopair Fuzzy Sets for High-Variance Talent Pools

Candidate scores rarely say how certain they are. This framework separates scoring from uncertainty, measures disagreement across four evaluation models, and triggers targeted follow-up questions when disagreement is high. Validated on 10,000 profiles and implemented in LayersRank.

Read on SSRN →
Logic DriftSSRN · 2026

Verifiable Resilience: Mitigating Stochastic Logic Drift in Autonomous Agents via ProofGrid Proof-of-Action Protocols

Defines stochastic logic drift, the gradual divergence of agent behaviour from its objectives over long contexts and adversarial pressure, and presents ProofGrid: attestation chains and Byzantine-tolerant consensus that turn resilience into continuous verification rather than monitor-and-restart.

Read on SSRN →
Data SovereigntySSRN · 2025

Patient-Owned Health Records: A Policy Framework for Post-EHDS Healthcare Data Sovereignty

The 21st Century Cures Act and the European Health Data Space make patient access a right, yet records stay locked in institutional silos. The PHeaMeR framework sets out principles for moving from institution-controlled records to patient-owned profiles with cross-border portability.

Read on SSRN →
Decision ScienceSSRN · 2025

The Pi Trajectory Model: A Probabilistic Framework for Forecasting Business Goal Achievement

Adapts options-pricing mathematics to estimate the probability of hitting business milestones from volatility, growth, time horizon, shock risk, and opportunity cost. Back-tested against more than 30 public companies across technology, energy, and healthcare.

Read on SSRN →
All papers on the SSRN author page →
Collaborate

Working on adjacent
problems?

If you are working on adjacent problems — in healthcare AI, autonomous compliance systems, or multi-jurisdiction data governance — we are interested in talking.

Get in Touch
Engage Us