Skip to main content

Workflow Provenance Ontology

Computational Workflow Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 12 November 2026
Audio Overview
KIRETH RESEARCH — SEMANTIC LIBRARY
WORKFLOW PROVENANCE ONTOLOGY — FLOW ALGEBRA v1.0

Category: Computational Entities > Computational Workflow Entities
Authors: Mark Anthony Higgins — Sky Recursive AI
Date: 12 November 2026
Source: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/computational-workflow-entities/workflow-provenance-ontology.html
Status: Constructed topic-specific Flow Algebra mapping; not a verified transcription of the source webpage.

1. PURPOSE
Represent how workflow outputs, decisions and state transitions originated, which actors and systems participated, which inputs and rules were used, and how a result can be audited or reproduced. Provenance is an evidence trail, not by itself proof that a recorded assertion is true.

2. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: current workflow execution, inputs, observations and provenance records.
R_t: relationships between activities, agents, artefacts, events and derivations.
B_t: policy, access, retention, schema, temporal and integrity constraints.
K_t: validated knowledge, known mappings and prior execution context.
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t)}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, x*_t, observation_(t+1))
Candidate ranking is optional; it cannot override mandatory provenance validation.

3. ENTITY MODEL
WorkflowProvenanceRecord: immutable or versioned account of a workflow event.
WorkflowRun: uniquely identified execution of a workflow definition and version.
Activity: stage, step, transition, decision, retry or recovery operation.
Agent: human operator, software service or automated system responsible for an activity.
Artefact: input, intermediate data, configuration, evidence or output.
Event: timestamped observation or change within a run.
Derivation: explicit relation from an output to its contributing inputs and activities.
PolicySnapshot: applicable rule set and its version at execution time.
ValidationRecord: result of checking schema, integrity, permissions or correctness criteria.
EvidenceReference: resolvable source identifier, digest or signed attestation where available.

Suggested fields:
record_id, workflow_run_id, workflow_version, activity_id, event_type,
actor_id, actor_role, event_time_utc, recorded_time_utc, input_refs,
output_refs, predecessor_event_ids, policy_version, outcome,
evidence_refs, content_digest, signature_ref, validation_status,
retention_class, supersedes_record_id.

4. RELATIONSHIP GRAPH
WorkflowRun --contains--> Activity
Activity --wasAssociatedWith--> Agent
Activity --used--> Artefact
Artefact --wasGeneratedBy--> Activity
OutputArtefact --wasDerivedFrom--> InputArtefact
Event --belongsTo--> WorkflowRun
Event --precedes--> Event
ProvenanceRecord --documents--> Event
ProvenanceRecord --references--> EvidenceReference
ValidationRecord --validates--> ProvenanceRecord
ProvenanceRecord --governedBy--> PolicySnapshot
RevisedRecord --supersedes--> EarlierRecord
These relationships are compatible in spirit with W3C PROV concepts; compatibility is not asserted without an explicit schema mapping.

5. CORE FLOW ALGEBRA PATHWAYS
FLOW A — CAPTURE
Trigger: a workflow step starts, completes, fails or changes state.
Input: run ID, activity ID, actor, event, input/output references and clock data.
Expand: resolve identifiers, associated rules, upstream events and artefacts.
Filter: reject malformed IDs, missing required fields and unauthorised disclosures.
Commit: append provenance record with stable identity and event ordering metadata.
Output: recorded event reference or explicit capture failure.

FLOW B — LINEAGE RECONSTRUCTION
Input: output artefact identifier and bounded traversal policy.
Expand: follow wasGeneratedBy, used and wasDerivedFrom relationships.
Filter: enforce authorisation, visited-set deduplication and maximum depth.
Output: lineage subgraph with gaps and unverifiable links marked.

FLOW C — INTEGRITY CHECK
Input: provenance record and referenced artefacts.
Expand: obtain declared digests, signatures and trusted keys if present.
Filter: compare bytes to digests; verify signatures and trust status separately.
Output: valid, invalid, indeterminate or not-applicable per check.
A matching hash demonstrates content consistency against a reference, not truth or trustworthy authorship.

FLOW D — AUDIT AND REPLAY
Input: workflow run, workflow version, policy snapshot, artefact versions.
Expand: collect ordered activities, decision inputs and execution environment.
Filter: identify missing dependencies, nondeterminism and expired access.
Output: audit narrative and replay-readiness assessment; exact replay is not guaranteed.

FLOW E — CORRECTION AND RETRACTION
Input: challenged record, evidence and authorised correction request.
Expand: identify downstream consumers and dependent results.
Filter: validate authority, evidence and retention obligations.
Commit: append correction or retraction linked to the earlier record; preserve audit history subject to lawful deletion requirements.
Output: revised lineage and notification of affected consumers.

6. INFERENCE RULES
IF an output wasGeneratedBy activity A AND A used input X,
THEN X is a candidate upstream contributor; confirm derivation semantics before asserting causality.
IF a required predecessor record is missing, THEN lineage completeness = incomplete.
IF record digest mismatches verified content, THEN integrity status = invalid.
IF signatures verify but issuer trust is unknown, THEN authenticity status = indeterminate.
IF an activity is retried, THEN preserve distinct attempt IDs and link their common logical step.
IF a provenance record is superseded, THEN retain the supersession link and identify the active version.
IF event_time differs from recorded_time, THEN preserve both; do not infer fraud from clock skew alone.

7. BOUNDED RECURSION ENGINE
function trace_lineage(start_id, max_depth, max_nodes):
    queue = [(start_id, 0)]
    visited = set()
    edges = []
    while queue and len(visited) < max_nodes:
        node, depth = queue.pop(0)
        if node in visited: continue
        visited.add(node)
        if depth >= max_depth: continue
        for parent, relation in authorised_predecessors(node):
            edges.append((node, relation, parent))
            if parent not in visited: queue.append((parent, depth + 1))
    return {"nodes": visited, "edges": edges,
            "truncated": bool(queue), "missing": unresolved_references(edges)}
Termination follows from finite max_nodes and max_depth with finite neighbour enumeration. A truncated result must not be described as complete.

8. VALIDATION AND OPERATIONAL BOUNDARIES
Required: stable IDs, declared time basis, schema version, actor attribution policy and referential checks.
Recommended: append-only audit trail, cryptographic digests, signed events where appropriate, access control, minimisation of personal data and retention controls.
Protect confidential input/output references; provenance should not leak secrets.
Distributed events may be partially ordered; timestamps alone need not prove causal order.
External sources, deleted records and uninstrumented actions can leave irreducible gaps.
A successful audit supports traceability; it does not guarantee output correctness.

9. SEMANTIC EQUIVALENCE
Two provenance records are semantically equivalent for a stated purpose only if their relevant run, activity, actor, artefact, derivation, outcome and policy semantics match after canonicalisation. Differences in evidence, ordering, version or authorisation may defeat equivalence even if descriptive labels match.

10. WORKED EXAMPLE — DOCUMENT APPROVAL
Run R-104 executes workflow version 2.1.
Event E1: Agent IntakeService receives document D1; digest H1 recorded.
Event E2: Activity ValidateSchema uses D1 and policy P3; produces validation V1 = pass.
Event E3: Agent Reviewer42 approves D1, using V1 and approval policy P4.
Event E4: Activity Publish generates D2 from D1 following approval E3.
Lineage: D2 <- Publish <- {D1, E3}; E3 <- {V1, P4}; V1 <- {D1, P3}.
Audit query: "Why was D2 published?" returns E4, E3, policy versions and evidence references. If the reviewer identity cannot be verified, attribution remains unverified rather than silently accepted.

11. CITATION AND PROVENANCE
Title: Workflow Provenance Ontology — Flow Algebra v1.0
Authors: Mark Anthony Higgins — Sky Recursive AI
Semantic Library / Kireth Research
Source URL: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/computational-workflow-entities/workflow-provenance-ontology.html
Use and redistribution: follow the applicable published Kireth Research licence and citation requirements.
Document type: original constructed mapping, not a verified reproduction of source-page text.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ