Skip to content

fix(harness-ops): accept a title-matched lane telemetry issue only when the lane's write identity authored it - #11140

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-11119-40995666152-1
Oct 30, 2026
Merged

melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-11119-40995666152-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #11119

Summary

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

restart-consumer.sh's resolve_issue_by_title now selects the lowest-numbered exact-title Lane telemetry: <lane> issue only when its author is the run's write identity or the lane's telemetry.author (validated as a non-bot login, as lane-launcher.sh does). Other exact-title matches are skipped and named in a warning, and when none is left the lane reports no-telemetry as before. The consumer's own Lane telemetry: restart-consumer fallback applies the same rule. The telemetry-home paragraphs in work-loop, attend-queue and babysit-loop SKILL.md now require the title-matched issue's author to be the lane's write identity, and tell the lane to skip and report a foreign match, then create its own when none is left.

Not verified

  • restart-consumer.test.sh was not executed under scripts/run-test-file.sh: this lane's Bash runs only the named wrappers. Left to the PR's CI. The review subagent traced the new cases against the gh stub.
  • tidy: skipped. The change spans 3 areas (harness-ops, work-items, source-control), over the 1-area cutoff.
  • Known divergence, kept per the issue's spec: restart-consumer also accepts an issue opened by the lane's telemetry.author, but the loop lanes accept only their write identity. Under an App token with telemetry.author set, the two could bind different issues; pinning lanes[].telemetry.issue avoids
  • The morning-brief title search ('loop-lane telemetry running per-lane status') in upsert_own_telemetry is not author-filtered. It must stay byte-identical to morning-brief.sh, and the issue scopes the change to exact-title resolution.
  • Untracked dotfiles and dirs in the checkout root (.bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) were not created by this run and are not part of the change; exclude them from the patch.

Fix

  • plugins/harness-ops/skills/lanes/scripts/restart-consumer.sh: resolve_issue_by_title filters exact-title matches by author (WRITE_IDENTITY, or the lane's telemetry.author) and warns naming each skipped foreign match. process_lane reads and validates telemetry.author for an unpinned lane: an invalid
  • plugins/harness-ops/skills/lanes/scripts/restart-consumer.test.sh: new cases. A lower-numbered foreign issue plus a higher-numbered write-identity issue: the write identity's is selected, the foreign one's comments are never read, and it is named in the output. Only a foreign issue: resolves to no-t
  • plugins/harness-ops/skills/lanes/context/restart-consumer.md: the telemetry binding and the own-telemetry fallback state the author rule and what happens to a foreign match.
  • plugins/harness-ops/skills/lanes/context/config.md: telemetry.author also may open the restart consumer's title-resolved issue.
  • plugins/work-items/skills/work-loop/SKILL.md: the telemetry-home default requires the write identity as the issue's author, and says to skip and report a foreign match.
  • plugins/work-items/skills/attend-queue/SKILL.md: same rule for the attend-queue telemetry issue.
  • plugins/source-control/skills/babysit-loop/SKILL.md: same rule for the babysit-loop telemetry issue.
  • .changes/harness-ops/fix-11119-telemetry-issue-author-3b7e9c41.md: patch fragment (Security).
  • .changes/work-items/fix-11119-telemetry-issue-author-5d2a8f16.md: patch fragment (Security).
  • .changes/source-control/fix-11119-telemetry-issue-author-a94c0e72.md: patch fragment (Security).

Verification

The runner ran each check from the base copy against aaeb84a:

  • scripts/check-changelog-fragments.sh --check: passed

The run reports:

  • check-changelog-fragments (run twice, before and after review fixes): All 23 changelog fragment(s) under .changes/ are valid.
  • check-affected (run twice): 12 passed, 6 skipped over 10 changed files; the rest are listed as CI only.
  • cant-fail-scan --file plugins/harness-ops/skills/lanes/scripts/restart-consumer.test.sh --check: PASS, no gating findings.
  • fresh-context review subagent over the whole diff: found that a --telemetry-json run left WRITE_IDENTITY empty, so the own-telemetry title fallback could select nothing, which broke the existing fallback test. Fixed by resolving the identity before that fallback. It also found the SKILL.md write-ide
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40995666152

Left out: the items under Not verified.

Related

#11119

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

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed c19794e5a73975171ebcd0402715061e460480f2: 0 finding(s), 0 as inline comments.

Incremental security review of c19794e against the last reviewed head aaeb84a. Scope: plugins/source-control/skills/babysit-loop/SKILL.md and plugins/work-items/skills/work-loop/SKILL.md.

No security issues found.

  • Nearly all of the change is prose reflow with the same wording.
  • The one content change is in the "Telemetry and durable loop state" section of both files. It drops a parenthetical describing the write-identity resolution order (gh api user, then <app-slug>[bot]). The rule is unchanged: only an issue whose author is the lane's write identity (the login the upsert script resolves) counts, and exact-title matches by other authors are still skipped and named in the cycle report. The resolution order is still owned by reference/telemetry-upsert.md, which the paragraph still links, and the upsert script still enforces it. No control is removed.
  • I did not read docs/conventions/instruction-exception-register/README.md, so the protected-class list was not consulted; I judged by consequence, and no rule was removed or softened.
  • No manifest fields, trusted-path files, token scope, kill switch, merge hold or userConfig default are touched, so there are no manifest <field> lines.
  • The change cannot bill anything.

critical-findings: 0

@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed c19794e5a73975171ebcd0402715061e460480f2: 0 finding(s), 0 as inline comments.

Incremental review of the two files changed since aaeb84a: plugins/source-control/skills/babysit-loop/SKILL.md and plugins/work-items/skills/work-loop/SKILL.md. I read the incremental diff and did not run anything.

Almost all of the change re-wraps prose to the line width. The only content change is in the "Telemetry and durable loop state" sections of both files. The parenthetical (gh api user first, then <app-slug>[bot], in the order reference/telemetry-upsert.md gives) is now (the login the upsert script resolves). That is a deliberate shortening: the link to reference/telemetry-upsert.md stays in the same paragraph as the owner of the upsert details, so the login-resolution order has one owner and cannot drift from the script. The other sentences keep their meaning, including the exact-title match, the "skip other authors and name it in the cycle report" rule, the one-comment-per-lane-instance rule, the babysit-loop issue-creation step, and the work-loop create-item seam verb.

I did not read reference/telemetry-upsert.md to confirm it states the gh api user then <app-slug>[bot] order. The diff shows only that this PR dropped the order from both skill files and relies on that reference to carry it.

I found no correctness, consistency, or acceptance-criteria problems in this change. This round has no manifest changes and nothing to hold.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head aaeb84a258d542fc498bae3463f9a9d4f8bc64b5. The lanes clear this reason on their own; 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 c19794e5a73975171ebcd0402715061e460480f2.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit e6f36c1 Oct 30, 2026
42 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-11119-40995666152-1 branch October 30, 2026 04:33
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.

fix(harness-ops): accept a title-matched lane telemetry issue only when the lane's write identity authored it

0 participants