$ fssg build --deterministic --validate |

NVIDIA NOOA: A Python Object Is Not a Runtime Contract

AI Engineering

NVIDIA NOOA makes state, capabilities, prompts, and generated methods look like ordinary Python.

In NVIDIA-labs OO Agents (NOOA), an agent is a Python object. Its fields hold state. Its methods expose capabilities. Its docstrings become prompts. Its type annotations define contracts. A method with a normal body keeps its developer-authored Python implementation; a method whose body is only ... is completed at runtime by an LLM-driven loop. An ordinary method is deterministic only when its dependencies are controlled.

That is a clean programming model. It also reveals a boundary I care about: making an agent look like software does not automatically give it software-grade authority, isolation, or evidence.

class SupportAgent(Agent):
    """You are a support agent."""

    order_db: OrderDB

    def is_refund_eligible(self, order: Order) -> bool:
        return order.delivered and order.days_since_delivery <= 30

    async def triage(self, message: str, order: Order) -> Ticket:
        """Create a typed support ticket."""
        ...

The last method has a precise signature, but its task-specific implementation is not written in the class. Its behavior emerges through the model loop during execution.

NOOA puts the probabilistic boundary inside Python

Many agent frameworks distribute behavior across prompt templates, tool schemas, callback handlers, workflow graphs, and state stores. NOOA compresses those concepts onto one familiar surface:

field             -> state
method            -> capability
docstring         -> prompt
type annotation   -> interface contract
... body          -> probabilistic implementation
normal body       -> developer-authored implementation

This does not eliminate the harness. It makes the harness legible as Python.

That distinction matters. A developer can inspect the class, test ordinary methods, refactor names, trace calls, and use standard version control. The model can work through the same object rather than navigating a second universe of serialized tool descriptions. Human and model interfaces move closer together.

But the source code now contains two different kinds of meaning. An ordinary method says what the machine will execute. A generation method says where the model will be asked to produce behavior.

The class is therefore not the complete program. It is a typed boundary around a program that partly materializes at runtime.

A type contract is not an authority contract

Consider this signature:

async def issue_refund(order: Order) -> RefundReceipt:
    ...

It gives the NOOA runtime a schema it can enforce. The signature declares expected input and output shapes; runtime validation can reject an invalid result and trigger a repair loop. Other Python code can consume a validated RefundReceipt instead of parsing free text.

But a structurally valid receipt does not prove that:

  • the customer was entitled to a refund;
  • this agent was authorized to issue it;
  • the order was still in the same state at commit time;
  • the payment provider accepted the operation;
  • the external effect happened exactly once;
  • the returned object describes reality rather than a plausible intention.

These are different contracts.

interface contract    -> is the value shaped correctly?
behavior contract     -> were the task invariants preserved?
authority contract    -> was this operation permitted?
effect contract       -> what external state transition was committed?
evidence contract     -> what proves the transition occurred?

Python annotations declare the first line; NOOA runtime validation enforces it. The same annotations can support the other contracts, but cannot establish them by themselves.

This is the same separation I formalized in AI Agents Need Two Contracts: Behavior and Execution. NOOA provides unusually clean evidence for the interface side of that argument. Its design makes agent behavior easier to express and inspect. The remaining question is what the runtime must verify before probabilistic intent becomes an irreversible effect.

Pass-by-reference changes the economics of context

One of NOOA's strongest ideas is not the class syntax. It is keeping live objects in the execution environment.

Conventional tool loops repeatedly serialize data through the model context:

model -> tool call -> serialized result -> context -> model -> next call

NOOA can keep a full object alive by reference while showing the model a bounded representation. The model writes Python against a variable instead of receiving the complete payload again on every turn.

NVIDIA reports that this design helped its SWE-bench Verified harness avoid context compaction with frontier models and preserve an append-only, cache-friendly transcript. The company also reports 82.2% on SWE-bench Verified with GPT-5.5 at roughly 1.1 million tokens per task. Those are NVIDIA's benchmark results, not an independent reproduction, but the mechanism is architecturally credible: references can be cheaper than repeatedly converting working state into text.

They also create a new contract problem.

A live object can mutate. Its preview can become stale. Two methods can hold references to the same state. A model may know an object exists without seeing which capabilities it carries. If the runtime cannot answer when the value was observed, who may mutate it, and which version an action used, token efficiency can become state ambiguity.

For production use, I would add an explicit provenance contract around each live reference:

object reference
+ version or freshness marker
+ capability scope
+ mutation policy
+ trace identity

Without those fields, pass-by-reference saves tokens but weakens the account of what the model actually acted upon.

Code as action is powerful because it removes the menu

NOOA lets the model act by writing Python in a REPL-like environment. Instead of selecting one JSON tool call at a time, it can compose methods with variables, loops, conditions, and local control flow.

That is more expressive than a fixed tool menu. It may also be more efficient: intermediate values can stay in the environment, and deterministic checks can run inline without another model round trip.

The cost is a larger blast radius.

Generated Python can combine capabilities in ways the developer did not enumerate. Reflection, imports, filesystem access, and live object references make in-process restrictions difficult to treat as security boundaries. NOOA's own documentation is explicit here: AST validation and module deny-lists are defense-in-depth guardrails, not containment. Agents that execute generated code need operating-system-level isolation such as a container, VM, or NVIDIA OpenShell.

That warning is not a footnote. It is the architecture.

Python class   -> programming surface
annotations    -> value-shape constraints
harness        -> model loop and context semantics
policy         -> allowed capabilities and effects
sandbox        -> containment boundary
trace          -> execution evidence

Collapsing these layers into “the agent is one class” would miss what makes the system safe enough to study.

Inspectable source is not inspectable behavior

NOOA is right that agents should participate in normal software workflows. A class can be diffed, reviewed, tested, versioned, and refactored. For teams that prefer code review over configuration spread across several surfaces, this can make the execution model easier to follow.

Yet a reviewer who sees:

async def triage(...) -> Ticket:
    ...

has not reviewed the runtime implementation of triage. The reviewer has inspected its name, prompt, inputs, output type, surrounding state, and harness configuration. The behavior still depends on the model, context, loop strategy, available methods, policy, and stopping conditions present during a particular run.

So the reviewable unit cannot be only the class. It must include an execution artifact:

class version
+ model and strategy
+ rendered context
+ object-state references
+ capability grants
+ generated code
+ deterministic checks
+ committed effects
+ trace and receipts

This is why I treat compiler and runtime artifacts as first-class engineering objects in FACET. A readable specification matters, but the stronger question is whether we can inspect what was prepared, authorized, executed, and observed. I described that boundary in FACET Compiler Inspection Artifacts.

Independent convergence around the right surface

NVIDIA presents NOOA as an open-source research preview and has included its agent-harness research among the company's contributions to the Open Secure AI Alliance. The repository remains under NVIDIA-NeMo; this is a contribution to the alliance's open agent-security work, not evidence that project ownership was transferred to an independent foundation.

What interests me is the architectural convergence.

NOOA and FACET are not the same system. NOOA focuses on a Pythonic object model and an agent harness. FACET has a broader concern: a formal contract layer between probabilistic intent and execution, including canonical representation, context, policy, provider boundaries, and inspectable runtime artifacts.

But the shared direction is real:

  • agent state should be explicit;
  • interfaces should be typed;
  • deterministic and probabilistic work should be distinguishable;
  • context should be managed as a system resource;
  • execution should be traceable;
  • security cannot stop at the prompt;
  • the model is only one component of the agent stack.

I see NOOA as independent architectural convergence around concerns I have also formalized in FACET—not proof of influence, validation of FACET itself, or a claim that the systems are equivalent.

From class to execution

NOOA makes a useful bet: agent programming should feel like programming. I agree. The production question is how that class participates in an execution system with explicit boundaries:

agent proposes
contract constrains
runtime authorizes
sandbox contains
validator checks
trace proves

The ellipsis can remain probabilistic. The path from that ellipsis to the world cannot.

Sources

FACET AI CLI Terminal
facet@ai:~$