Skip to content

Claude's permission layer refuses read-only commands and the stage's own publication in dispatched stages, and the completed stage ends BLOCKED (regression of #524/#464) #550

Done

Description

@datacas

Problem

Claude stages are refused, by Claude's own permission layer (claude_permission: --allowedTools / permissions.allow), read-only commands that the same agent runs directly in the same environment, plus the stage's own required publication. The refusals are neither asked nor offered as a grant, and the stage then ends BLOCKED even when its work is complete. That breaks capability parity (docs/host-permissions.md#agent-capability-parity, #450) and reopens what #524, #464 and #406 closed.

Evidence (cycle for #486, PR #549, 2026-11-29, Claude Code 2.1.332)

Implement stage (Claude Opus 5.5 fallback): the work was complete (3 commits, PR #549 opened, local suite passed), but the stage reported BLOCKED with stop_reason=stage_not_completed. It was refused:

  • git grep -n "def require_security" -- scripts
  • git grep -n -F "prefix=\"diff-" -- scripts
  • git grep -n -e tool-results -e "tasks/" -e "def test" -- tests/test_read_parity.py
  • git diff --output=$TMPDIR/wip.diff
  • gh pr view 549 --repo … --json headRefOid,statusCheckRollup,body --jq …
  • gh pr edit 549 --repo … --body-file $TMPDIR/report.md (the stage's own receipt publication)
  • the mcp__serena__find_symbol tool

Review stage (Claude Sonnet 5.5): it returned REVIEW_PASSED_AWAITING_CI, but it was refused ten read-only commands, for example:

  • grep -n "def \(stage\|require_security\|complete\|mark\)" scripts/plan_service.py
  • grep -rn "exactly one attributable" scripts/stage_evidence.py
  • git grep -n "def receipt_problem" -- scripts
  • gh pr view 549 --repo … --json comments --jq ".comments[-1].url"

Every refusal is attributed to claude_permission, not to the toolkit's hook_bash. The toolkit therefore built a Claude dispatch whose allow list does not cover commands that its own stage table and #524 classify as read-only, or as consentable.

Expected

Acceptance criteria

Related

#524, #464, #406, #516, #450, #486.

Activity

  1. added
    bug
    priority: urgent
    P0
    on Nov 29, 2026
  2. added a commit that references this issue on Nov 29, 2026
  3. datacas commented on Nov 29, 2026

    @datacas
    OwnerAuthor

    More evidence from the #503 implement stage (2026-11-29, Claude fallback, PR #554): the stage finished its work and pushed, but it ended BLOCKED with stage_not_completed only because the stage hook refused 25 commands, nearly all of them read-only:

    • git grep -n … with ordinary patterns, -A/-B/-o/-i -E ("complex read arguments need operation consent")
    • grep -n "import yaml" tests/…
    • git ls-files … | head -200; wc -l … ("shell syntax needs operation consent")
    • git --version ("git global options other than --no-pager are not allowed")
    • printenv CODE_CYCLE_STAGE_ROLE …
    • gh pr view 554 --json … --jq … and the stage's own receipt gh pr comment 554 --body-file $TMPDIR/pr-comment.md

    The agent can run every one of these directly in the same environment, so the refusal is a toolkit veto under #450, and turning the refusals into a BLOCKED stop discards a completed implementation.

  4. added a commit that references this issue on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0bugpriority: urgent

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions