From d806b12aa05c4a16736e511053fde3b60159a093 Mon Sep 17 00:00:00 2001 From: zhangtaibo Date: Fri, 14 Aug 2026 19:47:51 +0800 Subject: [PATCH] fix(sec-core): add missing Provides: anolisa-component(sec-core) to RPM spec The agent-sec-core RPM spec file was missing the 'Provides: anolisa-component(sec-core)' virtual provide line that agentsight, copilot-shell, cosh-ng, and skillfs already declare. When the repo-side components-v2.toml is unavailable (HTTP 404) and no package_map entry exists in repo.toml, the ANOLISA RPM resolver falls through all three resolution paths and returns empty candidates, causing 'INVALID_ARGUMENT: not an ANOLISA RPM component'. This makes anolisa install/adopt fail for sec-core, and adapter scan returns empty. Fixes #2559 (sec-core component, same root cause as agent-memory). Verified on ECS: with this patch, rpm-build.sh produces a RPM that includes anolisa-component(sec-core) in its provides, and anolisa adapter scan correctly lists the sec-core/openclaw adapter after install+adopt. --- src/agent-sec-core/agent-sec-core.spec.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/agent-sec-core/agent-sec-core.spec.in b/src/agent-sec-core/agent-sec-core.spec.in index 80a7db31fd..0e676fb5b9 100644 --- a/src/agent-sec-core/agent-sec-core.spec.in +++ b/src/agent-sec-core/agent-sec-core.spec.in @@ -61,6 +61,12 @@ Requires: agent-sec-hermes-hook = %{version}-%{release} Requires: agent-sec-qwen-code-hook = %{version}-%{release} Requires: agent-sec-skills = %{version}-%{release} +# Declare ANOLISA component identity so that `anolisa install sec-core --backend rpm` +# can resolve this package via RPM Provides when the repo-side components-v2.toml +# is unavailable (404) and no package_map entry exists — the resolver falls through to +# RPM Provides but finds no anolisa-component(sec-core) capability. +Provides: anolisa-component(sec-core) + %description Agent-Sec-Core is an OS-level security baseline and hardening framework for AI Agents. This metapackage installs all agent-sec-core components including CLI, hooks, and skills.