Skip to content

Use Case Diagram ​

πŸ“ System Modeling

EcoGuard β€” Use Case Analysis

A complete behavioral model of EcoGuard's actors and system interactions, structured from stakeholder goals down to technical system boundaries.


πŸ‘₯ Actors ​

EcoGuard serves four distinct actors, each with a different level of system interaction and concern.

βš™οΈ

DevOps Engineer

Primary User

Manages CI/CD pipelines day-to-day. Monitors emissions, applies AI-generated optimizations, and reviews anomaly alerts to improve pipeline efficiency.

  • Views live emission dashboards
  • Reviews & applies optimization MRs
  • Configures pipeline thresholds
  • Schedules eco-friendly deployments
πŸ§‘β€πŸ’Ό

Team Lead

Supervisor

Oversees the team's collective pipeline sustainability posture. Approves AI-generated merge requests and receives escalated anomaly alerts.

  • Receives threshold breach alerts
  • Approves AI remediation MRs
  • Reviews team-level emission trends
  • Sets project sustainability goals
🌿

Sustainability Officer

Compliance Owner

Responsible for regulatory compliance reporting. Generates AI-assisted audit reports for EU CSRD, ISO 14064, and GHG Protocol requirements.

  • Generates compliance reports
  • Exports PDF / DOCX / CSV reports
  • Tracks sustainability goal progress
  • Submits to regulatory bodies
πŸ€–

AI Agent System

Automated Actor

An autonomous subsystem that continuously monitors pipeline data, detects anomalies, forecasts emissions, and generates code-level optimization patches.

  • Forecasts future emissions (ML)
  • Detects pipeline anomalies
  • Generates remediation MRs
  • Auto-drafts compliance reports

πŸ“‹ Use Case Inventory ​

All use cases are listed below, grouped by functional domain, before being visualized in the diagrams.

πŸ“Š Monitoring & Visibility

UC-01View Emission Trend DashboardDevOps Engineer
UC-02Filter Emissions by Project / Branch / JobDevOps Engineer
UC-03View Carbon Intensity HeatmapDevOps Engineer
UC-04Track Sustainability Goal ProgressTeam Lead Β· Sustainability Officer
UC-05View AI Emission Forecast (7-day)DevOps Engineer Β· Team Lead

🚨 Alerting & Anomaly Detection

UC-06Configure Emission Threshold AlertsTeam Lead
UC-07Receive Threshold Breach NotificationTeam Lead
UC-08Receive AI Anomaly Detection AlertDevOps Engineer Β· Team Lead
UC-09View Root-Cause Job BreakdownDevOps Engineer

πŸ”§ Optimization & Remediation

UC-10View Manual Optimization RecommendationsDevOps Engineer
UC-11Receive AI-Generated Remediation MRDevOps Engineer
UC-12Review & Approve AI Remediation MRTeam Lead
UC-13Schedule Eco-Friendly Deployment WindowDevOps Engineer
UC-14Trigger Manual Re-optimization ScanDevOps Engineer

πŸ“„ Reporting & Compliance

UC-15Generate Monthly Compliance ReportSustainability Officer
UC-16Select Regulatory Format (EU/ISO/GHG)Sustainability Officer
UC-17Export Report (PDF / DOCX / CSV)Sustainability Officer
UC-18AI Auto-Draft Compliance NarrativeAI Agent System

βš™οΈ System & Data Operations

UC-19Collect Pipeline Data from GitLab APIAI Agent System
UC-20Fetch Carbon Intensity from Electricity MapsAI Agent System
UC-21Calculate COβ‚‚ Emissions per JobAI Agent System
UC-22Retrain Anomaly Detection ModelAI Agent System
UC-23Retrain Emission Forecast ModelAI Agent System
UC-24Validate AI Output via SandboxAI Agent System

πŸ—ΊοΈ Use Case Diagram β€” Overview ​

The master diagram below shows all actors and their relationships to the EcoGuard system boundary.


🎯 Detailed Use Case Views ​

1️⃣ DevOps Engineer β€” Daily Workflow ​

2️⃣ Team Lead β€” Oversight & Approval Workflow ​

3️⃣ Sustainability Officer β€” Compliance Workflow ​

4️⃣ AI Agent System β€” Autonomous Operations ​


πŸ”— Use Case Relationships Summary ​

RelationshipFromToType
UC-01 β†’ UC-02View DashboardFilter by CriteriaΒ«includeΒ»
UC-06 β†’ UC-07Configure AlertReceive AlertΒ«includeΒ»
UC-08 β†’ UC-12AI Anomaly AlertApprove Remediation MRΒ«extendΒ»
UC-10 β†’ UC-11Manual RecsAI Remediation MRΒ«extendΒ»
UC-13 β†’ UC-03Eco SchedulingCarbon Intensity HeatmapΒ«extendΒ»
UC-15 β†’ UC-16Generate ReportSelect FormatΒ«includeΒ»
UC-15 β†’ UC-18Generate ReportAI Auto-Draft NarrativeΒ«includeΒ»
UC-15 β†’ UC-17Generate ReportExport ReportΒ«extendΒ»
UC-19 β†’ UC-21Collect DataCalculate EmissionsΒ«includeΒ»
UC-20 β†’ UC-21Fetch Carbon IntensityCalculate EmissionsΒ«includeΒ»
UC-21 β†’ UC-05Calculate EmissionsAI ForecastΒ«includeΒ»
UC-21 β†’ UC-08Calculate EmissionsAnomaly AlertΒ«includeΒ»
UC-11 β†’ UC-24Generate MRSandbox ValidationΒ«includeΒ»
UC-18 β†’ UC-24Auto-Draft ReportSandbox ValidationΒ«includeΒ»

πŸ“Š Actor Coverage Matrix ​

Use Case
βš™οΈ DevOps
πŸ§‘β€πŸ’Ό Lead
🌿 Officer
πŸ€– AI Agent
UC-01 View Emission Trends
βœ…
β€”
β€”
β€”
UC-02 Filter Emissions
βœ…
β€”
β€”
β€”
UC-03 Carbon Intensity Heatmap
βœ…
β€”
β€”
β€”
UC-04 Track Goal Progress
β€”
βœ…
βœ…
β€”
UC-05 AI Emission Forecast
βœ…
βœ…
β€”
βœ…
UC-06 Configure Alerts
β€”
βœ…
β€”
β€”
UC-07 Threshold Alert
β€”
βœ…
β€”
β€”
UC-08 AI Anomaly Alert
βœ…
βœ…
β€”
βœ…
UC-09 Root-Cause Breakdown
βœ…
β€”
β€”
β€”
UC-10 Manual Recommendations
βœ…
β€”
β€”
β€”
UC-11 AI Remediation MR
βœ…
β€”
β€”
βœ…
UC-12 Approve Remediation MR
β€”
βœ…
β€”
β€”
UC-13 Eco Deployment Schedule
βœ…
β€”
β€”
β€”
UC-14 Re-optimization Scan
βœ…
β€”
β€”
β€”
UC-15 Generate Compliance Report
β€”
β€”
βœ…
β€”
UC-16 Select Regulatory Format
β€”
β€”
βœ…
β€”
UC-17 Export Report
β€”
β€”
βœ…
β€”
UC-18 AI Auto-Draft Narrative
β€”
β€”
β€”
βœ…
UC-19 Collect GitLab Data
β€”
β€”
β€”
βœ…
UC-20 Fetch Carbon Intensity
β€”
β€”
β€”
βœ…
UC-21 Calculate COβ‚‚ per Job
β€”
β€”
β€”
βœ…
UC-22 Retrain Anomaly Model
β€”
β€”
β€”
βœ…
UC-23 Retrain Forecast Model
β€”
β€”
β€”
βœ…
UC-24 Validate via Sandbox
β€”
β€”
β€”
βœ…

EcoGuard sustainability documentation