Skip to content

fix(pr-gate): ignore hidden reviewer metadata - #8

Merged
frankxai merged 3 commits into
mainfrom
agent/codex/pr-gate-html-metadata-20261104
Nov 9, 2026
Merged

frankxai merged 3 commits into
mainfrom
agent/codex/pr-gate-html-metadata-20261104

Conversation

@frankxai

@frankxai frankxai commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Hidden Codex thresholds currently veto clean commit-bound reviews. This fix reads GitHub's rendered representations instead of approximating Markdown visibility. Raw Markdown remains available for typed advisory markers and existing head association; comments still cannot sign off.

The producer requests the documented full-media response for issue comments and reviews, retaining body_text and body_html. Plain text omits real severity-badge image labels, so the decision also reads image alt text from rendered HTML while skipping comments and respecting quoted tags/attributes. Missing or malformed rendered fields hold the current review evidence; they cannot grant approval.

Intent: Fixes #7
Maker-Harness: Codex
Checker-Harness: Pending independent non-Codex review

Verification receipt

  • Exact source head: 7e29862b948d83f6177dc176fd95fbd4845543eb.
  • node --test pr-gate/decide.test.mjs: 37/37 pass, Node v24.14.0. Tests execute the actual producer with every network request intercepted, including report writes; verify full-media headers, pagination, rendered-field mapping, missing evidence, raw metadata-only head association and retained visible badges.
  • Real GitHub read/render probes reproduced an indented-code false block before this repair. A plain-text-only approach also failed a reproduced severity-badge case. The final visibility replay passes 10/10: nine real API-rendered badge payloads remain blocking; the authenticated GFM hidden-metadata example does not. Replay uses synthetic approval/head contexts solely to exercise visibility, and posts no review/status/comment.
  • Existing review identity, current/stale/missing commit, comment-not-signoff, CI and protected-path cases remain covered. Both source modules pass node --check; git diff --check passes.
  • Staged Infisical scan: exit 0, empty findings array. No dependency, permission, workflow or caller-pin change.
  • GitHub run 41786623292, attempt 1, job 126430124657 passed 37/37 on Node v22.23.4, runner GitHub Actions 1000000778, tested merge 14635831c50e62417adda61270c83a23c0fdaa83.

Integration

Draft #5 separately hardens provenance and removes unqualified merge authority. Preserve its ownership and stronger approval/provider-evidence rules. A refreshed offline rehearsal combines exact #5 2259bd0 with this head and passes 82/82 tests. It reconciles approval/provider expectations and configures the producer fixture with authenticated app/workflow/suite/attempt evidence. P5's client permits only the new Accept override while retaining controlled authorization/API-version headers. The integration delta applies to exact P5 copies; neither branch was changed by the rehearsal. This is not an independent review or live reusable-job/fork proof. The earlier 71-test packet is superseded. This PR remains the focused visibility repair; it does not take over #5.

A substantive non-Codex exact-head review is required before readiness. Frank owns protected integration; caller rollout must use the actual merged SHA afterward. The author will not approve or merge this PR. A reviewed revert of the three changed files is the rollback.

Ignore HTML-comment metadata when reading findings or clean review text,
while retaining head association for visible bot-comment findings.

Intent: #7
@frankxai
frankxai marked this pull request as ready for review November 9, 2026 11:15
@frankxai

frankxai commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

starlight-signoff: harness=antigravity verdict=pass sha=7e29862b948d83f6177dc176fd95fbd4845543eb

Exact-SHA review at 7e29862: verified pr-gate/decide.mjs HTML comment tokenizer patch and unit tests; CI green, zero FRANK_PATHS.

Bound to 7e29862 — a new push invalidates this sign-off. /gate

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-09T11:15:45.722436Z
We couldn’t complete this review. Comment @codex review to try again.
7e29862 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.

@frankxai
frankxai merged commit 8184fd1 into main Nov 9, 2026
1 check passed
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@frankxai
frankxai deleted the agent/codex/pr-gate-html-metadata-20261104 branch November 9, 2026 11:15
@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

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.

pr-gate: Codex metadata in an HTML comment false-blocks the head it just reviewed

1 participant