Skip to main content
Operating a distributed Logic-Injection-on-Origin mesh requires multi-dimensional observability. Because compute executes in-situ within remote enclaves, SRE teams must track both network transport health and enclave-side security boundaries (PII rejections, AST traps, and post-quantum cryptographic handshakes). The LIOP observability architecture operates across two tiers:
  • Tier A (In-Situ Native Telemetry): The SDK tracks CPU fuel, token consumption (TokenTelemetryEngine), and wire bytes eliminated with zero external dependencies.
  • Tier B (Production Fleet Monitoring): Prometheus scrapes native /metrics endpoints across all enclaves and visualizes fleet state through a 26-panel Grafana master dashboard.

1. Prometheus Metrics Taxonomy

All metrics use the canonical liop_ prefix:

Computational & Protocol Metrics

Security & Cryptographic Metrics

Infrastructure & Circuit Breaker Metrics


2. Critical Alert Catalog & Remediation Procedures

Below are production alerting rules defined in examples/observability/alerting_rules.yml:

Alert 1: LiopRepeatedEnclaveEgressRejection

Remediation Procedure

  1. Identify the Caller: Check AuditInterceptor logs on the target enclave for requesterPeerId or OAuth clientId.
  2. Revoke Access: Invalidate the client’s token in Nexus OIDC:
  3. Inspect Injected Code: Retrieve the payload hash from the audit log and review the offending logic in the quarantine directory.

Alert 2: LiopCircuitBreakerTripped

Remediation Procedure

  1. Verify Target Host: Check if the container or process is responsive:
  2. Check gRPC Port Health: Send a synthetic probe from the BLG perimeter:
  3. Inspect Worker Pool Logs: If the host is up, check if the Piscina worker pool crashed due to heap exhaustion (maxHeapMb). Restart the service if threads wedged.

Alert 3: LiopHighExecutionLatency

Remediation Procedure

  1. Analyze AST Fuel: Verify if injected payloads contain complex unbounded nested loops.
  2. Scale Piscina Worker Threads: In high-throughput clusters, increase workerPool.maxThreads or raise CPU limits in the container deployment manifest.

3. Grafana Master Dashboard Architecture

The LIOP Master Dashboard (examples/observability/dashboards/master-dashboard.json) organizes operational health into structured sections:

Canonical PromQL Invariant

In all Prometheus PromQL expressions, set operators like or operate strictly between instant vectors. Always write: