{"id":50454192,"url":"https://github.com/mizcausevic-dev/latency-budget-enforcer","last_synced_at":"2026-06-01T01:05:44.673Z","repository":{"id":357016935,"uuid":"1234993130","full_name":"mizcausevic-dev/latency-budget-enforcer","owner":"mizcausevic-dev","description":"Go policy engine for latency budget enforcement, dependency drag review, tail-latency breaches, and operator-facing service-path response planning","archived":false,"fork":false,"pushed_at":"2026-05-10T22:55:14.000Z","size":592,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-11T00:38:00.606Z","etag":null,"topics":["backend","go","golang","governance","latency","net-http","observability","performance-engineering","platform-engineering","policy-engine","sre"],"latest_commit_sha":null,"homepage":"https://kineticgain.com/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mizcausevic-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-10T22:41:06.000Z","updated_at":"2026-05-10T22:54:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mizcausevic-dev/latency-budget-enforcer","commit_stats":null,"previous_names":["mizcausevic-dev/latency-budget-enforcer"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/mizcausevic-dev/latency-budget-enforcer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Flatency-budget-enforcer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Flatency-budget-enforcer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Flatency-budget-enforcer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Flatency-budget-enforcer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mizcausevic-dev","download_url":"https://codeload.github.com/mizcausevic-dev/latency-budget-enforcer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Flatency-budget-enforcer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33755379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backend","go","golang","governance","latency","net-http","observability","performance-engineering","platform-engineering","policy-engine","sre"],"created_at":"2026-06-01T01:05:44.603Z","updated_at":"2026-06-01T01:05:44.653Z","avatar_url":"https://github.com/mizcausevic-dev.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Latency Budget Enforcer\n\n\u003e **Go platform engineering portfolio project** for latency budget enforcement, service-path breach scoring, and operator-facing response planning.\n\n**Portfolio takeaway:** *\"Latency budgets only matter when they are translated into ranked breaches, ownership lanes, and concrete next actions.\"*\n\n---\n\n## Project Overview\n\n| Attribute | Detail |\n|---|---|\n| **Language** | Go |\n| **Runtime Shape** | HTTP API + CLI |\n| **Domain** | Latency budget enforcement and service-path response |\n| **Enforcement Families** | sustained breach · p95 drift · p99 breach · dependency drag · error-pressure coupling |\n| **Output Modes** | JSON API · terminal summary |\n| **Primary Users** | platform engineering · SRE · performance teams |\n\n---\n\n## Executive Summary\n\nLatency Budget Enforcer models the kind of service teams use when latency policy needs to become operationally actionable instead of living as a passive SLO document. The service ingests latency budgets and measured service-path observations, compares them against p95 and p99 expectations, scores the severity of the breaches, and returns evidence-backed findings with next actions.\n\nThe repo is intentionally built as a Go backend rather than another dashboard. It demonstrates how latency governance can be treated as an operating control: measure the path, rank the overages, isolate dependency drag, and route the action before user-facing systems, AI pipelines, or revenue surfaces start absorbing avoidable performance loss.\n\n---\n\n## Enforcement Flow\n\n```text\nlatency budgets + service-path observations\n                   |\n                   v\ntyped evaluation request\n                   |\n                   +--\u003e sustained breach checks\n                   +--\u003e p95 drift checks\n                   +--\u003e p99 breach checks\n                   +--\u003e dependency drag checks\n                   +--\u003e error-pressure coupling checks\n                   |\n                   v\nseverity-scored latency report\n```\n\n---\n\n## Enforcement Families\n\n### Sustained Breach\n\n- repeated path latency above the agreed budget\n- service posture that is no longer momentary noise\n\n### P95 Drift\n\n- normal-path latency inflation\n- experience degradation under typical traffic\n\n### P99 Breach\n\n- tail-latency spikes strong enough to shape incidents\n- extreme-path behavior that breaks user trust\n\n### Dependency Drag\n\n- downstream service contribution to the overage\n- infrastructure or integration layers stretching the path\n\n### Error-Pressure Coupling\n\n- latency and elevated error rate happening together\n- breach posture with user-visible failure risk\n\n---\n\n## Usage\n\n### Run the API\n\n```bash\ngo run ./cmd/server\n```\n\n### Open the Docs Route\n\n```text\nhttp://127.0.0.1:8080/\n```\n\n### Evaluate the Sample Budget\n\n```bash\ngo run ./cmd/server -mode cli\n```\n\n### Run the Tests\n\n```bash\ngo test ./...\n```\n\n---\n\n## Sample Output\n\n```text\nLatency Budget Enforcer\n=======================\nSystem: growth-systems-control-room\nObservations analyzed: 8\nOverall score: 92\n\n[CRITICAL] sustained_breach (score 92)\nSummary: The primary service path is breaching its latency budget often enough to require coordinated action.\n```\n\n---\n\n## Screenshots\n\n### Hero Capture\n\n![Hero](screenshots/01-hero.png)\n\n### API Summary\n\n![API summary](screenshots/02-api-summary.png)\n\n### Industry Application\n\n![Industry application](screenshots/03-industry-application.png)\n\n### Validation Proof\n\n![Validation proof](screenshots/04-proof.png)\n\n---\n\n## Industry Applications\n\n### Revenue Systems\n\n- catch path-level latency inflation before checkout, pricing, or booking flows lose trust\n- isolate dependency drag before revenue teams feel the effect downstream\n\n### AI Operations\n\n- enforce latency posture on model-serving and orchestration paths\n- stop tail-latency spikes from quietly degrading live AI workflows\n\n### Platform Governance\n\n- turn SLO language into concrete service-owner action\n- rank the breaches that most deserve rollback, routing, or cache posture changes\n\n---\n\n## What This Demonstrates\n\n- Go added meaningfully through a real policy-style backend\n- latency governance modeled as a ranked enforcement problem\n- API and CLI outputs shaped for actual operators\n- stdlib-first implementation for infrastructure credibility\n- evidence-backed reporting instead of vague performance summaries\n\n---\n\n## Future Enhancements\n\n- compare multiple observation windows for trend-aware enforcement\n- ingest streaming telemetry in addition to static sample sets\n- emit webhook or incident payloads for orchestration systems\n- support path-by-region or tenant-specific budget slices\n- add burn-rate style budget exhaustion scoring\n\n---\n\n## Tech Stack\n\n[![Go](https://img.shields.io/badge/Go-1.26-0f172a?style=for-the-badge\u0026logo=go\u0026logoColor=7fe7ff\u0026labelColor=0f172a)](https://go.dev/)\n[![HTTP](https://img.shields.io/badge/API-net%2Fhttp-162033?style=for-the-badge\u0026logo=go\u0026logoColor=a6efff\u0026labelColor=162033)](https://pkg.go.dev/net/http)\n[![Testing](https://img.shields.io/badge/Testing-go%20test-2b1b14?style=for-the-badge\u0026logo=go\u0026logoColor=ffd1b3\u0026labelColor=2b1b14)](https://pkg.go.dev/cmd/go)\n[![CI](https://img.shields.io/badge/CI-GitHub%20Actions-233449?style=for-the-badge\u0026logo=githubactions\u0026logoColor=9DE1FF\u0026labelColor=233449)](https://github.com/features/actions)\n\n### Portfolio Links\n\n- [LinkedIn](https://www.linkedin.com/in/mirzacausevic)\n- [Kinetic Gain](https://kineticgain.com/)\n- [Skills Page](https://mizcausevic.com/skills/)\n- [GitHub](https://github.com/mizcausevic-dev)\n\n---\n\n*Part of [mizcausevic-dev's GitHub portfolio](https://github.com/mizcausevic-dev), with a focus on backend systems, platform engineering, operational governance, and performance-minded infrastructure tooling.*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmizcausevic-dev%2Flatency-budget-enforcer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmizcausevic-dev%2Flatency-budget-enforcer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmizcausevic-dev%2Flatency-budget-enforcer/lists"}