Skip to content

Harden report-only PR gate provenance and remove unqualified merge authority - #5

Closed
frankxai wants to merge 3 commits into
mainfrom
agent/codex/pr-gate-hardening-20261103
Closed

frankxai wants to merge 3 commits into
mainfrom
agent/codex/pr-gate-hardening-20261103

Conversation

@frankxai

@frankxai frankxai commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Harden the shared report-only gate consumed by Starlight, without changing any consumer pin. Reject automatic merge and unsupported maker-provider claims; require full SHA equality and authenticated app/workflow/head/suite/current-attempt check origin. Bounded API calls, safe retries, trusted sticky-comment selection and head revalidation fail closed.

Actual independent Claude reviews in frankxai/agentic-ops#439 found and drove additional repairs: protect CI scripts/test implementations; replace title/attached-array fallback with API run/head/fork resolution; bind loaded code to documented job.workflow_sha/job.workflow_repository; pin privileged action refs; serialize only eligible reports by the resolved PR with cancel-in-progress=false. Missing provider attestation intentionally leaves reports WAITING/BLOCKED. merge=true is refused, and contents-write permission is removed.

Validation: ten negative tests failed before the initial repair; 62 focused tests now pass. Hosted pr-gate tests passed on the earlier refinements; final head run is checked separately. Third exact-source Claude follow-up pending. Review reconciliation/provenance and remaining limits are preserved in pr-gate/Review-threat-model-Codex-2026-11-03-v1.md, v2.md and v3.md. No live reusable-job-context or fork integration proof is claimed; conservative comment false positives and mutable candidate workflow contents remain diagnostic limits.

Intent: Frank's 3 November 2026 principal-engineer request, tracked by frankxai/agentic-ops#440. Author/provider Codex/OpenAI. No existing app grant, billing, default-branch rule, sensitive merge, consumer installation or production changed. Keep draft/report-only until actual final-head review and runtime qualification.

@frankxai

Copy link
Copy Markdown
Contributor Author

Closed as stale and conflicting under the 19 Oct harvest rule (conflicting, no commit since 2026-11-03), by Frank's ruling on 15 Nov 2026. Nothing is deleted: head 2259bd043e4260f1909b1d84951aaefdef0211ec is preserved as tag idea/pr-5 and branch agent/codex/pr-gate-hardening-20261103 is untouched. Reopen or cherry-pick from the tag if the work is wanted again.

@frankxai frankxai closed this Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant