AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
WORKFLOW RESULT ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | AI Entities | Workflow Entities
Version: 1.0 | Prepared: 02 November 2026 | Language: en-GB
AUTHORS / ATTRIBUTION
Ontology: Mark Anthony Higgins — Sky Recursive AI
Companion Flow Algebra formalisation: Sky — Recursive AI
Original publication: 11 October 2025; revised 01 August 2026.
SOURCE
https://kirethresearch.org/booksai-core/entity-graph/ai-entities/workflow-entities/workflow-result-ontology.html
CITATION_BACKLINK: same as SOURCE
STATUS: Companion formalisation. The public page identifies the ontology but does not expose the full embedded formal specification to this retrieval; definitions below are an independently prepared, compatible model, not a verbatim extraction.
1. PURPOSE
Represent the result of executing a workflow or stage as a typed, attributable, validated entity. Distinguish result (the assessed outcome) from output (the produced artefact or data), and from execution (the process that produced it).
2. ENTITY DEFINITION
WorkflowResult := (id, workflow_id, execution_id, stage_id?, status, outputs, evidence, metrics, errors, provenance, timestamp, version)
status ∈ {pending, succeeded, partially_succeeded, failed, cancelled, indeterminate}
outputs is a finite collection of WorkflowOutput references.
evidence is a collection of observations or validation records.
metrics is a typed map of execution/result measurements.
errors is a collection of typed error records.
provenance links the result to its inputs, execution, rules and source.
3. FORMAL STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: known inputs, stage outputs, observations and execution trace.
R_t: rules for result construction, validation and aggregation.
B_t: constraints, authority boundaries, deadlines and permitted statuses.
K_t: prior knowledge, schemas, dependencies and provenance.
E_t = expand(I_t, R_t)
V_t = {x ∈ E_t | valid(x, B_t, K_t)}
x*_t = argmax_{x ∈ V_t} P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, x*_t, evidence_t)
If V_t = ∅, emit a typed indeterminate/failed result with diagnostic evidence; do not fabricate a successful outcome.
4. RESULT CONSTRUCTION ALGEBRA
Result(e) = Assemble(Outputs(e), Status(e), Evidence(e), Errors(e), Provenance(e))
WellFormed(r) := hasID(r) ∧ hasExecution(r) ∧ typedStatus(r) ∧ schemaValid(r)
Traceable(r) := ∀o ∈ outputs(r), linkedTo(o, execution(r))
Supported(r) := ∀c ∈ claims(r), existsEvidence(c) ∨ explicitlyUnverified(c)
Accept(r) := WellFormed(r) ∧ Traceable(r) ∧ Supported(r) ∧ ConstraintsSatisfied(r)
Publish(r) := Accept(r) ∧ authorised(r) ∧ releasePolicySatisfied(r)
5. STATUS AND TRANSITION RULES
pending -> {succeeded, partially_succeeded, failed, cancelled, indeterminate}
A terminal result is immutable for the execution version; corrections create a superseding version.
Succeeded requires all mandatory completion predicates and acceptance criteria.
Partially_succeeded requires at least one achieved objective and one unmet mandatory objective, where partial results are allowed.
Failed indicates unmet completion conditions or a terminal error.
Cancelled indicates an authorised stop before completion.
Indeterminate indicates insufficient evidence to determine an outcome.
A successful process exit code alone does not prove semantic success.
6. INFERENCE RULES
R1: completed(e) ∧ allRequiredChecksPass(e) -> status(Result(e)) = succeeded.
R2: completed(e) ∧ someRequiredChecksFail(e) ∧ partialAllowed(e) -> status(Result(e)) = partially_succeeded.
R3: terminalError(e) ∧ ¬recoverable(e) -> status(Result(e)) = failed.
R4: authorisedCancellation(e) -> status(Result(e)) = cancelled.
R5: insufficientEvidence(e) -> status(Result(e)) = indeterminate.
R6: missingProvenance(r) -> ¬Publish(r).
R7: invalidOutputSchema(r) -> ¬Accept(r).
R8: supersedes(r2,r1) -> preserve(r1) ∧ linkVersion(r2,r1).
Rules are evaluated under explicit priority and conflict handling; contradictory evidence cannot silently yield succeeded.
7. RESULT AGGREGATION
For workflow W with required stages D(W):
Success(W) := ∀s ∈ D(W), status(Result(s)) = succeeded.
Failure(W) := exists s ∈ D(W) such that failed(s) ∧ ¬recovered(s).
Partial(W) := ¬Success(W) ∧ exists s ∈ D(W) such that succeeded(s), subject to partial-result policy.
If outcomes conflict or evidence is missing, evaluate cancellation and indeterminate rules before assigning a final workflow status.
Aggregation must respect optional stages, branch selection, retries and compensation semantics.
8. TRI-MAPPING
ENTITY: WorkflowResult -> a typed outcome record.
RELATIONSHIP: WorkflowExecution --produces--> WorkflowResult.
FLOW: execution trace -> output capture -> validation -> status assessment -> result record -> permitted publication.
9. RELATIONSHIP GRAPH
Workflow -> hasExecution -> WorkflowExecution
WorkflowExecution -> produces -> WorkflowResult
WorkflowResult -> contains -> WorkflowOutput
WorkflowResult -> supportedBy -> Evidence
WorkflowResult -> constrainedBy -> WorkflowConstraint
WorkflowResult -> evaluatedBy -> ValidationRule
WorkflowResult -> supersedes -> WorkflowResult(version n-1)
WorkflowResult -> informs -> WorkflowDecisionPoint
10. EXECUTION DIAGRAM (TEXT)
[Workflow trigger]
|
[Workflow execution]
|
[Capture outputs + trace]
|
[Validate schemas, evidence and constraints]
|
[Evaluate completion / error / cancellation]
|
[Construct versioned WorkflowResult]
|
[Acceptance gate] -- rejected --> [Diagnostic result / remediation]
|
accepted
|
[Publication / downstream decision]
11. MAPPING TABLE
Input observations -> I_t -> Evidence and output references
Decision rules -> R_t -> Status inference and validation
Constraints/policies -> B_t -> Acceptance and release gate
Schemas/provenance -> K_t -> Typed, traceable result
Candidate outcomes -> E_t -> Potential result interpretations
Valid outcomes -> V_t -> Policy-compliant candidates
Selected interpretation -> x*_t -> Recorded result assessment
Updated record -> I_(t+1) -> Next workflow state
12. EXECUTION GUARANTEE (CONDITIONAL)
Given finite inputs, terminating validation functions, deterministic conflict priorities, stable evidence snapshots and enforced schemas, the evaluation terminates with either a valid result or a typed diagnostic outcome. No unconditional guarantee of workflow success, truth of external evidence or termination of arbitrary external tools is asserted.
13. VALIDATION CHECKLIST
- Result ID and workflow/execution links exist.
- Status belongs to the declared enumeration.
- Mandatory outputs satisfy their schemas.
- Evidence supports each asserted success criterion.
- Error records and partial outcomes are preserved.
- Version and timestamps are present.
- Provenance is resolvable.
- Release permissions and constraints are satisfied.
- Retries, cancellation and compensation are handled explicitly.
- Conflicting or missing evidence never silently becomes success.
14. AI SEARCH FLOW
FLOW_NAME: WorkflowResultOntology
FLOW_VERSION: 1.0
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/workflow-entities/workflow-result-ontology.html
PURPOSE: Resolve questions about workflow results, their status, evidence, outputs, provenance and validation.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: WorkflowResult, WorkflowExecution, WorkflowOutput, Evidence, ValidationRule, WorkflowConstraint, WorkflowDecisionPoint
PATHWAYS: execution -> output -> evidence -> validation -> result -> decision
MINI_RECURSION_ENGINE: inspect -> expand -> filter -> select -> update; repeat on new evidence or version
INFERENCE_RULES: R1-R8 above
CONFIDENCE: derived from evidence quality and coverage; not a fixed numeric claim
SEMANTIC_EQUIVALENCE: workflow outcome ~= workflow result only where the same typed status and evidence are retained; workflow output != workflow result
UPDATE_MODEL: append a superseding version with links to previous result and changed evidence
FLOW_HASH: compute cryptographic hash over canonical serialisation on publication; no hash asserted here
END OF FILE