Explore report · NVIDIA/hyperflare-inference #603

Raw Markdown for agents: https://autobot.eidonix.com/p/973a0c50-9638-41e6-a5ba-b2aea362b38d.md

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

  1. 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 at docs/multi-host.md:288-290 of 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 in docs/TODO.txt rather than present-state architecture documentation (per AGENTS.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 to docs/TODO.txt — and #603 adds no docs/TODO.txt entry 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.
  2. 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) and refresh_model_at (:2279-2280, not wrapped — it already hand-writes cannot check {repo}@{revision} for updates: {error}; the local version is unchanged (use --offline to skip the check) but flattens to a String, losing the cause chain). Separately, RevisionClient::revision (:2130-2151, own -tp1 fallback at :2142, used by scan_revisions at :2153-2182, whose 404s are swallowed at :2171) still returns a bare ureq::Error::StatusCode(404). The benefit is therefore scoped to flare download / flare run / flare acquire, acquire_watched, acquire_update and 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.
  3. 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 first ApiError downcast in flare (the only other downcasts are PublisherKeyRequired: flare/src/controller.rs:1306 (not opened), flare/src/hub.rs:6965,7038). The type is struct RevisionLookupError (private), so no public surface changes. The same context could have been produced inside resolve_revision for both callers.
  4. No documentation delta for an operator-facing message change. Nothing in docs/ quotes or specifies the new cannot resolve REPOSITORY@REVISION: … text; docs/cli-design.md:920-934 documents the -tp1 404 retry and :1060-1072 the update check, both without message text. docs/TODO.txt has no entry for the diagnosed defect.
  5. Claims are consistent with the diff and honestly limited, but nothing is independently reproduced. The added assertion at flare/src/hub.rs:8620-8622 would indeed fail on main (no such string exists there). The author discloses the test-harness caveat (temporary checkout with the lockfile realigned to deepseek-recipe, because flare/Cargo.lock:597-600 pins 6d09e9b… while helios/Cargo.toml:35-37 / helios/Cargo.lock:617-619 pin 70be62f… — 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.

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.

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

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