Skip to content

Preserve pnpm security fixes without unrelated dependency churn - #71

Merged
omry merged 1 commit into
mainfrom
fix/security-only-resolution
Nov 5, 2026
Merged

omry merged 1 commit into
mainfrom
fix/security-only-resolution

Conversation

@omry

@omry omry commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

When pnpm’s initial security fix left findings, the fallback deleted the whole lockfile and regenerated every dependency. In OmegaConf, an unrelated core-js update caused the security-only guard to discard the package fixes.

Keep the lockfile and refresh only verified vulnerable package names with pnpm update --no-save. Skip names with safe locked versions, retain rollback on resolver failure, and keep the final security-only guard unchanged.

Validation: 1,767 Python tests, Ruff, formatting and Pyrefly passed. A local reproduction with OmegaConf’s saved inputs and pnpm 11.21.0 confirmed 17 of 21 original advisories fixed, with core-js unchanged; the resulting files passed frozen install and the production website build. Four advisories remain. Production change: 47/600 lines. Hosted acceptance and release remain pending.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 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-11-05T07:00:49.910805Z 734b01f Manual request
🔒 Security Review ✅ Completed 2026-11-05T06:53:26.941103Z 734b01f 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.

@omry

omry commented Nov 5, 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:ed6e633fd73a634c726d3e0ee8c862269491f5ccd6328ecd2d341010d1c01b32",
    "evidence": {
      "attestations": [],
      "candidate_revision_fingerprint": "sha256:ed6e633fd73a634c726d3e0ee8c862269491f5ccd6328ecd2d341010d1c01b32",
      "check_conclusions": [
        {
          "conclusion": "SUCCESS",
          "name": "repair-app",
          "run_id": 127097006178
        },
        {
          "conclusion": "SUCCESS",
          "name": "test",
          "run_id": 127097005716
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (22, npm, 11.9.0)",
          "run_id": 127097006016
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (22, pnpm, 11.20.0)",
          "run_id": 127097006046
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (22, pnpm, 11.21.0)",
          "run_id": 127097006007
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (24, npm, 11.9.0)",
          "run_id": 127097006044
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (24, pnpm, 11.20.0)",
          "run_id": 127097005865
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (24, pnpm, 11.21.0)",
          "run_id": 127097005937
        }
      ],
      "delivery_deferral_ledger_digest": "sha256:4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945",
      "finding_dispositions_digest": "sha256:4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945",
      "operation_identity": "sha256:291c867992e99eedb5115b6243811f93b2573d1015ff7e0c4e58cbd98e75de47",
      "review_request": {
        "body_digest": "sha256:2f4bb1ac9c74cda3c280a73474c01916059de5374b5f2cb8d9ffb216a9f0919d",
        "id": 6651864313
      },
      "review_result": {
        "body_digest": "sha256:2799cb0572df31274dcc5771f8dd7b5d78cfd7fa60e7bfc0a0746c74258a833a",
        "id": 6651886877
      }
    },
    "evidence_fingerprint": "sha256:798eda320eca593d40619286a9f18ae7c054bbc98b12af7c3196513e3f990592",
    "head_sha": "734b01f05f7a563e627d35bebffd4c9c8836dcd0",
    "operation_identity": "sha256:291c867992e99eedb5115b6243811f93b2573d1015ff7e0c4e58cbd98e75de47",
    "review_request_id": 6651864313,
    "review_result_id": 6651886877,
    "status": "approved-evidence-recorded"
  },
  "candidate_revision_fingerprint": "sha256:ed6e633fd73a634c726d3e0ee8c862269491f5ccd6328ecd2d341010d1c01b32",
  "check_conclusions": [
    {
      "conclusion": "SUCCESS",
      "name": "repair-app",
      "run_id": 127097006178
    },
    {
      "conclusion": "SUCCESS",
      "name": "test",
      "run_id": 127097005716
    },
    {
      "conclusion": "SUCCESS",
      "name": "toolchain (22, npm, 11.9.0)",
      "run_id": 127097006016
    },
    {
      "conclusion": "SUCCESS",
      "name": "toolchain (22, pnpm, 11.20.0)",
      "run_id": 127097006046
    },
    {
      "conclusion": "SUCCESS",
      "name": "toolchain (22, pnpm, 11.21.0)",
      "run_id": 127097006007
    },
    {
      "conclusion": "SUCCESS",
      "name": "toolchain (24, npm, 11.9.0)",
      "run_id": 127097006044
    },
    {
      "conclusion": "SUCCESS",
      "name": "toolchain (24, pnpm, 11.20.0)",
      "run_id": 127097005865
    },
    {
      "conclusion": "SUCCESS",
      "name": "toolchain (24, pnpm, 11.21.0)",
      "run_id": 127097005937
    }
  ],
  "check_observations": [
    {
      "checks": [
        {
          "conclusion": "SUCCESS",
          "name": "repair-app",
          "run_id": 127097006178,
          "run_status": "completed",
          "status": "success",
          "url": "https://github.com/hydra-ecosystem/github-actions/actions/runs/41982944512/job/127097006178"
        },
        {
          "conclusion": "SUCCESS",
          "name": "test",
          "run_id": 127097005716,
          "run_status": "completed",
          "status": "success",
          "url": "https://github.com/hydra-ecosystem/github-actions/actions/runs/41982944512/job/127097005716"
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (22, npm, 11.9.0)",
          "run_id": 127097006016,
          "run_status": "completed",
          "status": "success",
          "url": "https://github.com/hydra-ecosystem/github-actions/actions/runs/41982944512/job/127097006016"
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (22, pnpm, 11.20.0)",
          "run_id": 127097006046,
          "run_status": "completed",
          "status": "success",
          "url": "https://github.com/hydra-ecosystem/github-actions/actions/runs/41982944512/job/127097006046"
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (22, pnpm, 11.21.0)",
          "run_id": 127097006007,
          "run_status": "completed",
          "status": "success",
          "url": "https://github.com/hydra-ecosystem/github-actions/actions/runs/41982944512/job/127097006007"
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (24, npm, 11.9.0)",
          "run_id": 127097006044,
          "run_status": "completed",
          "status": "success",
          "url": "https://github.com/hydra-ecosystem/github-actions/actions/runs/41982944512/job/127097006044"
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (24, pnpm, 11.20.0)",
          "run_id": 127097005865,
          "run_status": "completed",
          "status": "success",
          "url": "https://github.com/hydra-ecosystem/github-actions/actions/runs/41982944512/job/127097005865"
        },
        {
          "conclusion": "SUCCESS",
          "name": "toolchain (24, pnpm, 11.21.0)",
          "run_id": 127097005937,
          "run_status": "completed",
          "status": "success",
          "url": "https://github.com/hydra-ecosystem/github-actions/actions/runs/41982944512/job/127097005937"
        }
      ],
      "head_sha": "734b01f05f7a563e627d35bebffd4c9c8836dcd0",
      "id": "sha256:809ed02946e73760053ff37d504cd414fbc8e02cbe931507e85e7e9fb154d5d7",
      "required_checks": [
        "repair-app",
        "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": [],
  "pr": {
    "base_ref": "main",
    "base_sha": "5fa463726761775d9a4ee3cf414cfb3d5904921c",
    "body_digest": "sha256:f984dd6c0f3d8e94ac006f5c1cb8206397792e075ea9af4bf1abbe4d67fd08d8",
    "body_identity_version": 2,
    "diff_digest": "sha256:e1a01bf851dc5d7931de5cc0dd309baf076b420e9d05ed338e7b015acc0d7150",
    "head_ref": "fix/security-only-resolution",
    "head_sha": "734b01f05f7a563e627d35bebffd4c9c8836dcd0",
    "pr": 71,
    "repository": "hydra-ecosystem/github-actions",
    "scope_authority": [],
    "title_digest": "sha256:83cee64f8a82a5fe5f427653edf7bc18b1d5223bca6fa2b206393060b89a1d1d"
  },
  "record_version": 4,
  "review_observations": [],
  "review_requests": [
    {
      "base_established_at": "2026-11-05T06:48:51Z",
      "base_ref": "main",
      "base_sha": "5fa463726761775d9a4ee3cf414cfb3d5904921c",
      "body_digest": "sha256:2f4bb1ac9c74cda3c280a73474c01916059de5374b5f2cb8d9ffb216a9f0919d",
      "created_at": "2026-11-05T06:59:21Z",
      "head_sha": "734b01f05f7a563e627d35bebffd4c9c8836dcd0",
      "id": 6651864313,
      "kind": "regular-review"
    }
  ],
  "review_results": [
    {
      "base_ref": "main",
      "base_sha": "5fa463726761775d9a4ee3cf414cfb3d5904921c",
      "body_digest": "sha256:2799cb0572df31274dcc5771f8dd7b5d78cfd7fa60e7bfc0a0746c74258a833a",
      "commit_id": "734b01f05f7a563e627d35bebffd4c9c8836dcd0",
      "id": 6651886877,
      "inline_message_ids": [],
      "request_comment_id": 6651864313,
      "result_kind": "clean",
      "status": "result",
      "submitted_at": "2026-11-05T07:00:48Z",
      "unresolved_thread_ids": []
    }
  ],
  "revision_fingerprint": "sha256:ed6e633fd73a634c726d3e0ee8c862269491f5ccd6328ecd2d341010d1c01b32",
  "rounds": [
    {
      "applied_fix_paths": [],
      "disposition_changes": [],
      "effective_diff_digest": "sha256:e1a01bf851dc5d7931de5cc0dd309baf076b420e9d05ed338e7b015acc0d7150",
      "finding_ids": [],
      "invariants": [
        "Security-only proposals retain only confirmed security fixes and reject unrelated dependency changes.",
        "Named pnpm refresh preserves the lockfile, skips mixed safe/vulnerable names, and restores the saved proposal after resolution failure.",
        "Existing project constraints, explicit pins, cooldown policy, and final security guard remain enforced."
      ],
      "outcome": "clean",
      "proposed_fix_paths": [],
      "resulting_head": "734b01f05f7a563e627d35bebffd4c9c8836dcd0",
      "review_observation_id": null,
      "review_request_id": 6651864313,
      "review_result_id": 6651886877,
      "reviewed_head": "734b01f05f7a563e627d35bebffd4c9c8836dcd0",
      "root_cause": "The full-lockfile fallback moved unrelated core-js and caused valid security fixes to be discarded. Named verified targets avoid that drift. The exact candidate is clean in regular Codex review; all eight CI checks and the complete nine-command local profile passed, including 1767 Python and 257 Worker tests. The saved-input real pnpm reproduction fixed 17 of 21 original advisories and passed frozen install and production build. No correction or synchronization occurred in this round.",
      "round": 1,
      "unresolved_current_slice_findings": 0,
      "unresolved_design_blockers": 0
    }
  ],
  "schema": "awd:swe:pr-cycle-state",
  "version": 2
}

@omry

omry commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

Exact head: 734b01f

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 734b01f05f

ℹ️ 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 Nov 5, 2026
@omry
omry merged commit 70d06de into main Nov 5, 2026
8 checks passed
@omry
omry deleted the fix/security-only-resolution branch November 5, 2026 07:32
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