Skip to content

Post the evidence comment from the ready step once the head is confirmed #15787

Closed

Description

@kyle-sexton

Parent

Refs #15658 (the map decision this implements)

Depends on

  • none: on the frontier now

Outcome

In an attended local session, /source-control:pull-request ready posts the pull request's evidence comment itself once the updated head is confirmed and there is evidence to post, so a reviewer sees the verification artifacts without anyone remembering a second command. Unattended runs already get this from the merge lane.

Demo: run ready on a pull request whose change touched a mapped feature and was confirmed; the pull request carries one evidence comment for that head. Run it on a docs-only change with no evidence file; nothing is posted and the report says why.

Source: the talk "All Code Is Slop (Except Mine)" (Lauren Tan), slide 24: review "verification artifacts" instead of diffs.

Decisions

  • Owner, 2026-11-12: verification artifacts in the pull request are already built (evidence action); the only change is that the local ready step calls it. No new skill, no second place that shows evidence.
  • The existing gates stay as they are: post only after the verifier passed for the current head, only publishable captures, nothing on a leak-scan hit, one comment updated in place.
  • The comment is the single home for every artifact kind (captures, video, later a formal-verification chart).

Key interfaces

  • The evidence action's inputs are unchanged: the summary file an unattended end-to-end run wrote, or one drive run's report.
  • ready reaches it as its own action, not through another plugin's internals.

Done when

  • After its review-and-verify step passes for the updated head, ready runs the evidence step when an evidence file exists for that head, and reports the comment's URL.
  • With no evidence file, or a verdict other than confirmed, ready posts nothing and its report says which.
  • A refusal by the evidence step (unpublishable file, leak-scan hit) never blocks the flip to ready; it is reported.
  • The step can be skipped for a run the way ready's other pre-flip steps can.
  • One new eval case shows the call; the skill's existing ready cases are non-inferior on a two-version compare (opus and sonnet aliases, three runs per side, cases selected with --case, a --max-cost-usd ceiling, no new batch after a usage-limit error).
  • The pull request body names this repository's dogfooding step.

Eval batches run in the one local eval-runner session in the main checkout; open the pull request with the do-not-merge label until the compare record lands.

Out of scope

  • The merge lane's posting.
  • /review:explain-change and video by default.
  • What counts as evidence for a repository with no app.

Activity

  1. added
    agent-ready
    on Nov 13, 2026
  2. melodic-automation-lanes commented on Nov 13, 2026

    @melodic-automation-lanes
    Contributor

    No work-resolve-issue run started in the 1 hour since agent-ready was last added. work-unblock removed and added agent-ready back to start a fresh run on main's workflow files. If this run ends the same way, it re-fires the issue again, waiting longer each time.

  3. melodic-automation-lanes commented on Nov 13, 2026

    @melodic-automation-lanes
    Contributor

    No work-resolve-issue run started in the 1 hour since agent-ready was last added. work-unblock removed and added agent-ready back to start a fresh run on main's workflow files. If this run ends the same way, it re-fires the issue again, waiting longer each time.

  4. melodic-automation-lanes commented on Nov 13, 2026

    @melodic-automation-lanes
    Contributor

    No work-resolve-issue run started in the 1 hour since agent-ready was last added. work-unblock removed and added agent-ready back to start a fresh run on main's workflow files. If this run ends the same way, it re-fires the issue again, waiting longer each time.

  5. removed
    agent-ready
    on Nov 13, 2026
  6. github-actions commented on Nov 13, 2026

    @github-actions
    Contributor

    Size: Medium
    Complexity: Medium
    Uncertainty: Known
    Flags: none
    Blocked by: none

    Understood: the attended /source-control:pull-request ready step should call the existing evidence action after the verifier passes for the updated head. It posts or updates the single evidence comment and reports its URL. It posts nothing, and says why, when there is no evidence file or the verdict is not confirmed. A refusal by the evidence step is reported and never blocks the flip to ready. The step can be skipped. The work also adds one eval case and a non-inferiority compare on the existing ready cases.

    The scope, outcome and done-when items are exact, and the issue records the owner's decision. The eval compare runs are host work, not a reason to hold the issue. I found no duplicate among the open issues and no merged pull request that already does this.

    Automated triage. A maintainer reviews it.

  7. melodic-automation-lanes commented on Nov 13, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"3cc8338a0286d212e6e0b1008b79b0fb4fb732556df91f2df38a3e3e4a9c9ebb","body_sha256":"a4b8a28da138105bf25167c68b65c9106ec7eb652eee98420c5d38cb99a21b5e"}

  8. github-actions commented on Nov 13, 2026

    @github-actions
    Contributor
    No description provided.
  9. melodic-automation-lanes commented on Nov 13, 2026

    @melodic-automation-lanes
    Contributor

    Pull request #15907 merged with Refs:, so this issue stays open and nothing starts the lane on it again. work-unblock removed status: ready and agent-ready, so the hourly triage sweep sends it back to intake triage. Admission then parks it at status: confirmed for a check of what that pull request left, until a **Decision recorded.** comment says what is left or someone closes it.

  10. github-actions commented on Nov 13, 2026

    @github-actions
    Contributor

    The triage sweep dispatched intake triage for this issue (dispatch 1; 2 runs that reach intake, or 6 dispatches, hand it to a maintainer).

  11. melodic-automation-lanes commented on Nov 13, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: merged pull request #15907 names it with Refs: after its newest decision or refinement comment, so its work may already be done: close the issue if it is, or post a comment whose first line is **Decision recorded.** saying what is left, which sends it back through intake. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  12. added
    host-run
    on Nov 18, 2026
  13. kyle-sexton commented on Nov 18, 2026

    @kyle-sexton
    MemberAuthor

    Targeted eval result: PASS

    One targeted case per changed skill, run on the old text (before) and the new text (after), on sonnet at 3 runs a side, Claude Code 2.1.327 (Claude Code).

    What this gate checks: that the skill's existing ready cases do no worse on the new text than on the old (the issue's non-inferiority compare), and that the new case shows the evidence call: its evidence comment is posted after the flip in at least 2 of 3 after runs. The issue states no margin, so the no-loss rule registered before any run is the kit's per-case rule (PROVISIONAL until the owner confirms it). There is no wrong-text side, so a PASS says these cases did not get worse, not that they would have noticed a bad edit.

    Scope: not a cut. PR 15907 adds step 2.5.5 to ready (post the evidence comment after the flip when an evidence file exists for the confirmed head) and adds evidence to the configurable pre-ready steps. Measured: the existing plugin-eval ready case merges-base (non-inferiority; hands-pr dropped under R77, Amendment 2) and the port of evals.json case 64 (target: the evidence comment after the flip in at least 2 of 3 after runs, comment-after-flip), each loading SKILL.md (ready row); reference/ready-for-review.md (step 2.5.5) counts as measured only if opened in at least 2 of 3 runs a side. Unmeasured: the digest handoff after the flip, the refusal paths of 2.5.5 (no evidence file, a verdict other than confirmed, an evidence-step refusal), the schema, config-resolution.md, watch-handoff.md, and the scripts' test files.

    • Amendment 2 (R77): the case p15907-ready-hands-pr-to-explain-change is dropped after stopping the smoke of eval-15787 and of eval-15787b on the skill-fired gate; the digest handoff after the flip (explain-change with --event ready) is UNMEASURED.

    • First smoke (superseded-1/): on the BEFORE text the evidence case already posted the evidence comment after the flip with the capture attached, because BEFORE has the evidence action and the prompt names --evidence. The target can be met, but this record cannot show a rise.

    • Cases: one plugin-eval ready case and the port of evals.json case 64, copied from the porting PR's head d1401f5 (branch test/15787-ready-evidence-case) under p15907- names; merges-base's base-merged-before-flip grader is main's, which also accepts git -C <dir> merge; each with the gh-forge fixture copied into its own folder: the fixture at the merge commit does not serve gh repo set-default --view, which stopped eval-15787's smoke, and the porting PR fixes that; the kit builds both sides from the merge commit, so a shared fixture from a later commit can reach a case only inside its own folder.

    • Target (the issue's item 'One new eval case shows the call'): comment-after-flip on p15907-ready-posts-evidence-after-flip passes in at least 2 of 3 after runs. Its other evidence graders are reported per side, with no target.

    • Opus not run. The issue names the opus and sonnet aliases; the evals plugin's reading guide says a skill-text change is compared on Sonnet and Opus runs only to confirm a loss. The issue's two-alias clause is not met by this record.

    • Result rule PROVISIONAL: the issue states no margin. Registered: the per-case no-loss rule (a case's mean score falls by 0.15 or more, or any grader passes in 2 or more fewer after runs). Not registered: the reading guide's few-cases rule (noise-report margin 0.05 and case-drop lines), which at 2 cases calls nothing.

    • Unmeasured rows: the digest handoff (case dropped, R77), 2.5.5's refusal paths, the schema, config-resolution.md, watch-handoff.md, the scripts' test files.

    • Before: 18692ebd966b297be34fb714562b5e8aed32a2c7 (the merge commit's first parent)

    • After: d82c9c8e37aa1d8734981cc87b8e72928b37380e (the merge commit on main; the pull request merged before this eval, merge commit read when this was written: d82c9c8e37aa1d8734981cc87b8e72928b37380e)

    • Loss: the mean case score falls by 0.15 or more, or any one grader passes in 2 or more fewer after runs than before runs.

    Passing runs per grader, per side:

    Case Grader Before After
    p15907-ready-merges-base-never-rebases base-merged-before-flip 3/3 3/3
    p15907-ready-merges-base-never-rebases base-merged 3/3 3/3
    p15907-ready-merges-base-never-rebases no-rebase 3/3 3/3
    p15907-ready-merges-base-never-rebases skill-fired 3/3 3/3
    p15907-ready-merges-base-never-rebases mean case score 1.000 1.000
    p15907-ready-posts-evidence-after-flip skill-fired 3/3 3/3
    p15907-ready-posts-evidence-after-flip comment-after-flip 3/3 3/3
    p15907-ready-posts-evidence-after-flip capture-attached 3/3 3/3
    p15907-ready-posts-evidence-after-flip comment-names-head 3/3 3/3
    p15907-ready-posts-evidence-after-flip evidence-line-reported 1/3 3/3
    p15907-ready-posts-evidence-after-flip mean case score 0.867 1.000
    p15907-ready-posts-evidence-after-flip target: comment-after-flip passes in at least 2 after runs 3/3 3/3

    Graders that cannot show a loss, because they failed on the old text in every run:

    • none: every grader passed in at least one run on the old text

    Changed files the compare runs opened, per case and side:

    • p15907-ready-merges-base-never-rebases before: opened skills/pull-request/reference/ready-for-review.md in 3 of 3 runs
    • p15907-ready-merges-base-never-rebases after: opened skills/pull-request/reference/ready-for-review.md in 3 of 3 runs
    • p15907-ready-posts-evidence-after-flip before: opened skills/pull-request/reference/ready-for-review.md in 3 of 3 runs
    • p15907-ready-posts-evidence-after-flip after: opened skills/pull-request/reference/ready-for-review.md in 3 of 3 runs

    Rows these runs measured (the row's file opened in at least 2 of 3 runs on each side, or loaded with the skill or agent):

    • RFR-2.5.5-evidence-step (skills/pull-request/reference/ready-for-review.md, case p15907-ready-merges-base-never-rebases): opened in 3 of 3 before, 3 of 3 after runs
    • SKILL-ready-row (skills/pull-request/SKILL.md, case p15907-ready-merges-base-never-rebases): measured; the file is loaded with the skill or agent, never opened, so no open count applies
    • RFR-2.5.5-evidence-step (skills/pull-request/reference/ready-for-review.md, case p15907-ready-posts-evidence-after-flip): opened in 3 of 3 before, 3 of 3 after runs
    • SKILL-ready-row (skills/pull-request/SKILL.md, case p15907-ready-posts-evidence-after-flip): measured; the file is loaded with the skill or agent, never opened, so no open count applies

    Rows these runs did not measure:

    • none

    Verdicts:

    • verdict p15907-ready-merges-base-never-rebases (ready-merges-base): PASS (no loss: after 1.000, before 1.000)
    • verdict p15907-ready-posts-evidence-after-flip (ready-posts-evidence): PASS (no loss: after 1.000, before 0.867, every registered target met)

    Cost: 6.73 USD (smoke and compare, the runs' costUsd).

    The cases live outside the repository; their full text:

    The 2 cases: prompt.md and case.yaml

    p15907-ready-merges-base-never-rebases

    prompt.md:

    ---
    description: Flip a draft to ready; the branch update decision picks a merge here, and verification runs last
    tags: [pull-request, source-control]
    plugins: ["../..", "gh-forge-path"]
    runs: 3
    max_turns: 25
    timeout_seconds: 900
    allowed_tools: [Read, Glob, Grep, Skill, Bash]
    expected_outcome: The branch update decision picks a merge (no rebase on this squash-landing repository, whichever row it matched, and the rule is reported), so the base is merged and not rebased, and the merge runs before gh pr ready
    ---
    
    PR 512 is an open draft on this branch, main has moved ahead of it on a file this branch also changes, and the last verification ran two commits ago. Flip it to ready for review.

    case.yaml:

    schema_version: "1.1"
    name: p15907-ready-merges-base-never-rebases
    context:
      scaffold_script: scaffold.sh

    p15907-ready-posts-evidence-after-flip

    prompt.md:

    ---
    description: After the ready flip, ready posts the evidence comment for the confirmed head (skills/pull-request/evals/evals.json entry 64, ready-posts-evidence-after-flip-for-confirmed-head, run against an offline forge)
    tags: [pull-request, source-control, routine]
    plugins: ["../..", "gh-forge-path"]
    runs: 3
    max_turns: 30
    timeout_seconds: 900
    allowed_tools: [Read, Glob, Grep, Skill, Bash, Write]
    expected_outcome: After gh pr ready, ready runs its evidence step for the confirmed head and posts one evidence comment through gh pr comment with the publishable capture attached, and the report has an evidence line saying it was created
    ---
    
    PR 655 is an open draft on this branch. Its change touched the cart page, the verification on the current head passed and was confirmed, and the end-to-end run earlier in this session wrote `evidence/e2e-summary.json` on this head. Flip it to ready for review with `--evidence evidence/e2e-summary.json`.
    
    I am here for this run.

    case.yaml:

    schema_version: "1.1"
    name: p15907-ready-posts-evidence-after-flip
    context:
      scaffold_script: scaffold.sh

    Posted by an agent session.

  14. kyle-sexton commented on Nov 19, 2026

    @kyle-sexton
    MemberAuthor

    Closing: each done-when item is met.

    Not done, as #17219's body says: nobody has run that dogfooding drive.

  15. removed
    host-run
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    Work status

    confirmed

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions