Skip to content

the GitHub Action reads a branch created by a push of one commit against that commit's parent, and a refused diff against GitHub's list of files where no claim needs the diff's content - #283

Merged
fathomlab merged 6 commits into
fathom-lab:mainfrom
heyzoos123-blip:action-head-commit-and-file-list
Nov 18, 2026

Conversation

@heyzoos123-blip

Copy link
Copy Markdown
Contributor

What this is

The follow-up to #280, part three of three (after #281 and #282): two cases where the diff an event names cannot be had now get a reading of their own. Since #280 both failed a blocking check whenever the text held a claim the gate reads, and no re-run helped.

The two readings

A push of one commit that creates a branch. There is no commit before it, so the compare address has no commit for its base and the API answers 404. Where the push holds its head commit and no other, the script now looks up that commit's parents, and where there is exactly one, reads the commit against it: the message gated is that commit's, and the diff of the push is that commit's own. A push of several commits is not read so, because the earlier commits would go unread; nor is a commit with no parent, or a merge. Those count as a failed fetch, as before, and the text says which it was.

A pull request whose diff GitHub refuses. GitHub answers 406 for a diff past its size limit. The script now shows GitHub's own message, and may read GitHub's list of the pull request's files in the diff's place. It does so only where every one of these holds:

  • no claim the gate reads in the description needs the diff's content: every claim is about which files changed, or is a tests-pass claim, which reads nothing of the diff here;
  • the list holds exactly as many files as the event says changed;
  • every file has a status of added, removed, modified or renamed, and a name git writes into a diff header as it is;
  • the pull request, read again after the last page, has the same head commit and the same count.

Then the gate judges the description against a diff of headers and no content, and the summary, a notice and the last line say the list was read and not the diff. Otherwise the gate does not run, as before, and the text names the condition that did not hold.

Why paths and no content

Asked for pull request #63 of this repository (38 files, 171,417 added lines), GitHub refused the diff, and its list of files held all 38 paths, a patch for 25 of them, and no added line for nine files that changed. A claim that needs content cannot be judged from such a list, so none is.

What a workflow will notice

In a blocking check, a refused diff under claims about which files changed, and a branch created by a push of one commit, now follow the gate's verdict where they failed. Report mode prints verdicts there where it printed DID NOT RUN. The list needs the permission pull-requests: read; a workflow without it is told so. Nothing printed changes where the diff is served, or on a push to a branch that exists.

How it was checked

  • The design was attacked before the build. One reviewer compared the gate's verdicts on served diffs and on their headers over 446 scenarios; its points set the conditions above.
  • After the build three reviewers checked it apart. One tried to pass a blocking check through the two readings: over 776 runs, the list never passed a false claim that the diff fails. It also found that the created-branch reading, as it was built at that point, read only the head commit of a push of several commits; that reading is now made only where the push is one commit. The other findings are in the CHANGELOG entry, and each was taken.
  • Thirty-nine changes to the script 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.
  • The script as built sent no request to GitHub. What GitHub answers was read once, by hand, before the build.
  • Whether GitHub's list and its diff name a rename alike on a very large pull request.

🤖 Generated with Claude Code

darkflobi and others added 6 commits November 17, 2026 18:20
… parent, and a refused diff against GitHub's list of files where every claim is about which files changed

A push that creates a branch has no commit before it, so the compare address
names no base. The head commit's parents are looked up; with exactly one, the
diff read is the compare of that parent with the head commit. A commit with
no parent, or a merge, is not read so.

A pull request whose diff GitHub answers 406 for: GitHub's message is shown,
and where every claim the gate reads turns on which files changed, GitHub's
list of the pull request's files is read in the diff's place, as a diff of
headers and no content. The list is used only where it is whole, every name
is one git writes into a header as it is, and the pull request did not
change while the list was read. Otherwise the gate does not run, as before,
and the text names the condition.

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

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

main() with the real api() against a server on loopback: what is asked, what
is printed, each condition under which the list is not used, and each way the
lookup of a parent ends.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A created branch is read as its head commit against one parent only where
the push is that one commit: read so, a push of several commits left the
earlier ones unread, and a push that failed before could pass. The lookup's
answer must be for that commit, and an answer that cannot be used is said to
be that, apart from a lookup that failed.

GitHub's message is searched for the token before it is cut. A refused
lookup, page or re-read is named for what was asked, where it was called the
diff's address. A pull request of more files than GitHub lists is told a
re-run fails the same way. The notice says no claim needs the diff's content,
which is also true of a tests-pass claim. The sentence for a name the script
does not write names a rename's earlier name. A diff that was read and not
measured says on its last line what was read. action.yml and the README give
the conditions under which the list is read.

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

An event that does not list its commits as the head commit alone is said to
be that, where the text said the push holds other commits. action.yml says
what the second read of the pull request holds it to. The README names the
commits a created branch is not read for.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…files for a refused diff

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@fathomlab
fathomlab merged commit 45f351d into fathom-lab:main Nov 18, 2026
8 checks passed
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