Skip to content

the GitHub Action reads strict the way it reads soft-fail, asks again after a 429, a 5xx or a rate-limited 403, and shows a refused GITHUB_API_URL without its user part - #282

Merged
fathomlab merged 7 commits into
fathom-lab:mainfrom
heyzoos123-blip:action-small-repairs
Nov 17, 2026

Conversation

@heyzoos123-blip

Copy link
Copy Markdown
Contributor

What this is

The follow-up to #280, part two of three (part one was #281): small repairs to the GitHub Action that change no verdict on a diff that was read. One kind of input moves an exit code, and it is named below.

What changes

  • strict is read the way soft-fail is. Surrounding whitespace is stripped and case is ignored. A value that is neither "true" nor "false" means not strict, as before, and is now named in a warning. The one exit code that moves: "true" with white space round it (" true") used to mean not strict, without a word; it now means strict.
  • A request is asked again. After an answer of 429, of 500 to 599, or of a 403 that says when its rate limit ends, the script asks again: at most three requests for one address, no single wait above 60 seconds, at most 120 seconds of waiting in a run. A 429 with no header waits 60 seconds, as GitHub's page on rate limits asks. Every request is built anew, to the same address on the API's origin, with the token as an unredirected header. Before this, one such answer ended the run in DID NOT RUN, which since A blocking Action check fails when the diff was not read under a claim, or a contradiction was withheld #280 fails a blocking check whose description holds a claim.
  • A refused GITHUB_API_URL is shown without what stands before its last "@". It was printed whole, a password in its user part included.
  • Tests that were missing. action.yml's runs: block is held line for line; the verdict word is held under strict; the process test has its report-mode twin.
  • cmarkgfm is in the test extra, on Linux, so the file that renders the summary with GitHub's Markdown parser stops being skipped in CI.

How it was checked

  • The design was attacked before the build by two reviewers working apart. Their points changed it: the 60 second wait for a 429 with no header, headers read as ASCII digits only, one total of waiting for the whole run, and the marker on cmarkgfm.
  • After the build three reviewers checked it apart. One drove the retry loop against servers of its own for the token: over a retried answer followed by each of the five redirect codes to another origin, no request left the origin and the token stood in nothing printed or raised. One ran the script before and after over every path. One held every added sentence against the code. Their findings are listed in the CHANGELOG entry, and each was taken.
  • Twenty-two changes to the script and to action.yml were each run against the tests, and each made a test fail.

What is not verified

  • Python 3.9 to 3.11 and Linux were not run locally; CI runs them.
  • cmarkgfm was not installed from the extra on any system here. This pull request's own CI is the check that the extra installs on Python 3.9 to 3.12 and that the render file passes there.
  • The waits were not run against the real clock.

Not in this change

A timeout and a dropped connection are not asked again. A created branch's head commit and a diff GitHub refuses are the next part.

🤖 Generated with Claude Code

darkflobi and others added 7 commits November 17, 2026 16:46
…shown without its user part; a request asked again after 429, 5xx or a rate-limited 403

strict was compared after lowering its case only, so " true" meant not strict
and no value was ever named. It is now stripped as soft-fail is, and a value
that is neither "true" nor "false" is named in a warning and means not strict.

A GITHUB_API_URL the script refuses was printed whole, a password in its user
part included. Everything before its last "@" is now left out, and the
refusals that come before the token is checked hand the token to _shown.

api() asks again, to the same address, after an answer of 429, of 500 to 599,
or of 403 with a rate limit's headers: at most three requests, no wait above
60 seconds, at most 120 seconds of waiting in a run. Each request is built
anew with the token as an unredirected header.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…gain

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…er tests run in CI

An exact pin, since the render file's assertions are about one parser's
rendering, with a marker for the systems PyPI has a wheel of that release for
on Linux.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…I_URL, and asking again

A new file for the four. The process test gains the report-mode twin of a
contradicted claim, and the test that pinned the refusal's sentence for an
address with a user part pins the new sentence.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ITHUB_API_URL

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…airs

The 403 rule is stated as the code has it, in the docstrings and in
action.yml: a 403 is asked again where a retry-after of digits, or a spent
limit with a reset time, says when its rate limit ends. A docstring said
asking again reaches no new address; it sends the token to no origin but the
API's. The token is looked for in a refused GITHUB_API_URL before the value
is cut at its last "@". The strict warning says both things strict changes.

Tests: a rate limit answered three times, the token in a refused
GITHUB_API_URL, a value named as it was set, a request asked again at the
address it was asked at, a wait rounded up to the reset, and the sentences
action.yml and the README gained.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…edes

Co-Authored-By: Claude Fable 5.2 <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.

2 participants