R/validate_stream_network.R
validate_stream_network.RdRead-only local validation: recomputes geometry findings and hydroloom-backed connectivity, compares persisted node/connection tables, checks classified roles, membership, lineage references and operation order. Earlier validation results are not trusted or overwritten. This first implementation supports SOURCE_NETWORK_RETAINED observations only.
One governed Configuration row.
Configuration-Stream membership table.
One constructor-compatible Observation row.
Current candidate segment sf.
Source lineage table; required at ACCEPTANCE.
Applied operation table; required at ACCEPTANCE (may be empty).
WORKING or ACCEPTANCE.
Current stream_network_node POINT sf.
Current stream_network_connection table.
Current stream_network_review sf. Required at ACCEPTANCE; every candidate must have at least one accepted inspection and no pending or rejected required inspection. INSPECT acceptance does not authorize repairs.
Optional table of unique reach_id and stream_id, required to verify any nonmissing candidate Reach classifications.
Validator's actor/process identifier (not an inferred reviewer).
Validation time, converted to UTC.
Named validation run and issue tibbles, with result PASS or REVIEW_REQUIRED. A new run UUID is generated; inputs and old runs are unchanged.
ACCEPTANCE additionally requires explicit accepted inspection decisions and their actor/time/notes, and observation review notes qualifying incomplete coverage/provenance or disconnected/multiple-outlet topology. PASS means these local checks passed, not that the observation was accepted. No review status is changed. Terrain provenance, scientific suitability of supplied roles, undeclared boundaries, source completeness, and enterprise identity still require human/loader checks. Malformed tables/UUIDs raise input errors; assessed inconsistencies return blocking findings.