OKHAM.org Documentación EnglishCastellano

Edición publicada en febrero de 2026

Documento original en inglés

LLM Start Here — OKHAM Implementation Guide

Target Audience: Large Language Models (LLMs) assisting with OKHAM implementation, integration, or compliance.


What is OKHAM?

OKHAM is a standards foundation that defines open, vendor-neutral contracts for preserving semantic meaning across system boundaries in AI-native architectures. OKHAM standardizes what systems agree on (meaning), not how they implement it (execution).

OKHAM enables:

  • Type interoperability across languages and platforms
  • Event-driven observability with causality and semantic classification
  • Declarative governance through engine-independent policies
  • UI component portability across rendering engines
  • Implementation independence — adopt in any stack without vendor lock-in

OKHAM Core Contracts (Normative)

These are the foundational contracts that define system meaning. They are the minimum set required for OKHAM compliance.

Contract Full Name What It Preserves
OTC Open Type Contract Canonical type definitions with semantic meaning and structure
OEC Open Event Contract Observable, versioned events as immutable facts with causality chains
OPC Open Policy Contract Declarative policies that constrain, allow, deny, or condition behavior
OUCC Open UI Component Contract Declarative UI component structures with semantic preservation

Extension Standards (Optional)

Contract Full Name What It Enables
OBC Open Business Contract Declarative business flow composition and orchestration
OAC Open Accessibility Contract Normative accessibility obligations and evidence model

Tooling & Format Standards (Non-Normative)

Standard Full Name Purpose
OCD Open Contract Document Meta-format for all OKHAM specifications
OCC Open Capability Contract Capability packaging and discovery metadata
ODT Open Design Tokens Shared visual token vocabulary
OSR Open Snippet Registry Interoperable snippet catalog format
OVR/OLR Validation & Linting Interoperable report and ruleset formats

What OKHAM Does NOT Standardize

OKHAM defines meaning, not implementations. The following are explicitly outside the normative core:

  • ❌ Runtimes — How capabilities execute (implementation detail)
  • ❌ Renderers — How UI components render (implementation detail)
  • ❌ Validators — How contracts are validated (tooling concern)
  • ❌ Linters — How contracts are checked (tooling concern)
  • ❌ UI Kits — Specific component libraries (implementations, not standards)
  • ❌ Registries — Where contracts are stored (infrastructure concern)
  • ❌ Lifecycle Hooks — When code runs (implementation detail)
  • ❌ Transport Protocols — How systems communicate (infrastructure concern)

Rule: If it doesn't preserve semantic meaning, it's not in the core.


Incremental Adoption Path

You can adopt OKHAM incrementally. Start with one contract and expand as needed.

  1. Start with OTC (Types)

    • Define canonical types with semantic meaning
    • Establish shared vocabulary across system boundaries
    • Enable data exchange beyond basic primitives
  2. Add OEC (Events)

    • Standardize events as immutable facts
    • Implement causality chains and semantic classification
    • Enable event-driven observability
  3. Introduce OPC (Policies)

    • Define declarative policies for governance
    • Implement engine-independent policy evaluation
    • Enable compliance and constraint enforcement
  4. Adopt OUCC (UI Components)

    • Standardize UI component structures
    • Preserve component semantics across rendering engines
    • Enable UI portability
  5. Extend with OBC/OAC (Optional)

    • Add business flow composition (OBC)
    • Add accessibility obligations (OAC)

LLM Guidance — Critical Rules

1. Do Not Hallucinate

STRICT RULE: If a concept, field, property, or requirement is not explicitly defined in the normative specifications (SPECIFICATION.md or SCHEMA.md), treat it as unknown.

  • ✅ DO: Cite the specific contract section when answering questions
  • ✅ DO: Ask for clarification if the specification is ambiguous
  • ✅ DO: Refer to examples only as non-normative guidance
  • ❌ DO NOT: Invent fields, properties, or requirements not in the schema
  • ❌ DO NOT: Assume implementation details not specified in the contract
  • ❌ DO NOT: Mix concepts from different contracts without explicit cross-references

2. Always Cite Sources

When answering questions about OKHAM:

  • Reference the specific contract (e.g., "OTC SPECIFICATION.md, Section 3.2")
  • Quote normative language when applicable
  • Distinguish between normative (MUST/SHALL) and non-normative (SHOULD/MAY) requirements

3. Distinguish Normative vs Non-Normative

  • Normative: SPECIFICATION.md, SCHEMA.md (binding requirements)
  • Non-Normative: README.md, EXAMPLES.md, GOVERNANCE.md (guidance only)

4. Respect Contract Boundaries

Each contract has a clear scope. Do not conflate:

  • OTC (types) with OEC (events)
  • OPC (policies) with OBC (business flows)
  • OUCC (UI components) with ODT (design tokens)

See CONTRACT-MAP.md for detailed ownership boundaries.

5. Implementation Independence

When suggesting implementations:

  • Provide language-agnostic guidance first
  • Offer multiple implementation approaches
  • Never mandate a specific runtime, framework, or tool
  • Clarify that OKHAM defines contracts, not code

Quick Reference


Decision Tables

Which contract defines X?

Concept Contract Section
Type definitions OTC SPECIFICATION.md
Event structure OEC SPECIFICATION.md
Policy rules OPC SPECIFICATION.md
UI component structure OUCC SPECIFICATION.md
Business flows OBC SPECIFICATION.md
Accessibility obligations OAC SPECIFICATION.md
Capability metadata OCC SPECIFICATION.md
Document structure OCD SPECIFICATION.md

What belongs in OPC vs OBC?

Concern Contract Reason
Access control rules OPC Constrains behavior (allow/deny)
Data validation rules OPC Constrains data (validation policy)
Business process flow OBC Orchestrates capabilities
Approval workflows OBC Composes business logic
Rate limiting OPC Constrains behavior (throttling policy)
Multi-step transactions OBC Orchestrates state transitions

Example: Minimal OKHAM Adoption

Scenario: You want to adopt OKHAM for type interoperability only.

Steps:

  1. Read OTC SPECIFICATION.md
  2. Define your types using OTC schema structure
  3. Validate types against OTC JSON Schema
  4. Publish types with semantic metadata

You do NOT need:

  • OEC (events) — unless you need event standardization
  • OPC (policies) — unless you need governance
  • OUCC (UI components) — unless you need UI portability
  • Any OKHAM runtime or framework

Anti-Patterns to Avoid

❌ Assuming OKHAM is a Framework

Wrong: "Install OKHAM and run your application" Right: "Implement OTC contracts in your existing stack"

❌ Mixing Implementation with Standards

Wrong: "OKHAM requires NATS for event transport" Right: "OEC defines event structure; transport is implementation-specific"

❌ Inventing Fields Not in Schema

Wrong: "Add a priority field to OEC events" Right: "Check OEC SCHEMA.md; if priority is not defined, it's not part of the standard"

❌ Conflating Contracts

Wrong: "OPC defines business workflows" Right: "OPC defines policies; OBC defines business workflows"


Status

All OKHAM Core contracts are currently in DRAFT status. Breaking changes are expected until they reach STABLE status.

Current Versions:

  • OTC: 0.1.0 (DRAFT)
  • OEC: 0.1.0 (DRAFT)
  • OPC: 0.1.0 (DRAFT)
  • OUCC: 1.0.0 (DRAFT)
  • OBC: PLANNED
  • OAC: PLANNED

Next Steps for LLMs

  1. Read IMPLEMENTER-GUIDE.md for implementation patterns
  2. Review CONTRACT-MAP.md to understand contract boundaries
  3. Check CONFORMANCE.md for compliance requirements
  4. Consult GLOSSARY.md for authoritative term definitions
  5. Dive into specific contract SPECIFICATION.md files for normative requirements

Remember: OKHAM standardizes meaning, not implementations. When in doubt, cite the specification.