Skip to content

Remove feature-level validators entirely and update extraction (F49) #52

Closed

Description

@Sam-Bolling

Issue #52 — Remove Feature-Level Validators from Scope\n\n### Problem\nPhase 3.2 smoke test finding F49: extractCSAPIFeature() used validateCSAPIFeature() as a hard gate — any validation error blocked extraction entirely, making 100% of OSH SamplingFeatures inaccessible.\n\n### Resolution (commit 73f9308)\n\nCode changes:\n- Removed validateCSAPIFeature from geojson.ts (~120 lines)\n- Removed 13 per-type validators + ValidationError type from helpers.ts (~600 lines)\n- Updated extractCSAPIFeature to use recognition-only gate (Postel's Law)\n- Removed validator tests; added tolerant extraction tests\n- Removed validateCSAPIFeature from barrel exports (formats/index.ts, src/index.ts)\n- 373 CSAPI tests passing, tsc --noEmit clean\n\nDocumentation corrections:\n- Design notes updated with STAC upstream audit: STAC handler has ~20 inline required-field checks (notable exception); mature handlers (WMS, WFS, WMTS, TMS) have zero; no handler has a formal validation framework\n- ROADMAP and implementation guide corrected — replaced inaccurate "zero validation" claims with honest framing\n\nNet impact: 9 files changed, 121 insertions, 1,484 deletions.">

Activity

  1. changed the title [-]Decouple validation from extraction in extractCSAPIFeature (F49)[/-] [+]Remove feature-level validators entirely and update extraction (F49)[/+] on Feb 15, 2026
  2. Sam-Bolling commented on Feb 15, 2026

    @Sam-Bolling
    Author

    📋 Required Reading: Phase 3 Lessons Learned

    Before starting work on this issue, review the Phase 3 Lessons Learned document:

    👉 docs/governance/phase-3-lessons-learned.md

    Instructions:

    1. Read the lessons learned document first — before reading the issue body
    2. Read phase-2-lessons-learned.md second — Lessons 8 (multi-server) and 10 (read-only smoke tests) remain mandatory
    3. Review AI_OPERATIONAL_CONSTRAINTS.md as always

    Key lessons applicable to all Phase 3 work:

    • Lesson 1: Upstream audit check — before building new layers
    • Lesson 2: Postel's Law — never gate extraction on validation
    • Lesson 10: Type naming rules when defining types from external specs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions