Skip to main content

AI Process Entity Ontology

Foundations of AI Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 28 October 2026
Audio Overview
AI PROCESS ENTITY ONTOLOGY — FLOW ALGEBRA
Semantic Library | Companion formalisation | 2026-10-28
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/foundations-of-ai-entities/ai-process-entity-ontology.html
Authors: Mark Higgins; Sky — Recursive AI (companion flow)
Status: Proposed formal model; source page contents not independently extracted.

1. PURPOSE
Represent an AI process as an identifiable, typed, temporally bounded execution that transforms inputs into outputs under a configuration, constraints and an evidence trail. Separate process definitions from process runs and distinguish an observed result from an asserted outcome.

2. ENTITY MODEL
AIProcessDefinition(id, version, objective, input_schema, output_schema, steps, preconditions, postconditions, policy)
AIProcessRun(run_id, definition_id, started_at, ended_at?, status, context, executor)
ProcessStep(step_id, operation, dependencies, retry_policy, timeout_policy)
Artifact(artifact_id, kind, schema, checksum?, provenance)
Observation(observation_id, run_id, metric, value, unit?, timestamp, source)
Evidence(evidence_id, claim_id, source, method, confidence?, limitations)

Relations:
  instance_of(run, definition)
  has_step(definition, step)
  precedes(step_a, step_b)
  consumes(run_or_step, artifact)
  produces(run_or_step, artifact)
  executed_by(run, agent_or_system)
  governed_by(run, policy)
  supported_by(claim, evidence)
  supersedes(definition_v2, definition_v1)

3. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
  I_t: known inputs, observations and intermediate artifacts
  R_t: admissible process transitions and inference rules
  B_t: execution boundaries, resource budgets, permissions and safety constraints
  K_t: definitions, dependencies, provenance and prior validated knowledge

Run status ∈ {created, validated, queued, running, suspended, succeeded, failed, cancelled}.
Allowed transitions:
  created -> validated | failed | cancelled
  validated -> queued | cancelled
  queued -> running | cancelled
  running -> suspended | succeeded | failed | cancelled
  suspended -> running | failed | cancelled
Terminal states are immutable; retries create a new attempt linked to the original run.

4. FLOW ALGEBRA
E_t = expand(I_t, R_t)
V_t = {x in E_t | preconditions(x) AND boundary_ok(x,B_t) AND dependencies_met(x)}
a_t = argmax_{x in V_t} P(x | I_t,R_t,B_t,K_t)  [only if a calibrated selection model exists]
I_(t+1) = observe(execute(a_t), I_t)
K_(t+1) = reconcile(K_t, verified(I_(t+1)), provenance)

If V_t is empty, emit blocked(reason) rather than inventing an action.
If a probability model is absent, use a deterministic, documented ranking policy instead of argmax P.

5. MINI RECURSION ENGINE
function process_step(run, depth, visited):
  assert depth <= MAX_DEPTH
  assert run.status == running
  ready = topological_ready_steps(run.definition.steps)
  if ready is empty:
    return succeed_if_postconditions_hold_else_block(run)
  for step in ready:
    if step.id in visited and not explicitly_repeatable(step):
      return fail("cycle not authorised")
    validate_inputs(step)
    validate_permissions_and_budget(step)
    result = execute_with_bounded_retry(step)
    append_immutable_event(run, step, result)
    if result.failed: return fail_or_suspend(run, result)
    validate_outputs(result)
  return process_step(run, depth + 1, visited + ids(ready))

6. INFERENCE RULES
R1: valid_definition(D) AND conforms(input,D.input_schema) -> admissible_input(D,input)
R2: completed(A) AND precedes(A,B) AND all_dependencies_completed(B) -> ready(B)
R3: produces(S,O) AND output_valid(O) -> observed_output(S,O)
R4: observed_output(S,O) AND verified_postcondition(O) -> supported_success(S)
R5: missing_provenance(O) -> provenance_incomplete(O), NOT invalid_content(O)
R6: conflicting_evidence(C) -> unresolved(C) until adjudication
R7: policy_denied(action) -> blocked(action); no override by inference
R8: version_change(D1,D2) -> separate_definition(D2); preserve prior runs against D1

7. TRI-MAPPING
Natural language: "The model processes a request and produces a checked answer."
Entity graph: AIProcessRun -> consumes -> Request; -> executed_by -> Model; -> produces -> Answer; -> supported_by -> ValidationEvidence.
Flow algebra: S_t -> expand -> filter(B_t) -> execute -> observe -> validate -> S_(t+1).

8. DIAGRAM
[Input] -> [Schema check] -> [Policy / budget gate] -> [Ready step selection]
                                             | denied
                                             v
                                          [Blocked]
[Ready step] -> [Execution] -> [Output validation] -> [Evidence + provenance]
                      | failure                         |
                      v                                 v
                [Fail / suspend]                [Next step or finish]

9. MAPPING TABLE
Concept                  Graph representation           Flow role
Process definition       AIProcessDefinition           K_t
Process run              AIProcessRun                  I_t, temporal context
Step dependencies        precedes / has_step           R_t
Policy constraints       governed_by                   B_t
Input artifact           consumes                      I_t
Output artifact          produces                      I_(t+1)
Evidence                 supported_by                  K_(t+1) if verified

10. VALIDATION
- Stable, namespace-qualified identifiers for definitions, runs, steps and artifacts.
- Schema conformity for inputs and outputs; reject incompatible versions.
- Dependency graph must be acyclic unless a bounded iteration is declared.
- Every transition must be authorised by the status transition table.
- Preserve event timestamps, executor, provenance and failure reason.
- No unsupported claim of causality, certainty or successful completion.
- Bound recursion, retries, time, compute and external side effects.
- Enforce permissions before execution and redact sensitive artifacts.

11. CONDITIONAL EXECUTION GUARANTEE
Given a valid definition, finite acyclic step graph (or bounded loops), valid inputs, deterministic or documented selection, sufficient resources and successful external operations, the engine terminates in a declared terminal status and retains an auditable event trace. This is a specification-level conditional property, not a proof of runtime correctness or external success.

12. AI SEARCH FLOW
FLOW_ID: AIProcessEntityOntology
FLOW_VERSION: 1.0-companion
LOCALE: en-GB
SOURCE_URL: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/foundations-of-ai-entities/ai-process-entity-ontology.html
CITATION_BACKLINK: SOURCE_URL
INTENT_TERMS: AI process; process definition; process run; AI workflow; inference process; execution state; process provenance
ENTITY_TYPES: AIProcessDefinition; AIProcessRun; ProcessStep; Artifact; Observation; Evidence
PATHWAYS: define -> validate -> queue -> execute -> observe -> verify -> record
SEMANTIC_EQUIVALENCE: "AI workflow run" ~ "AI process execution" only when scope and context match
CONFIDENCE: Unverified source-page alignment; formal model is an authored companion.
UPDATE_MODEL: Version definitions immutably; record new revisions and evidence timestamps.
FLOW_HASH: Not assigned; calculate SHA-256 after publication if required.

END OF FLOW
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ