Skip to content

feat(orchestrator): fail the run properly on a missing skill variant - #909

Merged
gewenyu99 merged 3 commits into
experiment/orchestrator-pi-runtaskfrom
posthog-code/orchestrator-preflight-proper-fail
Jul 15, 2026
Merged

feat(orchestrator): fail the run properly on a missing skill variant#909
gewenyu99 merged 3 commits into
experiment/orchestrator-pi-runtaskfrom
posthog-code/orchestrator-preflight-proper-fail

Conversation

@gewenyu99

Copy link
Copy Markdown
Collaborator

Addresses @sarahxsanders's review comment on #853 (#853 (comment)): the preflight previously crashed in dev/CI builds only and silently degraded in production. One behavior everywhere is easier to maintain, so this replaces the tree-shaken throw with an unconditional wizardAbort:

  • The user gets the error outro: "Setup instructions for this project failed to download. Please try again, or contact wizard@posthog.com."
  • The WizardError context carries every missing type/skill pair and the framework, captured to analytics via captureException.
  • The per-miss log line and orchestrator skill variant missing capture (on the wizard-switchboard dashboard) are unchanged.
  • The IS_PRODUCTION_BUILD gate and its tree-shake reasoning are gone.

Same wizardAbort({message, error: WizardError}) pattern as abortOnInstallFailure uses for linear-flow skill-install failures.

Testing

pnpm build + orchestrator/loader suites green (171 tests), full suite + lint green on the pre-cherry-pick branch.


Created with PostHog Code

Replaces the dev/CI-only throw with an unconditional wizardAbort — same
behavior on every build (no tree-shake gate to maintain): the user gets
the error outro pointing at wizard@posthog.com, the WizardError context
carries the misses, and the per-miss log + analytics capture stay.

Generated-By: PostHog Code
Task-Id: fafc230d-6f14-4e4d-9462-0e7f18a1eec1
@github-actions

Copy link
Copy Markdown

🧙 Wizard CI

Run the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands:

Test all apps:

  • /wizard-ci all

Test all apps in a directory:

  • /wizard-ci basic-integration
  • /wizard-ci mcp-analytics
  • /wizard-ci revenue

Test an individual app:

  • /wizard-ci basic-integration/android
  • /wizard-ci basic-integration/angular
  • /wizard-ci basic-integration/astro
Show more apps
  • /wizard-ci basic-integration/django
  • /wizard-ci basic-integration/fastapi
  • /wizard-ci basic-integration/flask
  • /wizard-ci basic-integration/javascript-node
  • /wizard-ci basic-integration/javascript-web
  • /wizard-ci basic-integration/laravel
  • /wizard-ci basic-integration/next-js
  • /wizard-ci basic-integration/nuxt
  • /wizard-ci basic-integration/python
  • /wizard-ci basic-integration/rails
  • /wizard-ci basic-integration/react-native
  • /wizard-ci basic-integration/react-router
  • /wizard-ci basic-integration/sveltekit
  • /wizard-ci basic-integration/swift
  • /wizard-ci basic-integration/tanstack-router
  • /wizard-ci basic-integration/tanstack-start
  • /wizard-ci basic-integration/vue
  • /wizard-ci mcp-analytics/custom-dispatcher
  • /wizard-ci mcp-analytics/typescript-sdk
  • /wizard-ci revenue/stripe

Results will be posted here when complete.

The abort outro now links the agent-skills repo (github.com/PostHog/skills)
and the manual install docs alongside the wizard@posthog.com contact.

Generated-By: PostHog Code
Task-Id: fafc230d-6f14-4e4d-9462-0e7f18a1eec1
Skills download points at context-mill releases (where skills actually
publish), and the manual-setup link uses the framework's own docsUrl from
FRAMEWORK_REGISTRY, falling back to the generic docs when detection found
no framework.

Generated-By: PostHog Code
Task-Id: fafc230d-6f14-4e4d-9462-0e7f18a1eec1
@gewenyu99
gewenyu99 marked this pull request as ready for review July 15, 2026 18:38
@gewenyu99
gewenyu99 requested a review from a team as a code owner July 15, 2026 18:38
@gewenyu99
gewenyu99 merged commit 970b0c9 into experiment/orchestrator-pi-runtask Jul 15, 2026
11 checks passed
@gewenyu99
gewenyu99 deleted the posthog-code/orchestrator-preflight-proper-fail branch July 15, 2026 18:39
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