Skip to content

refactor(product-domains): move function agent response policy#817

Merged
limityan merged 1 commit into
GCWing:mainfrom
limityan:yanzhn/refactor-product-domain-h2-runtime
May 21, 2026
Merged

refactor(product-domains): move function agent response policy#817
limityan merged 1 commit into
GCWing:mainfrom
limityan:yanzhn/refactor-product-domain-h2-runtime

Conversation

@limityan
Copy link
Copy Markdown
Collaborator

Summary

  • Move function-agent prompt templates into bitfun-product-domains while preserving the existing prompt text byte-for-byte.
  • Move Git commit-message and Startchat work-state AI response JSON extraction, JSON repair, JSON-to-domain parsing, and domain error mapping policy into bitfun-product-domains::function_agents.
  • Keep concrete Git/AI service adapters, provider acquisition, AI client calls, AI transport error handling, and runtime orchestration in bitfun-core.
  • Update decomposition docs, product-domains/AGENTS.md, and the boundary check script so H2 no longer describes prompt/response policy as core-owned while still keeping MiniApp IO/worker/host/builtin runtime and Git/AI runtime explicitly core-owned.

Behavior Boundary

This PR is intended as a structural owner migration only. It does not move MiniApp filesystem IO, worker process execution, host dispatch, built-in asset seeding or marker IO, Git service execution, AI client calls, tool runtime, or product-surface behavior.

Verification

  • node scripts/check-core-boundaries.mjs
  • git diff --check gcwing/main..HEAD
  • cargo test -p bitfun-product-domains --features function-agents function_agents:: --lib
  • cargo test -p bitfun-core parse_commit_response_preserves_product_domain_response_policy --lib
  • cargo test -p bitfun-core parse_complete_analysis_preserves_product_domain_response_policy --lib
  • cargo check --workspace
  • cargo test --workspace

Move function-agent prompt templates and AI response extraction/error mapping into product-domains while keeping Git/AI service calls in core. Update boundary guards and docs for the H2 closure.
@limityan limityan merged commit af7f5a3 into GCWing:main May 21, 2026
4 checks passed
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