Skip to content

Phase 3, Task 5: SensorML Types #18

Closed

Description

@Sam-Bolling

Phase 3, Task 5: SensorML 3.0 Type Definitions

Status: COMPLETE ✅

Resolved by commit 3eac9c6.

Deliverables

File Lines Description
src/ogc-api/csapi/formats/sensorml/types.ts 852 Full SensorML 3.0 type hierarchy
src/ogc-api/csapi/formats/sensorml/types.spec.ts 462 23 type compilation & discriminator tests

Coverage

  • 50 exported types covering the complete SensorML 3.0 process model
  • Inheritance chain: DescribedObject → AbstractProcess → AbstractPhysicalProcess → concrete
  • 4 concrete process types with string-literal type discriminators:
    • SimpleProcess, AggregateProcess, PhysicalComponent, PhysicalSystem
  • SensorMLProcess discriminated union for type-safe narrowing via switch(proc.type)
  • 20+ supporting types: Term, Document, Event, ResponsibleParty, CapabilityList, CharacteristicList, Settings, Position, ComponentList, ConnectionList, etc.
  • SWE Common integration via import type { ... } from '../swecommon/types.js'

Verification

  • tsc --noEmit: clean (zero errors)
  • 23/23 SensorML tests pass
  • 27/27 SWE Common tests pass (no regressions)
  • All 400 CSAPI tests unaffected"

Activity

  1. 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