Opened by a workflow run, Nov 29, 2026 10:03 AM EST. decide malicious: all_clear (100%): No malicious content found decide malicious: all_clear (100%): No malicious content found
explore
Author: salignatmoandal (first-time contributor; no Discord handle given in the PR)
Motivation: When a Hugging Face revision lookup for a core fails with HTTP 404, flare prints just the bare status, so an operator cannot tell which owner/model@revision failed. This wraps that 404 in a message that names the repository and revision, while still reporting HTTP 404 as the status.
Scale: +41 / −1 lines in 1 file
Proposal:
- Add a private
RevisionLookupError { repository, revision, source }withDisplay=cannot resolve {repository}@{revision}: {source}and the original error assource()(flare/src/hub.rs:3398-3419). - In
resolve_primary_target, downcast the boxed error and, only if it isApiError::RequestError(ureq::Error::StatusCode(404)), box the new type aroundrepo.url()+repo.revision(); all other errors pass through unchanged (:3427-3441). - Leave retry and the
gb*→-tp1fallback insideresolve_revisionuntouched, so the message names the originally requested revision (:3374-3396). - Strengthen the mock-Hub test
permanent_resolution_failures_are_not_retried: for its 404 cases the message must containowner/model@{revision}(:8601-8625). - No dependency, flag, default, on-disk format or public-interface change; the new type is
struct, notpub. Touches: flare/src/hub.rscore-acquisition error path (resolve_primary_target,resolve_revision) — stderr text only, no behaviour change.flare/src/hub.rsrevision resolution tests (mock Hub fixture test).- Operator-facing diagnosis in
flare download/flare run/flare acquireand Orbit agent DOWNLOAD; not the update-check path. Related items: - #489 docs: state what a cold peer needs to stage a core (open): the only cited source of the gap; its reviewer asked for that very 404 clause to be removed
- #598 core: recognize all known Ampere and Blackwell GPU platforms… (merged): same file, merged hours earlier; widens the set of 404s this makes readable
- #407 (merged): prior art — its failed download raises
FetchErrornaming repository, file and revision - #601 Expose Selene metrics on the Docker host loopback (open): same author, same day, unrelated area
- #602 Correct PID namespace guidance for Selene's TLS Compose example (open): same author, same day, unrelated area
Link: https://github.com/NVIDIA/hyperflare-inference/pull/603
Autobot comments: The description's cited gap is not an issue but an open docs PR (#489) whose reviewer (original-el8, CHANGES_REQUESTED) and Autobot review both told its author to move that 404 clause out of the architecture docs into
docs/TODO.txt; #603 is the code fix for that deferred defect and neither file was touched or cross-linked. Only one ofresolve_revision's two callers is wrapped:refresh_model_atalready names{repo}@{revision}(flattened to aString, cause chain lost) andRevisionClient::revisionstill returns a bareureq::Error::StatusCode(404), so the change covers primary acquisition only. It introduces the firstApiErrordowncast inflareand a bespoke error type serving a single call site. No CI on the head commit, no reviews, no comments; the author's test run needed a temporary lockfile realignment (flare/Cargo.lockis stale on main) and the Orbit CLI end-to-end path was not run.
Classify intake
Selected: triage:review
Threshold: 65%
Triage
- [✓]
triage:review: 99.8% -
triage:design-review: 0.1% -
triage:integration: 0.0% -
none: 0.0% -
triage:validation: 0.0% -
triage:investigate: 0.0% -
triage:partial: 0.0% -
triage:verify-for-closure: 0.0% -
triage:superseded: 0.0%
Priority
-
none: 78.3% -
priority:P2: 19.8% -
priority:P1: 1.8%
Type
-
bug: 56.2% -
community: 37.8% -
enhancement: 34.9% -
duplicate: 10.7% -
documentation: 1.0% -
performance: 0.4%
Area
-
area:api: 40.7% -
area:orbit: 24.5% -
area:preparation: 16.5% -
area:rocenante: 2.0% -
area:memory: 1.4% -
area:engram: 1.2% -
area:caching: 0.8% -
area:packaging: 0.8% -
area:selene: 0.6% -
area:kernels: 0.1% -
area:scheduling: 0.1%
Model
-
model:deepseek-v4: 14.8% -
model:deepseek-v4.1: 4.7% -
model:inkling-small: 4.2% -
model:glm-5.3: 1.2% -
model:kimi-k3.1: 0.5% -
model:qwen3.8-27b: 0.3% -
model:nemotron-3.5-bolt: 0.2% -
model:mimo-v2.6: 0.2% -
model:qwen3.8-flash-next: 0.2% -
model:muse-glimmer: 0.1% -
model:gemma4: 0.0%
Apply Labels (Intake)
Applied: +triage:review
Value Proposition
Value Proposition — PR #603 "Report the repository and revision on Hub lookup errors"
Charter alignment. Error text is in-scope specification for this repo, and the merge bar accepts a reproducible bug / demonstrated defect. The defect is concrete: --revision gb10 yields RequestError(StatusCode(404)) naming neither repository nor ref (#489's reproduction). The change is stderr text only — private error type, no flags, defaults, dependencies, config or on-disk formats, no public surface — i.e. close to the "smallest footprint" the charter asks for. It is consistent with existing precedent rather than new machinery in spirit: #407's FetchError names repository, file and revision, and refresh_model_at (flare/src/hub.rs:2279-2280) already prints {repo}@{revision}. It also grows in value because merged #598 widened PLATFORMS from 6 to 19 entries, increasing exactly the population of 404s this PR makes readable. No non-goal (runtime vs recipes split, hardware coverage) is implicated; flare/src/hub.rs is the runtime-side, model-agnostic layer.
Novelty & status. Neither obsolete nor superseded: no commit on main since the branch point 44f59df touches flare/src/hub.rs, and the only PRs touching that file are unrelated (#177 Windows CI, #591/#531/#493 publisher keys / WinUI). Genuinely additive.
Value vs maintenance cost. Beneficiaries: operators of flare download / run / acquire and Orbit agent downloads. Evidence is honest but author-only — the new assertion at :8620-8622 would fail on baseline, the full suite is reported as 242 passed / 4 ignored on Linux ARM64 with a disclosed lockfile caveat; there is no CI on a3ec4b6 and zero review engagement. Maintenance cost is genuinely low (+41/−1, one private type), though the wrapping is the first ApiError downcast in flare and is applied at a single call site.
What must change before merge:
- Wrong layer / narrow scope. The wrapper sits in
resolve_primary_target; putting it inresolve_revision(:3374-3396) would coverrefresh_model_atand avoid a bespoke mechanism for one caller. Widen it or state the scoping explicitly — the description's "primary core resolution" never does. - Process trail. #489's reviewer (original-el8, CHANGES_REQUESTED) deferred this defect to
docs/TODO.txt; #603 adds no TODO entry, no cross-link to #489, and no issue exists. Close that loop. - Docs fidelity. No
docs/delta for an operator-facing message change; note that the reported ref is the originally requested one, so a-tp1fallback 404 prints…@gb10. - CI on head must run, and the Orbit end-to-end message (only the node name is prefixed) should be verified or its absence disclosed.
Verdict: Worth it with changes. A real, cheap diagnostic fix that is not yet in the right layer and is not linked to its own defect record.
Full report Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.
explore
Author: salignatmoandal (first-time contributor; no Discord handle given in the PR)
Motivation: When Flare asks the Hugging Face Hub for a revision and gets HTTP 404, the operator only sees "404" — not which repository or revision the agent tried. This PR adds that owner/model@revision context to the message so an operator can tell what failed to resolve.
Scale: +41 / −1 lines in 1 file
Proposal:
- Add a private
RevisionLookupErrortype whose message readscannot resolve {repository}@{revision}: {source}, keeping the original error as its cause (flare/src/hub.rs:3398-3419). - Wrap
resolve_revision's result insideresolve_primary_targetonly, and only when the error downcasts toApiError::RequestErrorwithureq::Error::StatusCode(404); all other errors pass through unchanged (:3427-3441). - Leave the existing retry and
gb*→-tp1fallback insideresolve_revisionuntouched, so the message names the originally requested revision. - Strengthen the existing fixture test so the two 404 cases must contain
owner/model@revision; the 401 case stays unwrapped (:8601-8625). Touches: flare/src/hub.rsprimary core resolution (resolve_primary_target,fetch_primary_with_progress) — operator-visible stderr text.flare/src/hub.rserror handling — firstApiErrordowncast in the crate, on aBox<dyn Error>alias.flare/src/hub.rsunit tests — one existing test tightened, no new test file. Related items:- #489 docs: state what a cold peer needs to stage a core (open): the only cited source; its reviewer asked for this 404 clause to move to
docs/TODO.txt, which #603 does not do. - #598 (merged): widened
PLATFORMS, increasing the number of 404s this change makes readable; built on, not conflicting. - #407 (merged): prior art — names repository, file and revision in
FetchError. - #177 (open): other open PR touching
flare/src/hub.rs, unrelated Windows CI/cache concern. - #591 (merged): most recent
flare/src/hub.rscommit onmain(f5ce5534); no conflict. Link: https://github.com/NVIDIA/hyperflare-inference/pull/603 Autobot comments: The "no comments / zero engagement" line in the earlier report is now stale by exactly one item: aflare-autobotcase-file intake comment at 2026-11-29 15:05 ("A case file has been opened for 603 … Future reviews will auto-run 90 minutes after code updates"). That is automation, not review — still no human comment, no review, no label, no assignee and no CI ona3ec4b6e. Triage asymmetry: the same author's sibling PRs #601 and #602 are labelledtriage:review, while #603 — the only one touching Rust code — is unlabelled. Everything else in the earlier report stands unchanged: the wrapper reaches one of three resolution sites (refresh_model_at:2279-2280andRevisionClient::revision:2130-2151keep their own 404 handling), there is nodocs/TODO.txtentry or cross-link to #489, and all test-run claims are the author's word, unreproduced.
Classify intake
Selected: triage:review, bug
Threshold: 65%
Triage
- [✓]
triage:review: 99.9% -
triage:design-review: 0.0% -
triage:validation: 0.0% -
triage:integration: 0.0% -
none: 0.0% -
triage:investigate: 0.0% -
triage:verify-for-closure: 0.0% -
triage:partial: 0.0% -
triage:superseded: 0.0%
Priority
-
none: 95.8% -
priority:P2: 3.3% -
priority:P1: 0.9%
Type
- [✓]
bug: 65.1% -
enhancement: 56.2% -
community: 37.8% -
duplicate: 2.0% -
documentation: 0.5% -
performance: 0.1%
Area
-
area:api: 20.2% -
area:selene: 10.7% -
area:preparation: 8.5% -
area:orbit: 1.2% -
area:engram: 0.5% -
area:kernels: 0.3% -
area:caching: 0.1% -
area:rocenante: 0.1% -
area:scheduling: 0.1% -
area:memory: 0.0% -
area:packaging: 0.0%
Model
-
model:deepseek-v4: 13.3% -
model:deepseek-v4.1: 5.3% -
model:kimi-k3.1: 2.6% -
model:glm-5.3: 0.5% -
model:muse-glimmer: 0.5% -
model:nemotron-3.5-bolt: 0.2% -
model:inkling-small: 0.2% -
model:mimo-v2.6: 0.1% -
model:qwen3.8-flash-next: 0.1% -
model:qwen3.8-27b: 0.1% -
model:gemma4: 0.0%
Apply Labels (Intake)
Applied: +triage:review, +bug
Value Proposition
Value Proposition — PR #603 "Report the repository and revision on Hub lookup errors"
Charter alignment: partial but real. This is not a new recipe, alias, model branch, flag, dependency, or captured-graph op contract, so none of the non-goals or ownership rules (runtime vs. recipes) are implicated; it stays inside Helios-side error plumbing in flare/src/hub.rs and touches no public surface (RevisionLookupError is private, Error::source() preserves the cause chain). It does not violate "don't silently ignore" — the 404 status is preserved and the existing retry/-tp1 fallback still runs before the wrap. It serves the charter's "be explicit" and "smallest footprint in shared code" instincts. What it does not do is address a root cause; the 404 is a legitimate status, so this is operator-facing message ergonomics.
Novelty: additive, neither obsolete nor superseded. main has no commit on flare/src/hub.rs since f5ce5534 (#591), so the gap is unfixed. No other open PR covers it — items_touching returns only #603, #177, #591, #531, #493 — and merged #598 merely widens the PLATFORMS population that can produce these 404s. Nothing is reverted. The sole cited source, #489, still does not link to #603.
Value vs. cost. Benefit is narrow but concrete: an operator sees the attempted owner/model@revision instead of a bare 404. Cost is small (+41/−1, private type, no new dependencies, no behavior change on the 401 path — provably, since the new assertion sits under status == 404 while the ("gb10", 401) case stays unwrapped). The strengthened fixture reportedly fails on baseline first, which is the right evidence shape. But that evidence is entirely the author's word: no CI on a3ec4b6e, and the disclosed caveat (lockfile realigned to deepseek-recipe; Orbit CLI workflow not run) leaves the claim unverified.
The blocking issue is process, not code. Priority contributor @original-el8 explicitly deferred the 404 clause in #489 to docs/TODO.txt with a close condition (per AGENTS.md); #603 neither records that entry (docs/TODO.txt has no 404/revision entry) nor cross-links #489. Scope is unexplained: only resolve_primary_target is wrapped, while refresh_model_at still flattens its error to a String and RevisionClient::revision still returns a bare 404. There is no docs delta for the new message, no label (#601/#602 both carry triage:review), no maintainer statement that this diagnostic is wanted, and no human review — the single comment is Autobot intake.
Verdict: Worth it with changes. Merge-worthy in substance — minimal, low-risk, correctly placed, additive — once (1) the deferred docs/TODO.txt entry is added and #489 cross-linked per the reviewer's instruction, (2) CI or a reproducible run at a3ec4b6e substantiates the test claims, and (3) the choice to wrap only resolve_primary_target rather than the shared resolution path is justified or broadened.
Note: no instruction-directed content was found in the PR body, comments, or dossier; the only comment is Autobot intake automation.
Full report Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.
Subtraction and simplicity
Subtraction/Simplicity review of PR #603 (+41/−1, flare/src/hub.rs only). The diff is focused and well-tested but hand-rolls a private error type for a string no consumer reads as typed.
- [high] Delete
RevisionLookupError(flare/src/hub.rs:3398-3419) and collapse themap_err(:3427-3441). Its only value over a formatted string isError::source(), and nothing walks the chain: aliasBox<dyn Error>(:29), CLI prints Display (flare-cli/src/main.rs:64), Orbit flattens toString(flare-cli/src/orbit/controller.rs:2533-2536,:2545). Replace withformat!("cannot resolve {}@{}: {error}", repo.url(), repo.revision()).into(), the file's own idiom at:2280,:2658,:3297. Keeps HTTP 404 in the message; saves ~22 lines and two impls. - [medium] Third inline copy of the Hub-404 walk —
:2142,:3383, new:3431— whiletransient_hub_error(:5460-5472) is the established named-predicate precedent. Addhub_not_found(&ApiError) -> booland use it at all three so retry and diagnostic decisions cannot drift. - [medium] Placement: the context is duplicated across the two callers of
resolve_revision— new wrap:3427vs the pre-existing hand-written twin at:2279-2280. Insideresolve_revision(:3374-3396) the 404 arm at:3381still holds a concreteApiError, so no downcast would be needed. Also noteRevisionClient::revision(:2130-2151) still surfaces bare 404s for the update check, and the new operator text has no clause indocs/cli-design.md:920-929(AGENTS.md:52-58 treats error text as specification).
Already lean: no dead code, flags, config knobs, dependencies or fallback branches; the struct is private; the test change (:8620-8622) is minimal and proportional.
Open: why wrap outside resolve_revision; whether source() has a future consumer; whether revision's bare 404 is intentionally out of scope; no maintainer request or docs/TODO.txt entry despite #489's reviewer asking for one; no CI on head a3ec4b6, so test evidence is unreproduced (disclosed lockfile caveat).
Subtraction and simplicity
Reviewed PR #603 (+41/−1, flare/src/hub.rs, head a3ec4b6e) for subtraction, simplicity and conventions. The diff is small and mostly lean; one real subtraction exists.
- High — dead typed-error machinery, ~23 of 41 added lines.
RevisionLookupErrorplusDisplayandError::source()atflare/src/hub.rs:3398-3419has exactly one construction site (:3433) and zero readers:search_code RevisionLookupErrorreturns only the definition lines and the construction, and no.source()/.chain()call exists anywhere inflare/orflare-cli/src.Displayalready interpolates the source stringsource()re-exports. Replace:3427-3441with a 6-linemap_errclosure usingformat!("cannot resolve {}@{}: {error}", …).into(), exactly astransport_hint(:5511-5521) andrefresh_model_at(:2280) already do. Message is byte-identical, so the test at:8620-8622is unaffected. Convention hook:AGENTS.md:188-193. - Medium, optional — third verbatim 404 predicate.
matches!(…, ureq::Error::StatusCode(404))now appears at:3383,:3431(new) and:2142; the file already names classifications intransient_hub_error(:5457-5472). Onefn hub_404(&ApiError)beside it collapses bothApiErrorsites. Optional; do not block. - Low — new items are the only undocumented ones nearby, while
transient_hub_error(:5457-5459) andtransport_hint(:5508-5510) carry///prose;AGENTS.md:43-50wants that for code-produced errors. - Everything else is lean and should be left alone: no flags/knobs/env reads, no unused imports, no duplicated retry logic (the wrap runs after
with_transient_retryand the-tp1fallback), and the test delta is 3 lines inside an existing loop at:8603. No existing helper duplicates the new message.
Open: why a typed wrapper when nothing consumes it; why scope the wrap to resolve_primary_target rather than resolve_revision (which would serve refresh_model_at uniformly); whether RevisionClient::revision's bare 404 (:2130-2151) is intentionally out of scope. No human review, no CI on head; the only comment is Autobot intake.
Correctness and contracts
PR #603 (flare/src/hub.rs, +41/−1, head a3ec4b6) adds a private RevisionLookupError that prefixes cannot resolve REPO@REV to the terminal HTTP 404 from resolve_primary_target. The wrapper itself is correct and low-risk: error-path only, no locks, no hot-path allocation, retry and -tp1 fallback decisions still run first inside resolve_revision (hub.rs:3381-3392 vs 3427), and no public/wire/captured-graph contract changes.
Findings:
- Major — uneven application.
refresh_model_at(hub.rs:2276-2280) calls the sameresolve_revisionbut still formatscannot check {repo}@{revision} for updates: …around the bare 404, so one failure mode has two vocabularies in the same binary; its test (hub.rs:6358-6390) asserts only--offline. Fix: wrap insideresolve_revision, or mirror the wrap at :2279. - Minor — 404 also means private/gated. The guard is status-only (hub.rs:3428-3432); the disambiguating token hint is
log::info!(hub.rs:3344-3348) while the error is stderr. Add a credentials clause. - Minor — test placement. The new assertion is bolted into
permanent_resolution_failures_are_not_retried(hub.rs:8619-8622), pins only the substring404, never checksError::source, and the sibling 404 sites are unasserted. - Minor — no record where the repo requires it. #489's reviewer asked for a
docs/TODO.txtentry; there is none, and docs/cli-design.md:920-932 / docs/multi-host.md:536-553 do not specify the new message.
Sound areas: no concurrency/contention/memory effect, no failure-propagation widening (ApiError is downcast nowhere else), no platform asymmetry, no metric-span change, no per-model branch or sign-off requirement.
Open: whether wrapping in resolve_revision was considered; whether RevisionClient::revision's bare 404 is deliberately out of scope; the exact <ureq::Error as Display> wording ("retains HTTP 404") could not be verified in-repo; test evidence is author-only, no CI on a3ec4b6e.
Correctness and contracts
PR #603 (flare/src/hub.rs, +41/−1) adds a private RevisionLookupError and wraps the HTTP 404 from primary core resolution with owner/model@revision. The mechanism is safe — no locks, no shared state, no hot-path allocation, no public/wire/on-disk contract change, and no Unix/Windows parity gap — but the diagnostic is narrower and less accurate than the PR text claims.
Findings that matter most:
- Major — wrong revision named.
flare/src/hub.rs:3387-3390(the-tp1fallback) runs before the wrap at:3434-3435, which builds the context fromrepo.url()/repo.revision(). Whengb10404s andgb10-tp1also 404s, the operator seescannot resolve ORG/MODEL@gb10, not the last attempted reference; #598 (helios/src/core/naming.rs:15, 19 platforms) keeps widening this alias population. Contradicts "the attemptedrepository@revision". - Major — private/absent repository still unnamed.
flare/src/identity.rs:91-95documents that "huggingface.co answers 401 for a repository that does not exist or is not public"; the wrapper matches onlyStatusCode(404)(hub.rs:3430-3431), and the fixture at:8603exercises("gb10", 401)with no assertion, so the exact distinction #489 raised (missing revision vs private/absent repo) is only half covered. - Major — one of two
resolve_revisioncallers.refresh_model_at(hub.rs:2279-2280) flattens the error to aString, andscan_revisions(hub.rs:2171) swallows 404s; nodocs/TODO.txtentry exists despiteAGENTS.md:57-58. - Minor — the 404 predicate is duplicated and reached via the first
ApiErrordowncast inflare; any futuremap_errinsideresolve_revisionsilently disables the message, and nothing tests the fallback-exhausted or-tp1text. - Minor — the cause attached via
Error::source()(hub.rs:3415-3418) is unobservable;Displayalready embeds it and the only printers (flare-cli/src/main.rs:64,flare-cli/src/orbit/agent.rs:135) never walk the chain. - Minor — no CI on
a3ec4b6; suite counts and thegit diff --cached --checkclaim rest on the author, on a temporarily realignedflare/Cargo.lock(:598-600vshelios/Cargo.toml:35-37).
Open: is the requested-vs-attempted revision acceptable, is 401/403 in scope, and why place the context in resolve_primary_target rather than resolve_revision?
Final review
Recommendation: Ready To Merge
PR #603 is a small, correct, low-risk diagnostic fix that adds the attempted repository@revision to terminal HTTP 404 errors in resolve_primary_target (flare/src/hub.rs:3427-3441), directly addressing the bare-404 gap reported in #489 without altering retry or -tp1 fallback behavior. No correctness, safety, concurrency, or contract blockers were found. Before or alongside merge, the diff can be simplified by deleting the unused private RevisionLookupError type in favor of format!(...).into(), and test coverage should add the double-404 -tp1 fallback case (gb10 + gb10-tp1 both 404).
Merge Risk
Level: Low
- Isolated error-path change: Confined to a single
.map_erron the terminal HTTP 404 path ofresolve_primary_target(flare/src/hub.rs:3427-3441), off the serving, CUDA-graph, and token-generation hot paths. - No control-flow or contract impact:
resolve_revision's transient retry (with_transient_retry,flare/src/hub.rs:5476-5493) and-tp1alias fallback (flare/src/hub.rs:3382-3391) still execute before wrapping; non-404 errors pass through unchanged, and no downstream caller downcastsApiErroror inspects.source()(onlyPublisherKeyRequiredis downcast inflare/src/controller.rs:1306andflare-cli/src/hub.rs:66, 75, 139). - No concurrency, I/O, or memory regression: No locks, shared state, or
AcquisitionProgresscounters are touched; zero allocations occur on the success path, and only shortStringformatting occurs on a failing 404 lookup.
Walkthrough
flare/src/hub.rs:3398-3419: Adds privateRevisionLookupErrorwrappingrepository,revision, andsource: Box<dyn std::error::Error>withDisplay(cannot resolve {repository}@{revision}: {source}) andError::source().flare/src/hub.rs:3427-3441: Wraps terminalApiError::RequestError(ureq::Error::StatusCode(404))errors returned byresolve_revisioninsideresolve_primary_target(which servesdownload_for_model_atat:434,acquire_updatevia:13955, Orbit'sdownload_watched, and testfetch_primary_with_progressat:3480), leaving non-404 errors untouched.flare/src/hub.rs:8620-8622: Extendspermanent_resolution_failures_are_not_retriedto assertowner/model@{revision}is present in the formatted error whenstatus == 404.
Pre-merge Checks
- [PASS] Security / malicious screen: Pure error-text formatting on
repo.url()andrepo.revision(); no tokens, headers, or credentials are interpolated, and no prompt-injection or suspicious instructions appear in the PR or diff. - [PASS] Charter & value fit: Minimal, model-agnostic operator diagnostic fix in the right layer (
flare/src/hub.rs) for a concrete bug surfaced in #489; no new flags, dependencies, or public API surface. - [PASS] Related / duplicate / conflict check: No conflicting or duplicate open PRs; complements #598's expanded
PLATFORMSlist andf5ce5534(#591)'sacquire_updateflow (flare/src/hub.rs:13941-13969). - [WARN] Tests & verification evidence: Author reports passing release-mode
flaretests on Linux ARM64 (242 passed, 4 ignored) with a local-only lockfile alignment fordeepseek-recipeand no full Orbit CLI run; no automated CI check run is attached toa3ec4b6, and the-tp1double-404 fallback path lacks a unit test (see Should Fix).
Blockers
None.
Should Fix
- Cover the
-tp1alias double-404 path in tests (flare/src/hub.rs:8601-8625).permanent_resolution_failures_are_not_retriedtests[("gb10", 401), ("gb10-tp1", 404), ("custom", 404)]. Because"gb10-tp1"is not inPLATFORMS(helios/src/core/naming.rs:15-18),tp1_revision_alias("gb10-tp1")(flare/src/hub.rs:3363-3365) returnsfalse— neither 404 iteration exercises thegb10→gb10-tp1fallback before failing, which is the exact#489scenario (--revision gb10against amain-only repo) and is explicitly called out in the PR description. (Meanwhileblackwell_revision_alias_installs_and_refreshes_the_pinned_coreat:12631only testsgb10404 →gb10-tp1200.)- Concrete fix: Add a unit test (or case) where
reporequests"gb10"and both/api/models/owner/model/revision/gb10and/api/models/owner/model/revision/gb10-tp1return 404, asserting each route was requested once and the final error containsowner/model@gb10and404.
- Concrete fix: Add a unit test (or case) where
Subtract / Simplify
- Delete
RevisionLookupErrorand format inline inmap_err(flare/src/hub.rs:3398-3441).RevisionLookupError(:3398-3419) is private, constructed at a single line (:3433), never downcast anywhere, and nothing inflare/orflare-cli/calls.source()on returned errors (every boundary stringifies viaDisplay, e.g.flare-cli/src/main.rs:64,flare-cli/src/orbit/agent.rs:135,flare/src/controller.rs:1308). Additionally, interpolating{self.source}insideDisplaywhile also returningSome(self.source.as_ref())fromError::source()will double-print the underlying error if any future caller walks the error chain. Replacing the 22-line struct with the file's existingformat!(...).into()idiom (matchingrefresh_model_atat:2279-2280andtransport_hintat:5511-5521) produces identical output in ~8 lines:
Then reusefn is_hub_not_found(error: &ApiError) -> bool { matches!( error, ApiError::RequestError(request) if matches!(request.as_ref(), ureq::Error::StatusCode(404)) ) }is_hub_not_foundat:3382-3384(Err(error) if is_hub_not_found(&error) && tp1_revision_alias(revision) =>) and simplify:3427-3441to:let info = resolve_revision(api, repo, progress).map_err(|source| { if source.downcast_ref::<ApiError>().is_some_and(is_hub_not_found) { format!("cannot resolve {}@{}: {source}", repo.url(), repo.revision()).into() } else { source } })?;
Nits
None.
Dropped on verification
- Upstream claim (Major): "
refresh_model_atstill leaks bare 404s / move wrapper intoresolve_revision/acquire_updategoes throughrefresh_model_at/RevisionClient::revisionis an unfixed 3rd site." Verified false on all four counts:refresh_model_at(flare/src/hub.rs:2279-2280) already wrapsresolve_revisionwithformat!("cannot check {}@{revision} for updates: {error}; the local version is unchanged (use --offline to skip the check)", origin.repository), so the repository and revision are already reported there.- Moving the wrapper into
resolve_revisionwould causerefresh_model_atto emit a redundant stuttering message (cannot check owner/model@gb10 for updates: cannot resolve owner/model@gb10: ...). Wrapping inresolve_primary_targetis therefore the right layer. acquire_update(flare/src/hub.rs:13941-13969) callsdownload_for_model_at(:434→resolve_primary_target), notrefresh_model_at, so it is already covered by this PR.- Both non-test callers of
RevisionClient::revision(flare/src/hub.rs:2171inscan_revisionsandflare/src/controller.rs:2649incheck_model_update) discard the error with.ok()?/else { continue; }; it is never shown to operators.
- Upstream claim (Blocking / Minor): "Missing
docs/TODO.txtentry and missing cross-link on #489 per@original-el8's review." Verified inverted/stale:@original-el8's comment on #489 told that docs-only PR not to document an unresolved defect indocs/multi-host.mdand to put unresolved defects indocs/TODO.txtperAGENTS.md:57-58. PR #603 fixes the defect, so adding an "unresolved defect" entry todocs/TODO.txtwould contradictAGENTS.md:57-58. PR #603 already cites#489in its description (creating the GitHub cross-reference visible on#489), and the author cannot edit another contributor's PR. - Upstream claim (Minor): "Status-only 404 message misattributes private/gated repo credential failures to a bad revision; add a credentials hint." Dropped as speculative UX preference:
cannot resolve {repository}@{revision}: {source}states factually what lookup returned 404 without guessing a cause (matching the PR's explicit design choice). - Upstream claim (Minor): "The
gb10-tp1row inpermanent_resolution_failures_are_not_retriedexercises the post-alias fallback path." Verified false ("gb10-tp1"is not inPLATFORMSathelios/src/core/naming.rs:15-18) and converted into the real Should Fix test gap above. - Upstream claim (Low): "
RevisionLookupErroris the only undocumented item in its neighborhood." Verified false: every neighboring helper inflare/src/hub.rs:3353-3460(fetch_primary,tp1_revision_alias,validate_commit,resolve_revision,resolve_primary_target,fetch_resolved_primary) is undocumented; also moot onceRevisionLookupErroris deleted. - Upstream claim: "
Cargo.lockunreadable /ureqversion unverifiable." Verified present atflare/Cargo.lock:1246-1262(hf-hub 0.5.0) and:3382-3399(ureq 3.4.2).
Full report Decision to Test: no (53%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with.
Classify triage
Selected: triage:review
Threshold: 65%
Triage
- [✓]
triage:review: 99.4% -
none: 0.2% -
triage:validation: 0.2% -
triage:design-review: 0.1% -
triage:integration: 0.1% -
triage:investigate: 0.0% -
triage:partial: 0.0% -
triage:verify-for-closure: 0.0% -
triage:superseded: 0.0%
Apply labels
No label changes
Final review
Recommendation: Changes Requested
This PR fixes a real operator-facing diagnostic gap on Hub 404 lookup failures with low merge risk and zero hot-path or concurrency impact, and it places the error context at the right call site (resolve_primary_target, avoiding double-prefixing refresh_model_at). However, the current diff adds 22 lines of unused typed-error boilerplate (RevisionLookupError / Error::source()), restricts annotation strictly to HTTP 404 while leaving HTTP 401/403 (which Hugging Face returns for private or nonexistent repositories) unnamed, and omits test coverage for the -tp1 fallback-exhausted path highlighted in the description. Simplifying the wrapper to format!(...).into(), widening it to ApiError (or explicitly scoping 404-only behavior), and adding a -tp1 fallback-exhausted test will make this a cleaner, smaller, and complete fix.
Merge Risk
Level: Low
- Isolated error-path scope: Only
resolve_primary_targetinflare/src/hub.rs:3421-3449changes, executing once on an already-failed revision lookup with zero effect on successful acquisitions, retry policy (transient_hub_erroratflare/src/hub.rs:5460-5472), or-tp1fallback ordering (resolve_revisionatflare/src/hub.rs:3381-3393). - No public, wire, or concurrency blast radius:
RevisionLookupErroris private, no downstream code inflare/orflare-cli/downcasts toApiErroror parses the lookup error text (content_failureatflare/src/hub.rs:5497-5506is unaffected), and no locks, shared state, or on-disk formats are touched.
Walkthrough
flare/src/hub.rs:3398-3419: Adds a privateRevisionLookupErrorstruct implementingDisplay(cannot resolve {repository}@{revision}: {source}) andstd::error::Error::source().flare/src/hub.rs:3427-3441: Wrapsresolve_revision(api, repo, progress)inresolve_primary_targetwith.map_err(...), downcasting the boxed error toApiError::RequestError(ureq::Error::StatusCode(404))and boxingRevisionLookupErrorwithrepo.url()andrepo.revision()while passing all other errors through unchanged.flare/src/hub.rs:8620-8622: Strengthenspermanent_resolution_failures_are_not_retriedto assert that thestatus == 404cases (gb10-tp1andcustom) includeowner/model@{revision}in the formatted error.
Pre-merge Checks
- [PASS] Security / malicious screen: Purely local stderr error formatting on an existing 404 path; no external execution, untrusted input handling, or credential exposure.
- [PASS] Charter & value fit: Addresses a concrete, reproducible diagnostic defect (#489) in the model-agnostic Hub acquisition layer with minimal surface area.
- [PASS] Related / duplicate / conflict check: No overlapping PRs or conflicting commits on
mainsince branch point; complements #598's expandedPLATFORMSlist (helios/src/core/naming.rs:15-18). - [WARN] Tests & verification evidence: No automated CI checks ran on
a3ec4b6; results are author-reported on Linux ARM64 using a temporary checkout realigningflare/Cargo.lock:597-600tohelios/Cargo.toml:35-37(deepseek-recipe), with Orbit CLI end-to-end flow unrun (both limitations honestly disclosed).
Blockers
None.
Should Fix
-
HTTP 401/403 (and other Hub lookup errors) remain unnamed (
flare/src/hub.rs:3427-3441,:8603,:8620-8622):- As
flare/src/identity.rs:91-95documents, Hugging Face returns HTTP 401/403 for a repository that does not exist or is not public — the other half of the diagnostic ambiguity cited from #489 — yetresolve_primary_targetfilters strictly toureq::Error::StatusCode(404). Even in the PR's own test (flare/src/hub.rs:8603),("gb10", 401)still surfaces withoutowner/model@gb10. - Fix: Annotate any
ApiErrorreturned byresolve_revision(e.g.,if error.is::<ApiError>()), which keeps cancellation errors (flare/src/hub.rs:125) untouched, covers 401/403/404/5xx/network lookup failures uniformly, removes the duplicated 404 match guard (:3382-3383vs:3430-3431), and lets:8620-8622assertowner/model@{revision}for the401case too. (If 404-only scoping is strictly intentional, narrow the PR title accordingly and add an explicit negative assertion for the 401 case.)
- As
-
-tp1fallback-exhausted path is untested and reports only the requested revision (flare/src/hub.rs:3381-3393,:3433-3437,:8603):- When
repo.revision()matchestp1_revision_alias(flare/src/hub.rs:3363-3365, e.g.,gb10) and bothgb10andgb10-tp1return 404 insideresolve_revision,resolve_primary_targetformatsrepo.revision()(gb10). Because the retry message at:3388islog::info!(hidden in default CLI output), the surfaced error omits thatgb10-tp1was also attempted — slightly at odds with the PR description's "attemptedrepository@revisionto the final HTTP 404". Neither("gb10-tp1", 404)nor("custom", 404)inpermanent_resolution_failures_are_not_retried(:8603) exercisestp1_revision_alias. - Fix: Add a fixture test case where both
gb10andgb10-tp1return 404, pinning the exact expected error text. Either include the fallback alias in the diagnostic when tried (e.g.,cannot resolve owner/model@gb10 (also tried gb10-tp1): ...) or clarify in the PR description that the requested revision is reported (matchingrefresh_model_atatflare/src/hub.rs:2280).
- When
Subtract / Simplify
- Delete
RevisionLookupErrorand useformat!(...).into()(flare/src/hub.rs:3398-3441):RevisionLookupError(22 lines plusDisplayandstd::error::Errorimpls) exists only to exposeError::source(), which nothing inflare/orflare-cli/reads:flare/src/hub.rs:29erases errors toBox<dyn std::error::Error>, the CLI printsDisplay(flare-cli/src/main.rs:64), and Orbit flattens toString(flare-cli/src/orbit/agent.rs:135,flare-cli/src/orbit/controller.rs:2534-2546). Every other contextual wrapper inflare/src/hub.rs(:2280,:2651,:2658,:3297,:5516-5520) usesformat!(...).into().- Replacing
:3398-3441with a directmap_err(combined with Should Fix #1):
produces the identical rendered message (retaining HTTP 404) while cutting ~25 lines of boilerplate and unused abstraction (let info = resolve_revision(api, repo, progress).map_err(|error| { if error.is::<ApiError>() { format!("cannot resolve {}@{}: {error}", repo.url(), repo.revision()).into() } else { error } })?;AGENTS.md:188-190).
Nits
- Missing Discord contact line in PR description:
AGENTS.md:144-150requires aDiscord: <username>orDiscord: no username providedline at the end of every PR description.
Dropped on verification
- Claim that
resolve_revisionshould own the wrapper becauserefresh_model_atandRevisionClient::revisionare left uncovered / opaque: Verified false on both counts.refresh_model_at(flare/src/hub.rs:2279-2280) already formatscannot check {}@{revision} for updates: {error}; ...for every error — moving"cannot resolve {repo}@{rev}: ..."intoresolve_revisionwould double-print{repo}@{rev}inrefresh_model_atunlessrefresh_model_atis also rewritten. Separately, all non-test callers ofRevisionClient::revision(scan_revisionsatflare/src/hub.rs:2171andcheck_model_updateatflare/src/controller.rs:2649) intentionally discard errors (let Ok(...) else { continue; }/.ok()?) for best-effort update notices, so its errors are never shown to operators. - Claim that a
fn hub_not_found(error: &ApiError) -> boolhelper could deduplicate all three 404 matches (:2142,:3383,:3431): Verified false for:2142.RevisionClient::revision(flare/src/hub.rs:2131-2146) matchesureq::Error::StatusCode(404)directly, notApiError, so anApiErrorpredicate cannot be used there. Furthermore, wrappingerror.is::<ApiError>()eliminates the duplicated 404 predicate at:3431altogether without adding a new helper. - Claim that #603 must add a
docs/TODO.txtentry and link #489: Verified false. Revieweroriginal-el8on #489 asked to move the bare-404 note out ofdocs/multi-host.md(not opened) intodocs/TODO.txtbecause #489 was a docs-only PR leaving an unresolved defect (AGENTS.md:57-58). #603 resolves the defect rather than leaving it unresolved, and already references #489 in its description. - Claim that
docs/cli-design.mdrequires a documentation delta for the new stderr message: Dropped as low-signal churn.docs/cli-design.md(:920-934,:1060-1072) specifies revision fallback and update behavior without quoting exact Hub error message strings anywhere indocs/. - Separate minor finding that
Error::source()is unobservable: Merged into Subtract / Simplify #1 (RevisionLookupErrordeletion) to avoid duplicate reporting.
Classify triage
Selected: triage:review
Threshold: 65%
Triage
- [✓]
triage:review: 99.9% -
none: 0.0% -
triage:design-review: 0.0% -
triage:partial: 0.0% -
triage:validation: 0.0% -
triage:integration: 0.0% -
triage:verify-for-closure: 0.0% -
triage:investigate: 0.0% -
triage:superseded: 0.0%
Apply labels
No label changes Decision to Test: no (100%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with.