fix(kvb-org-operator): a mail address or link in angle brackets is no slot to fill in
🧪 Test / 🧪 Lock + lint (push) Waiting to run
🧪 Test / 🧪 Lock + lint (push) Waiting to run
operator.py add and run refused every commit row whose message or trailer carries 'Co-Authored-By: ... <noreply@anthropic.com>' (or a <https://...> link) as 'holds a <...> slot to fill in'. SLOT now skips angle brackets holding @, : or /; <branch> style slots still refuse. New test, which fails on the old pattern with that trailer. 🎯 Fix: 95 % 💥 Break: 2 % 💸 Tokens: – ⏱️ Velocity: – 🛡️ Security: 100 % 🏆 Score: 93 🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 % Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
888ebb40af
commit
724042aa5b
2 files changed
+10
-1
No files matched your search
@@ -193,7 +193,7 @@ META = re.compile(r"[\s|&;()<>$`\\\"'*?\[\]{}~!#]")
|
||||
NAME = re.compile(r"^[A-Za-z0-9][A-Za-z0-9._+-]*$")
|
||||
COMMIT = re.compile(r"\bcommit\b")
|
||||
ASSIGNMENT = re.compile(r"^[A-Za-z_][A-Za-z0-9_]*=")
|
||||
SLOT = re.compile(r"<[A-Za-z][^<>]*>")
|
||||
SLOT = re.compile(r"<[A-Za-z][^<>@:/]*>")
|
||||
TEE = re.compile(r"\|&?\s*(?:\S*/)?tee\b")
|
||||
QUEUE_HOLD = re.compile(r"\bqueue\.py\s+hold\b")
|
||||
SENT = re.compile(r"^sent (call|post) to (.+)$")
|
||||
|
||||
@@ -687,6 +687,15 @@ class TestOperator(unittest.TestCase):
|
||||
self.assertIn(" M one", result.stdout)
|
||||
self.assertNotIn("(nothing to compare)", result.stdout)
|
||||
|
||||
def test_a_slot_to_fill_in_refuses_a_row_and_a_mail_address_or_link_in_angle_brackets_does_not(self):
|
||||
for command in ("git push origin <branch>", "make -C <register task> test"):
|
||||
self.assertEqual(operator_script.unrunnable(command, "/"), "holds a <...> slot to fill in", command)
|
||||
for command in (
|
||||
"git commit --no-verify -m 'fix: x' --trailer 'Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>'",
|
||||
"git commit --no-verify -m 'docs: see <https://s.veen.world/skills>'",
|
||||
):
|
||||
self.assertIsNone(operator_script.unrunnable(command, "/"), command)
|
||||
|
||||
def test_run_preview_stays_off_when_git_cannot_name_the_scope_of_a_filter(self):
|
||||
marker = self.base / "ran"
|
||||
git = self.bin / "git"
|
||||
|
||||
Reference in new issue
Block a user