Skip to main content

Threshold Breach Ontology

Monitoring Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 04 November 2026
Audio Overview
SEMANTIC LIBRARY — AI CORE / ENTITY GRAPH / MONITORING ENTITIES
THRESHOLD BREACH ONTOLOGY — FLOW ALGEBRA
Version: 1.0 | Date: 04 November 2026 | Language: en-GB
Authors: Mark Anthony Higgins — Sky, Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/monitoring-entities/threshold-breach-ontology.html
Status: Original formalisation aligned with the source ontology title and monitoring domain; not a verbatim extraction of embedded source code.

1. PURPOSE
Represent, detect, classify, record and resolve a threshold breach when an observed monitoring value violates an explicitly defined limit or range. Separate observations, breach evidence, alerts and remedial actions.

2. ENTITY DEFINITIONS
ThresholdBreach = (id, metric, observation, threshold, comparator, time, severity, state, evidence, provenance)
Metric = (metric_id, name, unit, scope)
Observation = (value, observed_at, quality, source)
Threshold = (threshold_id, lower, upper, comparator, effective_from, effective_to, hysteresis, duration)
Comparator in {GT, GE, LT, LE, OUTSIDE, INSIDE}
BreachState in {CANDIDATE, CONFIRMED, ACTIVE, ACKNOWLEDGED, RECOVERING, RESOLVED, INVALIDATED}

3. FORMAL STATE MODEL
S_t = (I_t, R, B, K)
I_t = observations, metric context, active breach records
R = comparison rules, persistence rules, deduplication rules, recovery rules
B = units, validity windows, data-quality limits, permissions, scope
K = threshold definitions, historical observations, evidence, dependencies
E_t = expand(I_t, R)
V_t = {x in E_t | valid(x, B, K)}
x*_t = argmax_{x in V_t} P(x | I_t, R, B, K)
I_(t+1) = update(I_t, x*_t, evidence_t)
NOTE: argmax is used only where multiple valid interpretations compete; deterministic threshold evaluation does not require probabilistic ranking.

4. BREACH PREDICATES
For a valid observation v and threshold T:
GT: breach(v,T) iff v > T.upper
GE: breach(v,T) iff v >= T.upper
LT: breach(v,T) iff v < T.lower
LE: breach(v,T) iff v <= T.lower
OUTSIDE: breach(v,T) iff v < T.lower OR v > T.upper
INSIDE: breach(v,T) iff T.lower <= v <= T.upper
All comparisons require compatible units and a threshold effective at observed_at.
Missing, stale or invalid measurements yield UNKNOWN, not FALSE.

5. IMPLEMENTS — DETECTION FLOW
F0: RECEIVE observation and metric identity
F1: RESOLVE applicable threshold by scope and effective time
F2: VALIDATE observation quality, unit compatibility and timestamp
F3: NORMALISE units without altering measurement meaning
F4: EVALUATE comparator to obtain TRUE, FALSE or UNKNOWN
F5: APPLY persistence window and minimum sample requirements
F6: IF confirmed TRUE, create or update a breach entity
F7: CLASSIFY severity using explicitly configured severity bands
F8: ATTACH evidence, provenance and first/last-seen timestamps
F9: EMIT monitoring event; optionally generate warning or alert under policy
F10: TRACK acknowledgement, recovery and closure
F11: RECORD immutable audit transitions and latest state

6. MINI RECURSION ENGINE
At each new observation o_t:
  validate(o_t)
  b_t = evaluate(o_t, threshold_at(t))
  if b_t == UNKNOWN: record uncertainty; do not silently resolve
  if b_t == TRUE: increment consecutive-breach evidence
  if b_t == FALSE: increment consecutive-recovery evidence
  transition state only if persistence and hysteresis guards are met
  propagate any permitted downstream monitoring event
  continue until stream ends or monitoring is disabled
Termination per observation is guaranteed when rule sets and input collections are finite; continuous monitoring itself has no fixed terminal step.

7. INFERENCE RULES
R1: ValidObservation(o) AND ApplicableThreshold(T,o) AND breach(o.value,T) -> CandidateBreach(o,T)
R2: CandidateBreach(o,T) AND PersistenceSatisfied(o,T) -> ConfirmedBreach(o,T)
R3: ConfirmedBreach(b) AND NOT ExistingOpenBreach(b.key) -> CreateBreach(b)
R4: ConfirmedBreach(b) AND ExistingOpenBreach(b.key) -> UpdateExistingBreach(b)
R5: ActiveBreach(b) AND AlertPolicyAllows(b) -> AlertCandidate(b)
R6: ActiveBreach(b) AND RecoveryConditionSatisfied(b) -> Recovering(b)
R7: Recovering(b) AND RecoveryPersistenceSatisfied(b) -> Resolved(b)
R8: InvalidEvidence(b) -> Invalidated(b), preserving audit history
R9: UnknownMeasurement(o) -> DataQualityEvent(o), not ThresholdBreach(o)

8. TRI-MAPPING
Natural language: 'The monitored metric has crossed its configured limit.'
Symbolic: Valid(o) AND breach(value(o), T) AND persist(o,T) => ConfirmedBreach
Graph: (Observation)-[MEASURED_FOR]->(Metric)-[HAS_THRESHOLD]->(Threshold)
       (ThresholdBreach)-[SUPPORTED_BY]->(Observation)
       (ThresholdBreach)-[VIOLATES]->(Threshold)
       (ThresholdBreach)-[MAY_TRIGGER]->(Alert)

9. HOW TO READ
An observation is not a breach until its comparator, threshold scope, quality and persistence conditions are satisfied. A breach is not necessarily an alert: alert generation is a separate policy-controlled decision. UNKNOWN means insufficient evidence, not compliance.

10. DIAGRAM
[Observation] -> [Validate] -> [Find Effective Threshold]
                                   |
                              [Compare]
                              /   |   \
                          FALSE UNKNOWN TRUE
                            |      |      |
                       [Normal] [Quality] [Persistence]
                                              |
                                        [Breach Entity]
                                              |
                                   [Event / Warning / Alert]
                                              |
                                     [Recovery / Closure]

11. RELATIONSHIP MAPPING TABLE
Entity                Relationship           Target
Observation           MEASURES               Metric
Threshold             APPLIES_TO             Metric
ThresholdBreach       VIOLATES               Threshold
ThresholdBreach       SUPPORTED_BY           Observation
ThresholdBreach       HAS_STATE              BreachState
ThresholdBreach       EMITS                  MonitoringEvent
Alert                 REFERENCES             ThresholdBreach
Warning               MAY_REFERENCE          ThresholdBreach
RecoveryEvidence      RESOLVES               ThresholdBreach

12. EXECUTION GUARANTEE — CONDITIONAL
For finite, well-typed observations and deterministic comparator definitions, the comparison step terminates and produces TRUE, FALSE or UNKNOWN. Correctness depends on valid threshold configuration, clock consistency, quality checks and persistence semantics. No guarantee of detection is made for missing telemetry, delayed inputs, misconfigured limits or unobserved events.

13. AI SEARCH FLOW
FLOW_ID: semantic-library.ai-core.monitoring.threshold-breach.v1
ENTITY_TYPE: ThresholdBreach
PURPOSE: Identify and explain monitored limit violations with traceable evidence.
INPUTS: metric, observation, applicable threshold, time, policy, history
OUTPUTS: comparison result, breach state, severity, evidence, linked events
PATHWAYS: Observe > Validate > Compare > Persist > Classify > Record > Recover
SEMANTIC_EQUIVALENCE: threshold violation; limit exceedance; boundary breach; out-of-range measurement (context-dependent)
CONFIDENCE: Deterministic when validated inputs and rules are complete; otherwise UNKNOWN or qualified.
UPDATE_MODEL: Re-evaluate with new observations, threshold versions and policy changes; retain historical provenance.
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/monitoring-entities/threshold-breach-ontology.html
FLOW_HASH: Not assigned; calculate from canonical published TXT bytes if required.

14. WORKED EXAMPLE (ILLUSTRATIVE)
Metric: response_latency_ms; observed value: 260 ms
Threshold: GT 200 ms; persistence: 3 consecutive valid samples
Samples: 240, 255, 260 ms => 3 TRUE comparisons => CONFIRMED breach
A single reading of 260 ms alone would remain CANDIDATE under this rule.

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