Skip to main content

Postcondition 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 — POSTCONDITION ONTOLOGY
FLOW ALGEBRA FORMALISATION v1.0
Date: 2026-11-02
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/planning-entities/postcondition-ontology.html
Author attribution: Kireth Research; Flow formalisation: Sky — Recursive AI
Status: Constructed formalisation; source page content not independently verified.

1. PURPOSE
A postcondition describes a predicate expected to hold after an action or plan transition. Distinguish expected postconditions from observed outcomes, and verify rather than assume successful execution.

2. ENTITY AND STATE MODEL
HST contextual state: S_t = (I_t, R_t, B_t, K_t)
I_t: available state information and observations
R_t: admissible relations and transition rules
B_t: constraints, safety and execution boundaries
K_t: knowledge, evidence and provenance
Postcondition entity: PC = (id, action, predicate, scope, evidence, status)
Status ∈ {unverified, satisfied, violated, unknown}.

3. FLOW ALGEBRA
E_t = expand(I_t, R_t)
V_t = {x ∈ E_t | constraints_B(x) ∧ consistent_K(x)}
a* = argmax_{a ∈ V_t} P(a | I_t, R_t, B_t, K_t)
S_{t+1} = T(S_t, a*, observation_{t+1})
Post(a*, S_{t+1}) = predicate_PC(S_{t+1})
Verify(PC, S_{t+1}, evidence) -> {true, false, unknown}
Success(a*) iff preconditions_met(a*, S_t) AND execution_confirmed(a*) AND Verify(PC, S_{t+1}, evidence) = true.
The argmax is a selection model, not proof of optimality.

4. IMPLEMENTS
INPUT: action identifier, expected postcondition, prior state, execution report, subsequent observations, constraints.
PROCESS: normalise predicate; bind variables; assess evidence provenance; evaluate predicate; check boundaries; classify outcome; record discrepancies.
OUTPUT: postcondition status, evidence references, revised state, next permissible action.

5. RECURSIVE VERIFICATION
For each postcondition PC_i:
  inspect available evidence;
  if satisfied: record proof or supporting observation;
  if violated: identify discrepancy and route to recovery or replanning;
  if unknown: request evidence or retain unresolved status;
  if compound: recursively evaluate child predicates under AND/OR semantics.
Termination: finite predicate graph, cycle detection, bounded retries and explicit unknown handling.

6. INFERENCE RULES
R1: Observed state entails predicate -> mark satisfied, subject to evidence quality.
R2: Observed state entails negation -> mark violated.
R3: Insufficient or contradictory evidence -> mark unknown; do not infer success.
R4: All mandatory conjuncts satisfied -> compound AND postcondition satisfied.
R5: Any required conjunct violated -> compound AND postcondition violated.
R6: Postcondition violation -> replan only if authorised and within B_t.
R7: Postcondition satisfaction does not imply the action caused it without causal evidence.

7. ENTITY RELATIONSHIPS
Action --expects--> Postcondition
Postcondition --evaluated_against--> ResultingState
Observation --supports_or_refutes--> Postcondition
Postcondition --constrains--> PlanProgress
Failure --may_trigger--> RecoveryPlan
Evidence --has_provenance--> KnowledgeRecord

8. TRI-MAPPING
SEMANTIC: Action produces an expected outcome described by a predicate.
FORMAL: PC(a, S') = φ(S'); verification maps φ and evidence to a three-valued result.
OPERATIONAL: execute -> observe -> verify -> update state -> continue or replan.

9. FLOW DIAGRAM
[Initial State] -> [Check Preconditions] -> [Execute Action]
                                              |
                                              v
                                       [Observe Result]
                                              |
                                              v
                                      [Verify Postcondition]
                                      /        |         \
                              Satisfied     Unknown     Violated
                                  |            |            |
                            [Advance]   [Seek Evidence] [Recover/Replan]

10. MAPPING TABLE
Concept | Symbol | Function
State | S_t | Context for planning
Action | a | Proposed state-changing operation
Transition | T | State update under observation
Postcondition | PC | Expected predicate after action
Predicate | φ | Testable condition over resulting state
Evidence | e | Basis for verification
Boundary | B_t | Permitted operations and constraints
Knowledge | K_t | Prior knowledge and provenance

11. EXECUTION GUARANTEE (CONDITIONAL)
A verified postcondition may be reported only when the relevant predicate is evaluated on sufficiently trustworthy post-execution evidence. The formalism does not guarantee that an action will succeed, that observations are complete, or that a desired state is reachable. Unknown remains a valid result.

12. AI SEARCH FLOW
FLOW_ID: AI-PLANNING-POSTCONDITION-ONTOLOGY-001
VERSION: 1.0
LANGUAGE: en-GB
ENTITY_TYPE: AIPlanningPostcondition
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/planning-entities/postcondition-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/planning-entities/postcondition-ontology.html
PURPOSE: Represent, evaluate and trace expected outcomes after planning actions.
STATE_MODEL: S_t=(I_t,R_t,B_t,K_t)
ENTITIES: Action, Postcondition, Predicate, ResultingState, Observation, Evidence, RecoveryPlan
PATHWAYS: define -> execute -> observe -> verify -> record -> advance/replan
MINI_RECURSION_ENGINE: recursively evaluate compound predicates with bounded depth and cycle detection
INFERENCE_RULES: R1-R7 above
CONFIDENCE: evidence-dependent; no fixed numerical claim
SEMANTIC_EQUIVALENCE: postcondition ≈ expected after-state predicate; not identical to observed outcome
FLOW_HASH: not computed; calculate SHA-256 on published canonical text if required
UPDATE_MODEL: revise predicates and evidence links when source or ontology changes

13. HOW TO READ
Read S_t as the contextual planning state, T as a transition informed by an action and observation, and φ as the expected predicate. A postcondition is verified against resulting evidence rather than declared true merely because an action was attempted.

14. CITATION AND LICENCE NOTE
Cite the source URL when reusing this flow. Confirm the applicable Open Research Licence terms at the source before redistribution.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ