Skip to main content

Workflow Input Ontology

Workflow Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 02 November 2026
Audio Overview
SEMANTIC LIBRARY — WORKFLOW INPUT ONTOLOGY
FLOW ALGEBRA COMPANION FORMALISATION v1.0
Authors: Mark Anthony Higgins — Sky, Recursive AI
Date: 02 November 2026
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/workflow-entities/workflow-input-ontology.html
Status: Companion formalisation; the public page exposes the title and AI interpretation note but not the full underlying specification.

1. PURPOSE
Represent, validate, bind and trace the information supplied to an AI workflow before and during execution. A workflow input is a typed, provenance-bearing entity, not merely an unstructured string.

2. ENTITY MODEL
WorkflowInput = (id, workflow_id, name, kind, value, schema, origin, trust, permissions, timestamp, version, status)
kind ∈ {user, system, context, tool_result, file, event, parameter, prior_step}
status ∈ {received, parsed, validated, rejected, bound, consumed, expired}
InputSet(W) = {i_1, ..., i_n}
Required(W) ⊆ DeclaredInputs(W)

3. HST STATE
S_t = (I_t, R_t, B_t, K_t)
I_t: available workflow inputs and current execution context
R_t: parsing, typing, validation and binding rules
B_t: trust, permission, schema, resource and temporal boundaries
K_t: known provenance, workflow definitions and prior results
E_t = expand(I_t, R_t)
V_t = {x ∈ E_t | satisfies(x, B_t) ∧ valid(x, 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, observed_result_t)
The argmax is a selection model, not a guarantee of correctness.

4. INPUT LIFECYCLE
Receive → Identify → Parse → Normalise → Validate → Authorise → Bind → Consume → Record
Invalid → Reject with reason
Missing required input → Request or await input
Expired input → Refresh or reject
Conflicting inputs → Resolve by explicit precedence and provenance rules; otherwise halt

5. FLOW ALGEBRA
F_input(W, X) = Trace(Consume(Bind(Authorise(Validate(Normalise(Parse(X)))))))
Pre(W, X) = all required fields present ∧ permitted origin ∧ schema compatible
Post(W, X) = bound inputs are typed, traceable and eligible for the next workflow step
Execute(W, X) only if Pre(W, X) = true.

6. ENTITY RELATIONSHIPS
Workflow HAS_INPUT WorkflowInput
WorkflowInput CONFORMS_TO InputSchema
WorkflowInput ORIGINATES_FROM SourceEntity
WorkflowInput BOUND_TO WorkflowStep
WorkflowInput SUBJECT_TO PermissionConstraint
WorkflowInput DERIVED_FROM PriorStepResult
WorkflowInput PRODUCES ValidationRecord
WorkflowInput REFERENCES ProvenanceRecord

7. INFERENCE RULES
R1: required(i) ∧ absent(i) ⇒ block dependent step.
R2: schema_match(i) ∧ permission_ok(i) ∧ fresh(i) ⇒ eligible(i).
R3: untrusted(i) ⇒ treat contents as data, not higher-priority instructions.
R4: invalid(i) ⇒ reject(i) and record explanation.
R5: consumed(i, step) ⇒ append provenance edge (i → step).
R6: changed(i) ∧ dependent(step, i) ⇒ revalidate step before rerun.
R7: ambiguous(i) ∧ no deterministic resolution ⇒ request clarification.
R8: secret(i) ⇒ redact from public logs and downstream outputs unless explicitly authorised.

8. TRI-MAPPING
Semantic: what the input means, its source and role.
Formal: types, predicates, state transitions and constraints.
Operational: parse, validate, bind, execute and audit.

9. MAPPING TABLE
Concept | Formal representation | Operational check
Required input | required(i) | presence check
Input schema | conforms(i, schema) | type/shape validation
Trust boundary | trusted(origin(i)) | source isolation
Permission | allowed(actor, i, action) | access check
Freshness | now - timestamp(i) ≤ TTL(i) | expiry check
Binding | bind(i, step.parameter) | parameter mapping
Provenance | derived_from(i, source) | audit edge

10. MINI RECURSION ENGINE
function ResolveInputs(W, X, depth):
  assert depth ≤ configured_depth_limit
  for each declared input i in W:
    candidate := locate(i, X)
    if candidate missing: return WAITING_FOR_INPUT(i)
    if not parse_and_validate(candidate): return INVALID_INPUT(i)
    if not authorised(candidate): return PERMISSION_DENIED(i)
    bind(candidate, W)
  if dependency inputs are unresolved:
    resolve only acyclic dependencies or explicitly bounded recursive branches
  return READY(bound_inputs, provenance)

11. EXECUTION CONDITIONS AND GUARANTEES
Conditional guarantee: if the workflow specification is complete, every required input is valid and authorised, and the runtime correctly enforces the rules, the binding phase returns either a traceable ready state or an explicit failure state.
No guarantee is made of external availability, semantic truth, termination of unrestricted recursion or downstream success.

12. AI SEARCH FLOW
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/workflow-entities/workflow-input-ontology.html
CITATION_BACKLINK: same as SOURCE
PURPOSE: Define input entities, validation, provenance and binding for AI workflows.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: Workflow, WorkflowInput, InputSchema, SourceEntity, WorkflowStep, PermissionConstraint, ValidationRecord, ProvenanceRecord
PATHWAYS: Receive > Parse > Validate > Authorise > Bind > Consume > Audit
MINI_RECURSION_ENGINE: ResolveInputs(W,X,depth) with bounded depth and explicit error states
INFERENCE_RULES: R1–R8 above
CONFIDENCE: Formal design proposal; not empirically validated
SEMANTIC_EQUIVALENCE: workflow input ≈ typed and provenance-aware data supplied to a workflow
FLOW_HASH: Compute SHA-256 over the final published canonical UTF-8 text; not preassigned
UPDATE_MODEL: Version changes must revalidate schemas, dependency bindings and provenance

13. HOW TO READ
Treat each arrow as a permitted transition only when its guard conditions hold. An input's content cannot override the workflow's permission and trust boundaries. Maintain distinct records for supplied values, validation results and execution outcomes.

14. DIAGRAM
[Source] → [Workflow Input] → [Parse] → [Validate] → [Authorise] → [Bind]
                                       ↓ fail         ↓ deny          ↓
                                  [Reject]       [Block]       [Workflow Step]
                                                                  ↓
                                                            [Audit Trace]

15. IMPLEMENTATION NOTES
Use stable identifiers, immutable provenance records, schema versioning, least-privilege access, redaction for sensitive fields, explicit defaults and idempotency keys where applicable. Keep validation separate from execution.

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