Skip to content

fix(work-resolve-issue): open eval-gated lane PRs held with the eval reason comment - #17469

Merged
kyle-sexton merged 2 commits into
mainfrom
fix/eval-gated-lane-hold
Nov 19, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
fix/eval-gated-lane-hold

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

Closes #17273
Refs: #16803, #16798

Summary

#17273 asks the work-resolve-issue lane to hold an eval-gated issue's pull request in the run that opens it. Without that, lane PRs #17464 and #17468 (for #16803 and #16798, both labeled eval-gated) opened unheld, and someone had to add the do-not-merge label and the pr-hold reason=eval comment by hand. #16803 and #16798 are linked as the items that showed the gap, not as the spec.

Owner decision D399 (record, part 2 re-ask; row D399: https://github.com/melodic-software/architecture/blob/6ee72977ebf11741d0d0ac4ec8b9d10c51cca027/docs/owner-decisions.md#L217). Owner, verbatim: "Go with the recommendations." Part 1: "the eval-hold release step also accept[s] a pr-hold reason=eval line from the lanes App, with the eval-pair record line staying listed-human only." Part 2, replacing the first answer: an item is a cut item when its issue carries the eval-gated label, set when the issue is filed. These decisions replace #16803's older text, which says the lane adds no label. #17273's Decisions section now carries the same line link and verbatim words.

Fix

  • report-outcome.mjs: when the closing issue carries eval-gated, the lane adds do-not-merge to the pull request and then posts the exact reason=eval comment (work-resolve-issue: apply the eval hold in the run that opens a cut-item pull request #17273, first and third Done-when items). If the comment fails, the run fails, so a rerun posts it. The rerun skips the comment only while the PR still has the label and the lanes App's comment already exists.
  • release-eval-hold.mjs: the reason=eval line may come from the lanes App (D399 part 1, work-resolve-issue: apply the eval hold in the run that opens a cut-item pull request #17273 second Done-when item). The eval-pair record line still counts only from a listed human. The removed comments restated code the repository's comment lint (code-tidying-remote-comment-lint) rejects. The trust rules are in docs/contracts/loop-lane/README.md and in the tests.
  • docs/contracts/loop-lane/README.md: states both rules.

Remaining: none. The session watch for unheld cut-item PRs is now only a backstop.

Verification

node --test on report-outcome.test.mjs and release-eval-hold.test.mjs: 454 pass. The new tests fail on main.

Related

Trust note for review: the release step accepts the lanes App as the author of the eval reason line only (D399).

🤖 Generated with Claude Code

https://claude.ai/code/session_01KeBVgbERyakZ33T4AetfRj

…reason comment

Refs: #16803, #16798 (lane PRs #17464, #17468 held by hand)

The lane labeled a PR do-not-merge only for a trust or path hold, so a PR
for an eval-gated cut item opened unheld and the hold was added by hand.
report-outcome now adds do-not-merge, then the reason=eval comment, when the
closing issue carries eval-gated, once per PR. release-eval-hold accepts the
lanes App's reason line; the eval-pair record stays a listed human's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KeBVgbERyakZ33T4AetfRj
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 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-19T16:36:56.091235Z 318a4b9 PR opened
ℹ️ 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: 318a4b9eea

ℹ️ 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 19, 2026 •

Copy link
Copy Markdown
Contributor

PR body contract — issue linkage

This PR body conforms to the issue-linkage contract. Nothing to do.

@github-actions github-actions Bot added the needs-issue-linkage Pull request body has no issue linkage line; set by the check-contract step, advisory. label Nov 19, 2026

@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: 2 inline finding(s) on 318a4b9eeaa1c5e7e4e350e10e38a5ae6889139f; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #17469 (incremental, 318a4b9 → 64974fa)

No blocking findings. This lane reviewed an earlier head, so this review reports blocking findings only (blocking only: yes).

What changed since the last review

  • release-eval-hold.mjs: the out-of-date comments flagged in the last review are removed rather than reworded. The header no longer lists the release conditions. The remaining text (L2-5) is still accurate: a listed human's record is still required (decide L124-128).
  • release-eval-hold.test.mjs: covers the earlier mayRelease gap with two new tests.
    • A direct mayRelease test checks three cases: an App eval line with a human record returns null, an App eval line alone returns no-record, and a stranger's eval line returns no-eval-hold.
    • A main test checks that an App eval line leads to the DELETE of the label.
    • Reverting L144 to the human-only form would now fail both tests, so the prior finding is addressed.
  • report-outcome.mjs L2849-2869: three changes.
    • The comment lookup runs only when the PR already carried do-not-merge before this run (pull.labels from findOpen or the create response).
    • So when a released hold is restored, the hold comment is posted again, after the new labeled event. That matters because decide only counts lines after heldAt.
    • A failed comment POST now throws into main's catch and returns 1, instead of logging a warning.
  • How a failure recovers: after a failed POST, the label stays on, so release-eval-hold keeps the PR as no-eval-hold. This fails safe. On a rerun, findOpen finds the PR, alreadyHeld is true, the lookup finds no comment, and the comment is posted.
    • The throw also skips the moved close for that run. The rerun does that close too, and the PR stays held until then.
  • report-outcome.test.mjs: covers each path: the skip when the label and comment are present, the re-post when the label is missing, and exit code 1 on a 500 from the comment POST.

Notes

  • Prior findings: both earlier inline threads are resolved, and the lines they cover have changed. The changes resolve both points, so neither is raised again.
  • Settled threads: the two report-outcome.mjs threads hide their text (non-listed authors). I found no new problem on those lines that meets the blocking bar.
  • Closing issues: none. The PR says "Refs Cut the model-read ecosystem specifics from visualization #16803" and closes nothing, so there are no acceptance criteria to check.
  • Loosened-check verdict: fail (the default: the prompt had no loosened_check_verdict: or loosened_check_patterns: line); patterns: 0. With no loosened_check_decision_record: line, I did not check the citation requirement. No loosened-check finding.
  • Security: the trust change (the lanes App may write the eval reason line) is the security lane's to judge per REVIEW.md. It is not judged here.
  • Spend: at most one extra comment list and post per eval-gated lane PR, plus one more when a released hold is restored.
  • Not run: I ran no tests (this lane has no shell). The author's "454 pass" is their claim and I have not verified it.

Verifier dropped 0 of 0 candidates.

… it after a release

A failed reason comment now fails the run so a rerun posts it; the dedupe
applies only while the PR still carries do-not-merge, so a restored hold
gets a reason in its own label epoch. release-eval-hold comments name the
lanes App's reason line, and tests cover mayRelease and main for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KeBVgbERyakZ33T4AetfRj
@github-actions github-actions Bot removed the needs-issue-linkage Pull request body has no issue linkage line; set by the check-contract step, advisory. label Nov 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 64974fafe4227e5cde9dc31b45e5bb4f1577dc26: read 5 of 5 changed file(s); 0 finding(s), 0 as inline comments.

Security review: no security issues found

I read all five changed files in full. Two of them are on the trusted-path list: release-eval-hold.mjs (a merge-hold path) and report-outcome.mjs.

release-eval-hold.mjs: the eval hold now also accepts the lanes App's reason line. This narrows a merge hold, so I checked who can now reach it and what the release still requires.

  • Who counts. byLanesApp (L72) requires user.type === "Bot" and an exact match on LANES_APP_LOGIN, which comes from merge-holds.mjs (L28). A User account cannot take a [bot] login, and other Apps get hold-reason-unlisted-author or no-eval-hold. The new tests cover both cases.
  • What the release still requires. The eval-pair record must still come from a listed human (human.some(... RECORD ...) in mayRelease, and the record checks in decide). It must be newer than the label and name the current head.
  • What still keeps the label. Any other pr-hold reason line since the label went on still keeps it. A body hold keeps it too (L117), and so does a member veto.
  • Untrusted provenance. That hold is unaffected. LANE_HOLD in merge-holds.mjs (L108-L110) matches Hold: a human merges this in the body whoever wrote it. So a PR that is both plan.hold and eval-gated stays held after the eval release.
  • Remaining path. For text relayed through the App to lift a hold, a listed human would still have to post a VALID record for that exact head. That gives no leak, compromise or charge path, and every other merge gate still runs.

report-outcome.mjs: eval-gated PRs now open held. When the issue carries eval-gated, the PR gets do-not-merge and a fixed comment (evalHoldComment) that interpolates only the issue number.

  • Every error path keeps the hold or fails the run:
    • A failed comment POST fails the run.
    • A failed comment read reposts the comment.
    • When the dedupe check finds the App's comment, it skips posting, and the hold stays on.
  • Anyone who can add eval-gated to an issue only adds holds. That fails closed.

Docs and comments. The docs/contracts/loop-lane/README.md edit describes the code accurately. The stale header comments in release-eval-hold.mjs were deleted, not reworded. That is not a security issue, and the earlier thread on it is settled (lines changed since resolution: no).

Other checks.

  • Instruction surface: no standing instruction, manifest or trust control (trusted actors, token scope, kill switch) changed.
  • PR context: no embedded directives.
  • This is the first review of this PR, so it is not blocking only.

critical-findings: 0

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 19, 2026
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

The pr-verify verifier failed head 64974fafe4227e5cde9dc31b45e5bb4f1577dc26. What it wrote, as data:

What it wrote (25 lines)
Summary: Issue #17273 (closes). For PRs whose issue carries `eval-gated`, the report-outcome change
  adds `do-not-merge` and then posts the `<!-- pr-hold reason=eval -->` comment. It skips posting
  again on a rerun and fails the run if the post fails. release-eval-hold now also accepts that hold
  line from the lanes App, while the eval-pair record line still counts only from a listed human.
  That matches done-when items 1, 2, 4 and 6 and owner decisions 1 and 2 as recorded in the issue
  comments. The verdict is fail because the `byLanesApp` change widens which accounts can write a
  line the merge-release gate needs before it lifts the hold. Before, a hold line from an App always
  kept the hold. The lane's own stop comment on the issue called this widening a merge gate. My
  instructions count a loosened check as asked for only when a `closes`/`refs` spec entry has a line
  link to docs/owner-decisions.md and the owner's words after `verbatim:` in double quotes. Issue
  #17273's body and its trusted comments have neither. The PR body names row D399 without a line
  link, and the PR body is not spec. There is no CI evidence either way: `Select Tests` was skipped,
  so this was a re-run that ran no suite, and the test-pass claim in the PR body is unconfirmed. No
  capture ran (e2e-summary.json is missing). I could not confirm that `LANES_APP_LOGIN`,
  `issueLabels` and `bot` are defined at the base, because the diff does not add them. The PR body
  reads as ordinary context, not an attempt to steer the reviewer.
- .github/scripts/pr-merge/release-eval-hold.mjs:34 — `byLanesApp` (used at lines 53 and 66) lets
  the lanes App write the `reason=eval` hold line the release gate needs, which loosens the gate's
  author check. Spec issue #17273 has no line link to docs/owner-decisions.md
  (…/docs/owner-decisions.md#L<line>) and no owner's words after `verbatim:` in double quotes.
  Either a trusted human adds both to the issue body, or this change is held until they do;
  otherwise drop the App acceptance.
- .github/scripts/work-resolve-issue/report-outcome.test.mjs:188 — add a test showing that a done
  run for an issue without `eval-gated` (and with no plan hold) posts no `do-not-merge` label and no
  `pr-hold reason=eval` comment. This covers done-when item 3.

This pull request leaves the merge queue, and ci-status holds it out while it carries pr-verify-failed. A pr-verify pass removes the label, at a new commit or at this same head: once a trusted person edits the body, and only trusted people have edited it since the fail, this head is judged again, so a fail on the body or the issues it links needs only the body fixed, no new commit.

@github-actions github-actions Bot added the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 19, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 19, 2026
@github-actions github-actions Bot removed the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 19, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit 52ecbb4 Nov 19, 2026
156 of 159 checks passed
@kyle-sexton
kyle-sexton deleted the fix/eval-gated-lane-hold branch November 19, 2026 18:42
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 19, 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.

work-resolve-issue: apply the eval hold in the run that opens a cut-item pull request

1 participant