Skip to content

refactor(miniapp): move builtin contracts to product domains#784

Merged
limityan merged 1 commit into
GCWing:mainfrom
limityan:yanzhn/refactor-p19-miniapp-builtin-contract
May 19, 2026
Merged

refactor(miniapp): move builtin contracts to product domains#784
limityan merged 1 commit into
GCWing:mainfrom
limityan:yanzhn/refactor-p19-miniapp-builtin-contract

Conversation

@limityan
Copy link
Copy Markdown
Collaborator

Summary

  • Move built-in MiniApp bundle, install marker, content hash, source payload, placeholder, package payload, and seed-decision contracts into bitfun-product-domains::miniapp::builtin.
  • Keep core as the owner of bundled asset includes, user-data filesystem IO, marker read/write, customization metadata IO, and recompile orchestration.
  • Extend decomposition docs, local AGENTS guidance, and boundary checks so this pure contract move is not mistaken for runtime/IO migration.

Functional Boundary

  • Behavior-preserving refactor only; no MiniApp asset content, seed/update logic, storage layout, worker runtime, host dispatch, or product surface behavior changes.
  • bitfun-product-domains gains sha2 only behind the miniapp feature. --no-default-features remains limited to serde / serde_json.

Validation

  • git fetch --no-tags git@github.com:GCWing/BitFun.git main:refs/remotes/gcwing/main
  • git rebase gcwing/main
  • git diff --check gcwing/main...HEAD
  • node scripts/check-core-boundaries.mjs
  • cargo tree -p bitfun-product-domains --no-default-features --depth 1 --edges features
  • cargo test -p bitfun-product-domains --no-default-features
  • cargo test -p bitfun-product-domains --features miniapp
  • cargo test -p bitfun-product-domains --features product-full
  • cargo test -p bitfun-core miniapp::builtin::tests:: -- --nocapture
  • cargo check -p bitfun-core --features product-full

@limityan limityan merged commit b7a289b into GCWing:main May 19, 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