What broke
A 404 from GitHub reported as "no CI"
On 20 November, a watcher in Portal opened a "missing CI" case for a repo that has active CI, because Claude's code treated any 404 from GitHub as proof. The fix is that only an explicit "Actions is disabled" answer from GitHub counts as a finding. Anything uncertain is retried on the next round.
The short version
What went wrongThe watcher treated any GitHub 404 as proof a repo had no CI and opened a false case. The first fix blamed a transient 404, but a deleted codeql.yml workflow file was the real cause.
How we found itThe false case reached the IT department in production on 20 November. A second commit ten minutes after the first found that the deleted file gave a 404 on every run.
The rule nowAn error is not a finding. Report no CI only when GitHub explicitly says Actions is disabled, skip workflows whose files are gone, and otherwise store nothing and retry next round.
This post documents something Claude got wrong. The claim rests on a commit or a file, not on memory. All of Claude's mistakes
Portal runs a watcher that counts GitHub Actions minutes every hour. It also checks that each active app’s repo runs CI on pull requests. A repo without CI on PRs counts as a deviation, and every deviation becomes one case for the IT department, the agents that handle work in the app park. A new case only opens once the previous one is closed and the deviation is still there.
On 20 November 2026 that watcher sent a case saying one of the app repos had no CI. The repo has active CI. The case was false.
What the code assumed
Claude wrote the watcher, like all the code in the repo. For each repo, the CI check asks GitHub for the repo’s workflows and then fetches each workflow file to see whether it runs on pull requests. If the check failed with an HTTP 404 at any point, the error handler read that as an answer, not as an error.
The original code treated a 404 as meaning that Actions was disabled in the repo, or that the repo had never had a workflow. On any 404, the watcher recorded the repo as having no PR CI. That record became a deviation, and the deviation became a case.
That assumption was the mistake. A 404 means GitHub could not find something at the requested address. It does not say which thing, or why. The code took a failure and filed it as a finding.
How it was found
On 20 November the watcher sent a case saying the repo lacks CI, for a repo that has active CI. The fix commit says (translated):
“On 20.11 GitHub gave a transient 404 for [the repo], which has active CI, and the watcher sent a case saying the repo lacks CI. Now it only becomes a finding when actions/permissions says Actions is turned off. Otherwise nothing is stored, and the repo is checked again next round.”
The commit carries a Co-Authored-By: Claude line, and so does the changelog line that came with it.
The first explanation was wrong too
The first fix landed at 23:18 that evening and called the 404 “transient”. Ten minutes later, at 23:28, a second commit found the actual cause. GitHub still listed a CodeQL workflow in that repo as active, even though the workflow file had been deleted. When the watcher tried to fetch the file, GitHub answered 404. That one missing file failed the CI check for the whole repo, and the broad 404 handler then turned the failure into “no CI”.
So the 404 was not transient. The second commit rewrote the changelog entry to match. The first version blamed “a transient 404”. The corrected one says the case came “because the deleted codeql.yml gave 404.”
That’s worth stating plainly. The first fix was right about the rule but wrong about the cause.
What changed
Two changes, one per commit:
- A 404 is no longer a finding by itself. When the workflow check gets a 404, the watcher makes a second, specific request: GitHub’s Actions permissions endpoint for that repo. The repo is recorded as having no CI only if GitHub explicitly answers that Actions is disabled. If GitHub says Actions is enabled, or that request fails as well, nothing is stored. The repo goes on the watcher’s error list, to be checked again next round.
- A workflow without a file is skipped, not fatal. If GitHub lists a workflow but its file returns 404, that workflow is skipped and the rest of the repo’s workflows still count. A workflow with no file never runs, so it says nothing about whether the repo has CI.
Each change came with a test. The first sets up two repos that both return 404 on the workflow lookup. One has Actions enabled and one has it disabled. Only the disabled one may be stored as a finding. The enabled one must show up as an error, not a finding. The second test sets up a repo with one real CI workflow and one listed workflow whose file is gone. The repo must come out as having PR CI, with one counted workflow and no errors.
Why it matters here
The cost of a false finding in this setup is not just a wrong number on a dashboard. Findings become cases, and cases send agents off to work. A case that says “add CI to this repo” for a repo that already has CI is work built on a false premise. The watcher exists so that nobody has to double-check it. If it reports things that aren’t true, someone has to check it after all.
The mirror risk is real too: hiding a repo that truly lacks CI. The new rule doesn’t. A repo with Actions disabled still gets an explicit answer from GitHub and still becomes a finding. What disappears is only the guess in between.
The rule
An error is not a finding. The watcher only reports “no CI” when GitHub explicitly answers that Actions is disabled in the repo’s permissions. When in doubt, nothing is stored, the failure is logged as an error, and the repo is checked again on the next round.