Skip to content

fix(agents): ignore unknown ACP Registry platform targets - #59

Merged
DimoADE merged 1 commit into
DimoADE:masterfrom
DorJay007:fix/registry-ignore-unknown-platforms
Nov 7, 2026
Merged

DimoADE merged 1 commit into
DimoADE:masterfrom
DorJay007:fix/registry-ignore-unknown-platforms

Conversation

@DorJay007

Copy link
Copy Markdown
Contributor

Summary

 validate_distributions
   for each binary target
-    if platform not in DESKTOP_PLATFORMS -> Err("unsupported Registry platform")
     validate url, cmd, sha256
 RegistryDistributions::from
   binary targets
+    .filter(platform in DESKTOP_PLATFORMS)

A platform key this build does not know no longer invalidates the whole ACP Registry. It is dropped from the Agent's targets; its archive URL, command and hash are still validated.

Follow-up to #55, which added the two musl keys. The next new key in the official catalog would fail the same way.

Evidence

  • Before: any unknown platform key -> ACP Registry is unavailable: unsupported Registry platform ... for every Agent.
    After:
cargo test -p agents --lib registry_client   3 passed
cargo test -p agents --test registry_cache   7 passed (includes #55 musl test)

registry_platform_targets_this_build_does_not_know_are_ignored
  darwin-aarch64 + freebsd-x86_64 -> only darwin-aarch64 kept
unknown_platform_targets_are_still_validated
  freebsd-x86_64 with ftp:// archive -> Err

Merge Danger

Door: two-way

Blast Radius: registry-parsing

An Agent whose only targets are unknown platforms ends up with no binary distribution on this build, instead of failing the catalog.

The registry validator rejected the whole catalog when any Agent listed a platform this build does not know. Skip unknown targets instead, and keep validating their URLs and commands.
@DimoADE
DimoADE merged commit 6c229e3 into DimoADE:master Nov 7, 2026
5 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants