Skip to content

fix(sec-core): add missing Provides: anolisa-component(sec-core) to RPM spec - #2563

Open
zhangtaibo wants to merge 1 commit into
alibaba:mainfrom
zhangtaibo:fix/agent-sec-core-missing-provides
Open

fix(sec-core): add missing Provides: anolisa-component(sec-core) to RPM spec#2563
zhangtaibo wants to merge 1 commit into
alibaba:mainfrom
zhangtaibo:fix/agent-sec-core-missing-provides

Conversation

@zhangtaibo

Copy link
Copy Markdown
Collaborator

Problem

Fixes #2559 (sec-core component — same root cause as agent-memory, covered separately in PR #2560).

The agent-sec-core RPM spec file (src/agent-sec-core/agent-sec-core.spec.in) is missing the Provides: anolisa-component(sec-core) virtual provide line. All other ANOLISA-managed RPM components that ship OpenClaw adapters already declare this:

  • src/agentsight/agentsight.spec.inProvides: anolisa-component(agentsight)
  • src/copilot-shell/copilot-shell.spec.inProvides: anolisa-component(cosh)
  • src/cosh-ng/cosh-ng.spec.inProvides: anolisa-component(cosh-ng)
  • src/skillfs/skillfs.spec.inProvides: anolisa-component(skillfs)

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: component 'sec-core' is not an ANOLISA RPM component. This makes anolisa install and anolisa adopt fail, and anolisa adapter scan returns an empty adapters list for sec-core.

Fix

Add Provides: anolisa-component(sec-core) to the spec file, after the Requires section and before %description:

+Provides:       anolisa-component(sec-core)

Verification

# On ECS (8.217.123.80), fresh clone + apply patch + rpm-build:
git clone https://github.com/alibaba/anolisa.git && cd anolisa
git apply fix.patch
bash scripts/rpm-build.sh agent-sec-core
# → [OK] agent-sec-core RPM built successfully

# Verify RPM has the provide:
rpm -qp --provides scripts/rpmbuild/RPMS/x86_64/agent-sec-core-*.rpm
# → anolisa-component(sec-core)

# Install + adopt + scan:
dnf install -y scripts/rpmbuild/RPMS/x86_64/agent-sec-*.rpm
anolisa adopt sec-core --package agent-sec-core
anolisa --json adapter scan | python3 -c "import json,sys; d=json.load(sys.stdin); [print(a) for a in d['data']['adapters'] if a['component']=='sec-core' and a['framework']=='openclaw']"
# → {'component': 'sec-core', 'framework': 'openclaw', 'resource_present': True, 'driver_available': True, 'framework_detected': True}

Co-Authored-By: Claude noreply@anthropic.com

…PM 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 alibaba#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.
@zhangtaibo
zhangtaibo requested a review from yangdao479 as a code owner August 14, 2026 11:48
@github-actions github-actions Bot added the component:sec-core src/agent-sec-core/ label Aug 14, 2026

@qoderai qoderai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

本次审查范围内未发现需要修改的问题。


🤖 Generated by QoderView workflow run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:sec-core src/agent-sec-core/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Nightly][anolisa] bug: agent-memory RPM spec missing Provides: anolisa-component(agent-memory), causing install INVALID_ARGUMENT and adapter scan empty

1 participant