Skip to content

Preserve local-patch issue findings on resolution - #30

Merged
omry merged 1 commit into
mainfrom
pr30
Oct 19, 2026
Merged

omry merged 1 commit into
mainfrom
pr30

Conversation

@omry

@omry omry commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Resolved local-patch notification issues currently lose their advisory table when the reporter replaces their body. Preserve the last findings and maintainer notes, post a resolution comment with the verification run, then close via a state-only update.

Repeated healthy checks leave a closed issue unchanged. Incomplete evidence cannot close it, and a failed comment request leaves the issue open. Existing active-notification updates and configuration-issue reporting keep their behavior.

Validation: 1,148 public tests pass, including body preservation, comment-before-close, comment failures and repeated healthy checks; lint, formatting and runtime type checks pass.

@omry
omry marked this pull request as ready for review October 19, 2026 17:49
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T18:07:58.712302Z c0bfc55 Manual request
🔒 Security Review ✅ Completed 2026-10-19T17:51:18.212377Z 0275508 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.

@omry

omry commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor Author

PR-cycle state — maintained automatically. Do not edit by hand.

Mechanical PR-cycle state (JSON)
{
  "approval": {
    "candidate_revision_fingerprint": "sha256:940625560a01f68c214aff2472fc917ed35419fe81449ecbb3fa7ec32a045c19",
    "evidence": {
      "attestations": [],
      "candidate_revision_fingerprint": "sha256:940625560a01f68c214aff2472fc917ed35419fe81449ecbb3fa7ec32a045c19",
      "check_conclusions": [
        {
          "conclusion": "SUCCESS",
          "name": "test",
          "run_id": 118220462329
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (22, npm, 11.9.0)",
          "run_id": 118220462591
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (22, pnpm, 11.20.0)",
          "run_id": 118220462589
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (22, pnpm, 11.21.0)",
          "run_id": 118220462748
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (24, npm, 11.9.0)",
          "run_id": 118220462615
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (24, pnpm, 11.20.0)",
          "run_id": 118220462518
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (24, pnpm, 11.21.0)",
          "run_id": 118220462811
        }
      ],
      "delivery_deferral_ledger_digest": "sha256:4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945",
      "finding_dispositions_digest": "sha256:20a87dafea722d49167ae1bca4cddc39996a7bad85d36470bf4d33e26e179bba",
      "operation_identity": "sha256:fbaa530da32b441b8953546f0c07d1f3779ccca050a5bc10b6329452599a90dd",
      "review_request": {
        "body_digest": "sha256:d785e53f3cea9c8b44865b5be385342d15bc5356b2bdd8957ba165150520fcf7",
        "id": 6273903697
      },
      "review_result": {
        "body_digest": "sha256:d0fdd0450d786f92d3bcd240f77291d5b7e42dcd57a47aa9141ec2f5156f60a1",
        "id": 6273940337
      }
    },
    "evidence_fingerprint": "sha256:da52b10c70017e7f1fba0b803e0b8f703acdfc45dd8e1cbd84c46230ed5367b7",
    "head_sha": "c0bfc55212fa8985421da714a3b496baaaea0997",
    "operation_identity": "sha256:fbaa530da32b441b8953546f0c07d1f3779ccca050a5bc10b6329452599a90dd",
    "review_request_id": 6273903697,
    "review_result_id": 6273940337,
    "status": "approved-evidence-recorded"
  },
  "candidate_revision_fingerprint": "sha256:940625560a01f68c214aff2472fc917ed35419fe81449ecbb3fa7ec32a045c19",
  "check_conclusions": [
    {
      "conclusion": "SUCCESS",
      "name": "test",
      "run_id": 118220462329
    },
    {
      "conclusion": "SUCCESS",
      "name": "toolchain (22, npm, 11.9.0)",
      "run_id": 118220462591
    },
    {
      "conclusion": "SUCCESS",
      "name": "toolchain (22, pnpm, 11.20.0)",
      "run_id": 118220462589
    },
    {
      "conclusion": "SUCCESS",
      "name": "toolchain (22, pnpm, 11.21.0)",
      "run_id": 118220462748
    },
    {
      "conclusion": "SUCCESS",
      "name": "toolchain (24, npm, 11.9.0)",
      "run_id": 118220462615
    },
    {
      "conclusion": "SUCCESS",
      "name": "toolchain (24, pnpm, 11.20.0)",
      "run_id": 118220462518
    },
    {
      "conclusion": "SUCCESS",
      "name": "toolchain (24, pnpm, 11.21.0)",
      "run_id": 118220462811
    }
  ],
  "check_observations": [
    {
      "checks": [
        {
          "conclusion": "SUCCESS",
          "name": "test",
          "run_id": 118213248039,
          "run_status": "completed",
          "status": "success",
          "url": "https://github.com/hydra-ecosystem/github-actions/actions/runs/39297362341/job/118213248039"
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (22, npm, 11.9.0)",
          "run_id": 118213248563,
          "run_status": "completed",
          "status": "success",
          "url": "https://github.com/hydra-ecosystem/github-actions/actions/runs/39297362341/job/118213248563"
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (22, pnpm, 11.20.0)",
          "run_id": 118213248544,
          "run_status": "completed",
          "status": "success",
          "url": "https://github.com/hydra-ecosystem/github-actions/actions/runs/39297362341/job/118213248544"
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (22, pnpm, 11.21.0)",
          "run_id": 118213248639,
          "run_status": "completed",
          "status": "success",
          "url": "https://github.com/hydra-ecosystem/github-actions/actions/runs/39297362341/job/118213248639"
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (24, npm, 11.9.0)",
          "run_id": 118213248541,
          "run_status": "completed",
          "status": "success",
          "url": "https://github.com/hydra-ecosystem/github-actions/actions/runs/39297362341/job/118213248541"
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (24, pnpm, 11.20.0)",
          "run_id": 118213248649,
          "run_status": "completed",
          "status": "success",
          "url": "https://github.com/hydra-ecosystem/github-actions/actions/runs/39297362341/job/118213248649"
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (24, pnpm, 11.21.0)",
          "run_id": 118213248481,
          "run_status": "completed",
          "status": "success",
          "url": "https://github.com/hydra-ecosystem/github-actions/actions/runs/39297362341/job/118213248481"
        }
      ],
      "head_sha": "02755086b1ae56df105f82be7ebb0b2e2a32e63c",
      "id": "sha256:aac9cde9c4c5908391c32b3a8db2c770ac6a20124a0bf9c51d4048ce7fe85f20",
      "required_checks": [
        "test",
        "toolchain (22, npm, 11.9.0)",
        "toolchain (22, pnpm, 11.20.0)",
        "toolchain (22, pnpm, 11.21.0)",
        "toolchain (24, npm, 11.9.0)",
        "toolchain (24, pnpm, 11.20.0)",
        "toolchain (24, pnpm, 11.21.0)"
      ],
      "status": "success"
    },
    {
      "checks": [
        {
          "conclusion": "SUCCESS",
          "name": "test",
          "run_id": 118220462329,
          "run_status": "completed",
          "status": "success",
          "url": "https://github.com/hydra-ecosystem/github-actions/actions/runs/39299446963/job/118220462329"
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (22, npm, 11.9.0)",
          "run_id": 118220462591,
          "run_status": "completed",
          "status": "success",
          "url": "https://github.com/hydra-ecosystem/github-actions/actions/runs/39299446963/job/118220462591"
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (22, pnpm, 11.20.0)",
          "run_id": 118220462589,
          "run_status": "completed",
          "status": "success",
          "url": "https://github.com/hydra-ecosystem/github-actions/actions/runs/39299446963/job/118220462589"
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (22, pnpm, 11.21.0)",
          "run_id": 118220462748,
          "run_status": "completed",
          "status": "success",
          "url": "https://github.com/hydra-ecosystem/github-actions/actions/runs/39299446963/job/118220462748"
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (24, npm, 11.9.0)",
          "run_id": 118220462615,
          "run_status": "completed",
          "status": "success",
          "url": "https://github.com/hydra-ecosystem/github-actions/actions/runs/39299446963/job/118220462615"
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (24, pnpm, 11.20.0)",
          "run_id": 118220462518,
          "run_status": "completed",
          "status": "success",
          "url": "https://github.com/hydra-ecosystem/github-actions/actions/runs/39299446963/job/118220462518"
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (24, pnpm, 11.21.0)",
          "run_id": 118220462811,
          "run_status": "completed",
          "status": "success",
          "url": "https://github.com/hydra-ecosystem/github-actions/actions/runs/39299446963/job/118220462811"
        }
      ],
      "head_sha": "c0bfc55212fa8985421da714a3b496baaaea0997",
      "id": "sha256:d09fcf74d0eef6d8f1b671ec3cb2ca0928372013c61eb721f5b9e31fcb648198",
      "required_checks": [
        "test",
        "toolchain (22, npm, 11.9.0)",
        "toolchain (22, pnpm, 11.20.0)",
        "toolchain (22, pnpm, 11.21.0)",
        "toolchain (24, npm, 11.9.0)",
        "toolchain (24, pnpm, 11.20.0)",
        "toolchain (24, pnpm, 11.21.0)"
      ],
      "status": "success"
    }
  ],
  "delivery_deferral_ledger_digest": "sha256:4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945",
  "delivery_deferrals": [],
  "findings": [
    {
      "classification": "current-slice-defect",
      "evidence": [
        "https://github.com/hydra-ecosystem/github-actions/pull/30#discussion_r4317049584",
        "https://github.com/hydra-ecosystem/github-actions/pull/30#discussion_r4317141007"
      ],
      "id": "codex-inline-4317049584",
      "invariant": "Retrying a partial comment-before-close transition must reuse the existing resolution comment instead of adding duplicate notifications.",
      "proposed_fix_paths": [
        "node/runtime/configuration_issue.py",
        "node/tests/test_configuration_issue.py",
        "node/tests/test_local_patches.py"
      ],
      "rationale": "Reproduced successful comment POST followed by failed close PATCH; a later healthy run posts a second resolution comment. Bind a bot-owned resolution marker to the preserved finding body and reuse it on retry.",
      "source_url": "https://github.com/hydra-ecosystem/github-actions/pull/30#discussion_r4317049584",
      "status": "fixed",
      "thread_id": "PRRT_kwDOVJzQB86uCbga"
    }
  ],
  "pr": {
    "base_ref": "main",
    "base_sha": "f48a4357970210297abd60283d0b133c120abe66",
    "body_digest": "sha256:a7014b630129e79a92b25260532a58f5ba093091b2da291250a66aa80c7999f1",
    "diff_digest": "sha256:30757cab016b70d431680ad0def65b4666b18a0f778b2a96018e096821b91281",
    "head_ref": "pr30",
    "head_sha": "c0bfc55212fa8985421da714a3b496baaaea0997",
    "pr": 30,
    "repository": "hydra-ecosystem/github-actions",
    "scope_authority": [],
    "title_digest": "sha256:619c97d1d900999c3b24ac185a3096a0d02ac841105c575ae6c9626358840a1a"
  },
  "record_version": 7,
  "review_observations": [],
  "review_requests": [
    {
      "base_established_at": "2026-10-19T17:49:05Z",
      "base_ref": "main",
      "base_sha": "f48a4357970210297abd60283d0b133c120abe66",
      "body_digest": "sha256:0c37edfd9b0ac282a2a9eca05ead1b021c10d2d088352e6b9d3e84e8ffc20f06",
      "created_at": "2026-10-19T17:53:11Z",
      "head_sha": "02755086b1ae56df105f82be7ebb0b2e2a32e63c",
      "id": 6273647673,
      "kind": "regular-review"
    },
    {
      "base_established_at": "2026-10-19T17:49:05Z",
      "base_ref": "main",
      "base_sha": "f48a4357970210297abd60283d0b133c120abe66",
      "body_digest": "sha256:d785e53f3cea9c8b44865b5be385342d15bc5356b2bdd8957ba165150520fcf7",
      "created_at": "2026-10-19T18:06:30Z",
      "head_sha": "c0bfc55212fa8985421da714a3b496baaaea0997",
      "id": 6273903697,
      "kind": "regular-review"
    }
  ],
  "review_results": [
    {
      "base_ref": "main",
      "base_sha": "f48a4357970210297abd60283d0b133c120abe66",
      "body_digest": "sha256:fd4432e5357634bf35e09c4caa7c2ff641e1ce3166187687b4c28bd77c848059",
      "commit_id": "02755086b1ae56df105f82be7ebb0b2e2a32e63c",
      "id": 5575562778,
      "inline_message_ids": [
        4317049584
      ],
      "request_comment_id": 6273647673,
      "result_kind": "findings",
      "status": "result",
      "submitted_at": "2026-10-19T17:54:44Z",
      "unresolved_thread_ids": [
        "PRRT_kwDOVJzQB86uCbga"
      ]
    },
    {
      "base_ref": "main",
      "base_sha": "f48a4357970210297abd60283d0b133c120abe66",
      "body_digest": "sha256:d0fdd0450d786f92d3bcd240f77291d5b7e42dcd57a47aa9141ec2f5156f60a1",
      "commit_id": "c0bfc55212fa8985421da714a3b496baaaea0997",
      "id": 6273940337,
      "inline_message_ids": [],
      "request_comment_id": 6273903697,
      "result_kind": "clean",
      "status": "result",
      "submitted_at": "2026-10-19T18:07:57Z",
      "unresolved_thread_ids": []
    }
  ],
  "revision_fingerprint": "sha256:940625560a01f68c214aff2472fc917ed35419fe81449ecbb3fa7ec32a045c19",
  "rounds": [
    {
      "applied_fix_paths": [
        "node/runtime/configuration_issue.py",
        "node/tests/test_configuration_issue.py",
        "node/tests/test_local_patches.py"
      ],
      "disposition_changes": [
        "codex-inline-4317049584"
      ],
      "effective_diff_digest": "sha256:30757cab016b70d431680ad0def65b4666b18a0f778b2a96018e096821b91281",
      "finding_ids": [
        "codex-inline-4317049584"
      ],
      "invariants": [
        "Retrying partial resolution must reuse the bot comment and preserve the original issue body."
      ],
      "outcome": "corrected-head-needs-review",
      "proposed_fix_paths": [
        "node/runtime/configuration_issue.py",
        "node/tests/test_configuration_issue.py",
        "node/tests/test_local_patches.py"
      ],
      "resulting_head": "c0bfc55212fa8985421da714a3b496baaaea0997",
      "review_observation_id": null,
      "review_request_id": 6273647673,
      "review_result_id": 5575562778,
      "reviewed_head": "02755086b1ae56df105f82be7ebb0b2e2a32e63c",
      "root_cause": "Comment-before-close had no retry identity. Bot-owned markers now bind comments to preserved findings and bounded history lookup reuses them.",
      "round": 1,
      "unresolved_current_slice_findings": 0,
      "unresolved_design_blockers": 0
    },
    {
      "applied_fix_paths": [],
      "disposition_changes": [],
      "effective_diff_digest": "sha256:30757cab016b70d431680ad0def65b4666b18a0f778b2a96018e096821b91281",
      "finding_ids": [],
      "invariants": [
        "Resolved issues retain original findings and receive one retry-safe resolution comment before closure."
      ],
      "outcome": "clean",
      "proposed_fix_paths": [],
      "resulting_head": "c0bfc55212fa8985421da714a3b496baaaea0997",
      "review_observation_id": null,
      "review_request_id": 6273903697,
      "review_result_id": 6273940337,
      "reviewed_head": "c0bfc55212fa8985421da714a3b496baaaea0997",
      "root_cause": "No remaining findings in the fresh corrected-head review.",
      "round": 2,
      "unresolved_current_slice_findings": 0,
      "unresolved_design_blockers": 0
    }
  ],
  "schema": "awd:swe:pr-cycle-state",
  "version": 2
}

@omry

omry commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

@codex, regular review 0275508

@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: 02755086b1

ℹ️ 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".

Comment thread node/runtime/configuration_issue.py Outdated
Resolved local-patch notification issues currently lose their advisory table when the reporter replaces their body. Preserve the last findings and maintainer notes, post a resolution comment with the verification run, then close via a state-only update.

Repeated healthy checks leave a closed issue unchanged. Incomplete evidence cannot close it, and a failed comment request leaves the issue open. Existing active-notification updates and configuration-issue reporting keep their behavior.

Validation: 1,148 public tests pass, including body preservation, comment-before-close, comment failures and repeated healthy checks; lint, formatting and runtime type checks pass.
@omry

omry commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

@codex, regular review c0bfc55

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: c0bfc55212

ℹ️ 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".

@omry omry added the approved label Oct 19, 2026
@omry
omry merged commit 241d646 into main Oct 19, 2026
14 checks passed
@omry
omry deleted the pr30 branch October 19, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant