Skip to content

feat(work-items): report merges no human touched in the morning brief - #16394

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-16384-43735962803-1
Nov 15, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-16384-43735962803-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #16384

Summary

Opened by the work-resolve-issue lane. The run's own summary:

The morning brief's Owner touches section now prints how many of the pull requests merged in its window no person touched, with their share (for example merged with no human touch: 2 of 5 pull requests merged in the window (40%)). A note line says how a touch is counted. A touch is a commit on the pull request, or a review or comment from its open to its merge, by a person. A Bot account, a login ending in [bot] and the lane identity (merge.agent-identity) are not people. The operator login is a person. A commit author with no GitHub user counts as a person unless its email is a [bot] noreply address, so the untouched share is never overstated. The merge itself is not a touch, following the issue's 'between open and merge'. The count uses no new request: the section's existing per-day GraphQL search now also reads each pull request's createdAt, mergedAt and first 100 commits, reviews and comments. An untouched pull request with more than 100 of those prints a PARTIAL line. Design choices and their basis: I counted every commit regardless of when it was made, because a commit is part of the change itself. Reviews and comments count only between open and merge, so a comment after the merge does not count, as the issue asks. The issue says to put the count 'beside its Owner touches line' and to reuse 'reads the brief already makes', so the line sits under the per-day rows and reuses that section's search and window.

Not verified

  • morning-brief.test.sh was not executed: this lane runs no interpreter or test runner, so the new assertions and the jq were checked by reading and by the review subagent only. Left to the PR's CI.
  • The live GraphQL query was not run against GitHub. The new fields (PullRequest.createdAt and mergedAt; timelineItems with PULL_REQUEST_COMMIT, PULL_REQUEST_REVIEW, ISSUE_COMMENT; GitActor.email and user.login) were checked against the schema by the reviewer only. The existing SKILL.md pointers to…
  • tidy: the ai-slop pass's deterministic detector (detect.sh) is not a wrapper this lane may run, so it was skipped; the rubric was read by hand over the listed markdown lines and found nothing.
  • shellcheck and the build and test steps were not run separately in this lane; check-affected ran the static checks it selects. Left to the PR's CI.

Fix

  • plugins/work-items/skills/morning-brief/scripts/morning-brief.sh: the touch query's PullRequest fragment adds createdAt, mergedAt and a touch timeline connection (commits, reviews, comments); TOUCH_JQ adds bot/person helpers and prints the merged-with-no-human-touch line, its PARTIAL line and a…
  • plugins/work-items/skills/morning-brief/morning-brief.test.sh: a new fixture and assertions cover an untouched merge (bot-email commit, Bot comment, lane-identity review, a person's comment after the merge), a person's commit, review and comment (each alone beside the untouched merge), a merge…
  • plugins/work-items/skills/morning-brief/SKILL.md: the Owner touches row of 'What each section reports' describes the new line, how a touch is counted, the extra fields read and its PARTIAL case.
  • .changes/work-items/work-resolve-issue-issue-16384-43735962803-1-b50750b8.md: minor changelog fragment for work-items.

Verification

The runner ran each check from the base copy against 274821d:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • check-changelog-fragments: all 40 fragments valid (after adding the ### Added heading the first run asked for)
  • check-changed-skills: CHECK-SKILL morning-brief PASS, 0 errors, 5 warnings that predate this change (description length, body size, #N citation on line 122, no Gotchas)
  • check-affected: 15 passed, 6 skipped over 4 changed files, run before and after the tidy pass
  • fresh-context review subagent over the whole diff: no correctness bugs found; it checked the GraphQL fields against GitHub's schema, jq precedence and escaping, and traced every new test expectation (2 of 5 at 40%, 1 of 2 at 50% per case, 1 of 1 at 100% with --touch-days 1, the no-merge line on the…
  • code-tidying:tidy-diff over the change's own lines: one wording edit in SKILL.md:244, no code edits
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/43735962803

Left out: the items under Not verified.

Related

#16384

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 274821d43bd923948c0457edc4cca894411713e4: read 4 of 4 changed file(s); 0 finding(s), 0 as inline comments.

Security review: no security issues found

I read the whole diff for all 4 changed files. None of them match a trusted path.

This PR adds an untouched-merge count to the Owner touches section of /work-items:morning-brief. The section is a local, read-only report.

What I checked:

  • GraphQL query (morning-brief.sh L2609–2616). The change adds read-only fields to the section's existing search: createdAt, mergedAt, and a touch connection over commits, reviews and comments. It adds no mutation, no new request and no new credential use.
  • jq program (L2692–2747). The lane identity reaches jq as data through --arg lane "$lane_id" (L2835). It is not interpolated into the program text, so it cannot inject jq or shell. The test() regexes are fixed strings in the program. Values from GitHub (logins, emails) are only the inputs being matched, never patterns. The output prints only counts, a percentage and PR numbers.
  • Trust use. The bot and person helpers decide who counts as a person for a metric line in the report. Nothing gates, holds or merges on that line, so it controls no access, merge hold or lane admission.
  • Tests and changelog. The test file adds a fixture and assertions under $TMP. The changelog file is prose only.

No trust control, token scope, kill switch, merge hold, plugin manifest or standing instruction is touched.

Pull request text. The PR context contains no embedded directives aimed at this lane.

Spend. Each morning-brief run now reads up to 100 extra timeline items per pull request inside the existing per-day search. That costs some GitHub API rate limit, and nothing is billed.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 274821d43bd923948c0457edc4cca894411713e4: read 4 of 4 changed file(s); 0 finding(s), 0 as inline comments.

I found no issues in this PR, either blocking or advisory. All three of the closing issue's criteria are met, and I read every hunk of all 4 changed files.

What changed. The Owner touches section of the morning brief now prints how many pull requests merged in the window had no human touch, with their share. A PARTIAL line flags an untouched pull request whose first 100 commits, reviews and comments don't cover everything on it. A note line says how a touch is counted. The data comes from the section's existing per-day search, which now also asks for createdAt, mergedAt and a touch list of commits, reviews and comments (morning-brief.sh#L2609-L2616). The counting logic is at morning-brief.sh#L2735-L2747.

Correctness, checked by reading the code (I ran nothing):

  • Window: a pull request merged in the window always has an update at or after its merge, so the per-day updated: searches find it. unique_by(.number) removes duplicates across days.
  • Who counts as a person:
    • A Bot account, a login ending in [bot] and the lane identity are not people. Logins are lowercased and stripped of [bot] before comparing, as the existing escalation logic does.
    • person needs a non-empty login, so an empty $lane can't match a real login.
    • A commit with no GitHub user counts as a person unless its email is a [bot] noreply address. That matches what SKILL.md and the PR description say.
  • Time bounds: reviews and comments count only from open to merge. Commits count whenever they were made, which the PR description chooses on purpose.
  • Existing behaviour: the old fixture has no mergedAt, so its output now reads "no pull request merged in the window", which the new assertion expects. The existing PARTIAL check for more than 100 events still treats the new fixture's missing acts and labels fields as not truncated.
  • Test numbers: I worked through each expected value by hand:

Closing issue #16384, "Done when":

  • Reports the share of merges no human touched, in the Owner touches section, and says how a touch is counted: met. The "touches: merges no person touched…" and "touches: how a touch is counted is printed" assertions cover it.
  • Read-only, reusing reads the brief already makes: met. It adds fields to the existing query and makes no new request.
  • A test covers an untouched merge, a human commit, and a human review or comment: met. That is feat(planning): add questionnaire skill for person-held decisions (0.19.0) #311 and the 312/313/314 loop.

Path-scoped rules: .claude/rules/skill-bodies-state-current-rules.md and .claude/rules/cost-claims.md apply to SKILL.md. The edited row restates no upstream detail and states no cost, so neither rule is broken.

Changelog and manifest: no plugin.json or marketplace.json changes. The changelog fragment's bump: minor fits a new reported line.

Spend (not a finding): each search result now also requests up to 100 extra timeline entries, which uses more of the GitHub API rate limit per brief run. There is no billing effect.

Not verified by me: the PR says its test suite and the live GraphQL query were never run, so CI still has to confirm both.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 274821d43bd923948c0457edc4cca894411713e4. No person needs to act: a lane clears this reason, and the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 274821d43bd923948c0457edc4cca894411713e4, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 274821d

The verifier passed this head. The capture artifact holds the capture summary, which says whether the capture ran, and any screenshot or video that passed the mask check; this comment uploads no file.

Capture artifact: pr-capture-16394-274821d43bd923948c0457edc4cca894411713e4, expires on 2026-12-15.

One comment per pull request, updated in place for each new head.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=274821d43bd923948c0457edc4cca894411713e4 rubric=9.2.4 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit cec83fb Nov 15, 2026
50 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16384-43735962803-1 branch November 15, 2026 17:38
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit cec83fbf80fc0facf5d08ed40d641b8f4507731a; later checks count it verified from this comment.

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.

Report the share of merges no human touched in the morning brief

0 participants