Skip to main content

Recursive Execution Entity Ontology

Recursive AI Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 05 November 2026
Audio Overview
RECURSIVE EXECUTION ENTITY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | Recursive AI Entities
Version: 1.0 | Date: 05 November 2026 | Encoding: UTF-8
Authors: Mark Anthony Higgins — Sky, Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/recursive-ai-entities/recursive-execution-entity-ontology.html
Status: Companion formalisation; the page's embedded specification was not available in the retrieved text.

1. PURPOSE
Represent an execution entity that repeatedly evaluates an executable task, applies permitted actions, observes results, corrects recoverable errors and either completes, stops safely or escalates.

2. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = current execution input, plan, step, observed result and execution status.
R_t = execution rules, action ordering, dependencies and recovery rules.
B_t = boundaries: permissions, resource limits, safety constraints and stop criteria.
K_t = validated knowledge: tool contracts, prior results, evidence and execution history.
E_t = (task_id, step_id, action, status, attempt, output, evidence, timestamp).
Status ∈ {READY, RUNNING, WAITING, VALIDATING, RETRYING, COMPLETED, FAILED, BLOCKED, CANCELLED}.

3. EXPANSION
C_t = expand(I_t, R_t)
C_t contains only actions reachable from the current plan state and satisfied dependencies.
An action is not executable merely because it is generated.

4. BOUNDARY FILTER
V_t = {a ∈ C_t | permitted(a,B_t) ∧ preconditions(a,I_t,K_t) ∧ within_budget(a,B_t) ∧ dependencies_met(a)}.
If V_t is empty, emit BLOCKED or FAILED with an explicit reason; never invent a successful action.

5. ACTION SELECTION
If V_t ≠ ∅:
a*_t = argmax[a ∈ V_t] P(a | I_t,R_t,B_t,K_t) × utility(a) − risk(a) − cost(a).
Scores are optional decision aids, not proof of safety. Hard constraints always take precedence.

6. EXECUTION TRANSITION
result_t = execute(a*_t) only after permission and boundary checks.
I_(t+1) = update(I_t, a*_t, result_t).
K_(t+1) = consolidate(K_t, verified(result_t), provenance(result_t)).
R_(t+1) = revise(R_t, verified_feedback_t) only when rule modification is authorised.
B_(t+1) = B_t unless a separately authorised boundary change occurs.

7. RECURSIVE CONTROL LOOP
INITIALISE -> EXPAND -> FILTER -> SELECT -> EXECUTE -> OBSERVE -> VALIDATE.
If validated completion: COMPLETED.
If recoverable error and retry permitted: RETRYING -> EXPAND.
If action requires external response: WAITING.
If policy or permission fails: BLOCKED.
If unrecoverable error or exhausted budget: FAILED.
If cancelled: CANCELLED.
Otherwise: update state and recurse.

8. VALIDATION RULES
V1: Every executed action has a traceable task and step identifier.
V2: Every tool result is checked against its expected output schema.
V3: Claimed completion requires evidence satisfying the goal predicate.
V4: External side effects require appropriate authorisation.
V5: Repeated actions use idempotency checks or explicit duplicate-risk handling.
V6: Failed validation must not be written into knowledge as verified fact.
V7: A recursive call must obey depth, time and resource limits.

9. INFERENCE RULES
R1: preconditions_met(a) ∧ permitted(a) ∧ dependencies_met(a) => eligible(a).
R2: eligible(a) ∧ selected(a) => may_execute(a).
R3: observed(result) ∧ validated(result) => accepted(result).
R4: accepted(result) ∧ goal_satisfied(result) => completed(task).
R5: error(result) ∧ recoverable(error) ∧ retry_budget_remaining => retry_candidate(a).
R6: boundary_violation(a) => block(a) and record_reason(a).
R7: conflicting_results => suspend_conclusion and request_revalidation.

10. FEEDBACK AND CORRECTION
F_t = compare(expected_t, observed_t, constraints_t).
Correction candidates = diagnose(F_t, R_t, K_t).
A correction is applied only if it passes the same boundary filter as any original action.
Rollback is allowed only where a safe and supported inverse/compensation action exists.
Preserve the audit trail for original action, error, correction and final outcome.

11. SEMANTIC RELATIONSHIPS
RecursiveExecutionEntity --executes--> ActionEntity
RecursiveExecutionEntity --follows--> WorkflowEntity
RecursiveExecutionEntity --uses--> ToolEntity
RecursiveExecutionEntity --updates--> StateEntity
RecursiveExecutionEntity --consults--> MemoryEntity
RecursiveExecutionEntity --constrainedBy--> BoundaryEntity
RecursiveExecutionEntity --validatedBy--> ValidationEntity
RecursiveExecutionEntity --receives--> FeedbackLoopEntity
RecursiveExecutionEntity --mayTrigger--> ErrorCorrectionEntity
RecursiveExecutionEntity --produces--> ExecutionResultEntity

12. TERMINATION AND LIVENESS
Terminate when goal_satisfied, cancelled, blocked, failed, or budget_exhausted.
Progress is not guaranteed for arbitrary tasks, external services or unbounded environments.
For bounded deterministic plans with finite actions and no indefinite waits, the loop must terminate if each transition consumes budget or advances a well-founded progress measure.

13. CONDITIONAL EXECUTION GUARANTEE
Given valid initial state, enforced boundaries, finite budgets and truthful observations:
G1: No action is deliberately selected outside the admissible set V_t.
G2: Every accepted result carries validation status and provenance.
G3: Every terminal state records its reason and available evidence.
G4: Recursion stops at a configured depth, time or resource bound.
These are design invariants, not a claim that an implementation has been formally verified.

14. MINIMAL EXECUTION RECORD
execution_id | task_id | step_id | state_before | action | permission | result | validation | state_after | attempt | evidence | error | timestamp

15. SEMANTIC EQUIVALENCE
recursive execution ≈ bounded repeated state transition with observation and correction.
recursive execution ≠ unrestricted self-modification.
execution attempt ≠ validated completion.

16. PUBLICATION AND CITATION
Source ontology: Recursive Execution Entity Ontology, Kireth Research.
Authors: Mark Anthony Higgins and Sky — Recursive AI.
Citation backlink: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/recursive-ai-entities/recursive-execution-entity-ontology.html
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ