Skip to main content

AI Response 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 RESPONSE 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-response-time-ontology.html
Prepared: 2026-11-05
Status: Companion formalisation; the source page's embedded specifications are not visible in the retrieved HTML.

01. PURPOSE
Represent, measure, compare, and validate the elapsed time between a defined request boundary and a defined response boundary in an AI system. Preserve event provenance, clock semantics, uncertainty, and traceability.

02. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = request/response observations and timing evidence.
R_t = temporal and semantic relationships.
B_t = valid clock, identity, security, and measurement boundaries.
K_t = known definitions, constraints, thresholds, and calibration evidence.
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t, 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, verified_evidence)
NOTE: The argmax is a selection policy, not proof of measurement correctness.

03. ENTITY DEFINITION
ResponseTimeEntity = (id, request_id, response_id, clock_id, start_event, end_event, duration, unit, status, evidence, uncertainty, provenance)
Required: id, request_id, start_event, clock_id, status.
For a completed measurement: end_event and duration are also required.
Status in {pending, measured, censored, invalid, disputed}.

04. RELATED ENTITIES
AIRequest --initiates--> ResponseTimeMeasurement
AIResponse --terminates--> ResponseTimeMeasurement
TimestampEntity --timestamps--> StartEvent / EndEvent
ExecutionTimeEntity --may_overlap--> ResponseTimeMeasurement
InferenceTimeEntity --may_contribute_to--> ResponseTimeMeasurement
CommunicationChannel --may_add--> NetworkDelay
MonitoringMetric --aggregates--> ResponseTimeMeasurement
SLAConstraint --bounds--> ResponseTimeMeasurement
EvidenceRecord --supports--> ResponseTimeMeasurement

05. BOUNDARY SEMANTICS
Start event must be explicit: e.g. request accepted at ingress.
End event must be explicit: e.g. first response byte or completed response.
Time-to-first-byte and time-to-completion are distinct measurements.
Do not compare measurements with different boundaries without normalisation.
A response can be streamed; record first-byte and completion separately.

06. FORMAL TIME EQUATIONS
For a valid monotonic clock:
T_response = t_end - t_start
T_response >= 0
T_first_byte = t_first_byte - t_start
T_complete = t_complete - t_start
T_complete >= T_first_byte >= 0
If multiple components are measured on compatible boundaries:
T_total = T_queue + T_compute + T_transfer + T_other
Only apply this sum when intervals are non-overlapping and exhaustive.
Wall-clock timestamps alone are insufficient for precise duration if clock adjustments occur.

07. VALIDITY FILTER
Valid(m) iff:
  same_request(m.start_event, m.end_event)
  AND authorised_observation(m)
  AND clock_comparable(m.start_event, m.end_event)
  AND ordered(m.start_event, m.end_event)
  AND boundary_definition_known(m)
  AND evidence_integrity_ok(m)
Otherwise status = invalid or disputed; never silently substitute a duration.

08. RESPONSE-TIME LIFECYCLE
unobserved -> pending -> measured -> validated -> reported
pending -> censored (timeout, cancellation, lost observation)
measured -> disputed (conflicting evidence)
measured -> invalid (clock or identity mismatch)
validated -> revised (new verified evidence, with audit history)

09. EXECUTION PATHWAY
P1 Receive request and assign immutable correlation ID.
P2 Select response-time boundary definition and clock source.
P3 Record start event and provenance.
P4 Observe response milestones and record end event.
P5 Verify clock and request correlation.
P6 Compute duration with units and uncertainty.
P7 Compare against declared constraints if applicable.
P8 Emit measurement with evidence and status.
P9 Aggregate only comparable validated measurements.
P10 Persist revisions without overwriting the original record.

10. RECURSIVE FLOW
F_0 = initial timing observation
F_{n+1} = validate(refine(F_n, new_evidence), B, K)
Stop when evidence is sufficient, a defined iteration limit is reached, or no further observations exist.
Recursive refinement cannot turn missing observations into measured facts.

11. INFERENCE RULES
R1 IF no end event AND deadline exceeded THEN classify as censored/timeout.
R2 IF end < start on a shared monotonic clock THEN invalidate measurement.
R3 IF clocks differ without a trustworthy synchronisation model THEN duration is unknown.
R4 IF first-byte event exists AND completion event missing THEN report first-byte latency only.
R5 IF response-time exceeds declared threshold THEN flag threshold breach; do not infer cause.
R6 IF measurement boundaries differ THEN disallow direct aggregation.
R7 IF a revised measurement supersedes another THEN preserve both versions and reason.
R8 IF request IDs mismatch THEN reject event pairing.

12. UNCERTAINTY
Let epsilon_start and epsilon_end be bounded timestamp errors.
Then duration uncertainty is at most epsilon_start + epsilon_end under worst-case bounds.
Report T_response +/- epsilon where justified by the clock model.
Do not claim statistical confidence intervals without a stated sampling model.
Network latency, queuing, and processing time may be confounded.

13. AGGREGATION
For validated comparable durations D = {d_1, ..., d_n}:
mean(D) = sum(D)/n
median(D) = middle ordered value (or average of two middle values)
p95(D) = explicitly defined empirical 95th-percentile estimator
Report sample size, measurement window, exclusions, and estimator.
Censored observations must not be silently treated as successful response times.

14. TRI-MAPPING
Semantic: request -> observed response -> measured latency -> interpretation.
Mathematical: (t_start, t_end, clock, boundary) -> delta_t -> constraints.
Operational: instrumentation -> correlation -> validation -> reporting.
All three maps must refer to the same measurement definition.

15. EXAMPLE
request_id = req-001
clock = monotonic-clock-A
start = 12.000 seconds
first_byte = 12.180 seconds
complete = 12.420 seconds
T_first_byte = 0.180 seconds
T_complete = 0.420 seconds
status = measured, subject to clock and event validation.
These values are illustrative, not observations from the source page.

16. CONDITIONAL EXECUTION GUARANTEE
Given trustworthy event observations, a common monotonic clock, a fixed boundary definition, and a deterministic subtraction procedure, the flow produces a reproducible duration.
No guarantee is made for absent, corrupted, mismatched, or unsynchronised observations.
Threshold compliance does not by itself establish user satisfaction or system safety.

17. OUTPUT CONTRACT
OUTPUT = {entity_id, request_id, boundary_type, start_time, end_time,
          duration_value, duration_unit, clock_source, status,
          uncertainty, evidence_refs, validation_result, version}
If invalid or censored, duration_value may be null with an explicit reason.

18. CITATION AND LICENCE
Source ontology: Mark Anthony Higgins — Sky Recursive AI.
Companion Flow Algebra: Mark Anthony Higgins — Sky Recursive AI.
Reference the source URL when reusing this formalisation.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ