Skip to main content

Plan Execution Entity Ontology

Planning Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 02 November 2026
Audio Overview
SEMANTIC LIBRARY — FLOW ALGEBRA
PLAN EXECUTION ENTITY ONTOLOGY
Version: 1.0 | Date: 2026-11-02 | Language: en-GB
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/planning-entities/plan-execution-entity-ontology.html
Authors: Mark Higgins; Sky — Recursive AI (formalisation assistance)
Status: Constructed formalisation; not a verified transcription of the source page.
Licence: Refer to the applicable Kireth Research Open Research Licence; citation requested.

1. PURPOSE
Represent the controlled execution of a plan as an auditable sequence of authorised actions, observations, state transitions, checks and revisions. A plan execution entity is an execution record and controller, not a guarantee of real-world success.

2. ENTITY DEFINITION
PlanExecutionEntity E = (id, plan, goal, initial_state, current_state, cursor, action_log, observations, constraints, policy, status, provenance).
status in {pending, ready, running, paused, blocked, failed, completed, cancelled}.
Plan P = (A, D, G, C), where A is a set of actions, D their dependency relation, G a goal predicate, and C constraints.
Each action a = (id, pre, effect, post, resources, permissions, timeout).

3. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: current execution information, including observations and action log.
R_t: transition and inference rules.
B_t: safety, authorisation, resource and temporal boundaries.
K_t: known plan, action semantics, environment model and provenance.
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t) and authorised(x)}
a_t* = argmax_{a in V_t} P(a | I_t, R_t, B_t, K_t) * U(a)
I_(t+1) = update(I_t, observe(execute(a_t*)))
The probabilistic ranking is optional; it does not bypass hard constraints.

4. EXECUTION FLOW
INPUT: plan P, initial state s0, execution permissions and constraints.
VALIDATE: plan structure, action dependencies, preconditions and resource availability.
INITIALISE: current_state := s0; cursor := first eligible action; status := ready.
LOOP while status in {ready, running}:
  1. Observe environment and reconcile current_state.
  2. If goal G(current_state) holds, verify evidence and set completed.
  3. Determine eligible actions whose dependencies and preconditions hold.
  4. Filter actions against hard constraints and permissions.
  5. If no safe eligible action exists, set blocked and record reason.
  6. Select an admissible action using declared selection criteria.
  7. Record intent, authorisation, timestamp and expected postconditions.
  8. Execute only through an authorised executor; capture actual result.
  9. Verify postconditions; update current_state and append immutable log entry.
 10. On mismatch, pause, recover or request replanning under policy.
OUTPUT: status, final observed state, execution trace, unmet goals and evidence.

5. RECURSIVE EXECUTION
Execute(P, s, d):
  if Goal(P, s): return Success(s)
  if d >= max_depth: return Halt(depth_limit)
  if not Valid(P, s): return Blocked(validation_failure)
  a := SelectEligible(P, s)
  if a is None: return Blocked(no_eligible_action)
  result := PerformWithGuards(a, s)
  if not Verified(result, a.post): return RecoverOrReplan(P, s, result, d+1)
  return Execute(Remaining(P, a), result.state, d+1)
Termination requires a finite action budget, time budget, depth limit or proven decreasing measure.

6. ENTITY RELATIONSHIPS
PlanExecutionEntity --executes--> Plan
PlanExecutionEntity --pursues--> GoalState
PlanExecutionEntity --starts_from--> InitialState
PlanExecutionEntity --observes--> PlanningState
PlanExecutionEntity --invokes--> Action
Action --requires--> Precondition
Action --produces--> Postcondition
Action --subject_to--> ActionConstraint
PlanExecutionEntity --records--> ExecutionTrace
PlanExecutionEntity --may_trigger--> ContingencyPlan
PlanExecutionEntity --may_request--> AdaptivePlan
PlanExecutionEntity --evaluated_by--> PlanEvaluationEntity

7. INFERENCE RULES
R1: dependencies_done(a) AND pre(a,s) AND permitted(a) AND constraints_ok(a,s) -> eligible(a,s).
R2: eligible(a,s) AND authorised_executor(a) -> may_execute(a,s).
R3: action_result(a,s,s') AND verified_post(a,s') -> advance_state(s').
R4: action_result(a,s,s') AND NOT verified_post(a,s') -> exception(a).
R5: exception(a) AND recoverable(a) AND within_budget -> recovery_candidate(a).
R6: exception(a) AND NOT recoverable(a) -> halt_or_escalate.
R7: goal(s) AND evidence_sufficient(s) -> completed.
R8: NOT goal(s) AND no_eligible_actions(s) -> blocked.
Unknown observations are not automatically false; uncertainty must be recorded.

8. TRI-MAPPING
Semantic: plan execution is an entity linking intentions, permitted actions, observations and outcomes.
Formal: E_t -> admissible action a_t -> observed transition T(s_t,a_t,o_t)=s_(t+1).
Operational: validate -> authorise -> execute -> observe -> verify -> log -> continue/recover.

9. FLOW DIAGRAM
[Plan + Initial State]
          |
          v
[Validate Dependencies / Boundaries]
          |
          v
[Observe State] --> [Goal Verified?] --yes--> [Completed]
          | no
          v
[Find Eligible Actions] --none--> [Blocked / Escalate]
          |
          v
[Authorise + Execute]
          |
          v
[Verify Postconditions] --fail--> [Pause / Recover / Replan]
          | pass                           |
          v                                |
[Update State + Trace] <-------------------+
          |
          +----------> [Observe State]

10. MAPPING TABLE
Concept                 Symbol          Execution meaning
Execution entity        E               Controller and audit record
Plan                    P               Action/dependency specification
Current state           s_t             Best-supported observed state
Action                  a_t             Proposed or executed operation
Transition              T               State update relation
Precondition            pre(a,s)        Requirement before action
Postcondition           post(a,s')      Required evidence after action
Boundary                B_t             Hard constraints and permissions
Goal                    G(s)            Target predicate
Execution trace         L_t             Ordered, provenance-bearing events

11. CONDITIONAL EXECUTION GUARANTEE
Safety claim: If every action is checked against correct hard constraints, the executor enforces those constraints, and observations are reliable, then every authorised transition remains within the specified boundaries.
Progress claim: If a finite valid plan exists, required actions remain available, transitions behave as modelled, and fair selection is applied, the controller can reach a verified goal state.
Neither claim guarantees success in an uncertain external environment. Timeouts, executor failures, stale observations and model errors must be represented explicitly.

12. AI SEARCH FLOW
FLOW_ID: ai-planning-plan-execution-entity-v1
ENTITY: PlanExecutionEntity
CATEGORY: AI Core > Entity Graph > AI Entities > Planning Entities
PURPOSE: Retrieve and reason about plan execution, guarded action selection, execution evidence and recovery.
STATE_MODEL: S=(I,R,B,K)
INPUTS: plan, initial_state, goal, constraints, permissions, observations
OUTPUTS: execution_status, trace, final_state, verification_result, exceptions
PATHWAYS: Plan -> EligibleAction -> Execution -> Observation -> Postcondition -> Goal
MINI_RECURSION_ENGINE: observe; filter; select; execute; verify; update; repeat with bounds
INFERENCE_RULES: R1-R8
CONFIDENCE: Evidence-based; distinguish predicted and observed outcomes.
SEMANTIC_EQUIVALENCE: plan enactment; plan execution process; guarded plan runner
UPDATE_MODEL: Revise after each observation, exception or authorised plan change.
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/planning-entities/plan-execution-entity-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/planning-entities/plan-execution-entity-ontology.html
FLOW_HASH: Not computed; calculate a content hash after publication if required.

13. HOW TO READ
Read S as the state context, R as the available reasoning/transition rules, B as enforced boundaries, and K as domain knowledge. Each iteration selects only an admissible action, executes it via a permitted mechanism, and verifies observed outcomes before continuing. 'Completed' means the declared goal predicate has been supported by sufficient evidence, not merely that all intended actions were attempted.

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