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:
- Run
anolisa adapter enable sec-core openclaw before checking directories, or
- 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).
Component
agent-sec-core
Bug Description
After installing agent-sec-core via
anolisa install sec-core --backend rpm, the testtest_sec_core_adapter_directories_presentfails 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.tomldestfield), 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}/(seesrc/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 plainanolisa install sec-corewithout enabling the adapter.This may be expected behavior (adapter directories are only created when
anolisa adapter enable sec-core openclawis run), in which case the test should be updated to either:anolisa adapter enable sec-core openclawbefore checking directories, orAlternatively, 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
Expected Behavior
Either:
/usr/share/anolisa/adapters/sec-core/{openclaw,hermes}should exist afteranolisa install sec-core(if the manifest declares them), OREnvironment
Relevant Log Output
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).