Skip to content

CLAUDE.md: document if:-gate-widening downstream-audit lesson from #245/#246 - #247

Merged
d-morrison merged 1 commit into
mainfrom
docs/claude-yml-if-gate-audit-lesson
Jul 9, 2026
Merged

d-morrison merged 1 commit into
mainfrom
docs/claude-yml-if-gate-audit-lesson

Conversation

@dem-extra1

Copy link
Copy Markdown
Collaborator

Docs-only follow-up to #245/#246 (UMS: capturing what that PR's review lifecycle taught).

Widening claude.yml's job if: to admit workflow_dispatch/schedule left two post-steps still ungated for those events (Acknowledge @claude mention, Post Claude's response if no code was committed) — caught only in review, not by my own initial self-check. Adds a bullet to the "Layout" section, alongside the existing "adding a workflow_call input needs a 3-site doc sync" bullet, recording the general pattern: widening a job's trusted-author if: gate needs a downstream-step audit for event-shaped context (github.event.issue.number, etc.), not just the gate itself.

Test plan

  • Docs-only change (CLAUDE.md), no functional code touched.
  • Confirmed no non-ASCII em dashes were introduced anywhere check-non-standard-chars actually scans (.qmd/.R files) — CLAUDE.md is a .md file and already uses em dashes throughout, consistent with the rest of the document.

Generated by Claude Code

…#245/#246

Widening claude.yml's job if: to admit workflow_dispatch/schedule (#245)
left two post-steps still ungated for those events, caught only in review
(#246) rather than the author's own self-check. Record the general pattern
so future if:-gate widening on this file (or claude-code-review.yml) checks
downstream steps' event-shaped context up front.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_019bKbFr7bpgQUnf6iFBm2mC
@codecov

codecov Bot commented Jul 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Claude finished review — View run


Code Review: PR #247 — d-morrison/gha

Scope: Docs-only change adding one paragraph to CLAUDE.md's "About this repo" section, capturing a lesson from PRs #245/#246 (widening claude.yml's job if: gate to admit workflow_dispatch/schedule left two post-steps ungated for those events).

Verification performed

  1. PR state check — Open, not draft, no prior comments (confirmed via gh pr view --comments returning empty and gh api .../issues/247/comments).
  2. Fact-checked every concrete claim in the added prose against the actual codebase and PR history (per CLAUDE.md's own "fact-check prose" and "challenge ambiguous phrasing" review rules):
    • Confirmed .github/workflows/claude.yml's Acknowledge @claude mention step (line 294) and Post Claude's response if no code was committed step (line 763) now both carry the (github.event.issue.number || github.event.pull_request.number) guard described as the fix.
    • Confirmed via gh pr view 246 --comments that the exact bug (unguarded steps attempting gh issue comment "" on unattended runs, one failing visibly, contradicting the PR's own prompt text) was found in review, not by the author's initial self-check — matching the parenthetical's claim precisely.
    • Confirmed the dedup step (line 261-266) only runs for issue_comment/pull_request_review_comment events, so steps.dedup.outputs.skip is genuinely unset (not 'true') for workflow_dispatch/schedule — validating the "that flag was never set for it either" claim.
    • Confirmed #245/#246 are real, correctly referenced, and #246 is merged.
  3. Redundancy check — the new paragraph sits alongside the existing gha#161 (workflow_call input doc-sync) and gha#181 (@v1/@v2 re-grep) lessons in the same section; it documents a distinct pattern (gate-widening → downstream-step audit) and doesn't restate either.
  4. Style/AI-tell scan — no hedging stacks, no "it's not just X, it's Y," no promotional register; prose voice and bolded-lead-sentence structure match the surrounding paragraphs' established convention in this file.
  5. Line breaks — wraps consistent with the file's existing ~78-char convention; no rendered-Markdown impact either way.
  6. CLAUDE.md scope — only the root CLAUDE.md applies (no other CLAUDE.md shares a path with this change; .claude-pr/CLAUDE.md is unrelated).

No inaccuracies, hallucinations, or CLAUDE.md-compliance violations found. All factual claims in the new paragraph are both accurate and defended (cited to gha#245/#246 with verifiable specifics), satisfying item 4's requirement that claims not just be true but backed by reasoning/citation.

No issues found. Checked for bugs and CLAUDE.md compliance.

(No --comment flag was passed, so per the review process no GitHub comment is being posted — this is a terminal-only summary.)

Verdict

Ready for merge

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

💰 Cost: $1.1868 (review) — run

@d-morrison
d-morrison merged commit b464bcf into main Jul 9, 2026
20 checks passed
@d-morrison
d-morrison deleted the docs/claude-yml-if-gate-audit-lesson branch July 9, 2026 19:11
d-morrison added a commit that referenced this pull request Jul 18, 2026
* Code review guidelines: add item 14, don't reinvent the wheel (closes #264)

Companion to Morrison-Lab/ai-config#603, which enshrines DRW as a dev and
review principle and starts a central big-picture-principles catalog.
Follows the hedged proposed-in-ai-config#N citation convention while
that PR is open. Per #247/#249 precedent, a CLAUDE.md-only guidelines
change takes no changelog.d fragment.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01V5v5mUjURB2YW1nJW2Ai9S

* Item 14: specify where the checked-nothing-fit note lives (review round 1)

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01V5v5mUjURB2YW1nJW2Ai9S

* Item 14: qualify the marketplace entry as vetted, well-maintained, SHA-pinned (review round 2)

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01V5v5mUjURB2YW1nJW2Ai9S

---------

Co-authored-by: Claude <[email protected]>
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.

3 participants