Skip to content

[nightly][agent-sec-core] adapter directories /usr/share/anolisa/adapters/sec-core/{openclaw,hermes} not created after install #1500

Description

@zhangtaibo

Component

agent-sec-core

Bug Description

After installing agent-sec-core via anolisa install sec-core --backend rpm, the test test_sec_core_adapter_directories_present fails because /usr/share/anolisa/adapters/sec-core/{openclaw,hermes} directories do not exist on the filesystem.

The agent-sec-core RPM installs adapter files to /opt/agent-sec/{openclaw-plugin,hermes-plugin}/ (per the component.toml dest field), but the test expects adapter directories at /usr/share/anolisa/adapters/sec-core/{openclaw,hermes}/. The anolisa adapter manager code references {datadir}/adapters/sec-core/{framework}/ (see src/anolisa/crates/anolisa-core/src/adapter/manager.rs:3970), suggesting the adapter manager is supposed to create these directories during adapter enable, but they are not present after a plain anolisa install sec-core without enabling the adapter.

This may be expected behavior (adapter directories are only created when anolisa adapter enable sec-core openclaw is run), in which case the test should be updated to either:

  1. Run anolisa adapter enable sec-core openclaw before checking directories, or
  2. Skip the test if adapters are not enabled.

Alternatively, if the adapter directories should exist after install (matching the manifest), then the install process needs to create them.

This issue was discovered by AgenticOS Nightly automated testing on 2026-07-15 (regression-20260715-170523).

Steps to Reproduce

anolisa install sec-core --backend rpm
ls /usr/share/anolisa/adapters/sec-core/
# → No such file or directory

ls /opt/agent-sec/openclaw-plugin/
# → (files exist here)

Expected Behavior

Either:

  • /usr/share/anolisa/adapters/sec-core/{openclaw,hermes} should exist after anolisa install sec-core (if the manifest declares them), OR
  • The test should enable the adapter first or skip when adapters are not enabled.

Environment

  • ALinux 4 ECS (cn-hongkong), 47.239.61.17
  • anolisa main: e47572a
  • agent-sec-core 0.8.0-1.alnx4

Relevant Log Output

E  AssertionError: sec-core adapter 子目录缺失: /usr/share/anolisa/adapters/sec-core/openclaw
E  assert False
E   +  where False = file_exists('/usr/share/anolisa/adapters/sec-core/openclaw')

Additional Context

Discovered by AgenticOS Nightly (regression-20260715-170523). Needs investigation to determine whether this is a product bug (install should create adapter dirs) or a test bug (test should enable adapters first).

Metadata

Metadata

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions