Skip to main content

Step Ontology

Process Concepts
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 04 December 2026
Audio Overview
KIRETH RESEARCH — AI SEMANTIC LIBRARY
STEP ONTOLOGY — STANDARD FLOW ALGEBRA
Version: 1.0 | Encoding: UTF-8 | Date: 2026-12-04
Authors: Mark Anthony Higgins — Sky Recursive AI
Licence: Open Research Licence (project attribution; exact terms unverified)
Source: https://kirethresearch.org/booksai-core/entity-graph/abstract-concepts/process-concepts/step-ontology.html
Integration: AI Core / Entity Graph / Abstract Concepts / Process Concepts
Status: Proposed formalisation; published page and grammar not independently verified.

1. CANONICAL DEFINITION
A step is a model-relative unit of progression within a process, procedure or workflow, having identifiable entry conditions, execution semantics and exit conditions. A step may represent an action, observation, decision, waiting period or nested process. Atomicity is relative to the chosen abstraction. A step definition is distinct from an execution occurrence; repeated execution does not create a new definition. Completion does not imply success, and a skipped step is not an executed step.

2. ENTITY MODEL
StepDefinition = (id, version, parent, inputSchema, outputSchema, guard, operation, postcondition, dependencies, resources, authority, failurePolicy, context)
StepInstance = (instanceId, definitionId, definitionVersion, runId, attempt, inputs, outputs, status, startTime, endTime, evidence)
Dependency = (source, target, kind, condition, requiredOutcome)
Status = planned | ready | running | waiting | succeeded | failed | skipped | cancelled | unknown.
Assessment = established | rejected | unknown | disputed | not_applicable.
Separate control status from evidence assessment. An unknown guard must not be silently treated as true. Record timestamps with time basis and precision. Each retry receives its own attempt identifier. A step may have no material output but still produce an execution record.

3. CLASSIFICATION
Action step: changes a state or resource.
Observation step: acquires evidence without necessarily changing the subject.
Decision step: selects an explicitly defined branch.
Validation step: evaluates constraints and records a verdict.
Waiting step: awaits an event, time or condition.
Composite step: encapsulates a subordinate workflow with declared interfaces.
Compensation step: attempts to mitigate effects of earlier execution; not necessarily an inverse.
Manual, automated and hybrid steps distinguish execution responsibility. Optional and mandatory steps distinguish policy obligations. Sequential and concurrent steps distinguish dependency structure, not intrinsic step type.

4. LOCAL FLOW ALGEBRA NOTATION
X →[F] Y denotes a typed transformation. g ∘ f applies f then g. These are proposed local mathematical operators, not verified executable grammar.
F_define: Specification → StepDefinition
F_bind: StepDefinition × Input × Context → CandidateInstance
F_guard: CandidateInstance × Evidence → Assessment
F_authorise: CandidateInstance × Policy → Assessment
F_execute: ReadyInstance × State → ExecutionRecord × State
F_observe: ExecutionRecord × Evidence → OutcomeAssessment
F_validate: OutcomeAssessment × Postcondition → Assessment
F_route: ExecutionRecord × DependencyGraph → Set(CandidateInstance)
F_compensate: ExecutionRecord × State → CompensationRecord × State
F_commit: ValidatedRecord × Ledger → Ledger
Execution is permitted only when required guards, authority and resource constraints are established. Observed unauthorised execution remains recordable as an incident; it is not retrospectively authorised.

5. COMPOSITE FLOWS
Sequential: F_validate ∘ F_observe follows execution, with the execution record and evidence explicitly supplied. A successor is enabled only when its required predecessor outcome is established.
Parallel: independent steps may execute concurrently when resource and effect conflicts are resolved. Merge outputs using an explicit typed merge function; never assume last-writer-wins.
Conditional: evaluate branch guards against the same versioned context; specify priority, exclusivity or permitted multiple branches. Unknown guards defer or escalate according to policy.
Iteration: each iteration has an identity, exit predicate, resource budget and maximum attempt or time policy. Retry only when duplicate effects are prevented or reconciled.
Nested: bind parent inputs to child interfaces and map child outcomes to parent postconditions. Child completion alone is insufficient for parent success.

6. MATHEMATICAL SEMANTICS
Let G=(V,E) be a directed dependency graph of step definitions. For an acyclic workflow, a topological order is a valid structural ordering, not necessarily a feasible execution schedule. Cyclic workflows require explicit loop semantics.
Ready(v,s) = Guard(v,s) AND Authority(v,s) AND Resources(v,s) AND all required predecessor outcomes satisfied.
Use three-valued evaluation (true, false, unknown) for incomplete evidence. Contradictory evidence is retained separately as disputed. Only established true enables a mandatory execution guard.
A deterministic step is a partial function f:D⊆S→S. A nondeterministic step is a relation R⊆S×S. A stochastic step is a probability kernel K(s,B) with K(s,S)=1 for each admissible s. Failure and cancellation outcomes must be included where relevant.
Sequential relational composition: (s,u)∈R2∘R1 iff there exists t with (s,t)∈R1 and (t,u)∈R2.
For compatible stochastic kernels, K12(s,B)=∫K2(t,B)K1(s,dt), assuming the intermediate state captures all necessary dependence.
Postcondition satisfaction: success requires terminal execution evidence and established Q(s_in,s_out,output). Unknown Q yields an unresolved outcome, not automatic success.
Duration d=end−start for comparable clocks. For an acyclic network with fixed durations and unlimited resources, earliest finish EF(v)=d(v)+max{EF(u):u is a predecessor of v}, with empty maximum zero. Resource contention, loops and conditional paths require additional scheduling models.
Progress = sum(w_i c_i)/sum(w_i), for declared nonnegative weights with positive total and completion indicators c_i. Freeze the denominator for comparisons or disclose scope changes. Progress is not success probability.
Idempotence f(f(s))=f(s) where both sides are defined. This property must include relevant external effects before it can justify retries. Compensation may restore selected invariants without restoring the complete original state.

7. STRUCTURAL INVARIANTS
I01 Definition and instance identities remain distinct.
I02 Every instance references a specific definition version.
I03 Required input and output schemas are checked.
I04 Unknown guard or authority cannot enable execution.
I05 Dependency outcomes are evaluated according to declared policy.
I06 Time ordering is checked only against compatible clocks.
I07 Concurrent resource and effect conflicts require resolution.
I08 Skipped, failed and cancelled outcomes cannot masquerade as success.
I09 Retry attempts preserve lineage and reconcile duplicate effects.
I10 Compensation records preserve original execution history.
I11 Recursive or cyclic execution has explicit stopping and escalation rules.
I12 Every established outcome has traceable evidence and applicable criteria.

8. RECURSIVE VALIDATION
Given versioned graph G_n, ledger L_n and evidence delta E_n, construct candidate assessment A_n=Validate(G_n,L_n,E_n). Propose a revision only where evidence or an authorised change warrants it. Validate type compatibility, dependencies, guards, authority and invariants before committing a new graph version. Preserve running instances on their original version unless a controlled migration is authorised.
R_{n+1}=Update(R_n,E_n) is a knowledge refinement flow, not necessarily physical re-execution. Stop when no material change occurs, the evidence budget is exhausted, a deadline is reached or escalation is required. Detect repeated canonical assessment states and flag oscillation. A fixed point R*=Update(R*,∅) indicates stability under that update policy, not truth or universal correctness. Convergence requires separate proof; bounded iteration guarantees termination of the assessment routine only.

9. EVIDENCE AND PROVENANCE
Record evidence identifier, source, collection method, observed time, recorded time, context, version, uncertainty, assessor and integrity reference where available. Preserve raw observations and derived assessments separately. Missing logs do not prove non-execution. Conflicting records must be retained and adjudicated. Confidence scores are not probabilities unless calibrated. Distinguish simulated, predicted and observed execution. Protect sensitive inputs while retaining sufficient audit metadata. An evidence correction creates a new assessment version rather than rewriting history.

10. WORKED EXAMPLES
Engineering: inspect a component, record dimensions and evaluate tolerance. Inspection completion is distinct from component acceptance.
Software: validate input before database update. Retry with a transaction or idempotency key; reconcile uncertain commit status before repeating.
Mathematics: apply a transformation only within its domain; division by zero makes the candidate operation inadmissible.
Manufacturing: two independent inspections can run in parallel; assembly waits for both required acceptance outcomes.
Scientific research: collect observations, evaluate quality and preserve rejected measurements with reasons; a completed experiment may not support its hypothesis.
AI reasoning: generate a candidate inference, validate premises and record uncertainty before committing a knowledge assertion. A recursive revision is not evidence by itself.
Administration: submit a request, await approval and execute only after approval is established. A timeout may trigger escalation, not implicit approval.

11. CROSS-ONTOLOGY INTEGRATION
Process Concept: step is a constituent unit of a process model.
Activity: a step instance may realise one or more activities.
Action Concept: action semantics specify interventions and effects.
Operation: typed transformations define execution behaviour.
Procedure: ordered instructions constrain step progression.
Method: a step may implement part of an abstract approach.
Workflow Concept: dependency graph coordinates steps and resources.
State Transition Concept: step execution may induce transitions, including self-transitions.
Valid/Invalid State: guards and postconditions evaluate admissibility.
Recursive Engineering Workflow: versioned refinement and execution lineage.
These are proposed semantic mappings, not assertions of verified published identifiers or equivalence.

12. PROPOSED ACCEPTANCE TESTS (NOT EXECUTED)
T01 Instantiate one definition twice: distinct instance identifiers, same definition version.
T02 Missing required input: reject readiness.
T03 Unknown mandatory guard: defer execution.
T04 Unauthorised observed execution: retain incident evidence, do not mark authorised.
T05 Required predecessor failed: successor blocked unless explicit failure branch permits it.
T06 Concurrent conflicting writes: require synchronisation or reject schedule.
T07 Completed execution with false postcondition: not successful.
T08 Skipped optional step: record skipped, not executed.
T09 Retry after uncertain external effect: reconcile before repeating.
T10 Loop exceeds budget: terminate or escalate according to policy.
T11 Definition revision during execution: preserve original version or require authorised migration.
T12 Conflicting outcome evidence: retain disputed assessment and provenance.

13. CITATION AND LICENCE
Suggested citation: Higgins, Mark Anthony; Sky Recursive AI (2026). Step Ontology — Standard Flow Algebra, version 1.0. Kireth Research, AI Semantic Library.
Source identifier: https://kirethresearch.org/booksai-core/entity-graph/abstract-concepts/process-concepts/step-ontology.html
Original proposed formalisation, not a verified transcription. Open Research Licence attribution follows project convention; consult the publisher for authoritative terms. Published page content, grammar compatibility and exact licence terms have not been independently verified. Acceptance tests are specifications, not executed results.

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