Skip to main content

Action Sequence 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 — ACTION SEQUENCE ONTOLOGY
FLOW ALGEBRA FORMALISATION v1.0
Date: 02 November 2026
Authors: Mark Anthony Higgins; Sky — Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/planning-entities/action-sequence-ontology.html
Source page revised: 01 August 2026
Licence: Open Research Licence — citation requested; refer to published licence for terms.

SOURCE FIDELITY NOTE
The accessible page identifies the ontology and authors but does not expose its full formal specification. The rules below are a constructed, proposed Flow Algebra formalisation, not a verbatim transcription of the page's hidden AI Search code.

1. PURPOSE
Represent an action sequence as a structured, ordered or partially ordered set of actions, with explicit preconditions, effects, dependencies, constraints, execution history and goal satisfaction.

2. ENTITY MODEL
ActionSequence Q = (id, A, D, G, C, X, H, status)
A = finite set of action instances a_i
D subset A x A = precedence relation (a_i,a_j) means a_i precedes a_j
G = target goal predicate
C = global constraints, including permissions, resources and boundaries
X = world/environment state
H = execution and observation history
status in {draft, validated, ready, running, blocked, completed, failed, cancelled}
Action a = (id, Pre, Eff, Cost, Resources, Authority, Evidence)
Pre(a,X) = action preconditions hold in X
Eff(a,X) = predicted successor state, if defined

3. HST / FLOW ALGEBRA STATE
S_t = (I_t, R_t, B_t, K_t)
I_t = current input, goal, actions, observations and state
R_t = action-ordering, transition and inference rules
B_t = permission, safety, resource and validity boundaries
K_t = known action schemas, dependencies and evidence
E_t = expand(I_t,R_t)
V_t = {q in E_t | admissible(q,B_t,K_t)}
q*_t = argmax_{q in V_t} P(q | I_t,R_t,B_t,K_t)
I_(t+1) = update(I_t, observe(execute_authorised(q*_t)))
NOTE: If V_t is empty, halt or request revision; argmax is undefined.

4. FORMAL ACTION SEQUENCE FLOW
INPUT goal G, initial state X_0, actions A, dependencies D, boundaries B
  -> NORMALISE action definitions and identifiers
  -> VALIDATE dependency graph, resource and authority constraints
  -> DETECT cycles in mandatory precedence relations
  -> BUILD enabled frontier F_t
  -> SELECT admissible action a_t
  -> CHECK Pre(a_t,X_t) and authority immediately before execution
  -> EXECUTE a_t only with authorised tool/actor
  -> OBSERVE actual result O_t and reconcile predicted effects
  -> UPDATE X_(t+1), history H_(t+1), remaining actions
  -> TEST goal G and completion criteria
  -> CONTINUE, REPLAN, BLOCK or TERMINATE

5. DEPENDENCY ALGEBRA
Pred(a) = {b in A | (b,a) in D}
Completed_t = {a in A | verified_complete(a,H_t)}
Enabled_t = {a in A\Completed_t | Pred(a) subseteq Completed_t and Pre(a,X_t)}
Admissible_t = {a in Enabled_t | allowed(a,B_t) and resources_available(a,X_t)}
For strict sequential execution: |selected_t| <= 1.
For parallel execution: selected_t subseteq Admissible_t, and all selected actions must be mutually compatible in effects and resource use.
A valid finite acyclic dependency graph has at least one topological order; this alone does not guarantee executable preconditions or goal success.

6. TRANSITION AND OBSERVATION
Predicted: X' = Eff(a,X_t)
Observed: O_t = observe(a,environment)
Reconciled: X_(t+1) = reconcile(X_t,X',O_t,K_t)
History: H_(t+1) = H_t append (a, timestamp, O_t, outcome, evidence)
A predicted effect is not proof of execution; only verified observations can support completion claims.

7. RECURSIVE SEQUENCE REFINEMENT
Refine(Q_t) = split_complex_actions(Q_t) + repair_dependencies(Q_t) + revise_constraints(Q_t)
Q_(t+1) = Refine(Q_t) when blocked, inconsistent or under-specified.
Termination requires a bounded refinement budget, a monotone progress measure, or an explicit stop condition.
Subsequence substitution is valid only when its preconditions, effects, boundaries and ordering preserve the parent action's contract.

8. INFERENCE RULES
R1: (b,a) in D and not verified_complete(b) => a is not enabled.
R2: Pre(a,X_t) false => a cannot execute in X_t.
R3: not allowed(a,B_t) => reject a regardless of expected utility.
R4: verified_complete(a,H_t) => mark a completed.
R5: conflict(a,b) => do not schedule a and b concurrently.
R6: mandatory dependency cycle => sequence invalid until repaired.
R7: G(X_t) true and all mandatory completion conditions verified => completed.
R8: failed observation => update state, flag discrepancy and consider replan.
R9: missing authority or uncertain irreversible effect => halt for authorisation.

9. TRI-MAPPING
ENTITY GRAPH: ActionSequence -> contains -> Action
ENTITY GRAPH: Action -> dependsOn -> Action
ENTITY GRAPH: ActionSequence -> targets -> Goal
RELATIONSHIP GRAPH: precedes, enables, conflictsWith, satisfies, invalidates
FLOW GRAPH: define -> validate -> enable -> authorise -> execute -> verify -> update -> terminate/replan

10. TEXT DIAGRAM
[Goal + State + Constraints]
           |
           v
[Action Sequence Q] --> [Validate Dependencies]
           |                    |
           |                 invalid --> [Repair / Stop]
           v
    [Enabled Frontier]
           |
           v
[Boundary + Authority Gate] -- denied --> [Blocked / Stop]
           |
           v
      [Execute Action]
           |
           v
  [Observe + Verify] -- failure --> [Replan / Stop]
           |
           v
      [Update State]
           |
           +--> goal unmet --> [Enabled Frontier]
           |
           +--> goal verified --> [Completed]

11. MAPPING TABLE
Concept                 Symbol       Interpretation
Action sequence         Q            Plan-level execution structure
Action set              A            Candidate and mandatory action instances
Precedence relation     D            Required ordering constraints
Goal                    G            Desired terminal predicate
Environment state       X_t          Current observed world state
History                 H_t          Execution evidence ledger
Boundaries              B_t          Safety, permissions, resource limits
Enabled frontier        Enabled_t    Dependency- and precondition-ready actions
Admissible frontier     Admissible_t  Enabled actions passing boundaries
Transition              Eff          Predicted action effect
Observation             O_t          Actual execution result

12. EXECUTION GUARANTEE (CONDITIONAL)
Structural guarantee: For finite A with acyclic D, topological ordering exists.
Safety gate guarantee: Under faithful enforcement, no action is intentionally selected outside explicit boundary and authority checks.
Progress guarantee: Not unconditional. It requires available actions, true preconditions, sufficient resources, correct models and reliable execution.
Goal guarantee: Not unconditional. Completion is asserted only if G is verified against observed state and mandatory actions are verified.
If any condition fails, emit blocked/failed/uncertain rather than fabricate success.

13. AI SEARCH FLOW
FLOW_ID: semantic-library.ai.planning.action-sequence.v1
ENTITY_TYPE: ActionSequence
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/planning-entities/action-sequence-ontology.html
CITATION_BACKLINK: same as SOURCE
PURPOSE: Retrieve, reason over and validate ordered action execution structures.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: ActionSequence, Action, Goal, Subgoal, Task, Subtask, Dependency, Constraint, Resource, Observation, ExecutionHistory
PATHWAYS: Goal -> Plan -> ActionSequence -> Action -> Observation -> GoalEvaluation
MINI_RECURSION_ENGINE: validate -> choose -> gate -> execute -> observe -> update -> repeat
INFERENCE_RULES: R1-R9 above
CONFIDENCE: Evidence-based; unknown if unverified
SEMANTIC_EQUIVALENCE: action order / execution order / action chain (context-dependent, not universally identical)
FLOW_HASH: not computed; compute from canonical UTF-8 content if needed
UPDATE_MODEL: Revalidate when source ontology, actions, boundaries or execution evidence changes.

14. HOW TO READ / IMPLEMENT
Treat predicates as formal constraints, not commands to execute external actions. Implement a dependency DAG validator, state-transition adapter, authority gate, observation logger and goal verifier. Keep predicted and observed effects separate. Use explicit failure and uncertainty states.

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