Skip to Content

Rule 37 Pack & rrc_rule37 Skill

This page documents the RRC oil & gas vertical — one of the five packs installed on AEGIS. The mechanisms (packs, skills, routers, HITL rules) are domain-neutral.

The rule_37 pack and the rrc_rule37 skill cover spacing-exception filing under Texas Administrative Code 16 TAC 3.37. A user reaches this capability in a general-mode conversation through the spacing router (pull_routersselect_skill) — there is no dedicated “Rule 37 agent” to pick anymore. The pack helps operators prepare Form W-1 applications when a proposed well location falls within the standard spacing distances defined by the Railroad Commission of Texas (RRC).

How it is reached

MechanismValue
Packrule_37 (packs/rule_37/manifest.yaml)
Skill keyrrc_rule37
Routerspacingrrc_rule37
Compliance domainrule_37
Entity typesWell

The effective LLM model is tenant-configured via Platform Settings (box default anthropic/claude-sonnet-5) — it is not pinned per skill.

Regulatory Context

Rule 37 (16 TAC 3.37) defines the minimum spacing distances for oil and gas wells in Texas. The statewide-floor defaults live in the pack’s assessment recipe and are shared with the skill’s code (thresholds resolve from rule_versions for SWR_37 over these floors):

Spacing RequirementStatewide floor
Lease-line minimum (lease_line_min_ft)467 feet
Between-well minimum (between_well_min_ft)1,200 feet

Any well proposed closer than these distances to existing wells or lease lines requires a spacing exception. The operator must demonstrate “good cause,” notify affected offset operators, and file a Form W-1 or W-1A with the RRC.

Field-specific rules can override statewide spacing. The agent queries RRC field rules for the target field before applying statewide defaults, and flags recent amendments.

Skills in the pack

The rule_37 pack declares eleven skills. Most are code-backed (orchestration.skills.rule37.*); rule37_readiness_check is a declarative readiness_check descriptor.

Skill keyItemPurpose
rule37_exception_typeException Type DeterminationAnalyze well position vs. field rules / statewide defaults; determine lease-line, between-well, or both; compute exact distances
rule37_field_rulesField Rule LookupQuery RRC field rules; identify applicable spacing rules; flag amendments
rule37_offset_identificationOffset Well IdentificationQuery the knowledge graph + RRC public data for wells within the notification radius; compute distances; identify operators via P-5
rule37_service_listAffected Party Service ListCompile offset operators, lessees, and unleased mineral owners; flag stale addresses
rule37_waiver_trackingWaiver Collection StatusTrack waivers, flag 6-month expirations, generate waiver-request letters
rule37_form_w1Form W-1 PopulationPre-fill W-1 fields from entity data (operator P-5, lease, location, distances, exception type)
rule37_surveyor_packageCertified PlatGenerate a surveyor data package (coordinates, boundaries, offsets, field-rule spacing)
rule37_good_causeGood-Cause StatementDraft the waste/confiscation-prevention narrative with reserves, drainage, and precedent
rule37_technical_exhibitsSupporting Technical ExhibitsCompile decline curves, spacing analysis, and geological data
rule37_fee_calculationFee CalculationCompute the filing fee from TVD per the SWR 3.78 schedule
rule37_readiness_checkFiling Readiness CheckValidate that all required fields, service list, plat, fee, and mandatory items are complete

Checklist & assessment

The pack’s checklist template defines the eleven items above (indices 0–10) and the min_required_items for submission (0, 1, 2, 3, 5, 7, 10). The pack’s assessment recipe (five-verb DSL) runs two threshold_compare checks — distance-to-lease-line vs. lease_line_min_ft and distance-to-nearest-well vs. between_well_min_ft — and marks an entity action_needed when either is under the resolved threshold. This is the same authoritative source used by the skills, which fixed the 467/1200 drift.

HITL Checkpoints

HITL travels with the rrc_rule37 skill as seeded require_hitl rules, not with any agent identity:

Rule keyCheckpointTrigger
skill:rrc_rule37:pre_filingpre_filingFiling assembly, before RRC submission
skill:rrc_rule37:good_cause_reviewgood_cause_reviewThe good-cause narrative

The approval_node is fail-closed — it pauses (awaiting_hitl) rather than proceed unreviewed when a mandatory checkpoint cannot be recorded.

Skill-scoped tools

Once rrc_rule37 is loaded, its code-block tools become available (they are not core tools): spacing_calculation, offset_well_analysis, rule37_filing_assembly, and good_cause_narrative. Filing assembly is the HITL-gated mutation.

FormFull NamePurpose
W-1Application for Permit to Drill, Recomplete, or Re-EnterPrimary drilling permit application filed with the RRC
W-1AAmended W-1Filed when modifications to an existing permit are needed

Example Interaction

In a general conversation, a user provides basic well information:

“I need to file a Rule 37 exception for Mitchell Ranch 1H. The proposed location is 350 feet from the south lease line on the Mitchell Ranch lease in the Spraberry (Trend Area) field.”

The agent pulls the spacing router, loads rrc_rule37, and then:

  1. Recognizes 350 ft is below the 1,200 ft between-well floor (and any stricter Spraberry field rule)
  2. Calls spacing_calculation to quantify the variance
  3. Calls offset_well_analysis to identify affected parties on adjacent leases
  4. Drafts a good-cause narrative citing the distances, field rules, and technical justification
  5. Assembles the Form W-1 package
  6. Pauses at the pre_filing and good_cause_review HITL checkpoints
Last updated on