fix(canon): allow repository-derived workplan prefixes
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s
Python Tests / pytest (push) Successful in 21s

This commit is contained in:
codex 2026-08-23 13:12:02 +02:00
parent ff334f1a40
commit 6261df8e75
3 changed files with 24 additions and 5 deletions

View file

@ -52,6 +52,13 @@ class TestClassify:
assert classify("CUST-WP-0060", kinds) == "workplan"
assert classify("CUST-WP-0060-T01", kinds) == "task"
def test_repository_derived_multi_segment_workplan_prefix(self, kinds):
assert classify("RAPP-OPENBAO-WP-0002", kinds) == "workplan"
assert classify("RAPP-OPENBAO-WP-0002-T01", kinds) == "task"
assert classify("RAIL-K8S-WP-0001", kinds) == "workplan"
assert classify("RAPP--OPENBAO-WP-0002", kinds) is None
assert classify("1RAPP-OPENBAO-WP-0002", kinds) is None
def test_new_kind_ids(self, kinds):
assert classify("BINKY-IN-0001", kinds) == "intake"
assert classify("BINKY-DEC-2026-001", kinds) == "decision"