GeezerVison is showing github.com — feat(ci): require UI screenshot evidence for PRs mentioning gui by Wibias · Pull Request #960 · lidge-jun/opencodex
Conversation
Wibias
commented
Aug 3, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
The enforce-target PR gate now requires UI screenshot evidence for pull requests whose title or description mentions gui (case-insensitive whole word). Such PRs are treated as GUI changes: the check posts a UI screenshot required notice, keeps the PR in draft, and clears automatically once a rendered screenshot image is embedded in the description (the gate re-runs on every edited event).
Only image syntax GitHub actually renders counts as evidence: inline markdown images, reference-style images (![alt][id] plus [id]: url, including collapsed form), and <img> tags with a non-empty src. Image syntax inside HTML comments or fenced code blocks does not count.
What changes:
pr-quality.cjs — new hasGuiCue / hasScreenshotEvidence predicates and a missing_ui_screenshot failure; non-rendered regions (HTML comments, fenced code) are stripped before evidence matching; the template's own screenshot instruction is stripped as boilerplate so it cannot arm the gate.
enforce-pr-target.yml — passes the PR title into the gate, adds the screenshot-required comment section, tracks the new failure in the persisted state, and reports it in the check summary.
- PR template, contributing docs, and branch-policy docs (
AGENTS.md, MAINTAINERS.md) are kept in sync with the new requirement.

Test plan
node --test .github/scripts/pr-quality.test.cjs — 36/36, including whole-word gui matching, rendered-only screenshot evidence (inline, reference-style, <img src>, fenced/comment exclusions), and no false trigger from the template's own instruction.
node --test .github/scripts/enforce-pr-target.test.cjs — 9/9.
bun test tests/ci-workflows.test.ts — 72/72, including executed harness scenarios: gui in title/body without screenshot fails and drafts; inline and reference-style screenshots pass; fenced-only image syntax still fails; guidance does not trigger.
bun run typecheck, bun run lint:gui, bun run privacy:scan, and the doctor gate are green on the base tree.
- Full local suite on the base tree: 7854 pass / 33 fail, with all failures environmental on this machine (Windows symlink
EPERM, SQLite lock contention from an orphaned runner, one machine-state assertion) and unrelated to this change.
Checklist
- Scope stays focused on the PR gate and its docs.
- Docs or release notes were updated when needed (contributing guide + branch-policy docs).
- Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults — workflow change; per
MAINTAINERS.md this needs maintainer sponsorship (maintainer-sponsored label) before merge.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Aug 3, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Warning
Review limit reached
@Wibias, you've reached your PR review limit, so we couldn't start this review.
Next review available in: 7 minutes
Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).
How can I continue?
After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.
To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.
How do review limits work?
CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.
For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.
Please refer docs for additional details.
Review details
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 6f6b947b-bbc0-4f6e-82d8-ae30691a7376
📥 Commits
Reviewing files that changed from the base of the PR and between e82631a and 40291f8.
📒 Files selected for processing (3)
.github/scripts/pr-quality.cjs
.github/scripts/pr-quality.test.cjs
tests/ci-workflows.test.ts
📝 Walkthrough
Walkthrough
The PR adds GUI cue detection and embedded screenshot validation to PR quality checks. The workflow reports and persists screenshot failures. Repository policies, the pull request template, and contributor documentation describe the requirement.
Changes
GUI Screenshot Enforcement
| Layer / File(s) |
Summary |
GUI cue and screenshot validation .github/scripts/pr-quality.cjs, .github/scripts/pr-quality.test.cjs |
hasGuiCue detects whole-word GUI cues in titles and cleaned descriptions. hasScreenshotEvidence accepts embedded Markdown and HTML images. Tests cover valid matches, false positives, invalid inputs, template exclusion, and missing or present screenshots. |
Workflow failure and recovery handling .github/workflows/enforce-pr-target.yml, tests/ci-workflows.test.ts |
The workflow passes the pull request title to collectPrQualityFailures, reports missing_ui_screenshot, persists screenshotFailed, and confirms screenshot coverage after recovery. Workflow tests cover GUI titles, GUI descriptions, embedded screenshots, and non-GUI guidance text. |
Contributor policy and template updates .github/PULL_REQUEST_TEMPLATE.md, AGENTS.md, MAINTAINERS.md, docs-site/src/content/docs/contributing.md, docs-site/src/content/docs/contributing/pr-quality.md |
The template, repository policies, and contributor documentation require a UI screenshot when a pull request title or description mentions gui. |
Estimated code review effort: 3 (Moderate) | ~20 minutes
Sequence Diagram(s)
sequenceDiagram
participant PR as Pull request
participant Workflow as enforce-pr-target.yml
participant Validator as pr-quality.cjs
participant Comment as PR quality comment
PR->>Workflow: Trigger quality check
Workflow->>Validator: Pass title and description
Validator-->>Workflow: Return missing_ui_screenshot or success
Workflow->>Comment: Publish failure or screenshot coverage result
Loading
Possibly related PRs
Suggested labels: documentation
Suggested reviewers: ingwannu, lidge-jun
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
| Check name |
Status |
Explanation |
| Docstring Coverage |
✅ Passed |
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
| Linked Issues check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
| Description Check |
✅ Passed |
Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check |
✅ Passed |
The title clearly and concisely describes the primary change: requiring UI screenshot evidence for pull requests that mention gui. |
✨ Finishing Touches
📝 Generate docstrings
- Create stacked PR
- Commit on current branch
🧪 Generate unit tests (beta)
- Create PR with unit tests
- Commit unit tests in branch
codex/gui-screenshot-gate
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/scripts/pr-quality.cjs:
- Around line 151-153: Update hasScreenshotEvidence to remove or otherwise
exclude HTML comments and fenced code blocks before applying MARKDOWN_IMAGE_RE
and HTML_IMAGE_RE, so only rendered image syntax counts as evidence. Preserve
the existing non-string behavior and add regression coverage for Markdown and
HTML image syntax inside both commented and fenced regions.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: b143b441-5e09-4ee8-8f6b-184ead974335
📥 Commits
Reviewing files that changed from the base of the PR and between 50752b9 and e82631a.
⛔ Files ignored due to path filters (1)
assets/pr-gate-screenshot-required.png is excluded by !**/*.png
📒 Files selected for processing (9)
.github/PULL_REQUEST_TEMPLATE.md
.github/scripts/pr-quality.cjs
.github/scripts/pr-quality.test.cjs
.github/workflows/enforce-pr-target.yml
AGENTS.md
MAINTAINERS.md
docs-site/src/content/docs/contributing.md
docs-site/src/content/docs/contributing/pr-quality.md
tests/ci-workflows.test.ts
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
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: e82631ab6f
ℹ️ 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".
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
[GD] Verdict: approve-comment
PR: #960 — feat(ci): require UI screenshot evidence for PRs mentioning gui
Head: 40291f8f3 on dev (mergeStateStatus: CLEAN)
Semantic propagation
- Concepts audited: GUI-cue detection; screenshot-evidence detection; PR-quality failure contract (
missing_ui_screenshot); PR-template boilerplate contract; branch-policy docs representations.
- Authoritative sources:
.github/scripts/pr-quality.cjs (hasGuiCue, hasScreenshotEvidence, collectPrQualityFailures); .github/PULL_REQUEST_TEMPLATE.md; workflow state machine in enforce-pr-target.yml.
- Producers and consumers checked: workflow script (title/body → comment/summary/state),
stripPrTemplateBoilerplate, unit + harness tests; repo-wide search found no other consumers (pr-labeler.cjs, issue-quality.cjs are separate gates).
- Public/derived representations checked: bot comment section, check summary string, persisted state flag, PR template line, AGENTS.md / MAINTAINERS.md / contributing docs.
- Material variant partitions checked: title vs body cue; case; whole-word vs embedded (
guidance/guild/guillotine); null/undefined; template-stripped body; inline vs reference-style vs <img src> evidence; fenced/comment non-rendered regions; failure-combination and draft/ready restoration paths.
- Positive and negative assertions checked: 36 unit + 72 harness scenarios, incl. negatives for fenced/commented images,
<img> without src, reference token without definition, and guidance.
- Unmapped surfaces: none
- Unproven equivalence assumptions: none
- Representation mismatches: none
- Variant coverage gaps: none
- Axis verdict: pass
Linked: none
Usefulness
Real governance gap: PRs describing GUI changes had no visual-evidence requirement. The gate now deterministically prompts (comment + draft) for a rendered screenshot when gui appears in the title or description, clears on description edits, and is documented in the contributing guide and branch-policy docs. Value confirmed.
Bugs / correctness
- Method: bug-review.md — Bugbot: n/a (Codex host); complementary: done (
silent_failures, resource_leaks, edge_cases, boundary_conditions, state_consistency, error_propagation, network_cancellation, filesystem_atomicity).
- Findings: 3 confirmed (bot triage + independent lens pass), fixed in
ba126bca: (1) non-rendered image syntax (HTML comments, fenced code) counted as evidence; (2) <img> without a renderable src counted; (3) reference-style screenshots (rendered by GitHub) were false negatives. Regression tests added.
- Fixed this session:
ba126bca, plus base merge 40291f8f3.
- Residual (documented, non-blocking): the cue scan is intentionally literal — descriptions containing compound tokens such as
lint:gui / build:gui or hidden-comment mentions arm the screenshot prompt. That is the deterministic rule this PR implements.
Security
- Scope reviewed: authz (no weakening; screenshot requirement applies to all authors; ancestry-skip invariant preserved in AGENTS.md/MAINTAINERS.md), authn (no change), injection (
pull_request_target script has no ${{ interpolation; new strings are constants), supply-chain (no deps), secrets/config (privacy scan green; new asset is rendered text).
- Findings: none confirmed
- Fixed this session: none
- Decision: Pass (adversarial pass not run — not requested, skipped by default)
Spec / standards
- Spec source: user request + PR body ("gui in title or description → screenshot required").
- Gaps: none; the rendered-only evidence hardening is in-scope correctness, not scope creep. Docs synced per
.github/AGENTS.md; docs-site/AGENTS.md English-canonical rule respected (locale pages are partial translations with no affected section — declined with rationale in-thread).
- Standards: workflow pins/permissions unchanged; tests added beside the subsystem; hygiene matcher not triggered (no
src//gui/src/ behavior change; assets/ PNG is not a generated path).
Reviews
- Owners/maintainers: none open
- Bots (CodeRabbit/Codex): 4 threads triaged — 3 fixed in
ba126bca, 1 declined with rationale (locale pages), all resolved in-thread
Base / CI
- Behind/conflicts: updated from
dev in 40291f8f3 (merge of cb8fcf34); clean
- Required checks: green on
40291f8f3 — enforce-target, label, changes, gates, react-doctor, keyring ×3, npm-global ×3, test shards 1–4, macos, script-test suite; windows skipped by policy
- Local tip compile/tests:
node --test pr-quality 36/36 + enforce-pr-target 9/9; bun test tests/ci-workflows.test.ts 72/72; typecheck/lint/privacy/doctor green on the base tree
Gate
none (not draft, no WIP markers)
Simplify
Explicit simplify pass ran: nothing worth simplifying. Rejected candidates with rationale: state-flag factory (would break the established descriptionFailed pattern), test-fixture extraction (suite convention builds bodies inline), template-derived boilerplate set (crosses into redesign). No code changed; no approval gate required.
Bottom line
Ship. The gate does what the PR claims, all bot findings are fixed with regression coverage, required CI is green on the tip, and the branch is current with dev.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
[GD] Merge ready
PR: #960 — feat(ci): require UI screenshot evidence for PRs mentioning gui
Head: 40291f8f3 → dev (mergeStateStatus: CLEAN)
Linked issues: none
Reviews
- Humans (owners first): none open
- Bots: 4 threads triaged — 3 fixed in
ba126bca, 1 declined with rationale; all resolved in-thread
- Own bug + security + spec/standards: bug-review (Bugbot n/a on Codex; complementary lenses done) + security-review (Pass) + spec/standards done on tip; blockers fixed:
ba126bca (rendered-only evidence, reference-style support, <img src> requirement)
Tip freshness
- Updated from
dev: yes (40291f8f3, merge of cb8fcf34)
- Compiles/tests against tip:
node --test pr-quality 36/36, enforce-pr-target 9/9; bun test tests/ci-workflows.test.ts 72/72
- Conflicts: none
Checks
- Local/CLI: typecheck, lint:gui, privacy:scan, doctor green on base tree
- Required CI: green on
40291f8f3 (enforce-target, label, changes, gates, react-doctor, keyring ×3, npm-global ×3, test 1–4/4, macos; windows skipped by policy)
- Policy: code-owner enforcement / stale approvals / merge-queue: clear / n/a
Residual
Documented, non-blocking: the cue scan is intentionally literal — descriptions with compound tokens like lint:gui / build:gui or hidden-comment mentions arm the screenshot prompt (deterministic rule per PR intent).
Ready to merge.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Merging this.
Why it helps: the �nforce-target gate now requires a rendered UI screenshot whenever a PR title or description mentions gui, so GUI changes can no longer merge without visual evidence — the check comments, keeps the PR in draft, and clears automatically on description edits. Bot review findings (non-rendered image syntax, without src, reference-style screenshots) were fixed in �a126bca with regression coverage; required CI is green on 40291f8.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Aug 3, 2026
agentHits
pushed a commit
to agentHits/opencodex
that referenced
this pull request
Sep 17, 2026
…gate
feat(ci): require UI screenshot evidence for PRs mentioning gui
Reviewers
lidge-jun
Awaiting requested review from lidge-jun
lidge-jun is a code owner
Ingwannu
Awaiting requested review from Ingwannu
Ingwannu is a code owner
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|