Skip to content

fix: warn on too-short sha= marker in Minimize PASS review comment step - #104

Merged
twistedmelonman merged 3 commits into
mainfrom
claude/fix-minimize-pass-short-sha-warning-92-session1
Aug 8, 2026
Merged

fix: warn on too-short sha= marker in Minimize PASS review comment step#104
twistedmelonman merged 3 commits into
mainfrom
claude/fix-minimize-pass-short-sha-warning-92-session1

Conversation

@twistedmelonman

Copy link
Copy Markdown
Member

Summary

  • The "Check review verdict" step already warns and logs when a [skip-claude-review sha=...] marker's sha= value is too short (<7 chars) to trust, then proceeds with review.
  • The "Minimize PASS review comment" step had no equivalent branch for the same too-short case — it silently fell through to the minimize logic with no log message, creating a behavioral asymmetry between the two steps that made them harder to reason about together when debugging.
  • Adds the missing elif branch: a too-short MARKER_SHA now logs the same ::warning:: as the verdict step, then falls through to the minimize logic (matching the verdict step's "reject and proceed" behavior) instead of silently doing nothing.

Test plan

  • Extracted the logic into a standalone harness and exercised all five marker states: no marker, unscoped marker, too-short scoped marker (now warns + falls through), scoped marker matching head (skips, unchanged), scoped marker not matching head (falls through silently, unchanged — this is a distinct case that correctly has no warning, matching the verdict step's precedent of only warning on the too-short/invalid case)
  • yamllint — clean (pre-existing line-length warnings unrelated to this diff)
  • Committed with SKIP=zizmor per the documented escape hatch (dotfiles pre-commit/config.yaml, PR CLAUDE_OUTCOME_RETRY comment slightly mischaracterizes the skipped-first-step case #155): zizmor lints the whole file and this file carries pre-existing findings (template-injection, known-vulnerable-actions, ref-version-mismatch x2, artipacked) unrelated to this diff. Confirmed identical finding count/type present on main before this change — this diff introduces zero new findings. Given this repo's wide fleet-wide blast radius and the ask to keep fixes narrowly scoped, those pre-existing findings are out of scope here and warrant their own dedicated triage.
  • Local pre-commit and pre-push review hooks (code-reviewer, adversarial-reviewer, full-diff + codebase review) all passed

Closes #92.

https://claude.ai/code/session_019yrvtEbtQxBxDmZ4Fu9GrU

Claude Code Bot and others added 3 commits August 7, 2026 17:58
The "Check review verdict" step already warns and logs when a
skip-claude-review sha= marker is too short to trust (<7 chars) and
proceeds with review. The "Minimize PASS review comment" step had no
equivalent branch for the same too-short case — it fell through
silently to the minimize logic with no log message at all, creating a
behavioral asymmetry between the two steps that made them harder to
reason about together when debugging.

Adds the missing elif branch: a too-short MARKER_SHA now logs the same
::warning:: as the verdict step, then falls through to the minimize
logic (matching the verdict step's "reject and proceed" behavior)
rather than silently doing nothing.

Verified with a standalone harness exercising all five marker states:
no marker, unscoped marker, too-short scoped marker (now warns and
falls through), scoped marker matching head (skips, unchanged), and
scoped marker not matching head (falls through silently, unchanged —
this is a distinct case from too-short and correctly has no warning,
matching the verdict step's precedent of only warning on the
too-short/invalid case).

Committed with SKIP=zizmor per the documented escape hatch (dotfiles
pre-commit/config.yaml, PR #155): zizmor lints the whole file and
surfaces pre-existing findings (template-injection, known-vulnerable-
actions, ref-version-mismatch, artipacked) unrelated to this diff.
Confirmed identical finding count/type on main before this change via
`zizmor .github/workflows/claude-blocking-review.yml` — this diff
introduces zero new findings. Given this repo's wide fleet-wide blast
radius and the explicit ask to keep fixes narrowly scoped/separable,
those pre-existing findings are out of scope here and warrant their
own dedicated triage rather than a drive-by fix or suppression bundled
into this PR.

Closes #92.
@twistedmelonman
twistedmelonman merged commit b6cee5e into main Aug 8, 2026
4 checks passed
@twistedmelonman
twistedmelonman deleted the claude/fix-minimize-pass-short-sha-warning-92-session1 branch August 8, 2026 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Minimize PASS review comment" silently ignores too-short sha= values without warning

1 participant