Intelligence Cells — Engineering Model

Platform: MIZ OKI 3.5
Canonical loop: SENSE → REASON → PLAN → VALIDATE → DECIDE → ACT → LEARN


1. Definition

An Intelligence Cell is a governed operating unit that converts a source, domain, model, or service into a participant in the MIZ OKI 3.5 decision loop.

A connector only moves data. An Intelligence Cell must also provide structure, provenance, evaluation, graph mapping, decision support, auditability, and learning behavior.


2. Minimum cell contract

Every Intelligence Cell should declare the following contract.

Contract field Requirement
cell_id Stable ID such as cell.google_ads_gaql
name Human-readable name
domain Advertising, commerce, legal, creative, finance, operations, infrastructure, etc.
source_systems APIs, tables, webhooks, files, services, or streams used
primary_srpvdal_role One of SENSE, REASON, PLAN, VALIDATE, DECIDE, ACT, LEARN
secondary_roles Other stages supported by the cell
autonomy_default observe-only, recommend-only, approval-required, or autonomous
action_permissions Specific allowed action classes
canonical_events Event schemas emitted or consumed
kg_mappings Node and edge types created or updated
evaluation_gates Required checks before downstream use or action
audit_outputs Logs, traces, provenance, raw payload hash, decision records
learning_outputs Outcome records, confidence updates, policy/model feedback
owner Engineering/business owner
status implemented, partial, planned, deprecated, or archived

3. Lifecycle

flowchart LR
    Draft[Draft cell contract] --> Observe[Observe-only sensing]
    Observe --> Recommend[Recommend-only planning]
    Recommend --> Validate[Evaluation harness]
    Validate --> Approval[Human approval mode]
    Approval --> Controlled[Controlled execution]
    Controlled --> Learn[Outcome learning]
    Learn --> Registry[Registry update]
  1. Draft cell contract: define source contract, canonical event mapping, graph mapping, evaluation gates, and autonomy boundary.
  2. Observe-only sensing: ingest data and write canonical events without recommending or acting.
  3. Recommend-only planning: generate recommendations but block external changes.
  4. Evaluation harness: run schema, freshness, policy, financial, causal, and regression tests.
  5. Human approval mode: allow actions only when an authorized human approves.
  6. Controlled execution: enable limited execution with idempotency, pre-state, post-state, rollback handle, and audit logging.
  7. Outcome learning: compare predicted and actual results; update KG, policies, confidence, and future recommendations.

4. Intelligence Cell examples

4.1 Google Ads GAQL Intelligence Cell

Field Design
Primary role SENSE
Secondary roles REASON, PLAN, VALIDATE, DECIDE, ACT, LEARN
Source systems Google Ads API, GAQL, GoogleAdsFieldService, GoogleAdsService SearchStream
Canonical events campaign, budget, ad group, ad, keyword, search term, asset, conversion, audience, geo, account hierarchy
Validation gates GAQL field compatibility, API version, account access, MCC traversal, query hash, quota, freshness, financial guardrails
ACT boundary Mutations blocked by default; require evaluation gates and policy approval
Repository status Planned canonical 3.5 cell; related Google Ads integrations exist but should be consolidated under this contract

4.2 OpenRTB Bidstream Intelligence Cell

Field Design
Primary role SENSE
Secondary roles REASON, VALIDATE, LEARN
Source systems Bid requests, wins, losses, seats, exchanges, floors, consent, buyer IDs
Canonical events auction, bid, win, loss, impression, identity, floor, exchange, consent
Validation gates duplicate auctions, consent validity, fraud indicators, price floor anomalies, identity confidence
ACT boundary Recommend inventory and bidding changes; direct platform changes require approval
Repository status Planned canonical 3.5 cell

4.3 ESP/Webhook Intelligence Cell

Field Design
Primary role SENSE
Secondary roles REASON, PLAN, VALIDATE, LEARN
Source systems ESP events, webhooks, click streams, bot/proxy signals
Canonical events delivered, opened, clicked, bounced, unsubscribed, converted, suppressed, bot/proxy detected
Validation gates bot detection, MPP/proxy handling, click validation, consent, frequency caps
ACT boundary Suppression or send actions require policy gate and approval
Repository status Partial; related email and MPP work exists and should be normalized into a 3.5 cell

4.4 Legal/Advertising/Policy Intelligence Cell

Field Design
Primary role VALIDATE
Secondary roles REASON, DECIDE, LEARN
Source systems Legal docs, ad policies, brand rules, claim substantiation, approvals
Canonical events policy rule, claim, violation, approval, exception, expiry
Validation gates jurisdiction, rule freshness, evidence sufficiency, approval authority
ACT boundary Blocks or escalates non-compliant actions; does not mutate ad platforms directly by default
Repository status Planned canonical 3.5 cell

4.5 Creative Intelligence Cell

Field Design
Primary role PLAN
Secondary roles SENSE, REASON, VALIDATE, DECIDE, LEARN
Source systems Creative assets, performance metrics, fatigue signals, brand rules
Canonical events asset, variant, test, fatigue, approval, rotation, performance outcome
Validation gates brand safety, legal claims, fatigue evidence, test design, audience suitability
ACT boundary Creative rotation requires approval until policy gates prove safe
Repository status Partial; related creative/fatigue modules exist and need registry alignment

4.6 Financial/Performance Intelligence Cell

Field Design
Primary role VALIDATE
Secondary roles REASON, DECIDE, LEARN
Source systems Spend, revenue, margin, attribution, OPE traces, forecasts
Canonical events cost, revenue, margin, ROAS, CPA, uplift, risk, forecast, observed outcome
Validation gates spend caps, downside risk, causal confidence, confidence intervals, OPE gate
ACT boundary Budget and bid actions require financial and approval gates
Repository status Partial; replay/OPE and ROI-oriented services exist and should be unified as a cell

5. Canonical event mapping rules

  1. Never drop raw payload lineage.
  2. Always emit schema_version.
  3. Preserve source IDs and source timestamps.
  4. Store deterministic and probabilistic match evidence separately.
  5. Represent validation failures as events or evidence records.
  6. Keep action events separate from source facts.
  7. Record whether an event is observed, inferred, simulated, or human-entered.

6. Registry design

A minimal registry entry should look like this:

cell_id: cell.google_ads_gaql
name: Google Ads GAQL Intelligence Cell
domain: advertising
status: planned
primary_srpvdal_role: SENSE
secondary_roles: [REASON, PLAN, VALIDATE, DECIDE, ACT, LEARN]
autonomy_default: recommend_only
action_permissions:
  - observe
  - recommend
  - mutate_with_policy_approval
canonical_events:
  - GoogleAdsCampaignEvent
  - GoogleAdsSearchTermEvent
  - GoogleAdsConversionEvent
evaluation_gates:
  - source_schema_validation
  - gaql_compatibility
  - financial_guardrail
  - policy_approval
audit_outputs:
  - raw_payload_hash
  - query_hash
  - decision_trace_id
  - approval_record_id

7. Acceptance criteria for a production-ready cell

A cell is production-ready only when it has:


8. Immediate engineering tasks

  1. Create the central cell registry.
  2. Backfill current services into the registry with honest status labels.
  3. Promote only cells that pass evaluation harnesses.
  4. Mark dry-run and placeholder endpoints explicitly.
  5. Add canonical schemas before adding new source-specific logic.
  6. Add decision/outcome learning records to close the loop.
← All docsView source on GitHub →