Skip to content

#3108: Infra DR13: Carried comment-check copies match their source again - #38

Open
jparker2006 wants to merge 2 commits into
mainfrom
cursor/comment-check-source-pin-214e
Open

jparker2006 wants to merge 2 commits into
mainfrom
cursor/comment-check-source-pin-214e

Conversation

@jparker2006

@jparker2006 jparker2006 commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

No launch-fleet start record on the ticket yet; a record author (jparker2006 / openwiz[bot]) must post it before merge.

Closes openwizdev/OpenWiz#3108

Summary

tools/comment-check/check.py is byte-identical to OpenWiz 2b0b0d192d9013f223279d507bc7a809540f66da (tools/comment-check/check.py, blob d1a205ca51232dd8736e4be4a17d40dfffa1b574). tools/comment-check/drift.py fails when this copy differs from that pinned commit. contracts/comments.v1.md was already the same blob (9183cb01d185e7ef576d6dcf3609794da41e3e34) and is unchanged.

The checks job already runs sh ci/comment-check.sh HEAD^1. The next step in that same job is python3 -I tools/comment-check/drift.py. check.py stays the pinned bytes, so the comparison is not inside it. origin/main is still 154c1d81c4feab8be447ac872e549477c4ed7c2f.

F4 grant request

#3108 does not own .github/workflows/checks.yml. No grant is recorded for that file. This is a request, not a grant, for the one added step python3 -I tools/comment-check/drift.py in the job that already runs comment-check.

Bench & Eval

Head 98da5f67bf1257dca5a5e3330c92240dfa74d77d. OpenWiz source commit 2b0b0d192d9013f223279d507bc7a809540f66da.

  • python3 -I tools/comment-check/drift.py after appending one byte: exit 1, source bytes 30813, copy bytes 30814
  • python3 -I tools/comment-check/drift.py on the restored copy: exit 0, matches the pin
  • sh ci/comment-check.sh origin/main: comment-check: ok
  • sh ci/test-comment-check.sh: 11 lines starting ok: catches:, exit 0
  • private-identifier scan from ci/check.sh: check: no private identifiers
  • python3 -I ci/validate.py: exit 1, FileNotFoundError: openwiz (the openwiz binary at OPENWIZ_REV is not installed here). Catalog files were not changed.

Evidence

Before: appending one byte to the identical copy made drift.py exit 1 (copy bytes 30814). After: the restored copy matches 2b0b0d192d9013f223279d507bc7a809540f66da (exit 0).

Self-check

  • red, one extra byte: python3 -I tools/comment-check/drift.py printed exit 1 and copy bytes 30814
  • green, identical copy: python3 -I tools/comment-check/drift.py printed exit 0 and matches openwizdev/OpenWiz@2b0b0d1
  • added lines: sh ci/comment-check.sh origin/main printed comment-check: ok
  • workflow proof: sh ci/test-comment-check.sh printed ok: catches: and exit 0
  • catalog validate: n/a: openwiz binary is not installed; catalog files are unchanged

Merge danger

Door: two-way. Blast radius: small. The checker judges new comments the way OpenWiz already does. Old comments on unchanged lines still do not fail a pull request. The new step fails that same job when the carried copy is not the pinned bytes.

Rulings

  1. The drift comparison is one new step in the existing checks job, and check.py stays the pinned bytes. Why: the copy has to match the pinned commit byte for byte, and that job is what already runs the checker. Cost if wrong: low: the existing comment-check step is unchanged, and the added command is the drift script.

Facts

  • Branch: cursor/comment-check-source-pin-214e
  • Head: 98da5f67bf1257dca5a5e3330c92240dfa74d77d
  • Tree: bd56ae754bad80804cd40b8565ba4c683280bcc4
  • Size: S
  • Changed paths: tools/comment-check/check.py, tools/comment-check/drift.py, .github/workflows/checks.yml
  • Tests: python3 -I tools/comment-check/drift.py catches: a check.py that differs from OpenWiz 2b0b0d192d9013f223279d507bc7a809540f66da. The checks job runs that command.
  • Red run: exit 1 on a one-byte mutation
  • Claims: the copy is byte-identical to 2b0b0d192d9013f223279d507bc7a809540f66da; the checks job runs drift.py; that command fails when the copy differs
  • Seams: none. Sibling copies are separate pull requests in the other three repositories.
  • CI at this head: not finished yet
  • Gaps: the workflow line is an F4 grant request, not a recorded grant. sh ci/check.sh could not run openwiz loop validate because the openwiz binary is not installed in this environment.
  • Changelog: no product line. This is infra, and the repository has no changelog entry for a carried checker.
Open in Web Open in Cursor 

@jparker2006

Copy link
Copy Markdown
Member Author

Review #38 at 98da5f6

I inferred Grok (xAI) from the Cursor attribution and date. This review is from OpenAI Codex.

Verified the checker and contract byte for byte against OpenWiz 2b0b0d192d9013f223279d507bc7a809540f66da. The drift check exited 1 for both a same-size change and an appended byte, then exited 0 after restoring the original. WizLoops’ comment-check diff and 11 workflow cases passed, as did the pinned source’s 10 checker tests. The pinned openwiz binary was unavailable locally for catalog validation. GitHub Actions passed the full checks job, including drift and catalog validation, at this head. CI run

VERDICT: APPROVE at 98da5f6

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.

Infra DR13: Carried comment-check copies match their source again

1 participant