Skip to content

fix: accept security reviews for the selected CI attempt - #180929

Merged
steipete merged 1 commit into
mainfrom
fix/security-publisher-admission
Oct 22, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/security-publisher-admission

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes native inherited-failure landing rejecting a successful Security Review after completed CI adds its run and attempt to the review job name.

Related: #180808, #180800, #180806.

User Impact

Maintainers can submit qualified inherited-failure recoveries with the current Security Review publisher. Security enforcement, current authority, source verification, and exact-head checks remain required. There is no Control UI runtime change.

Why This Change Was Made

The publisher now emits review (PR, HEAD, CI_RUN, ATTEMPT) for completed CI; the verifier recognized only review (PR, HEAD). Match the selected CI run and attempt explicitly, while retaining the head-only name used by comment-triggered reviews. Reject mismatched attempts and ambiguous matching jobs.

The failure was observed on #180800: publisher run 39830107655, job 120003821034 and its Enforce security review step both succeeded. The existing verifier still refused before dispatch. #180806 has the same independently verified mismatch.

Evidence

Check Result
Regression with current publisher name on base Fails with the observed exact-head security-enforcement refusal
Focused native admission security cases 25 passed, including wrong-run, wrong-attempt, duplicate-job, head-only, and existing security refusals; 27.23 seconds
Tooling test typecheck Passed
Scoped production/test lint and formatting Passed
Independent review Passed; no actionable P0–P2 findings

Production LOC: 1,532 → 1,541 (+9); test/support LOC: 1,052 → 1,059 (+7). The existing admission owner keeps all decisions; no new helper, dependency, or policy exception is introduced.

@clawsweeper

clawsweeper Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@chatgpt-codex-connector

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

Copy link
Copy Markdown
Contributor

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-22T19:29:24.512034Z fdcd92c 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.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS labels Oct 22, 2026
@steipete
steipete enabled auto-merge (squash) October 22, 2026 19:34
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 22, 2026
@clawsweeper

clawsweeper Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

Accept attempt-qualified Security Review job names when they match the selected CI run and attempt.

Example: Security Review job 120003821034 succeeds for PR 180800, head e67539d, CI run 39827400108, attempt 1.

  • Before: The verifier rejects its four-part review job name despite successful security enforcement.
  • After: The verifier recognizes that exact CI attempt while retaining publisher, source, approval, and head checks.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The patch is focused and source-consistent, but required authority-chain proof is not supplied.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Maintainers cannot land otherwise qualified inherited-failure recoveries because successful current-publisher security jobs are rejected.
Reason: The maintainer-authored direction repairs a concrete integration failure without changing security policy or adding configuration.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep this PR open: it repairs a verified publisher/verifier mismatch still present on current main, and no introduced correctness defect was found.

Priority: P2
Reviewed head: fdcd92c11a17fca1eab951ac77d127d2fddd118e

Before merge

  • Add real behavior proof - Authority-chain proof required: the supplied focused cases exercise the real verifier with synthetic GitHub responses and explicitly avoid dispatch; show the matching CI attempt reaching protected head-pinned merge I/O with valid authority and stopping before I/O for an unauthorized writer or revoked approval, with sensitive values redacted. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Resolve security review attention item - No concrete bypass was found, but the newly accepted clearance path needs final-effect authority proof.
  • Resolve merge risk - The PR owner must validate that newly accepted attempt-qualified clearance preserves the privileged merge boundary for unauthorized or revoked authority.

Findings

None.

Tests

  • Missing end-to-end proof: Provide after-fix final-effect evidence for a matching attempt with valid authority and rejection before merge I/O for unauthorized or revoked authority.
Agent review details

How this fits together

The native inherited-failure landing verifier combines selected CI evidence with current Security Review authority before permitting a protected, head-pinned merge request.

flowchart LR
  A[Selected CI attempt] --> C[Prior CI admission]
  B[Security Review publisher] --> C
  C --> D[Current approval and policy checks]
  D --> E[Writer authority]
  E --> F[Head pinned merge request]
Loading

Technical review

Best possible solution:

Keep this focused matcher repair in the existing admission owner and demonstrate its allowed and forbidden paths through final dispatch.

Do we have a high-confidence way to reproduce the issue?

The actual successful four-part publisher job cannot match current main’s two-part predicate; source and GitHub job metadata establish the failure path without executing target code.

Is this the best way to solve the issue?

Passing the already validated selected run and attempt into the existing exact matcher is the smallest complete repair, and the retained head-only form serves the current comment-triggered publisher contract.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 0f28226448d7.

Merge-risk options

Maintainer options:

  1. Verify the protected dispatch boundary (recommended)
    The PR owner should provide a production-owner trace showing the matching attempt reaches head-pinned dispatch with valid authority, while an unauthorized writer or revoked approval stops before merge I/O.

Provenance checked

  • Security publisher recognition keeps the original intent (824982c: Require a protected publisher, successful exact-head enforcement, and current approval authority; readable history does not establish an earlier introduction.)
  • Accepted publisher events and head-only reviews keeps the original intent (refactor(ci): remove Security Review comment forwarding support #169510: Remove forwarded dispatch support while retaining direct approval-comment handling and normal CI-completion processing.)
  • Final admission authority ordering keeps the original intent (fix(pr): keep admin landing live on a busy main #172069: Refresh security, effective policy, and writer authority against the qualified main before privileged merge dispatch.)

Testing

Proof path: in-process harness.

Security

Needs attention: No concrete bypass was found, but the newly accepted clearance path needs final-effect authority proof.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 824982c adds scripts/pr-lib/merge-prior-ci-security.mjs:189 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 824982caa690; files: scripts/pr-lib/merge-prior-ci-security.mjs)

PR surface

Tests +7, Other +9. Total +16 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 10 3 +7
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 10 1 +9
Total 4 20 4 +16

Labels

Label changes:

  • add P2: A verified mismatch blocks the specialized inherited-failure maintainer landing route.
  • add merge-risk: 🚨 security-boundary: The patch expands which security clearance jobs privileged merge admission accepts, requiring final-effect authority validation.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Label justifications:

  • P2: A verified mismatch blocks the specialized inherited-failure maintainer landing route.
  • merge-risk: 🚨 security-boundary: The patch expands which security clearance jobs privileged merge admission accepts, requiring final-effect authority validation.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add final-effect proof for an unauthorized writer and prove approval revocation invalidates attempt-qualified clearance before merge I/O.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 22, 2026, 3:42 PM ET / 19:42 UTC.

@steipete
steipete merged commit 74f3083 into main Oct 22, 2026
128 of 129 checks passed
@steipete
steipete deleted the fix/security-publisher-admission branch October 22, 2026 19:44
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts size: XS status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant