Case file: PR #603 "Report the repository and revision on Hub lookup errors"
Author salignatmoandal (FIRST_TIME_CONTRIBUTOR; commit name Mawen Salignat-Moandal), head a3ec4b6, base main, open and "ready for review", opened and last updated 2026-11-29. 1 file, +41/−1, flare/src/hub.rs only. No labels, no reviewers, no CI checks on head, no comments (pr_comments: "No comments").
Key findings
- The cited gap is not an issue — it is a docs PR that its own reviewer asked to have the clause removed. #603's body cites #489 as where the gap was "reported". #489 is an open docs PR by lemassykoi (+10/−1 in
docs/multi-host.md), whose paragraph atdocs/multi-host.md:288-290of that branch reports exactly this:flare download <repo> --revision gb10→RequestError(StatusCode(404)), "naming neither repository nor ref, so an operator cannot tell a missing revision from a private or absent repository". Reviewer original-el8 (CHANGES_REQUESTED, 2026-11-28) point 3 says that clause "is an unresolved defect and belongs indocs/TODO.txtrather than present-state architecture documentation (perAGENTS.md)", and the Autobot review of #489 (2026-11-24) said the same, adding "flare/src/hub.rs:2443(not opened) should wrap like:1620". So #603 is the code fix for a defect that a reviewer explicitly deferred todocs/TODO.txt— and #603 adds nodocs/TODO.txtentry and no cross-link back to #489. No GitHub issue exists for the gap; searches for "404 revision repository error name", "hub resolution diagnostic error context repository" and "RequestError StatusCode 404" return only #489. - The new context reaches only one of the three Hub resolution call sites.
resolve_revision(flare/src/hub.rs:3374-3396) has two callers:resolve_primary_target(:3427, wrapped by this PR) andrefresh_model_at(:2279-2280, not wrapped — it already hand-writescannot check {repo}@{revision} for updates: {error}; the local version is unchanged (use --offline to skip the check)but flattens to aString, losing the cause chain). Separately,RevisionClient::revision(:2130-2151, own-tp1fallback at:2142, used byscan_revisionsat:2153-2182, whose 404s are swallowed at:2171) still returns a bareureq::Error::StatusCode(404). The benefit is therefore scoped toflare download/flare run/flare acquire,acquire_watched,acquire_updateand the Orbit agent DOWNLOAD handler — the description's phrase "primary core resolution" implies this but never states the scoping, nor that the update-check path was already covered and stays unwrapped. - First-of-its-kind mechanism for a single call site, and nothing else changes. The crate's error alias is
Box<dyn std::error::Error>(flare/src/hub.rs:29), so the wrapper must downcast; this is the firstApiErrordowncast inflare(the only other downcasts arePublisherKeyRequired:flare/src/controller.rs:1306(not opened),flare/src/hub.rs:6965,7038). The type isstruct RevisionLookupError(private), so no public surface changes. The same context could have been produced insideresolve_revisionfor both callers. - No documentation delta for an operator-facing message change. Nothing in
docs/quotes or specifies the newcannot resolve REPOSITORY@REVISION: …text;docs/cli-design.md:920-934documents the-tp1404 retry and:1060-1072the update check, both without message text.docs/TODO.txthas no entry for the diagnosed defect. - Claims are consistent with the diff and honestly limited, but nothing is independently reproduced. The added assertion at
flare/src/hub.rs:8620-8622would indeed fail on main (no such string exists there). The author discloses the test-harness caveat (temporary checkout with the lockfile realigned todeepseek-recipe, becauseflare/Cargo.lock:597-600pins6d09e9b…whilehelios/Cargo.toml:35-37/helios/Cargo.lock:617-619pin70be62f…— the same limitation #598 reported) and that the Orbit CLI workflow was not run. No CI on head.
The change
Size: +41/−1 in flare/src/hub.rs, in three parts.
- New private error type (
flare/src/hub.rs:3398-3419),Display=cannot resolve {repository}@{revision}: {source},Error::source()returning the wrapped error so the cause chain is preserved.repositorycomes fromrepo.url()— a plainowner/model, not a full Hub URL. resolve_primary_target(:3421-3449) changesresolve_revision(api, repo, progress)?into a.map_err(...)closure (:3427-3441) that boxesRevisionLookupErroronly when the boxed error downcasts toApiError::RequestError(e)withebeingureq::Error::StatusCode(404); every other error is returned unchanged. BecauseDisplayembeds the originalApiError, the rendered message still contains HTTP 404 and does not assert a cause (missing ref vs private repo vs typo) — matching the description's claim that the status is retained without assigning a cause.- Test
permanent_resolution_failures_are_not_retried(:8601-8625) keeps its loop over[("gb10",401),("gb10-tp1",404),("custom",404)]and adds, for thestatus == 404cases only,assert!(error.contains(&format!("owner/model@{revision}")))(:8620-8622). The test reaches the wrap throughfetch_primary(:3354) →fetch_primary_with_progress(:3472) →resolve_primary_target(:3480).
What the code does that the description does not say: the wrapper is applied at one call site only (finding 2); it is the first ApiError downcast in flare; the reported revision is the originally requested one, because retry and the gb*→-tp1 fallback stay inside resolve_revision (:3381-3392), so a -tp1 alias that also 404s reports …@gb10, not …@gb10-tp1. Nothing in the description is unimplemented.
The why
The problem: during core acquisition a Hub revision lookup that returns HTTP 404 is surfaced as a status only; the operator has to work out which reference the agent tried. The only cited source is #489 (see Key finding 1), whose reproduction is concrete (--revision gb10 → 404; --revision main resolved; the repository's only branch is main) and whose reviewer redirected it to docs/TODO.txt. There is no maintainer-filed issue, no TODO entry, and no prior discussion on #603 itself (pr_comments empty), so the "want" is one contributor's reproduction plus a reviewer's acknowledgement that it is "an unresolved defect". AGENTS.md:165-169 requires a contribution to address "an explicit maintainer request, a demonstrated defect, a measured performance or memory problem, or inaccurate documentation": a demonstrated defect exists, but it was demonstrated by a contributor rather than a maintainer, and it is recorded only inside someone else's open docs PR.
Related work
- Nothing overlaps the diff. No commit on
mainsince the branch point (44f59df) touchesflare/src/hub.rs.items_touching(flare/src/hub.rs)returns only #603 (open), #177 (open, Windows CI + cache file identity, conflicted since 2026-11-13), #591 (merged, WinUI core updates), #531 (merged, publisher-key import), #493 (merged, publisher keys on Windows downloads) — all different concerns. Nothing stacked, superseded, undone or conflicting. - #598 (merged 2026-11-29, same day, hours before) is the nearest topical neighbour. It expanded
helios/src/core/naming.rs (not opened)::PLATFORMSfrom 6 to 19 entries and unified Orbit revision matching, which widens the input totp1_revision_alias(flare/src/hub.rs:3363-3365:revision.starts_with("gb") && PLATFORMS.contains(&revision)) — i.e. it increases the population of 404s that #603 makes readable. #598's own limitations note that "repositories that do not yet publish a branch for a newly recognized platform return HTTP 404". #603 builds on it rather than conflicting. - #407 (merged) is prior art in the same spirit: its failed download "raises
FetchErrorthat names the repository, file and revision and says how to seed the hub cache". - The older
refresh_model_atmessage (flare/src/hub.rs:2279-2280) already names{repo}@{revision}, so #603 is consistent with it, not duplicating or reversing it.
Recent activity
flare/src in the last 60 days: #598 (Luke Alonso, 2026-11-29), #591 (eugr, 2026-11-28), #502 (Wiktor Zdrojewski, 2026-11-28), GA10B/executor work (Luke Alonso, 2026-11-27), #531 (eugr, 2026-11-25), #529 (eugr, 2026-11-25), KV compression (#504, 2026-11-25), HTTP/2 Hub downloads (Luke Alonso, 2026-11-23). #603 neither conflicts with nor reverses any of these; the only interaction is with #598's continued widening of platform revisions and therefore of 404s (above).
People
- Author: salignatmoandal, FIRST_TIME_CONTRIBUTOR, 0 merged / 0 closed in 180 days, no prior history in
flare/src. Three separate small PRs on the same day: #603 (this one), #601 "Expose Selene metrics on the Docker host loopback", #602 "Correct PID namespace guidance for Selene's TLS Compose example" (+3/−2 docs, Autobot review returned Ready To Merge 2026-11-29 15:03). - Regular
flare/srccommitters (180 days): Luke Alonso (62), jasonc (17), Eugene Rakhmatulin (12). Recenthub.rswork is Luke Alonso's (#598) and eugr's (#493, #531, #591) — plausible reviewers, none engaged. - The defect's history lives elsewhere: #489 is by lemassykoi, reviewed by original-el8 with CHANGES_REQUESTED, plus an Autobot review. The charter gives priority contributors (@voipmonitor, @original-el8, @lukealonso) extra weight and requires reviews to state what is missing; none has reviewed #603.
Community
Zero engagement on #603: no comments, no reviews, no reactions, no labels, no assignees, no checks on a3ec4b6. The discussion that motivates it sits on #489 (3 comments, one Autobot review, one CHANGES_REQUESTED), and #489 has not been updated to point at #603 even though #489 is listed as referring to #603 ("Referred to by: #603 [mentions]").
Project fit
Lines up: AGENTS.md:165-169 accepts a demonstrated defect; AGENTS.md:52-60 and the repo-prose skill treat error text as in-scope specification, and the change keeps "the message retains HTTP 404 without assigning a cause", consistent with the docs principle of stating what is implemented rather than guessing causes.
Does not line up cleanly: AGENTS.md:57-60 routes unresolved defects to docs/TODO.txt, which is the path #489's reviewer chose and which #603 bypasses without adding the entry; the change also adds a bespoke error type plus the first ApiError downcast in flare for a single call site where resolve_revision would have covered both callers, and it changes an operator-facing message without a documentation delta.
Claims and evidence
Claimed and backed by the diff/visible state: the fixture test fails on baseline for the 404 cases (no owner/model@revision string exists at flare/src/hub.rs:3404 on main, and the new assertion at :8620-8622 requires it); retry/-tp1 decisions still run before the context is added (:3381-3392 precede :3427); HTTP 404 is retained in the message because Display embeds the original ApiError.
Claimed but not independently reproduced: both resolution-failure tests and eight --lib revision tests passing; full Flare suite 242 passed / 4 ignored in release on Linux ARM64; git diff --cached --check clean. There are no CI checks on the head commit, so all of this rests on the author's word.
Disclosed limitations: the test run used a temporary checkout whose Flare lockfile was realigned to the deepseek-recipe revision pinned by Helios, because the repository lockfile is stale (flare/Cargo.lock:597-600 vs helios/Cargo.lock:617-619); the repository lockfile is outside the change; the complete Orbit CLI workflow was not run, so the end-to-end operator-visible message through Orbit (where at(node, error), flare-cli/src/orbit/controller.rs:2533-2536, prefixes only the node name) is unverified.
Reach
Affects stderr text only, for flare download, flare run, flare acquire, and Orbit agent downloads; no flags, defaults, configuration, dependencies or on-disk formats change; the new type is private, so no interface or compatibility surface. It does not reach the update-check path (refresh_model_at, flare/src/hub.rs:2279-2280) or RevisionClient::revision (:2130-2151, flare-cli/src/cache_commands.rs:272 (not opened) check_core_updates), where 404 diagnostics stay as they were. No documentation change accompanies the operator-visible message (finding 4).
Process
Open, marked ready for review, one commit, same-day open and last update (2026-11-29). No CI configured/run on head, no reviews, no labels, no assignees, no conversation. Not a draft; no rebase or sign-off question has been raised, and nothing in the repo blocks it mechanically.
Open questions / not found
- Is #489's reviewer's instruction ("move it to
docs/TODO.txtwith a close condition") satisfied by merging #603 without the TODO entry and without updating #489? Not answerable from the record. - Why scope the wrapper to
resolve_primary_targetrather thanresolve_revision, which would coverrefresh_model_atuniformly (as a typed error instead of a flattenedString)? - Is
RevisionClient::revision's bare 404 (flare/src/hub.rs:2130-2151) intentionally left out, given it is the path the update check depends on? - No maintainer statement exists anywhere that this diagnostic is wanted; no issue, no TODOs entry, no label.
- No Discord handle is given in #603 (sibling PR #489 states "no username provided" for its author).
- Whether CI will run at all on this head: the packet reports "no checks" for both this PR and the merged-today #598 context; no CI status could be found for
a3ec4b6.