Skip to content

The agent that grows with you

fix(kanban): cover authorising/authorises in the respawn auth pattern and trim the table

teknium187f892b8db78
diff --git a/hermes_cli/kanban_db_dispatch.py b/hermes_cli/kanban_db_dispatch.py
index 2fccacdff7b..bfc8b2b3aa3 100644
--- a/hermes_cli/kanban_db_dispatch.py
+++ b/hermes_cli/kanban_db_dispatch.py
@@ -63,7 +63,7 @@ TERMINAL_WORKER_REAP_GRACE_SECONDS = 120
_RESPAWN_BLOCKER_RE = re.compile(
r"\b(quota|rate[\s_\-]?limit|429|403|"
r"auth|authenticat(?:e|es|ed|ing|ion)|authoriz(?:e|es|ed|ing|ation)|"
- r"authoris(?:e|ed|ation)|authz|"
+ r"authoris(?:e|es|ed|ing|ation)|authz|"
r"unauthorized|forbidden|billing|subscription|"
r"access[\s_]denied|permission[\s_]denied|"
r"invalid[\s_]api[\s_]key)\b",
diff --git a/tests/hermes_cli/test_kanban_db.py b/tests/hermes_cli/test_kanban_db.py
index 4854e3d82e2..c21c0930f9b 100644
--- a/tests/hermes_cli/test_kanban_db.py
+++ b/tests/hermes_cli/test_kanban_db.py
@@ -479,25 +479,13 @@ def test_respawn_guard_defers_rate_limited_within_cooldown(
# (#117009): must NOT trip the guard.
("Workstream C items C-3 and C-4: author t (90.59s)", None),
("docs authored by the previous cycle", None),
- ("still authoring the migration plan", None),
("relying on an authoritative source", None),
- ("two authors reviewed the diff", None),
- # Genuine auth failures must still trip the guard.
+ # Genuine auth failures must still trip the guard, one row per
+ # curated stem family (bare, -ate, -ize, -ise).
("401 auth failed", "blocker_auth"),
- ("token authenticated but scope missing", "blocker_auth"),
("authentication error from provider", "blocker_auth"),
- ("authorize the app first", "blocker_auth"),
- ("authorized client rejected", "blocker_auth"),
- ("authorization header missing", "blocker_auth"),
- ("authz denied", "blocker_auth"),
- ("unauthorized: bad credentials", "blocker_auth"),
- ("still authenticating with the provider", "blocker_auth"),
- ("provider authenticates every call", "blocker_auth"),
("still authorizing the request", "blocker_auth"),
- ("provider authorizes every call", "blocker_auth"),
- ("authorise the app first", "blocker_auth"),
- ("authorised client rejected", "blocker_auth"),
- ("authorisation header missing", "blocker_auth"),
+ ("still authorising the request", "blocker_auth"),
],
)
def test_respawn_guard_blocker_auth_curated_not_open_stem(