Repository navigation
fix(ci): re-attest hypatia credential-read-check at its current pin (fixes red Pinned source closure) - #698
Merged
Conversation
The "Pinned source closure" job is red on main: the manifest binds the scanner-credential job to hyperpolymath/hypatia@b93f0615, but hypatia-scan.yml has called @29a9e4a8 since #686. Both commits carry the same blob (15c597e), so only the commit binding and its receipt row move; blob and content SHA-256 are unchanged and were re-verified from fetched objects. This is attestation for the CURRENT pins only. The four standards pins are not bumped (see PR description). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J4QvDjMjpyixLqzirvwV1s
|
Contributor
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
This was referenced Nov 18, 2026
hyperpolymath
added a commit
that referenced
this pull request
Nov 26, 2026
…+ url 2.5.9 (carries #705 and #706 fixes) (#707) ## Why `main` fails three required checks and each fix sat in a different PR, so none could merge. This PR carries all three fixes (owner chose "Fold into #707"). | Fix | Commit | Origin | |---|---|---| | Pinned source closure: re-attest hypatia `credential-read-check.yml` at f2c06048 | 6e64d5a | this PR | | robot-repo-automaton clippy `needless_bool` in `confidence.rs` | 76a2155 | cherry-pick -x from #705 (6ddc6dc) | | GSBot audit: `url` 2.5.9 (RUSTSEC-2026-0592), `bots/gsbot/Cargo.lock` only | 7388520 | cherry-pick -x from #706 (6bfdde7) | Original authorship kept on the cherry-picks. The departures commit from #706 is **not** included; #706 keeps it. ## Closure fix (details) #699 bumped `hypatia-scan.yml` job `scanner-credential` to `hyperpolymath/hypatia/.github/workflows/credential-read-check.yml@f2c06048…` without updating `scripts/lib/pinned-reusable-sources.json`. **Pin only:** the file's blob is `15c597ea720a5affb861dab058084f7245ee4cbd` at both 29a9e4a8 and f2c06048, so the nested `uses:` closure is unchanged. No generator exists; same approach as #698 (manifest binding + receipts row). ## Local evidence - `audit-pinned-reusable-sources.sh --fetch-sources`: findings=0 verified-roots=6 (was 1 finding) - `audit-lock-closure.sh`: fatal=0; pinned-reusable-sources-test 55/0; lock-closure-test 47/0 - `cargo clippy --locked -- -D warnings` in robot-repo-automaton: clean - pinned-source-entrypoints-test: 7 pass, 2 fail locally (historical-source cache that CI fetches, as in #698) ## After merge Owner: close #705 (superseded); update #706's branch from main so it shrinks to the departures ledger. #704 untouched. #706 and #705 are unchanged by this PR. --- _Generated by [Claude Code](https://claude.ai/code)_ <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Refactor** * Streamlined protected-file checks without changing which files are protected. * **Chores** * Updated a pinned reusable source reference; its path and other recorded metadata remain unchanged. * **Tests** * Added coverage for confidence classification of protected paths and for detecting stale references after a source is repinned. * No user-facing behavior changes are included in this update. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: CLAUDE <355856132+HoTT-stuff@users.noreply.github.com>
hyperpolymath
added a commit
to metadatastician/standards
that referenced
this pull request
Dec 1, 2026
… the hook cannot re-attest (#1729) ## What Closes the gap behind hyperpolymath/gitbot-fleet#698 and #707. Twice a reusable-workflow pin (`hyperpolymath/hypatia/.github/workflows/credential-read-check.yml`) moved without its attestation in `scripts/lib/pinned-reusable-sources.json` / `lock-closure-receipts.tsv`, and the required 'Pinned source closure' job went red with `SOURCE-ACTIVE-MISSING`. Since the single-pin-writer ruling (gitbot-fleet#716, standards#1688), nothing moves such a pin at all. This makes the applier its writer, and makes it re-attest in the same PR or hand over a review item. Owner ruling 2026-12-01 (this session): the applier moves first-party reusable-workflow pins, a changed workflow file becomes a review item, and the re-attestation tool lives in the consumer repository (its post-pin-bump hook), with standards owning only the mechanism. ## How - **`scripts/bump-action-pins.sh`** gets a second pass. It moves an *uncommented* first-party `owner/repo/.github/workflows/F.yml@sha` pin to the head of the callee's default branch, but only as a fast-forward (compare `ahead`), only if the file still exists there, and only when no hold matches. Standards is excluded in either owner and any case (apply-workflow-pins owns it). Otherwise it reports `diverged`, `path-missing`, `unresolved`, `held` or `current`. `BUMP_FIRST_PARTY_REUSABLE=0` switches it off. - **`scripts/regen-dependabot-locks.sh` hook-apply.** When a repo's `post-pin-bump.sh` did not succeed *and* the bump moved a reusable-workflow pin, the bump is opened **without any hook file** as a review item. The PR gets a section listing the moved pins and the hook status, the label `needs-source-review`, and a `::warning::`. A changed workflow file is never attested. All integrity checks still come first: row mismatch, stale head or pins, an open bump PR, a failed re-derivation. The untrusted status is reduced to known forms. A failed hook with no reusable move is still refused, exactly as before. - **Design note:** `3-practice/ACTION-PINS-APPLIER.adoc`, section "Reusable-workflow pins and their attestation". It covers who moves which pin, why the tool lives in the consumer (gitbot-fleet's `post-pin-bump.sh` from #717 supersedes the #696 `reattest-pinned-source.sh`), the fail-closed rule, the evidence, and what's still open. ## Evidence - `bash scripts/tests/bump-action-pins-test.sh`: 48/48 (24 new) - `bash scripts/tests/post-pin-bump-hook-test.sh`: 201/201 (29 new) - `bash scripts/tests/regen-dependabot-locks-test.sh`: 101/101 (unchanged) - The first-party reusable pass calls the shared `assert_pin_ancestry` (owner rulings D5c, D19a) on every commit it writes; an unproved answer is `unresolved`. - `shellcheck -x` on the touched scripts: no new findings. The one remaining finding (SC2034 in `tag_sha`) was already there. - **Replay against real gitbot-fleet history**, with `gh` stubbed only for the head lookup, running the new bump pass followed by gitbot-fleet's own `scripts/post-pin-bump.sh` in fetch mode: - #686 (b93f0615 → 29a9e4a8): the manifest and receipts are byte-identical to the hand fix #698. - #699 (29a9e4a8 → f2c06048): the bump is byte-identical to #699, and the hook output is byte-identical to #707. - A forced move to aa621fd1, where the file differs: refused with `SOURCE-BLOB`, nothing written. In the applier, that case is the review item. **Not run:** `tests/test_workflow_unique_keys.sh`. It needs mikefarah `yq`, which isn't installed here, and it exits 2 the same way on the base. The only workflow change is header comment lines. Not yet proved: a live `workflow_dispatch` of the applier on gitbot-fleet. ## Still open (follow-ups) - `apply-workflow-pins` re-points the standards pins that gitbot-fleet also attests (four active sources), and it has no hook phase yet. That's the next PR: the same three phases, reusing `hook_prepare`, with the same review-item rule. - The label `needs-source-review` is created on first use by the labels API. If an org ruleset forbids that, it falls back to a logged "NOT applied" and the review item still stands. https://claude.ai/code/session_01J4QvDfoKbykemjrR6GXDV5 --- _Generated by [Claude Code](https://claude.ai/code)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



Why
main(dec1e7c) is red on "Pinned source closure":audit-pinned-reusable-sources.sh --fetch-sourcesreportsFATAL SOURCE-ACTIVE-MISSING. The probable cause in the task (#688 moving mirror/scorecard) was not the cause — mirror and scorecard were already attested at b49a33e. The actual drift ishypatia-scan.ymljobscanner-credential, bumped by #686 tohyperpolymath/hypatia/.github/workflows/credential-read-check.yml@29a9e4a8…while the manifest still binds@b93f0615…. Both commits carry the same blob (15c597e…).What
Fallback only: attestation for the current pins, no standards bump.
scripts/lib/pinned-reusable-sources.json: commit binding b93f0615 → 29a9e4a8 (blob and content SHA-256 unchanged, re-verified from fetched objects).scripts/lib/lock-closure-receipts.tsv: receipt row and comment moved to 29a9e4a8.actions.lock, SPDX or.a2mlchange.Evidence (baseline origin/main → after; gawk installed locally, fresh cache each)
audit-pinned-reusable-sources.sh --fetch-sourcesaudit-lock-closure.shcheck-lock-sync.shpreflight.sh --quietSTANDARDS_DIR=<standards @3b57589d> tests/fleet-report-back-test.shNot done
governance-reusable.ymlat 3b57589 contains job-level nested reusable calls (deed-conformance.yml@bfa851f…line 436,k9-conformance.yml@bfa851f…line 445). The verifier deliberately returns NOT-RUNSOURCE-LOCALfor nested reusables, so the governance pin cannot be attested without extending the verifier's reviewed profile — out of scope.hypatia-scan-reusableat 3b57589 also addsactions/download-artifact@9000827…, absent from the current receipts/lock closure, so it needs a lock regeneration (tool-owned, never hand-edited) plus review. Needs an owner decision on the verifier profile first.gh actions-lock) was not run locally either.Generated by Claude Code
Summary by CodeRabbit