Skip to content

fix(required-contexts): string context input on the local reusable; re-pin the suite gate to main a0760ce - #56

Merged
hyperpolymath merged 4 commits into
mainfrom
claude/sweet-edison-yp088x
Nov 23, 2026
Merged

hyperpolymath merged 4 commits into
mainfrom
claude/sweet-edison-yp088x

Conversation

@hyperpolymath

@hyperpolymath hyperpolymath commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

This PR makes two changes. The second was added on 2026-11-23, following an owner ruling.

1. Checker fix (3b9f658)

scripts/check-required-contexts.sh (localTargetError) now requires the local reusable to declare on.workflow_call.inputs.context with type: string.

The caller passes with.context. GitHub refuses an input that the called workflow does not declare, so a local target without that input could never publish the required status. The tests now cover a missing input, the list form, the string form, no context key, a non-string type, and no type. Positive fixtures declare the input.

The same fix is in hyperpolymath/rsr-template-repo#451, which is merged, and in hyperpolymath/mathesis#106.

2. Re-pin (384e5c4)

This re-pins the suite gate from 4e9e680 to suite main a0760ce (hyperpolymath/proven-cicd-and-workflows#164).

4e9e680 reads each run's jobs one API call at a time. When the installation runs out of API quota it fails with "could not read the jobs of run". That failure is what kept this PR's CI/gate red. a0760ce adds:

  • retry and back-off on rate limits;
  • a per-commit concurrency group;
  • a sweep that stops when it is rate-limited;
  • the emoji-safe status description, which it keeps.

The caller shape is unchanged and no new permissions are needed.

Files updated: ci-gate.yml, ci-gate-tamper-guard-caller.yml, actions.lock (SHA swap, ref stays main), the squabble SUITE_PIN, actions_lock_sha_refs_test.sh, and the CHANGELOG. main was merged in first (862e044).

Proven (local, on the head)

  • tests/workflows/squabble_gate_test.sh: 150 passed, 0 failed.
  • tests/workflows/actions_lock_sha_refs_test.sh: OK.
  • scripts/check-lock-sync.sh: OK.
  • scripts/check-required-contexts.sh .: OK.
  • actionlint on both callers: clean.

Not proven

🤖 Generated with Claude Code

https://claude.ai/code/session_01J4QvDg8YzLVHtwwDfcY3J9

Summary by CodeRabbit

  • Bug Fixes
    • Improved validation of local reusable workflows, rejecting configurations with missing or invalid context inputs.
  • Chores
    • Updated the reusable CI and tamper-guard workflows to a newer revision.
  • Tests
    • Expanded coverage for valid and invalid workflow input configurations.

…g context input

The caller passes with.context, and GitHub refuses an input that the
called workflow does not declare, so a local target with a bare
on.workflow_call (or the list/string forms, which cannot declare
inputs) was accepted by the checker but could never publish the
required status. The target must now declare
on.workflow_call.inputs.context with type: string.

Positive local fixtures declare that input; new negatives cover no
inputs, list and string forms, inputs without context, a non-string
type and a missing type. Path and self-call fixtures use the valid
on-block, so they fail for their own reason only.

Tests: squabble 150/0 (old checker against the new tests: 143/7).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDg8YzLVHtwwDfcY3J9

Copy link
Copy Markdown
Owner Author

CI on this head is red because the GitHub API quota for the hyperpolymath installation is exhausted, not because of this diff. The diff touches only scripts/check-required-contexts.sh and its tests.

Each failing job reports a 403 from the API:

  • "API rate limit exceeded for installation" (the gate and Hypatia);
  • setup-bun 403 (the 3-outcome suite);
  • curl 403 when reading the deed (Canon lockstep, which then reports "no ..._chora.deed");
  • "release not found" in the squabble installer.

The squabble self-tests themselves pass in this run. Other PRs fail the same way in the same window.

I will re-run the failed jobs once, after the quota window resets.


Generated by Claude Code

@hyperpolymath
hyperpolymath marked this pull request as ready for review November 18, 2026 02:43
Owner ruling 2026-11-23: re-pin to the suite's main now. 4e9e680 reads
each run's jobs and fails under the installation rate limit ("could not
read the jobs of run"), which is what keeps this PR's CI/gate red.
a0760ce adds retry/back-off on rate limits, a per-commit concurrency
group and a sweep that stops when limited, and keeps the emoji-safe
description. Caller shape unchanged; no new permissions.

Updated: ci-gate.yml, ci-gate-tamper-guard-caller.yml, actions.lock (SHA
swap, ref main), squabble SUITE_PIN, actions_lock_sha_refs_test, CHANGELOG.

Checks: squabble 150/0, actions_lock_sha_refs_test OK,
check-lock-sync OK, check-required-contexts OK, actionlint clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDg8YzLVHtwwDfcY3J9
@hyperpolymath hyperpolymath changed the title fix(required-contexts): require the local reusable to declare a string context input fix(required-contexts): string context input on the local reusable; re-pin the suite gate to main a0760ce Nov 23, 2026
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The CI workflows now reference a newer reusable workflow commit. Local reusable-workflow validation checks that workflow_call.inputs.context is declared as a string, and tests cover valid and invalid declarations.

Changes: Workflow pins and local target validation

Layer / File(s) Summary
Update reusable workflow pins
.github/workflows/ci-gate-tamper-guard-caller.yml, .github/workflows/ci-gate.yml, CHANGELOG.adoc, tests/workflows/actions_lock_sha_refs_test.sh, tests/workflows/squabble_gate_test.sh
The CI callers, changelog, and pin tests now use commit a0760cea695a815a96b3944f3d03ee015da856d0.
Validate local context inputs
scripts/check-required-contexts.sh, tests/workflows/squabble_gate_test.sh
Local target validation requires workflow_call.inputs.context to declare a string type. Tests cover valid optional and required string inputs, invalid declarations, and path cases using a valid declaration.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related PRs

Suggested reviewers: claude

Merge Risk: Minimal · up to 384e5 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the checker now requires a string context input on the local reusable workflow. It also names the secondary change, the re-pin of the suite gate to main a0760ce. The…
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 The description follows the repository template closely. It has Summary, Changes, Testing and a checklist, and it explains both the checker fix and the CI re-pin. It gives concrete test results for th…
Full details: Title check

Explanation

The title names the main change: the checker now requires a string context input on the local reusable workflow. It also names the secondary change, the re-pin of the suite gate to main a0760ce. The title is specific and matches the changeset. It is long (105 characters) and combines two changes, but it stays related to the diff.

Full details: Description check

Explanation

The description follows the repository template closely. It has Summary, Changes, Testing and a checklist, and it explains both the checker fix and the CI re-pin. It gives concrete test results for the local checks and says what remains unproven, including live CI on this head. Several template items are not addressed: the Required checklist boxes are not marked, the Changes list is not formatted as bullets, the CHANGELOG and deed/ROADMAP items are only partly covered, and SPDX headers and banned-language checks are not mentioned. The description also has no separate Screenshots section, although that section is optional. These gaps are non-critical, so the description is mostly complete.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • 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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between f2523db and 384e5c4.

Files ignored due to path filters: 1

  • .github/workflows/actions.lock is excluded by !**/*.lock
Files selected for processing: 6

  • .github/workflows/ci-gate-tamper-guard-caller.yml
  • .github/workflows/ci-gate.yml
  • CHANGELOG.adoc
  • scripts/check-required-contexts.sh
  • tests/workflows/actions_lock_sha_refs_test.sh
  • tests/workflows/squabble_gate_test.sh

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@sonarqubecloud

Copy link
Copy Markdown

Copy link
Copy Markdown
Owner Author

Two red statuses on 384e5c4. Neither comes from this PR's code.

1. CI/gate failures from runs 45249838645 and 45249843689. Both are workflow_run runs. Those always use the default branch's caller, which pins the suite at 4e9e680; the run metadata confirms this (referenced_workflows shows @4e9e680…, head_branch: main).

  • Run 45249838645 failed on Description doesn't accept 4-byte Unicode. The early-pending description held the 🟡 in the workflow name 🟡 CHECK: Eclexiaiser Manifest Validation.
  • The suite pin this PR moves to, a0760ce, replaces code points above 65535 before posting. That is at .github/workflows/ci-gate.yml:236 there. Merging this PR therefore removes the cause.
  • Run 45249843689 ("could not read the jobs of run …") is the same old-pin caller. It is the per-run jobs read that the newer suite throttles and backs off.
  • CI/gate is last-writer-wins. Both failures have since been overwritten by pending statuses. The verdict that counts is the gate-pr / CI gate job on the new pin, which is still running.

2. pre-commit.ci - pr: "error during ci config". This is repo-wide:

  • It errors on every recent PR here.
  • The only config is ci/.pre-commit-config.yaml; pre-commit.ci looks for one at the root.
  • It is not a required check.

Fixing that, either by moving or linking the config or by uninstalling the app for these repos, is an estate decision outside this PR.


Generated by Claude Code

@hyperpolymath
hyperpolymath merged commit e945e61 into main Nov 23, 2026
53 of 54 checks passed
@hyperpolymath
hyperpolymath deleted the claude/sweet-edison-yp088x branch November 23, 2026 19:38
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