Skip to content

feat(build-runtime): add canonical runtime adapter registry - #1552

Merged
kubohiroya merged 2 commits into
mainfrom
refactor/build-runtime/canonical-control-surface
Aug 23, 2026
Merged

feat(build-runtime): add canonical runtime adapter registry#1552
kubohiroya merged 2 commits into
mainfrom
refactor/build-runtime/canonical-control-surface

Conversation

@kubohiroya

Copy link
Copy Markdown
Owner

Summary

  • add the canonical build runtime adapter contract, typed runtime errors, runtime record validation, revision tracking, and record projector
  • wire the app worker runtime through a shape adapter registry behind the default-off VITE_CANONICAL_BUILD_RUNTIME_ADAPTER flag
  • document the runtime adapter boundary/flag and update runtime record fixtures for the required nodeType

Scope

This is the first checkpoint for #1503. It establishes the shared contract/registry and flag-gated app wiring; location/route runtime adapters and legacy surface removal remain follow-up work under #1503.

Verification

  • pnpm vitest run packages/build-api/src/__tests__/CanonicalBuildRuntimeAdapter.contract.unit.test.ts packages/build-runtime-services/src/__tests__/CanonicalBuildRuntimeAdapterRegistry.unit.test.ts
  • pnpm vitest run src/config/__tests__/canonicalBuildFeatureFlags.unit.test.ts (from app)
  • pnpm -w turbo run typecheck --filter @hierarchidb/build-api --filter @hierarchidb/build-runtime-services --filter @hierarchidb/app
  • pnpm --filter @hierarchidb/app test
  • pnpm --filter @hierarchidb/app format:check
  • pnpm exec biome check packages/build-api/src packages/build-runtime-services/src --reporter summary
  • pnpm exec biome check packages/build-runtime-services/src app/src/worker-runtime/workerBootstrapUtils.ts --reporter summary
  • git diff --check

Refs #1503

@kubohiroya
kubohiroya merged commit 6e7cd26 into main Aug 23, 2026
2 checks passed
@kubohiroya
kubohiroya deleted the refactor/build-runtime/canonical-control-surface branch August 23, 2026 09:20
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