Overview & Foundational Challenge
When AI agents answer complex analytical questions—such as calculating fiscal revenue, cluster bandwidth utilization, or gross profit—knowing what a metric means is only half the battle. In production AI environments, human operators and automated governance gates must also guarantee that the resulting figure was produced using the exact, sanctioned computation rather than agent improvisation or hallucinated query execution. In Open Knowledge Format (OKF) v0.2, this challenge is solved through Attested Computations (type: Attested Computation).
Rather than embedding raw SQL queries, shell commands, or Python execution scripts directly inside narrative documentation or relying on black-box LLM SQL generation, OKF separates the semantic definition of a concept from its execution and attestation contract.
What is an Attested Computation?
An Attested Computation is a standalone, first-class OKF concept (type: Attested Computation) that carries a sanctioned, deterministic way to compute a value. It specifies everything required for execution and mechanical verification:
Core Principles & Design Benefits
1. Runtime Binding
Theruntime property (e.g. bigquery, postgres, dbt, python, bash) defines precisely how parameters are bound and interpreted. Autonomous agents supply valid values for declared parameters without modifying the underlying query string.
2. Reusability Across the Workspace
A single sanctioned Attested Computation can back multiple metrics, dashboards, AI agent toolcalls, and operational playbooks across the organisation.3. Independent Trust Signals
Each computation maintains its ownverified, stale_after, and attester metadata fields. This ensures individual metrics verify independently and automatically expire when underlying business policies or schemas evolve.
Contract Structure & Key Components
runtime: Identifies the execution environment (bigquery,postgres,dbt,python,bash).parameters: Typed, named variables the AI agent is permitted to supply. Agents MUST NOT alter the underlying computation query itself.executor: Defines execution instructions (resource) and required evidence elements returned in the receipt (receipt), incorporating authenticated provenance to bind the execution to a trusted executor.attester: Points to deterministic (no-LLM) code that inspects the execution receipt, verifies authenticated executor provenance, and returns an unambiguous pass/fail attestation verdict.
The 6-Step Mechanical Execution & Attestation Lifecycle
The OKF specification separates specification from runtime execution in 6 deterministic steps:- Discover: Agents locate the computation via
type: Attested Computationor via links from narrative metric docs. - Load: The agent reads the frontmatter contract and computation block.
- Parameterize: The agent supplies valid values for declared parameters (e.g.,
year: 2026). - Execute: The executor runs the bound computation and returns an evidence receipt (e.g., job ID, executed query, and result payload).
- Attest: The agent or system runs the deterministic attester script over the receipt to verify that the query executed matched the sanctioned computation without unauthorized modifications.
- Gate: The governance system surfaces the verified result or blocks stale/failing computations.
Verification vs. Attestation
It is crucial to distinguish between doc-level verification and runtime attestation:- Doc-Level Verification (
verified): Confirms that the metric definition matches business policy (stored in the document bundle, updated periodically during human or automated audits). - Runtime Attestation (
attester): Confirms that a specific runtime execution produced the value correctly (per-call, un-stored receipt evaluation executed by deterministic code).
Conclusion & Impact on DSOM v0.2
Attested Computations in OKF v0.2 transform AI-driven analytics and operational telemetry from a “trust me” black box into a verifiable, deterministic science. By establishing clear contracts between definitions, parameters, executors, and deterministic attesters, organisations deploying DSOM digital twins can operate autonomous agents with absolute confidence in data integrity.Deep State of Mind (DSOM) For My AI Protocol | Harisfazillah Jamel (LinuxMalaysia) | 2026-09-06 Standard: UK English | DBP-standard Bahasa Melayu Malaysia (Piawai) | GNU General Public License v3.0