TO2D

Architecture Lab

Primitives

Contracts

Concept

Contracts define exact shape and semantics for model outputs before they can enter downstream systems.

Formal Idea

contract(y_t) -> {valid, violations}

System Implications

  • Tool interfaces remain stable under model variance.
  • Invalid states are blocked before side effects occur.
  • Repair loops can target concrete violations.

Real Example

Enforcing typed action payloads for browser automations so command execution only runs after contract validation succeeds.