Skip to Content
Developer DocsAgentsCompliance Agent

Compliance Agent

The Compliance Monitor Agent provides continuous surveillance of regulatory compliance across an operator’s oil and gas portfolio in Texas. Unlike the filing agents (Rule 37 and Rule 32), this agent runs proactively to detect compliance risks before they become violations.

Configuration

PropertyValue
Agent IDcompliance-monitor-agent
Agent Typecompliance_monitor
Primary Modelgpt-4o
Fallback Modelgpt-4o-mini
YAML Fileagents/compliance-agent.yaml

Purpose

The Compliance Monitor continuously tracks regulatory compliance across an operator’s entire portfolio. Its responsibilities include:

  1. Deadline tracking — monitor all permit, filing, and authorization deadlines
  2. Production compliance — check production against allowables and gas-to-oil ratio (GOR) thresholds
  3. Rule change detection — detect RRC rule changes that affect active operations
  4. Risk scoring — assign risk scores to each well and lease in the portfolio
  5. Dashboard summaries — generate compliance status summaries on demand

Skills

The Compliance Monitor shares skills with the monitoring tier rather than having dedicated filing skills:

Skill IDNamePurpose
flaring-volume-calcFlaring Volume CalculationAssess flaring volumes across the portfolio to identify wells approaching authorization limits or in violation
emissions-estimateEmissions EstimateCalculate CO2e emissions for portfolio-wide environmental compliance assessment

The Compliance Monitor uses fewer skills than the filing agents because its role is detection and alerting, not filing preparation. When it identifies an issue requiring action, it escalates to the appropriate filing agent or the compliance team.

Alert Levels

The agent uses a three-tier alert system:

LevelCriteriaAction
INFOGeneral compliance status updates, routine assessment resultsLogged to dashboard, no notification
WARNINGDeadlines within 30 days, minor anomalies, production approaching limitsDashboard notification, optional email
CRITICALDeadlines within 7 days, active violations, exceedances, unauthorized activityDashboard alert, email notification, HITL checkpoint triggered

HITL Checkpoints

CheckpointRequiredReviewer StrategyDescription
compliance_alertNorole_basedNotify compliance team of critical findings

The HITL checkpoint for the Compliance Monitor is not required — the agent can complete its assessment and post results without blocking on approval. However, when a CRITICAL alert is generated, the checkpoint creates a notification for the compliance team to review.

Even though the HITL checkpoint is optional, the agent never takes autonomous action on compliance issues. It detects, assesses, and alerts — but remediation actions (filing exceptions, updating permits) are always initiated by humans or delegated to the filing agents with their own mandatory HITL checkpoints.

Budget

LimitPer ExecutionPer Day
Tokens50,000500,000
Cost (USD)$3.00$30.00

The Compliance Monitor has a smaller per-execution budget than the filing agents because individual assessments are lighter weight. The daily budget allows for approximately 10 full portfolio scans per day.

System Prompt

The agent’s system prompt covers:

  • Continuous monitoring identity and responsibilities
  • Deadline tracking across permits, filings, and authorizations
  • Production compliance monitoring against allowables and GOR thresholds
  • Rule change detection for active operations
  • Risk scoring methodology for wells and leases
  • Dashboard summary generation capability
  • Three-tier alert level definitions and criteria

Metadata

metadata: domain: oil_and_gas jurisdiction: texas monitoring_type: continuous

Monitoring Workflow

The Compliance Monitor follows this assessment pattern:

Portfolio scan → Entity assessment → Status classification → Alert generation

Assessment Flow

  1. Portfolio scan — query the knowledge graph for all active entities (wells, leases, facilities)
  2. Deadline check — compare upcoming deadlines against current date, classify by urgency
  3. Production review — check recent production data against allowables and thresholds
  4. Authorization status — verify that all active operations have current authorizations
  5. Rule applicability — check for any rule changes since the last assessment
  6. Risk scoring — compute a composite risk score for each entity
  7. Status update — update the compliance_status table with current assessment
  8. Alert generation — create alerts for WARNING and CRITICAL findings

Compliance Status Values

The agent classifies each entity-domain pair into one of five statuses, which populate the compliance matrix:

StatusColorMeaning
compliantGreenNo action needed, all requirements met
action_neededAmberUpcoming deadlines or minor issues requiring attention
overdueRedMissed deadlines, active violations, or exceedances
not_applicableGreyThis compliance domain does not apply to this entity
in_reviewBlueFiling is in progress or under HITL review

Integration with Other Agents

The Compliance Monitor interacts with the other agents in the following ways:

ScenarioHandoff
Spacing violation detectedEscalates to Rule 37 agent for exception filing preparation
Flaring approaching limitsEscalates to Rule 32 agent for R-32 renewal
Flaring data anomalyDelegates to Flaring Monitor for detailed analysis
Critical deadline approachingCreates HITL alert for the compliance team
Last updated on