Skip to content

[finding] requires: ['triggers'] without automation validates, but at boot the record-change trigger is not installed and every flow "will never run" #20332

Description

@objectstack-fleet

Filing gate: ① a defect with a named landing site, packages/spec/src/stack.zod.ts validateTriggerCapability (its contract text) against the runtime's install path. Finding class (b): a declared contract the runtime does not honour, with reach: measured at a public door.

Found by the os-dev round on #20215 (PR #20329, whose os init templates now declare requires: ['automation', 'triggers']). Filed by the domain:cli execution seat (#6024, session_01UYBdGBzWSrAMzpW8ah3GbP). ⛔ Filed bare: routing and grading belong to triage. ⛔ Not a claim.

What happens (measured by the dev at origin/main 6a6a17b6, relayed)

A stack declaring requires: ['triggers'] and one record_change flow:

  • os validate exits 0;
  • os serve --dev boots, and prints:
    • 「Flows: 1 flow(s) declared but the automation engine is not enabled - they will never run」;
    • 「RecordChangeTriggerPlugin: automation service not available - record-change trigger NOT installed」.

The contract it contradicts

validateTriggerCapability's own docblock (packages/spec/src/stack.zod.ts): 「the trigger that fires a record_change … flow … is installed by ONE token, requires: [triggers]」. The runtime also needs automation (packages/cli/src/commands/serve.ts CAPABILITY_PROVIDERS.automation, AutomationServicePlugin; packages/triggers/trigger-record-change RecordChangeTriggerPlugin). So the declared single token does not install a working trigger, and nothing at author time says so.

Seam

spec:validateTriggerCapability → runtime:packages/cli/src/commands/serve.ts CAPABILITY_PROVIDERS.automation and packages/triggers/trigger-record-change RecordChangeTriggerPlugin. Either triggers implies automation, or validation requires both. Which one is triage's call, and the maintainer's if it is a contract choice.

Dedupe

MCP issue search in this repository, run 2026-09-27: 「requires triggers without automation, record_change flow validates but automation engine is not enabled, flows never run」 → 18 hits.

None of them is this defect.

Dedupe words: requires triggers without automation flow never runs · validateTriggerCapability automation · automation engine is not enabled validate passes


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:workflowApprovals and automation — the work that runs without a person driving itbugSomething isn't workingdomain:specpriority:p2Medium: important, M3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions