Repository navigation
feat(review): read-only pre-commit.ci check-run admission (S-04) - #1226
hyperpolymath merged 10 commits into
Conversation
… app and head identity
…n negative controls
…D test classification
…D test classification
|
S-04 executable checkpoint — 2026-11-23Branch:
Not yet demonstrated: a positive native pre-commit.ci check-run intake; the existing five checked PR heads had no matching check runs. Current-head GitHub CI was still running when this comment was prepared. This does not qualify any negative evidence, permit merger/learning, or retire any external checker. Parent #1216's separate RustSec blocker remains #1219. |
Integrated test confirmation and positive-event reconnaissance — 2026-11-23At exact head
To find a genuine positive native pre-commit.ci check-run without triggering or paying for anything, I made GET-only requests against up to six currently open PR heads in each of four public repositories: The earlier live S-04 command on |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
61f969a
into
feat/review-evidence-envelope-20261123
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a4f3e5ffe5
ℹ️ 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".
| with {:ok, id} <- positive_id(run["id"]), | ||
| :ok <- matching_sha(run["head_sha"], head), | ||
| {:ok, status, conclusion} <- check_state(run["status"], run["conclusion"]), |
There was a problem hiding this comment.
Bind each check run to the requested pull request
When the same commit is the head of multiple PRs, this accepts every matching pre-commit.ci run for that SHA and then labels it with the requested PR number and URL. GitHub documents this endpoint as listing runs for a Git commit ref, and its response supplies a native pull_requests association, but that association is never checked here. Consequently, a run associated with PR A can be reported as evidence observed for PR B; require the requested PR and base repository in the run's native association (or leave it unobserved when no binding can be established).
Useful? React with 👍 / 👎.



S-04 — read-only external Check Runs intake
Stack: This is a draft based on draft #1220, itself stacked on #1216, not main. Programme #1217.
Implemented
Hypatia.ReviewCheckRunCollector.collect/3: authenticated GET-only GitHub API retrieval of one PR’s native Check Runs. Positive pre-commit.ci identity requires GitHub app ID 68672, slugpre-commit-ci, exact namepre-commit.ci - pr, and exact current-head SHA.total_count, duplicate/malformed ID rejection, repeated inventories and moving-head rejection. GitHub Checks are not atomically snapshotted by this.finding_signal=unknown,qualification=unqualified,learning_eligible=false,merge_approval=false. Zero observed checks means NOT OBSERVED, not pass or proof of installation status. Failure, success, cancellation and skips do not automatically become independently verified hook findings.mix hypatia.review_check_collect --repo OWNER/REPO --pr NUMBERprints source event IDs and provider conclusions, never raw hook output or an approval.Verification at head a4f3e5f
coverage_verdict=not_established; no false clean. Temporary WSL OTP JSON adapter required due to incompatible locally cached Jason beam. This does not validate the native Jason integration.Remaining gates
No PR merge, bot dispatch, external provider trigger, ledger write, security exception, or E0 learning action is authorised by this work. Keep draft.