Skip to content

refactor(runtime): add product capability assembly#1046

Closed
limityan wants to merge 2 commits into
GCWing:mainfrom
limityan:yanzhn/runtime-owner-pr-c
Closed

refactor(runtime): add product capability assembly#1046
limityan wants to merge 2 commits into
GCWing:mainfrom
limityan:yanzhn/runtime-owner-pr-c

Conversation

@limityan
Copy link
Copy Markdown
Collaborator

@limityan limityan commented Jun 2, 2026

摘要

  • 新增 bitfun-product-capabilities,集中描述产品能力包的 service capability、tool provider group 和 harness provider descriptor。
  • bitfun-core 的 product harness registry 与 product tool provider group assembly 改为消费 product capability owner,保留旧路径兼容入口。
  • 增加 capability pack 校验与 boundary check,避免未知 tool provider group 被静默过滤,并保护 no-default / dependency profile 不扩大。

该 PR 基于 #1041 当前 head;#1041 合入后本 PR 只保留 PR-C 单 commit diff。

功能边界

  • 不改变默认 tool provider order、tool name、harness provider id、legacy facade route、默认 feature 或产品入口能力集合。
  • 不迁移 MiniApp worker/host、function-agent Git/AI、具体 IO tools、scheduler/event/permission/post-turn hook 等缺少端到端等价保护的 concrete runtime 行为。
  • 不修改构建脚本、installer、UI 或产品命令语义。

验证

  • cargo test -p bitfun-product-capabilities
  • cargo test -p bitfun-harness
  • cargo test -p bitfun-core --features product-full product_harness -- --nocapture
  • cargo test -p bitfun-core product_tool_runtime -- --nocapture
  • cargo test -p bitfun-core product_tool_materializer_preserves_provider_plan_order -- --nocapture
  • cargo check -p bitfun-core --features product-full
  • cargo check -p bitfun-core --no-default-features
  • node scripts/check-core-boundaries.mjs
  • pnpm run check:repo-hygiene
  • git diff --check
  • cargo tree -p bitfun-product-capabilities --edges normal
  • cargo tree -p bitfun-core --no-default-features --edges normal
  • cargo metadata --no-default-features --format-version 1 --no-deps

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant