The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(skills): report catalog install fetch outages like URL installs
oxoxDev278e7dc64c44
diff --git a/crates/openhuman-core/src/skills/catalog/ops.rs b/crates/openhuman-core/src/skills/catalog/ops.rsindex e177423d27..21fb758fab 100644--- a/crates/openhuman-core/src/skills/catalog/ops.rs+++ b/crates/openhuman-core/src/skills/catalog/ops.rs@@ -90,14 +90,15 @@ pub fn registry_error_message(error: &RegistryError) -> String {message}-/// Whether a registry failure is a defect worth reporting, as opposed to an-/// upstream outage, throttling, or a caller asking for something absent.+/// Whether a catalog-read failure is a defect worth reporting, as opposed to+/// an upstream outage, throttling, or a caller asking for something absent.+/// Install fetches report through `report_install_fetch_failure`.fn is_reportable(kind: RegistryErrorKind, catalog_read: bool) -> bool {- match kind {- RegistryErrorKind::TransportContract => true,- RegistryErrorKind::Malformed => catalog_read,- _ => false,- }+ catalog_read+ && matches!(+ kind,+ RegistryErrorKind::TransportContract | RegistryErrorKind::Malformed+ )}fn observe(operation: &'static str, error: &RegistryError, catalog_read: bool) {@@ -369,6 +370,7 @@ pub(crate) async fn install_from_catalog_in(.await.map_err(|error| {observe("install", &error, false);+ crate::skills::ops_install::report_install_fetch_failure(&error, None);CatalogInstallError::Registry(error)})?;if document.is_blocked() {diff --git a/crates/openhuman-core/src/skills/catalog/ops_tests.rs b/crates/openhuman-core/src/skills/catalog/ops_tests.rsindex 3bdbe444cb..11cff7f80c 100644--- a/crates/openhuman-core/src/skills/catalog/ops_tests.rs+++ b/crates/openhuman-core/src/skills/catalog/ops_tests.rs@@ -103,8 +103,9 @@ fn a_skill_without_a_download_links_its_source_page() {#[test]fn only_registry_defects_are_reportable() {- assert!(is_reportable(RegistryErrorKind::TransportContract, false));+ assert!(is_reportable(RegistryErrorKind::TransportContract, true));assert!(is_reportable(RegistryErrorKind::Malformed, true));+ assert!(!is_reportable(RegistryErrorKind::TransportContract, false));assert!(!is_reportable(RegistryErrorKind::Malformed, false));for kind in [RegistryErrorKind::Timeout,