Skip to content
serv-8Public

Repository files navigation

Serv8:Ops - Reporting, Availability and Capacity Service

Summary

Serv8:Ops implements SRM, SACM, and CAPM, plus the SLA Monitor half of SLM. These processes share one shape: they observe the rest of the vertical and produce time-derived facts - breach probability, availability against target, capacity forecast, and published service reports.

Motivation

Reporting, availability, and capacity are usually three disconnected tools with three different ideas of what a service is. Here they share the catalogue, the ticket stream, and the change stream, so an availability dip can be attributed to a deployment, and a report can state the automation rate from the same data the SLA monitor used. The one-minute SLA scan is also the mechanism that makes "pre-breach escalation" possible at all.

Architecture & High-Level Design

graph TD
    CAT["Serv8:Catalog (contracts)"] -->|"cached snapshot"| OPS["Serv8:Ops"]
    TKT["Serv8:Ticket (open tickets)"] -->|"M2M read"| OPS
    MON["Monitoring signals"] -->|"M2M ingest"| OPS
    BUS["Sentin8:Bus"] -->|"incident, release, ci events"| OPS
    OPS --> R["breach risk (1m scan)"]
    OPS --> A["availability vs target"]
    OPS --> C["capacity forecast"]
    OPS --> REP["reports + narrative"]
    R -->|"event"| TKT
    C -->|"event"| OWN["capacity owner"]
    REP -->|"event"| BUS
Loading

Key Traits and Data Structures

  • SlaBreachRisk: one row per open ticket with a probability, reason, and computation timestamp.
  • AvailabilityTarget: target percentage, RTO, RPO, tier per catalogue item.
  • DrTest: a restore or failover test; passed requires evidence.
  • CapacityMetric + CapacityForecast: utilisation series and the projection to exhaustion.
  • Report: code-computed metrics plus a model-written narrative.

Rationale, Trade-offs, and Alternatives

Why the scan recomputes from scratch each tick. Incremental counters drift and cannot recover from a missed tick. A full recomputation is cheap at the ticket volume an environment carries and self-heals.

Why metrics are computed by code and only prose by the model. A report whose numbers come from a model is not a report, it is a claim. Code computes the metrics, the model writes the narrative over the metrics.

Why breach risk is an event, not a write. Ops does not own the ticket. It publishes a risk; the ticket service decides whether and how to escalate, behind its own gate. This keeps one writer per field and keeps the escalation auditable.

Internal Implementation & Invariants

  • A DR test cannot pass without evidence.
  • Report metrics are code-computed.
  • One breach-risk row per ticket, cleared when risk falls.
  • Ops writes only its own schema.
  • A signal's source comes from the authenticated client.
  • One report per period per environment.

Development

make build
make enroll

Unresolved Questions / Future Designs

  • Replacing the heuristic breach model with a learned one.
  • Whether availability is computed here or ingested pre-aggregated.
  • Cross-environment reporting for a multi-environment organisation.