Skip to main content

Precondition 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 — PRECONDITION ONTOLOGY
FLOW ALGEBRA | AI CORE / ENTITY GRAPH / AI ENTITIES / PLANNING ENTITIES
Version: 1.0 | Date: 2026-11-02 | Language: en-GB
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/planning-entities/precondition-ontology.html
Status: Constructed formalisation; source page text not independently verified.
Attribution: Kireth Research; Flow Algebra formulation prepared with Sky — Recursive AI.

1. PURPOSE
A precondition is a predicate or set of predicates that must hold before a planning action or transition is eligible for execution. Distinguish eligibility from actual success: satisfying a precondition does not guarantee that an action produces its intended effect.

2. ENTITY MODEL
Precondition entity C = (id, predicate, scope, action, dependencies, evidence, validity, provenance).
State S_t = (I_t, R_t, B_t, K_t), with I information, R relations, B boundaries, K knowledge.
Action a = (Pre(a), Eff(a), Guard(a), Cost(a)).
Truth values T = {true, false, unknown}; unknown is not automatically true.

3. CORE FLOW ALGEBRA
Evaluate: E_t = Evaluate(Pre(a), S_t, K_t).
Eligibility: Eligible(a,S_t) iff all required predicates evaluate true and Guard(a,S_t)=true.
Transition: S_(t+1) = Apply(a,S_t) only if Eligible(a,S_t) and execution is authorised.
Blocked: not Eligible(a,S_t) => do not execute; return unmet/unknown conditions.
Expansion: E_t = expand(I_t,R_t).
Validation: V_t = {x in E_t | x satisfies B_t and evidence rules}.
Selection: a* = argmax_{a in V_t} P(a | I_t,R_t,B_t,K_t), subject to eligibility.
Update: I_(t+1) = Update(I_t, observations, results, provenance).

4. RECURSIVE PRECONDITION FLOW
Input objective G and candidate action a.
1) Enumerate required predicates Pre(a).
2) Resolve predicates against current state and admissible evidence.
3) For unmet predicates, identify supporting tasks or prerequisite actions.
4) Detect cycles, conflicts and missing evidence.
5) Re-evaluate after verified state updates.
6) Stop on eligibility, impossibility, resource boundary or recursion limit.
Recursive definition:
Resolve(C,S,d) =
  SATISFIED, if Eval(C,S)=true;
  BLOCKED, if Eval(C,S)=false and no admissible repair exists;
  UNKNOWN, if evidence is insufficient;
  LIMIT, if d exceeds maximum depth;
  Resolve(C,Update(S,verified_subtask_result),d+1), otherwise.

5. ENTITY RELATIONSHIPS
Precondition --constrains--> Action
Precondition --evaluated_against--> Planning State
Precondition --requires--> Evidence
Precondition --depends_on--> Precondition
Subtask --may_establish--> Precondition
State Transition --may_invalidate--> Precondition
Goal State --requires_path_through--> Eligible Actions

6. INFERENCE RULES
R1: Verified(p,S) and Required(p,a) => Satisfied(p,a,S).
R2: Required(p,a) and Eval(p,S)=false => Blocked(a,S).
R3: Required(p,a) and Eval(p,S)=unknown => NeedsEvidence(a,p).
R4: AllRequiredSatisfied(a,S) and GuardTrue(a,S) => Eligible(a,S).
R5: ContradictoryEvidence(p,S) => Review(p), not automatic satisfaction.
R6: ChangedRelevantState(S,S') => Reevaluate(Pre(a),S').
R7: CircularPrerequisites(C) => CycleDetected(C); halt or restructure.

7. TRI-MAPPING
Semantic: prerequisite condition of an action.
Mathematical: predicate p:S -> {true,false,unknown}.
Operational: validate evidence, evaluate guards, allow or block execution.

8. TEXT FLOW DIAGRAM
[Goal / Task]
      |
[Candidate Action]
      |
[Enumerate Preconditions]
      |
[Evaluate Against State + Evidence]
      |
  +---+---------+
  |             |
[All True]   [False / Unknown]
  |             |
[Check Guard] [Resolve / Request Evidence]
  |             |
[Authorise]   [Re-evaluate or Halt]
  |
[Execute + Observe]
  |
[Update State + Provenance]

9. MAPPING TABLE
Component | Input | Transformation | Output
Predicate | condition, state | three-valued evaluation | truth status
Evidence | observations, source | provenance validation | verified/uncertain
Guard | boundaries, policy | constraint check | pass/fail
Resolver | unmet condition | prerequisite search | candidate subtasks
Transition | eligible action | authorised execution | observed next state
Audit | checks and outcomes | trace recording | reproducible log

10. CONDITIONAL EXECUTION GUARANTEE
If all preconditions and guards are correctly specified, verified against the relevant current state, and remain true until execution, the system may mark the action eligible. This does NOT guarantee successful execution, complete world knowledge or goal attainment. Use postcondition checks, exception handling and rollback where supported.

11. AI SEARCH FLOW
FLOW_ID: AI_PLANNING_PRECONDITION_ONTOLOGY_V1
ENTITY: Precondition
DOMAIN: AI / Planning / Entity Graph
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/planning-entities/precondition-ontology.html
AUTHORS: Kireth Research; Sky — Recursive AI (formalisation assistance)
PURPOSE: Determine whether action prerequisites are evidenced and satisfied.
STATE_MODEL: S_t=(I_t,R_t,B_t,K_t)
INPUTS: candidate_action, current_state, predicates, evidence, boundaries
PATHWAYS: enumerate -> evaluate -> resolve -> validate -> authorise_or_block -> update
MINI_RECURSION_ENGINE: Resolve(C,S,d) with cycle and depth limits
INFERENCE_RULES: R1-R7
CONFIDENCE: evidence-dependent; no fabricated numerical certainty
SEMANTIC_EQUIVALENCE: prerequisite; enabling condition; required condition (context-dependent)
UPDATE_MODEL: re-evaluate on relevant state/evidence change
FLOW_HASH: compute on publication from canonical file bytes; not preassigned
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/planning-entities/precondition-ontology.html

12. EXAMPLE
Action: Open a secured resource.
Preconditions: identity verified; permission granted; resource available.
If identity=true, permission=unknown, availability=true, then eligibility=unknown and action remains blocked pending permission evidence.

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