ids.py file-level

at sha256:a · View file ↗ · Intel ↗

History
1 files
1 commits
0 hotspots
0 🧊 dead
0 💥 blast risk
sha256:8 docs: queue board-identity follow-ups so they survive the session Capt… · aaronrene · Sep 5, 2026
1 """Step and template id validation (§K9.3)."""
2
3 from __future__ import annotations
4
5 import re
6
7 STEP_ID_PATTERN = re.compile(r"^[a-z][a-z0-9_-]{0,63}$")
8
9
10 def is_valid_step_id(value: str) -> bool:
11 """Return True when ``value`` matches the frozen id regex."""
12 return bool(STEP_ID_PATTERN.match(value))