Skip to content

fix(ci): re-attest hypatia credential-read-check at its current pin (fixes red Pinned source closure) - #698

Merged
hyperpolymath merged 1 commit into
mainfrom
claude/fleet-standards-pins-3b57589
Nov 17, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
claude/fleet-standards-pins-3b57589

Conversation

@hyperpolymath

@hyperpolymath hyperpolymath commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

Why

main (dec1e7c) is red on "Pinned source closure": audit-pinned-reusable-sources.sh --fetch-sources reports FATAL 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 is hypatia-scan.yml job scanner-credential, bumped by #686 to hyperpolymath/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.
  • No workflow, actions.lock, SPDX or .a2ml change.

Evidence (baseline origin/main → after; gawk installed locally, fresh cache each)

Check Baseline After
audit-pinned-reusable-sources.sh --fetch-sources findings=1 (SOURCE-ACTIVE-MISSING) findings=0 not-run=0 verified-roots=6
audit-lock-closure.sh fatal=1 review=5 accepted=2 not-run=7 fatal=0 review=0 accepted=3 not-run=0 source-attested-records=13
check-lock-sync.sh rc=0 rc=0
pinned-reusable-sources-test 55/0 55/0
lock-closure-test 45 pass / 2 fail 47/0
pinned-source-entrypoints-test 7 pass / 2 fail 9/0 (after the CI historical-source fetch step)
prepared-migration preflight.sh --quiet — rc=0
STANDARDS_DIR=<standards @3b57589d> tests/fleet-report-back-test.sh — 69 passed, 0 failed

Not done

  • The four-pin bump to standards 3b57589 is blocked. governance-reusable.yml at 3b57589 contains job-level nested reusable calls (deed-conformance.yml@bfa851f… line 436, k9-conformance.yml@bfa851f… line 445). The verifier deliberately returns NOT-RUN SOURCE-LOCAL for nested reusables, so the governance pin cannot be attested without extending the verifier's reviewed profile — out of scope. hypatia-scan-reusable at 3b57589 also adds actions/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.
  • actionlint and mikefarah yq v4 were not run: installation (go install, release binaries) was denied by this session's permission classifier. No workflow file is touched here, but actionlint is unverified. The "Regenerate vendor lock" CI step (gh actions-lock) was not run locally either.
  • Compat-branch hypatia pin (75bd599) left as is.

Generated by Claude Code

Summary by CodeRabbit

  • Chores
    • Updated the pinned workflow source to a newer revision.

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
@sonarqubecloud

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath marked this pull request as ready for review November 17, 2026 22:49
Repository owner deleted a comment from coderabbitai Bot Nov 17, 2026
@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Caution

Review failed

The pull request is closed.

Walkthrough

The pinned commit for hyperpolymath/hypatia’s credential-read-check.yml source changes. Its path, recorded blob, and content hash remain unchanged.

Changes: Hypatia source pin

Layer / File(s) Summary
Update workflow source pin
scripts/lib/pinned-reusable-sources.json
The pinned commit changes from b93f0615a61ee4c05af66eb526538eab47120aaa to 29a9e4a881b6a3cc4cd27fcbc0886ffbadcbc5fe. The source path and recorded hashes remain unchanged.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Bug fix

Merge Risk: Minimal · up to 1c560

This updates the attested commit for the Hypatia credential-read-check pin so that it matches the workflow's call. The blob and content hash are unchanged, so behavior should not change. No actionable merge risk remains.

- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@hyperpolymath
hyperpolymath merged commit e8d17bb into main Nov 17, 2026
72 of 73 checks passed
@hyperpolymath
hyperpolymath deleted the claude/fleet-standards-pins-3b57589 branch November 17, 2026 22:51
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>
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.

3 participants