src/tdoc_crawler/database/AGENTS.md
0 → 100644
+92
−0
+25
−25
src/tdoc_crawler/utils/version_types.py
0 → 100644
+65
−0
Loading
AgendaItem and SpecVersion subclass packaging.version.Version and implement __get_pydantic_core_schema__ so Oxyde/Pydantic models can use them directly — stored as strings in SQLite, full Version semantics in Python. Eliminates the parse_*_version → Version → str() roundtrip that lost type safety. The type aliases AgendaItemNumber and SpecificationVersionNumber now resolve to the Version subclasses. Also removes redundant field_validator calls in specs/models.py that were doing what the SpecVersion type now handles at construction time. Adds database/AGENTS.md documenting model choice guidance: Oxyde Model for DB, dataclass for in-memory, Pydantic only when validators/serializers are needed.