Skip to content

feat(cosh): add anolisa component contract#1128

Merged
samchu-zsl merged 1 commit into
alibaba:mainfrom
kongche-jbw:feat/anolisa/cosh-contract
Jun 26, 2026
Merged

feat(cosh): add anolisa component contract#1128
samchu-zsl merged 1 commit into
alibaba:mainfrom
kongche-jbw:feat/anolisa/cosh-contract

Conversation

@kongche-jbw

Copy link
Copy Markdown
Collaborator

Description

Adds a minimal ANOLISA component contract for the copilot-shell RPM so cosh
can be adopted and inspected by anolisa without declaring any adapter behavior.

The RPM now installs component.toml under the package datadir contract path
and exposes anolisa-component(cosh) as a virtual provide.

Ship Note

What changed:

  • Added src/copilot-shell/component.toml for the cosh runtime component.
  • Updated the RPM spec to install the contract under /usr/share/anolisa.
  • Added Provides: anolisa-component(cosh) for package discovery.

Known limitations:

  • This contract is intentionally adopt/status only.
  • No cosh adapter, skill, or framework integration is declared.

Related Issue

N/A

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional change)
  • Performance improvement
  • CI/CD or build changes

Scope

  • cosh (copilot-shell)
  • sec-core (agent-sec-core)
  • skill (os-skills)
  • sight (agentsight)
  • tokenless (tokenless)
  • ckpt (ws-ckpt)
  • memory (agent-memory)
  • anolisa (anolisa-cli)
  • skillfs (SkillFS)
  • Multiple / Project-wide

Checklist

  • I have read the Contributing Guide
  • My code follows the project's code style
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the documentation accordingly
  • For anolisa: cargo clippy --all-targets --locked -- -D warnings, cargo fmt --all --check, and cargo test --locked pass
  • Lock files are up to date (package-lock.json / Cargo.lock)

Testing

cd src/anolisa
cargo test -p anolisa-core --locked manifest --quiet

Also validated:

  • src/copilot-shell/component.toml parses as TOML.
  • rpmspec -P expands the updated spec with the new contract path.

Additional Notes

The existing spec changelog emits a date warning under rpmspec -P; this PR
does not change that changelog entry.

- Ship a minimal component.toml for RPM adopt and status flows.
- Install the contract under /usr/share/anolisa during RPM builds.
- Expose anolisa-component(cosh) as a virtual RPM provide.

Signed-off-by: 空澈 <kongche.jbw@alibaba-inc.com>
@kongche-jbw kongche-jbw marked this pull request as ready for review June 25, 2026 06:16
@kongche-jbw kongche-jbw requested a review from samchu-zsl as a code owner June 25, 2026 06:16
@github-actions github-actions Bot added the component:cosh src/copilot-shell/ label Jun 25, 2026
@samchu-zsl samchu-zsl merged commit e85098f into alibaba:main Jun 26, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:cosh src/copilot-shell/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants