[object Object]

← back to Chief Of Operations

auto_claim off by default (TK-12235): front desk is the single claimer; touch state/AUTOCLAIM_ON to re-enable

07be05e9bd77c171784082090ad4b8356448daee · 2026-09-25 10:04:49 -0700 · Steve Abrams

Files touched

Diff

commit 07be05e9bd77c171784082090ad4b8356448daee
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Fri Sep 25 10:04:49 2026 -0700

    auto_claim off by default (TK-12235): front desk is the single claimer; touch state/AUTOCLAIM_ON to re-enable
---
 chief_ops.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/chief_ops.py b/chief_ops.py
index e109850..2d2efaa 100755
--- a/chief_ops.py
+++ b/chief_ops.py
@@ -146,6 +146,12 @@ def ticket_queue(write=False):
     return result
 
 def auto_claim():
+    # TK-12235: the ticket front desk (tk claim / POST /api/claim, lease-based) is now the ONE claimer.
+    # Chief-of-ops only labelled tickets without working them (held TK-11889 for 8 days), so auto-claim
+    # is off unless state/AUTOCLAIM_ON exists. Queue ranking below still runs for the board.
+    if not (STATE/'AUTOCLAIM_ON').exists():
+        ticket_queue(write=True)
+        return {'ok':True,'action':'disabled','reason':'auto-claim off (TK-12235); touch state/AUTOCLAIM_ON to re-enable'}
     q=ticket_queue(write=True)
     if not q.get('ok'): return {'ok':False,'error':q.get('error','queue unavailable')}
     claimed_path=STATE/'claimed.json'

← 1b78990 auto-data-snapshot: 2026-09-25T09:51:23 (2 data files) — sta  ·  back to Chief Of Operations  ·  remove auto_claim tk-take path entirely; queue --write print a27b564 →