3-Layer SEF Architecture
June 7, 2026
10 min read
by Ben White

Stop Prompting, Start Compiling: Open-Sourcing the Structural Execution Framework (SEF-DTE)

(Season 3, Post 3) To deploy agentic systems in production, we must strip the model of its creative freedom and bind it to deterministic engineering laws.

Agentic Architect

In our last post, we successfully engineered an Agentic Data Pipeline. We gave a Databricks Foundation Model access to Unity Catalog, fed it raw data, and watched it dynamically generate a secure, vectorized Delta Live Tables (DLT) execution graph.

The code was cool. But it left us with an uncomfortable architectural reality check: How do we mathematically guarantee the LLM writes it exactly this way, every single time?

How do we prevent a probabilistic model from "helpfully" hallucinating a standard SparkSession instead of a @dlt.table? How do you ensure it doesn't bypass a PII masking function when a user phrases their prompt slightly differently?

The enterprise ecosystem is currently suffering from an AI Abstraction Crisis. We are treating LLMs like magic boxes, hoping that if we ask them nicely—"please don't write malicious code"—they will comply.

You cannot build a firewall out of English. Natural language alignment is a single point of failure.

To deploy agentic systems in production, we must strip the model of its creative freedom and bind it to strict, deterministic engineering laws. We have to move from prompt engineering to systems architecture.

Today, I am open-sourcing the solution.

Welcome to the Structural Execution Framework for Deterministic Task Execution (SEF-DTE).

[Read the Full SEF-DTE Manifesto Here]

[View the Source Code on GitHub]

Engineering Determinism

SEF-DTE is a platform-agnostic, zero-dependency framework designed to enforce absolute operational constraints on Large Language Models. It operates on three absolute laws:

  1. Complete Separation of Concerns: System logic belongs to the architects; runtime context belongs to the data environment; user inputs belong to the client. These three vectors must never be concatenated into a single string.

  2. GitOps over Code-Chasing: Behavioral updates and compliance constraints must never require an application deployment. Governance lives in declarative YAML, not in Python.

  3. Defense in Depth: No single model or prompt can be trusted to police itself.

To enforce these laws, SEF-DTE wraps the model in a strict 3-Layer architecture:

Layer 1: The Interceptor Gateway

Before a single API token is spent, user payloads are algorithmically screened. SEF-DTE ships with native deterministic heuristic scanners (catching regex signatures and buffer overflows) and enterprise adapters for semantic engines like NVIDIA NeMo Guardrails. If a payload is malicious, the pipeline fails.

Layer 2: The RCCO Engine

Instead of concatenating strings in Python, SEF-DTE uses Pydantic and Jinja2 to dynamically compile schemas and enterprise context into immutable system profiles based on the Role, Context, Constraints, and Output (RCCO) paradigm. Changing an agent's constraints is as simple as updating a version-controlled YAML file.

Layer 3: The LLM-as-a-Judge

The primary code-generating model is treated as an untrusted runtime. Its output is intercepted asynchronously and evaluated by a secondary Judge model. Using forced JSON endpoints, the Judge returns a strict {"passed": true} or {"passed": false, "violations": [...]} verdict before the execution code is ever passed downstream.

Platform Agnostic Abstraction

SEF-DTE was built to survive the model wars. By utilizing "dumb" Python adapters, the framework maps its compiled YAML profiles to the exact API dialects of the target model, the repo currently provides examples for:

  • The Databricks Foundation Model SDK

  • Google GenAI (Gemini 2.5)

  • OpenAI

  • Anthropic

The Era of "Please" is Over

It is time to stop prompting and start compiling. Build your pipelines with structures, not hopes. Lock down your execution, command your data, and turn your probabilistic AI into deterministic enterprise software.

Clone the repository, read the documentation, and let me know how you are implementing structural execution in your architectures.