Skip to main content

Procedure 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
PROCEDURE 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/procedure-ontology-2.html
Integration: AI Core / Entity Graph / Abstract Concepts / Process Concepts
Status: Proposed formalisation; published page and grammar not independently verified.

1. CANONICAL DEFINITION
A procedure is a normative specification of steps, dependencies, conditions and responsibilities intended to produce an outcome. A procedure definition is distinct from a process occurrence, an execution trace, an individual action and a successful outcome. A procedure may permit multiple paths rather than prescribing a total order. Compliance with a procedure does not by itself establish effectiveness or safety.

2. ENTITY MODEL
Procedure P = (id, version, goal, context, inputs, outputs, steps, edges, guards, roles, resources, constraints, exceptions, acceptance, provenance).
Step S = (id, operation, precondition, postcondition, role, resourceDemand, timeout, failurePolicy).
Execution E = (runId, procedureId, version, initialState, currentState, enabledSteps, trace, resourceLedger, status, evidence).
Execution status ∈ {planned, ready, running, suspended, completed, failed, cancelled, unknown}.
Assessment status ∈ {established, rejected, unknown, disputed, not_applicable}.
Record each event with occurrence time, recording time, actor, step identifier, outcome and evidence reference. Bind every execution to an immutable procedure version. An instruction describes what should occur; an observation describes what evidence indicates occurred.

3. CLASSIFICATION
Sequential: steps execute in a specified order.
Conditional: guards select admissible branches.
Parallel: independent or explicitly synchronised steps may overlap.
Iterative: a loop repeats subject to a guard and termination policy.
Recursive: a procedure invokes itself or another procedure in a recursive dependency cycle.
Manual: a human performs or confirms steps.
Automated: a machine executes defined operations.
Hybrid: human and machine roles cooperate.
Corrective: intended to restore an acceptable state.
Preventive: intended to reduce the likelihood of undesirable states.
Emergency: governed by explicit safety constraints and escalation rules.
These classifications can overlap; none implies successful execution.

4. LOCAL FLOW ALGEBRA NOTATION
X →[F] Y denotes a typed transformation. g ∘ f applies f then g. The following operators are proposed local notation, not verified executable grammar.
F_define: Goal × Context × Requirements → ProcedureCandidate
F_compile: ProcedureCandidate → ExecutionGraph | Diagnostic
F_validate: ProcedureCandidate × RuleSet → Assessment
F_bind: ValidatedProcedure × Input × Context → ExecutionCandidate
F_enable: Execution × State × Evidence → EnabledStepSet
F_authorise: Step × Actor × Policy × Context → PermissionAssessment
F_execute: AuthorisedStep × State × Resources → OutcomeRecord
F_observe: OutcomeRecord × Evidence → Observation
F_advance: Execution × Observation → ExecutionCandidate
F_exception: Execution × FailureRecord → RecoveryCandidate | Escalation
F_accept: Execution × AcceptanceCriteria × Evidence → Assessment
F_commit: ValidatedCandidate × VersionedStore → VersionedStore | Conflict
F_revise: Procedure × ReviewEvidence → ProcedureCandidate
All side-effecting operations require appropriate authorisation. A proposed action is not an executed action. Unknown guards do not silently become true.

5. COMPOSITE FLOWS
Definition: Goal →[F_define] Candidate →[F_validate] Assessment. Compile and publish only after applicable mandatory checks pass.
Execution: bind inputs; evaluate enabled steps; verify permission and resources; execute; observe; advance; repeat until terminal status or escalation.
Sequence: S2 ∘ S1 is defined when S1 output satisfies S2 input type and preconditions. Failure of S1 blocks S2 unless an explicit exception edge permits continuation.
Branch: choose an edge whose guard is established true; use a declared priority or nondeterministic selection policy when multiple guards hold. No eligible edge means wait, fail or escalate according to policy.
Parallel: fork into branches with isolated or coordinated resource access. Join according to explicit all/any/quorum semantics. A merge must reconcile conflicting writes and preserve mandatory invariants.
Iteration: while guard is established true, execute body subject to a budget. On unknown guard, suspend or escalate. On budget exhaustion, record incomplete execution.
Compensation: execute an authorised compensating operation after partial failure. Compensation is not necessarily an inverse and cannot guarantee restoration of external effects.

6. MATHEMATICAL SEMANTICS
Let X be the state space, G=(V,E) a directed execution graph, and M a marking of enabled or completed steps. A configuration is z=(x,M,r), with r a resource ledger.
Each step s defines a relation T_s ⊆ Z × Z. A transition is admissible only if its guard, permission and resource predicates hold. Observed violations remain representable as non-compliant events rather than being erased.
Sequential relational composition: T_b ∘ T_a = {(x,z): ∃y, (x,y)∈T_a and (y,z)∈T_b}.
For deterministic partial functions, composition requires compatible domains. Associativity holds wherever the composed functions are defined. Commutativity requires proof, not merely parallel scheduling.
Reachability: R_0={z0}; R_(k+1)=R_k ∪ Post(R_k). On a finite configuration space this monotone sequence stabilises after finitely many strict expansions. Infinite spaces may require abstraction or bounded exploration.
Safety: for invariant I, establish I(z0) and ∀(z,z')∈T, I(z)⇒I(z') over admissible reachable configurations. This does not establish liveness.
Termination: a ranking function ρ into a well-founded order that strictly decreases on every continuing loop transition proves termination under the model assumptions. A timeout bounds waiting but does not prove successful termination.
Stochastic steps: K_s(z,A) is a probability kernel over next configurations. Sequential kernels compose by integration over intermediate configurations; branch probabilities require a specified selection policy. Do not multiply success probabilities without justified independence.
Resource accounting: r_next=r+produced-consumed-reserved+released, with each term defined in compatible units and reservation semantics preventing double counting. Enforce capacity limits at every relevant transition.
Timing: for a fixed acyclic dependency graph with deterministic durations and unlimited resources, earliest finish EF(v)=duration(v)+max_{u predecessor of v} EF(u), with empty maximum zero. Resource contention and uncertain durations require a richer scheduling model.
Compliance: C(E,P)=established only when required trace obligations are satisfied and sufficient evidence exists. A known mandatory violation yields rejection; missing evidence yields unknown unless another decisive violation exists. Outcome acceptance is evaluated separately.

7. STRUCTURAL INVARIANTS
I01 Every procedure and step has a scoped identifier.
I02 Every run references an immutable procedure version.
I03 Every transition has defined source and destination types.
I04 Mandatory preconditions and permissions are evaluated before authorised execution.
I05 Unknown evidence is not interpreted as permission or compliance.
I06 Dependencies and join policies are explicit.
I07 Resource units, capacities and ownership are preserved.
I08 Concurrent writes require isolation or a declared merge policy.
I09 Failure, cancellation and suspension remain distinct from completion.
I10 Compensation preserves the original failure and action history.
I11 Outcome acceptance is independent of procedural compliance.
I12 Revisions preserve provenance and do not silently rewrite historical runs.

8. RECURSIVE VALIDATION
Given versioned graph G_k and new evidence Δ_k, construct candidate G' using a declared update policy. Check typing, graph integrity, guard coverage, reachable deadlocks, permissions, resource constraints and evidence obligations. Commit atomically only if mandatory checks pass; otherwise retain the last accepted version and record diagnostics.
For recursive invocation, record call identity, parent run, arguments, return contract and depth. Use a decreasing ranking function where termination is claimed; otherwise impose explicit depth, time and resource budgets.
For iterative review G_(k+1)=U(G_k,Δ_k), a fixed point means no change under the chosen update operator and equivalence relation. It does not establish truth, safety or optimality. Detect repeated canonical graph hashes, oscillation and budget exhaustion. Escalate unresolved conflicts instead of repeatedly committing equivalent revisions.

9. EVIDENCE AND PROVENANCE
Record source identifier, observation time, ingestion time, method, actor, procedure version, context, uncertainty and evidence dependencies. Distinguish planned, reported, observed and independently verified events. A missing log entry is not proof that an action did not occur. Conflicting records remain linked to their sources. Confidence scores are not probabilities unless calibrated. A signed execution record establishes attribution under the relevant trust assumptions, not necessarily correctness of the reported outcome.

10. WORKED EXAMPLES
A. Manufacturing: inspect a component, perform an authorised operation, then measure the output. A failed inspection routes to review rather than automatic release.
B. Software deployment: validate artefact, stage deployment, run checks and approve release. Failed checks trigger rollback where available; rollback does not erase the incident.
C. Laboratory analysis: register specimen, verify method version, measure and review. Missing calibration evidence makes compliance unknown.
D. Data processing: validate input schema, transform records, reconcile counts and publish. Parallel branches must merge without duplicate records.
E. Maintenance: verify isolation and authorisation before work; record inspection and restoration evidence. Completion alone does not establish equipment fitness.
F. AI reasoning: formulate candidate, check evidence and constraints, revise within a budget and return a supported conclusion or unresolved status. Convergence is not proof of factual accuracy.
G. Administration: submit request, route to authorised reviewer, record decision and notify requester. Submission, approval and fulfilment are separate events.

11. CROSS-ONTOLOGY INTEGRATION
Process Concept: a procedure specifies admissible process execution patterns.
Activity: procedure steps may be realised by activity occurrences.
Action Concept: each action has preconditions, authorisation and effects.
Operation: steps invoke typed operations with input/output contracts.
State Transition: execution edges relate configurations before and after steps.
Valid State / Invalid State: assess configuration admissibility independently of trace compliance.
Condition Concept: guards and acceptance predicates reference contextual conditions.
Effectiveness / Efficiency: assess outcome attainment and resource use separately.
Consistency / Coherence: validate rule compatibility and integrated dependencies.
Recursive Engineering Workflow / Validation: link versioned procedures to execution and review records.
Mappings are proposed semantic integration points, not assertions about published identifiers.

12. PROPOSED ACCEPTANCE TESTS (NOT EXECUTED)
T01 Duplicate step identifier → reject candidate.
T02 Incompatible output/input types → reject sequence.
T03 Mandatory guard unknown → do not authorise step.
T04 Two true branch guards without selection policy → flag ambiguity.
T05 All-join with one unfinished branch → remain waiting.
T06 Parallel branches exceed shared capacity → block conflicting allocation.
T07 Failed step with authorised exception edge → route to exception handler and preserve failure.
T08 Completed trace with failed outcome criterion → completed but outcome rejected.
T09 Missing mandatory observation → compliance unknown absent decisive violation.
T10 Recursive call exceeds depth budget → suspend or escalate with incomplete status.
T11 Procedure revised during run → original run remains bound to original version.
T12 Repeated graph hash in review cycle → detect oscillation or fixed point according to update history; do not claim correctness.

13. CITATION AND LICENCE
Suggested citation: Higgins, Mark Anthony; Sky Recursive AI (2026). Procedure Ontology — Standard Flow Algebra, version 1.0. Kireth Research, AI Semantic Library.
Source: https://kirethresearch.org/booksai-core/entity-graph/abstract-concepts/process-concepts/procedure-ontology-2.html
Open Research Licence attribution follows project convention; consult the publisher for authoritative terms. This is an original proposed formalisation, not a verified transcription. Published page content, exact licence terms and grammar compatibility have not been independently verified. Acceptance tests are proposed, not executed.
END OF SPECIFICATION
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ