ids.py python
12 lines 309 B
Raw
sha256:106ef9e12cca7f3be3ffb2a6bd3abfa76f032dce453c9e5010d732a8d86f2e14 Reconcile reviewed credential compatibility 32254cd939885d9… Human patch 8 days ago
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))
File History 2 commits
sha256:106ef9e12cca7f3be3ffb2a6bd3abfa76f032dce453c9e5010d732a8d86f2e14 Reconcile reviewed credential compatibility 32254cd939885d9… Human patch 8 days ago
sha256:c87cf2c2f03da507f66f93922cb339a2cbebb33ad6372a6039032fb09a20da12 Reconcile reviewed Overseer recovery d47291d5d9030de5ebef71… Human minor ⚠ 9 days ago