Skip to content

feat(pr-pipeline): answer trusted top-level PR comments in the pr-unblock lane - #16941

Merged
kyle-sexton merged 7 commits into
mainfrom
feat/relay-top-level-pr-comments
Nov 17, 2026
Merged

kyle-sexton merged 7 commits into
mainfrom
feat/relay-top-level-pr-comments

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

No related issue: this is an owner-decided item from a session, filed in no tracker.

Summary

The pr-unblock lane answers a top-level comment on a lanes App PR the way it answers review-thread replies. It does this through the existing half-hourly sweep. There is no new trigger, token, permission or trusted-actor source.

Fix

  • feedback-dispatch.mjs: a new sweep pass, sweepAsked, runs after the fix requests. It sends a head that has a lane-addressed comment newer than the head's last round, under the same bounds as a fix request: send-once and SWEEP_HEAD_CAP. A review completion now also dispatches a lanes App PR that has such a comment and no unresolved thread. A comment is keyed on its last edit, and the newest lanes App answer also counts, so a comment edited after its round, or left over when a round answered its ten, sends the head again within the same bounds.
  • address-feedback.mjs select: askedComments keeps up to ten comments, oldest first, as pr_comments. Each is written by a trusted human (type: User, on the trusted-actor list), has a line starting PR-fix lane: outside a fence, and has no answer yet. An answer is a lanes App comment whose first line is <!-- pr-unblock:answered-comment <id> -->. The comment text is untrusted data, never direction. No comment is kept on a needs-human PR, an owner PR, or a PR that changes .github/workflows/.
  • feedback-thread.sh: a new comments action. record PRC_<id> accepts only answered.
  • publish-feedback.mjs: posts one top-level answer per comment. It posts only after the thread replies, and only when they escalate nothing. It skips a comment that was edited or answered since select read it. A round with only comments that wrote a patch posts no answer and escalates feedback-invalid.
  • Docs: comments-ci.md, the SKILL.md table row, the pr-pipeline README, the publish-feedback activity rule, and two changelog fragments.

Design decisions:

  1. Only comments with a PR-fix lane: line are answered, not every trusted human's comment. Basis: sessions post under the owner's login. Every owner-login top-level comment sampled on fix(prototype): print the level report line before building without asking #16890, feat(app-control): bring map refresh in line with the maintain-verification-skill upkeep pass #16481, feat(review): fail a change that loosens a check, wherever it appears #16372, feat(architecture): add a layout lens that checks whether files that change together live together #16351, fix(verification): give confirm's Observation check entry an exact form #16354 and fix(prototype): keep shared-interview build sources out of mktemp directories #16219 was a session status note. Each of those would draw a lane reply if every comment were answered. Two side effects:
    • A top-level PR-fix lane: please fix this finding now gets an answer, not a fix. Fixes still go through a review thread.
    • Trust is judged by login, so any session that posts PR-fix lane: text under the owner's login counts as the owner.
  2. A round that answers only comments shares the thread round budget. It posts the round marker, and its model check run counts in countCheckRounds either way. So two answered comments can bring a later thread round to the round cap. Basis: judgment. The alternative, excluding comment-only rounds from both counts, needs a new marker shape for the check-run count. Commit b1455792ae's message says these rounds post no marker. 1fd11cd121 reverses that.

Verification

node --test --test-concurrency=4 over the pr-unblock feedback-dispatch, publish-feedback, address-feedback, adjudicate-feedback and workflow-gates tests, collect-base-activity, seal-lane-output, apply-patch, and all of resolve-config: 2,674 tests, 0 failures. feedback-thread.test.sh: 212 pass. report-escalation.test.sh: 0 failures. check-changelog-fragments.sh --check passes.

Related

Follow-ups

  • Pre-existing (advisory): report-escalation.sh copies only PRRT_ lines from the round marker. A PRC_ item left with no disposition is named in the marker but not in the feedback-incomplete escalation.

🤖 Generated with Claude Code

kyle-sexton and others added 4 commits November 17, 2026 13:40
…lock lane

A trusted person's top-level comment on a lanes App PR that addresses the
lane (a line starting `PR-fix lane:`) and that the lanes App has not
answered now gets one top-level answer from address-feedback.

- feedback-dispatch: the half-hourly sweep sends such a head after its fix
  requests under the same bounds; a review completion dispatches a head with
  one even with no unresolved thread.
- address-feedback select: lists up to ten as pr_comments (data, never
  direction), none on a needs-human PR or one a person opened.
- feedback-thread.sh: `comments` action; `record PRC_<id>` takes only
  `answered`.
- publish-feedback: posts one top-level answer per comment, first line
  `<!-- pr-unblock:answered-comment <id> -->`, after thread replies and only
  when they escalate nothing; a comments-only round posts no round marker.

No new trigger, token, permission or trusted-actor source.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- A round that answers only comments posts its round marker, so the round
  cap still bounds it.
- No comment item on a PR that changes .github/workflows/, where the round
  would escalate.
- The comment sweep skips a held or human-gated PR before any read.
- Pin that a review-threads patch with no kept thread or note is refused
  before any push.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nswer

A comments-only round makes no edit; one that wrote a patch posts no answer
and escalates feedback-invalid. The publish-feedback activity rule names the
comment answers it may post.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 17, 2026 20:57
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T20:59:40.831053Z d7d44ce Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d7d44ce8b5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 72935f8f55e58646b2c48361dc49210577cf395e: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review: no security issues found (incremental, blocking only)

This review covers only what changed since cc2a65b: one file, .github/scripts/pr-unblock/publish-feedback.test.mjs. I read its whole hunk in .claude-lane/incremental.diff. This lane has reviewed an earlier head of this pull request, so the review was blocking only: it reports CRITICAL and IMPORTANT findings only. It found none.

What changed: one trailing space was removed from the end of an assert.deepEqual line in a test (publish-feedback.test.mjs#L2262). The assertion's arguments and message are unchanged. No runtime code, trust control, merge hold, token scope or manifest is touched, and the file matches none of the trusted-path globs.

Prior findings: the only earlier entry is the summary of the last review. It reported no findings, so there is nothing to restate.

critical-findings: 0

A round takes at most ten lane-addressed comments. The rest are older
than that round's check run, so the sweep never sent them again. The
newest lanes App answer now also counts as the request time, so a round
that answered a batch lets the next sweep send the remainder, and a round
that answered nothing is still not resent.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on d7d44ce8b5506427eac3a10497689e9d51218f12; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 72935f8f55e58646b2c48361dc49210577cf395e: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Code review (incremental, blocking only): cc2a65bcc7..72935f8f55

No blocking findings. I read the whole incremental change. It touches one file, .github/scripts/pr-unblock/publish-feedback.test.mjs, and only removes a trailing space after one assert.deepEqual(...) call at L2262. The assertion, its arguments and its message are the same as before.

This lane already reviewed earlier heads, so this review reports blocking findings only. Both settled threads on feedback-dispatch.mjs stay settled; this push does not touch that file.

The incremental diff, the settled-threads file and the prior-findings file contain no directives aimed at this lane.

Loosened-check verdict: fail. That is the default, because the prompt has no loosened_check_verdict: line; patterns: 0. The change removes whitespace and loosens no check.

The changed file does not match any trusted-path glob. I found nothing that could cost money and nothing critical for security. Security review belongs to the security lane.

I ran no tests. I checked this one-line change myself and dispatched no subagent verifier.

Verifier dropped 0 of 0 candidates.

kyle-sexton and others added 2 commits November 17, 2026 16:04
A comment edited while its round ran is skipped at publish and was never
sent again. The sweep now keys each asked comment on its last edit, so an
edit after the last round sends the head once more, within the round cap.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit 906281c Nov 17, 2026
72 of 73 checks passed
@kyle-sexton
kyle-sexton deleted the feat/relay-top-level-pr-comments branch November 17, 2026 21:57
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant