Route Event Governance
Purpose
Route Event Governance establishes and manages a linear referencing system (LRS) for route networks, enables attribute management using route/measure location, and provides tools for asset inventory, lifecycle tracking, and spatiotemporal querying of linear assets (poles, segments, intersections).
Typical Questions This Tool Helps Answer
- Where do route events contain gaps, overlaps, or invalid measure direction that break LRS consistency?
- Which event records violate attribute domain or policy rules?
- What portion of event issues can be auto-corrected versus escalated for manual governance review?
Background
Network planning workflows use graph-theoretic representations of roads, routes, or linear assets, where node-edge topology and impedance attribution directly control results. Missing restrictions, incorrect turn logic, or stale demand assumptions can dominate outcome quality.
These tools are best interpreted as constrained optimization and diagnostics frameworks. Decisions should be based on trade-offs across service, resilience, and cost objectives rather than any single metric.
Route-event governance formalizes linear referencing events with temporal and spatial consistency controls. Strong governance depends on reproducible event segmentation and audit-grade lineage.
Methodological Considerations
- Topology validation should precede optimization or scenario simulation.
- Explicitly represent operational constraints (time windows, restrictions, capacities, closures) before comparing objective outcomes.
- Test outcomes under stress scenarios so selected plans remain stable under realistic disruptions.
Practical Interpretation Pitfalls
Single-metric improvements can hide degraded resilience or equity; compare candidate plans across multiple KPIs and scenario conditions.
Inputs
| Parameter | Type | Required | Description |
|---|---|---|---|
| events | Vector | Yes | Input event layer containing route and measure fields. |
| route_id_field | String | Yes | Route identifier field name. |
| from_measure_field | String | Yes | Interval start measure field name. |
| to_measure_field | String | Yes | Interval end measure field name. |
Parameters
- gap_tolerance (optional): gap size below this value is ignored; default
0.0. - overlap_tolerance (optional): overlap size below this value is ignored; default
0.0. - auto_fix (optional): if
true, fix descending intervals and trim overlaps when possible. - domain_rules_json (optional): per-field domain policy file.
- governed_events (required): output path for governed events.
- issues_csv (required): output path for issue log.
- corrected_events (optional): output path for corrected records.
- governance_report (required): output path for governance summary JSON.
- remediation_queue_csv (optional): output path for prioritized remediation queue.
- html_report (optional): output path for HTML summary.
Domain Rules JSON (Optional)
Per-field rules can include:
allowed_valuesregexminmax
Violations are reported as domain_validation issues.
Outputs
Output artifact keys below are runtime outputs, not input parameters.
| Artifact | Runtime Output Key | Type | Description |
|---|---|---|---|
| Governed events layer | governed_events | Vector | QA-passed events with governance status fields. |
| Issue log | issues_csv | CSV | Per-event issue log (rule, severity, measure span, description). |
| Governance contract | governance_report | JSON | Summary metrics (total_events, pass/fail counts, distributions). |
| Summary alias | summary | JSON | Alias key to the same JSON file as governance_report. |
| Remediation queue | remediation_queue_csv | CSV (optional) | Prioritized corrective action list. |
| Corrected events layer | corrected_events | Vector (optional) | Corrected records and correction metadata when fixes are applied. |
| Optional report | html_report | HTML (optional) | Optional summary report for business audiences. |
governed_events added fields
GOVERNANCE_STATUS:PASSEDorCORRECTEDCORRECTIONS:none,descending_fix,overlap_trim, ordescending_fix+overlap_trim
issues_csv schema
event_id,route_id,rule_violated,severity,description,measure_start,measure_end
remediation_queue_csv schema
priority,event_id,route_id,rule_violated,severity,recommended_action
governance_report keys
total_eventspassed_eventsfailed_eventspass_rate_percentrules_violatedseverity_distributioncorrectable_countdomain_rules_applied
Example
import whitebox_workflows as wbw
env = wbw.WbEnvironment()
env.route_event_governance_for_linear_assets(
events="route_events.gpkg",
route_id_field="route_id",
from_measure_field="from_m",
to_measure_field="to_m",
auto_fix=True,
domain_rules_json="domain_rules.json",
governed_events="outputs/governed_events.gpkg",
issues_csv="outputs/issues.csv",
corrected_events="outputs/corrected_events.gpkg",
governance_report="outputs/governance_report.json",
remediation_queue_csv="outputs/remediation_queue.csv",
html_report="outputs/governance_report.html"
)
References
- OGC (Open Geospatial Consortium) Linear Reference Systems Standard
Parameter Interaction Notes
Output strictness depends on tolerance settings and auto-fix policy.
Note: This workflow validates linear-referencing event intervals and does not build a routing graph, so one-way routing parameters (for example one_way_field with FT/TF/B values) are not applicable.
- Tight tolerances catch more defects but may increase noise from minor measure jitter.
- Looser tolerances reduce issue counts but can hide meaningful defects.
- Auto-fix improves throughput for fixable issues, but review is still recommended before publication.
QA and Acceptance Criteria
Use a staged acceptance approach for Route Event Governance:
- Validate required fields and measure data quality.
- Validate domain-rules JSON format when used.
- Confirm issue counts align with known data conditions.
- Confirm correction outputs match governance expectations.
Recommended acceptance checks:
passed_events + failed_eventsequalstotal_events.issues_csvincludes all expected issue categories.governed_eventscontains governance status columns.corrected_eventsis present only when correction records exist.
Advanced Operational Guidance
For production deployment of Route Event Governance:
- Treat domain-rules JSON as a governed policy artifact.
- Use remediation queue output for data stewardship backlogs.
- Archive run artifacts (
issues_csv,governance_report) for audit trails.
Implementation Patterns
Common implementation patterns with Route Event Governance:
- Compliance scan (
auto_fix=false) for strict diagnostics. - Corrective scan (
auto_fix=true) for fast recovery of fixable defects. - Release-ready scan with frozen rule policy and archived outputs.
Related Tools
Use Route Event Governance together with upstream conditioning and downstream validation tools in the same bundle to ensure end-to-end consistency and stronger decision confidence.
When To Use This Workflow
Route Event Governance is most valuable when teams need measurable service-level improvements (coverage, response time, cost-to-serve) with governance-ready transparency.
What this workflow helps you achieve:
- Translates network complexity into decision-ready options.
- Supports defensible operational planning with explicit constraints.
- Creates repeatable workflows for quarterly and annual optimization cycles.
Results Delivery Checklist
Before sharing results with stakeholders:
- Validate network topology and impedance attributes for all served areas.
- Confirm objective function matches business KPI priorities.
- Document constraints (capacity, time windows, exclusions) in deliverable notes.
- Provide baseline-vs-optimized comparison metrics.
- Include at least one scenario stress test (demand spike, outage, or route closure).
Common Questions
Q: Why are some events missing from governed output?
A: Error-level failing events are excluded if not fixable (or when auto-fix is off).
Q: Why is corrected output missing?
A: Corrected output is written only when auto_fix=true, a path is supplied, and at least one correction occurs.
Q: How should we interpret CORRECTED status?
A: The event passed after automatic correction; review is still recommended before publication.