Skip to content

cli: os migrate plan / apply cannot boot the stock showcase or a fresh blank app — Dependency 'com.objectstack.service-automation' not found for the connector plugins #21732

Description

@objectstack-fleet

QA-source: #21721 · cli.migrate-plan-apply-json · acceptance[0]

Clause A1 of cli.migrate-plan-apply-json (rev 2) fails in the 17.7 pre-release run #21721 (subject 251a7dd4); seen by lanes L11 and L12, and verifier V5 reproduced it twice in each of two setups: CONFIRMED, high — schema migration is unusable for every new blank app and for the showcase. Predates 17.6.0 (introduced by fc8a33935c, #12952, 2026-08-28).

Reproduction

  1. In examples/app-showcase, or a fresh create-objectstack qa -t blank scaffold: os migrate plan --database-url file:/tmp/x.db.
  2. Expected: the plan. Actual: exit 1, ✗ [Kernel] Dependency 'com.objectstack.service-automation' not found for plugin 'com.objectstack.connector.openapi' (the scaffold names connector.rest). --json and os migrate apply --json --yes exit 1 with {"error":"[Kernel] Dependency …"}.
  3. Isolating control: adding new AutomationServicePlugin({ armRuntime: false, suspendedRunStore: 'memory' }) to a scratch config's plugins makes the plan exit 0. os migrate recorded-by / resume work (the data-migration stack adds automation). os dev is unaffected.

Mechanism

  • The configs request automation only through requires: ['automation', …] (blank template line 52); serve resolves that token to AutomationServicePlugin (serve.ts:1868-1873).
  • packages/cli/src/utils/schema-migration-plugins.ts:1296 composes config.plugins but never reads requires.
  • Each connector declares a hard dependencies = ['com.objectstack.service-automation'] (connector-rest-plugin.ts:53, connector-openapi-plugin.ts:66); the kernel throws on the missing dependency (packages/core/src/plugin-order.ts:86-88).
  • data-migration-plugins.ts:69-84 adds automation only when opts.automation === true.

More generally, any host plugin with a hard dependency on a service that requires supplies hits this on the schema stack.


Generated by Claude Code

Activity

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

Metadata

Metadata

Assignees

Labels

area:devpathThe road — create, dev, verify, publish/install, connect an agent, iteratebugSomething isn't workingdomain:clipriority:p1High: required for production / M2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions