Repository navigation
fix: report private/unreadable repos as excluded, not unavailable - #34
Merged
Merged
Conversation
The Pages workflow collects with github.token, scoped to PyAutoEars, so the metadata read for a private repo answers 404 and was reported as a generic "unavailable" read failure. GitHub.get now raises NotFound (a ReadError) on gh's "HTTP 404", and collect() reports that metadata read as "excluded" with a "not visible publicly (private or missing)" gap. Rate limits, 5xx and timeouts stay "unavailable". Closes #33 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Pages workflow collects with
github.token, scoped to PyAutoEars, soGET repos/<private repo>answers 404 and the two private repos in the body map (Jammy2211/euclid_assistant, PyAutoLabs/ECLIPSE_lens_catalogue) showed asunavailable, which reads as a collection failure.GitHub.getnow raisesNotFound(aReadErrorsubclass) whengh apireportsHTTP 404, andcollect()reports that metadata read asexcludedwith the gap "source is not visible publicly (private or missing)". Rate limits, 5xx and timeouts stayunavailable. REFERENCE.md notes the rule.Accepted trade-off: a deleted or mistyped repo also shows as
excluded(still listed with its gap). Brain's Community adapter only degradespartial/unavailablereceipts, so no Brain change.Closes #33
API Changes
Added
ears.collect.NotFound(ReadError); a 404 metadata read now yields receipt statusexcludedinstead ofunavailable. No snapshot schema change (excludedwas already a valid status).See full details below.
Test Plan
python -m pytest -q: 153 passed, up from 148 (5 new: collect excluded-vs-unavailable,GitHub.getclassification for 404 / 403 / 502 / no stderr, payload never echoed)state.jsonwith a complete + a NotFound (excluded) receipt validates against Brain'sboard/_state.pyand stays greengh apiprintsgh: Not Found (HTTP 404)on stderr for an unreadable repoFull API Changes (for automation & release notes)
Added
ears.collect.NotFound—ReadErrorsubclass raised byGitHub.geton a 404 ("source not found or not visible publicly")Changed Behaviour
ears.collect.collect— aNotFoundon therepos/{repo}metadata read gives receiptstatus: excluded,public_verified: false, gapsource is not visible publicly (private or missing); otherReadErrors remainunavailableGenerated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code