Skip to content

work-items: seam 'reclaim' verb blocked by auto-mode classifier, blocking Step 0 session-start reclaim #1381

Closed

Description

@kyle-sexton

This was generated by AI during work-loop execution.

Observed

During a /work-items:work autonomous dispatch (item #687), Step 0's session-start reclaim
(work-item-tracker.sh reclaim <id>) was denied by the Claude Code auto-mode classifier —
both as a bulk loop over the 41 items currently assigned to @me and as a single isolated
call on one id. Error: "Permission for this action was denied by the Claude Code auto mode
classifier. Reason: Blocked by classifier." The sibling claim verb on the same tracker
script, run moments later, was NOT blocked.

Impact

Step 0 (idempotent stale-claim cleanup) cannot run in this environment, so stale leases from
crashed/abandoned sessions accumulate under @me across work-loop cycles instead of being
cleared at session start. Does not block individual item dispatch (claim still works), but
degrades the lane's self-healing over time.

Suggested follow-up

Investigate why the auto-mode classifier distinguishes reclaim from claim for the same
script/binary, and whether a permission-rule addition (in the spirit of /fewer-permission-prompts)
or a classifier allowlist entry is the right fix. Non-blocking; op-side.

Category

chore / tooling

Filed per work-loop's dogfood-filing contract as a non-blocking finding surfaced while
executing #687 (closed as stale/already-done, unrelated to this gap).

Activity

  1. added
    agent-ready
    on Jul 25, 2026
  2. added theissue type on Jul 25, 2026
  3. kyle-sexton commented on Jul 25, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI during triage.

    Triage

    Investigation result: the reclaim vs claim denial split is confirmed to be operator/harness-side, not fixable by any in-repo code change. Per docs/conventions/permission-rule-hygiene/README.md (citing the official permission-modes doc): an agent cannot self-grant .claude/ permission writes, and a plugin's shipped settings.json only honors the agent/subagentStatusLine keys — the operative allow-rule must be added by the operator to user-global settings. The classifier's differing per-call judgment on the two verbs is exactly the failure mode that convention already exists to route around.

    There is, however, a genuinely bounded in-repo fix: reference/permission-preflight.md and its preflight.sh check already implement detect-and-report for exactly this class of gap (missing/denied allow rules for git/gh working verbs), but the probed-verb set never covers the tracker seam's own claim/reclaim invocations. Extending it closes the gap this issue observed — Step 0 would surface the missing allow rule as a loop-start GAP with the standard remediation, instead of failing silently mid-cycle. Routing delegable on that scoped extension.

    Classification:

    • Type: Task
    • Priority: priority: low (unchanged — matches the reporter's own non-blocking assessment)
    • Work-class: work-class: scoped (bounded extension to an existing, tested detection script; blast radius confined to preflight.sh + its reference doc)
    • Role: agent-ready (delegable — no open decision; the fix is detect-and-report only, mirroring an established pattern)

    Agent Brief

    Type: Task
    Summary: Extend the work-lane permission preflight to detect (not fix) the tracker seam's reclaim verb being denied by the auto-mode classifier at Step 0.

    Current behavior: The preflight check's probed-verb set covers only the git/gh working verbs (git add, git commit, git push, gh pr create, gh issue comment). It has no visibility into the tracker seam script's own claim/reclaim coordination verbs. When the classifier denies reclaim (observed both as a bulk loop over assigned items and as a single-id call) while claim on the same script passes moments later, the loop discovers this only when Step 0 actually fails mid-cycle, not up front like every other permission gap this check already catches.

    Desired behavior: At loop start, the preflight check also probes whether the tracker seam script's claim/reclaim invocations are covered by a narrow bare-command allow rule (the pattern docs/conventions/permission-rule-hygiene/README.md already documents), and reports a GAP with the standard operator remediation (add a narrow bare-command Bash() allow rule for the tracker script to user-global settings) when they are not. This does not attempt to fix the classifier's per-call judgment — that's confirmed operator/harness-side and out of this repo's reach — it only extends the existing detect-and-report pattern to a verb it currently misses.

    Key interfaces:

    • The probed-verb set the preflight check iterates over (currently a fixed list of git/gh working verbs)
    • The GAP/remediation message shape already used for a missing-allow-rule finding (verb name + the narrow-bare-command remediation, per the permission-rule-hygiene convention)
    • reference/permission-preflight.md's documented probe set and its "why a preflight, not a fixer" rationale — extend it, don't restructure it

    Acceptance criteria:

    • Running the preflight check in an environment lacking a narrow allow rule for the tracker script's claim/reclaim invocations reports a GAP naming the missing verb(s) and the exact operator remediation, alongside the pre-existing git/gh probes
    • The existing git/gh probes and their GAP/NOTE behavior are unchanged
    • The check remains report-only: never edits settings, always exits 0
    • reference/permission-preflight.md documents the new probed verb(s) and their remediation
    • Existing preflight tests still pass, and new tests cover the added probe(s)

    Out of scope:

    • Changing the auto-mode classifier's per-call judgment itself — Claude Code harness behavior, not alterable from this repo
    • Actually granting the permission — self-granting .claude/ settings from an agent is blocked by design; the fix stays detect-and-report, matching every other preflight GAP
    • Any change to the claim/reclaim seam verbs' own behavior in the tracker contract
  4. self-assigned this
    on Jul 25, 2026
  5. kyle-sexton commented on Jul 25, 2026

    @kyle-sexton
    MemberAuthor
    No description provided.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-ready

Type

Fields

No fields configured for Task.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions