Skip to main content

AI Execution Time Ontology

Temporal AI Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 05 November 2026
Audio Overview
AI EXECUTION TIME ENTITY — FLOW ALGEBRA
Semantic Library | Temporal AI Entities
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/temporal-ai-entities/ai-execution-time-ontology.html
Prepared: 05 November 2026
Status: Companion formalisation; the embedded source specification was not exposed in retrieved page text.

01. PURPOSE
Represent, calculate, validate and reason over the time consumed by an AI execution operation, with explicit clock provenance, uncertainty, causal dependencies and lifecycle boundaries.

02. ENTITY DEFINITION
ExecutionTimeEntity E = (id, operation, start, end, clock, duration, status, evidence, context).
An execution is an identifiable operation; execution time is its measured or estimated temporal extent.
Do not conflate execution time with event time, processing time, wall-clock latency, CPU time, queue delay or deadline.

03. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: available timestamps, operation records and runtime observations.
R_t: ordering, duration, validation and inference rules.
B_t: clock, precision, permissions, scope and resource boundaries.
K_t: accepted temporal facts, provenance and calibrated uncertainty.
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t) and supported(x, K_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, observed_evidence)
If V_t is empty, return UNKNOWN or INVALID; never manufacture a duration.

04. TEMPORAL REPRESENTATION
start = t_s; end = t_e; duration = d.
For compatible monotonic timestamps, d = t_e - t_s, subject to t_e >= t_s.
For an incomplete execution, elapsed(t) = t_now - t_s, labelled provisional.
A wall-clock timestamp is used for reporting; a monotonic clock is preferred for elapsed measurement.
Time zone offsets affect representation of civil time, not physical elapsed duration.
Units must be explicit and convertible; report resolution and rounding.

05. CLOCK AND MEASUREMENT BOUNDARIES
clock = (clock_id, kind, resolution, synchronisation, drift_bound, provenance).
Do not subtract timestamps from unrelated clocks without a justified conversion and error bound.
Clock adjustments, suspension, leap seconds and distributed clock skew may affect interpretation.
If timing source is unknown, duration confidence must be reduced or left unquantified.

06. EXECUTION LIFECYCLE
States = {DEFINED, SCHEDULED, QUEUED, RUNNING, PAUSED, COMPLETED, FAILED, CANCELLED, UNKNOWN}.
DEFINED -> SCHEDULED -> QUEUED -> RUNNING.
RUNNING -> PAUSED -> RUNNING is allowed when instrumented.
RUNNING -> COMPLETED | FAILED | CANCELLED.
Terminal states require an end observation or an explicit unknown-end marker.
A retry is a distinct attempt with a distinct identifier, not a silent overwrite.

07. DURATION COMPONENTS
wall_duration = end_wall - start_wall when both are comparable.
active_duration = sum(duration of RUNNING intervals).
paused_duration = sum(duration of PAUSED intervals).
queue_duration = running_start - queued_start where observed.
Total elapsed may include queue, pause and external waiting; label the chosen scope.
CPU or accelerator usage duration is a separate metric and may exceed or fall below wall duration.

08. ENTITY RELATIONSHIPS
ExecutionTimeEntity --measures--> ExecutionEntity.
ExecutionTimeEntity --uses--> TimestampEntity.
ExecutionTimeEntity --belongs_to--> WorkflowStep | ToolCall | ModelInference | TrainingStep.
ExecutionTimeEntity --bounded_by--> TemporalContext | ExecutionBoundary.
ExecutionTimeEntity --derived_from--> MonitoringEvent | AuditRecord.
ExecutionTimeEntity --compared_with--> Deadline | ServiceLevelObjective | Baseline.
ExecutionTimeEntity --depends_on--> ClockSource | MeasurementMethod.

09. FORMAL FLOW
FLOW ExecutionTimeAssessment(input, rules, boundary, knowledge):
  1. Identify operation and measurement scope.
  2. Gather start, end, interval and clock observations.
  3. Validate provenance, clock compatibility and ordering.
  4. Convert units without losing stated precision.
  5. Calculate measured duration or mark as provisional/unknown.
  6. Attach uncertainty and evidence identifiers.
  7. Compare against constraints only when comparison is meaningful.
  8. Return validated temporal result and state transition.
END FLOW

10. INFERENCE RULES
R1: valid(start,end,clock) and end >= start => duration = end - start.
R2: missing(end) and RUNNING => elapsed is provisional, not final duration.
R3: end < start on a monotonic clock => INVALID_ORDER.
R4: incompatible(clock_start,clock_end) => NO_DIRECT_SUBTRACTION.
R5: interval_overlap detected => avoid double counting active intervals.
R6: completed and valid_duration => status = MEASURED.
R7: duration > deadline and comparable_scope => deadline_breach = TRUE.
R8: no supporting observations => status = UNKNOWN.
R9: retry_count > 0 => retain per-attempt durations and optionally aggregate explicitly.
R10: evidence revised => recompute dependent durations and retain audit history.

11. UNCERTAINTY MODEL
If timestamp error bounds are e_s and e_e, a conservative duration error bound is e_d <= e_s + e_e, assuming valid stated bounds.
Represent measured duration as d +/- e_d when justified.
For asynchronous distributed events, preserve partial order if total ordering cannot be established.
Never convert subjective confidence into a measured probability without calibration.

12. RECURSIVE VALIDATION
Validate raw observation -> validate timestamp -> validate interval -> validate execution -> validate workflow aggregate.
At each level, retain provenance, scope, uncertainty and violated constraints.
Terminate recursion when all dependencies are validated, a boundary is reached, or evidence is insufficient.
Cycle detection prevents recursive dependency loops.

13. TRI-MAPPING
Entity map: Execution -> Timestamp -> Duration -> Evidence.
Relationship map: starts_at, ends_at, measured_by, depends_on, precedes, overlaps.
Flow map: observe -> normalise -> validate -> calculate -> compare -> record.
Every inferred edge must identify its originating observation or rule.

14. EXAMPLE
Operation: inference_call_001.
Monotonic start: 125.250 s; monotonic end: 125.875 s.
Measured elapsed duration: 0.625 s = 625 ms.
Assumption: same monotonic clock; no uncertainty bound provided.
Result: MEASURED, with precision limited by the timestamps.

15. OUTPUT CONTRACT
OUTPUT = {entity_id, operation_id, measurement_scope, clock_id, start, end, duration_value, duration_unit, uncertainty, lifecycle_state, evidence_refs, validation_status, violations}.
Permitted validation_status = {MEASURED, PROVISIONAL, ESTIMATED, UNKNOWN, INVALID}.
ESTIMATED results must identify their estimation method and must not be represented as observed measurements.

16. CONDITIONAL EXECUTION GUARANTEE
If observations are authentic, clocks compatible, rules internally consistent and boundaries satisfied, the flow produces a traceable duration or an explicit non-measured status.
No guarantee is made that external execution completed successfully or that missing evidence can be reconstructed.
Fail closed on incompatible clocks, contradictory timestamps or missing critical evidence.

17. SOURCE AND LICENCE NOTE
This TXT is an original companion formalisation informed by the public ontology title and the user's established HST/Flow Algebra structure. It is not a verbatim extraction of the source page's embedded specification.
Citation: Mark Anthony Higgins — Sky Recursive AI; AI Execution Time Ontology; Kireth Research; source URL above.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ