Skip to content

Add ingestion-warnings command#775

Draft
luke-belton wants to merge 1 commit into
mainfrom
posthog-code/ingestion-warnings-program
Draft

Add ingestion-warnings command#775
luke-belton wants to merge 1 commit into
mainfrom
posthog-code/ingestion-warnings-program

Conversation

@luke-belton

Copy link
Copy Markdown

Problem

PostHog surfaces ingestion warnings (events dropped, mis-merged, or degraded at ingest) but there's no guided way to fix the instrumentation producing them — they always trace back to a known SDK misuse. wizard doctor already detects them as a health issue but offers only a generic docs link.

Changes

Wires the new context-mill ingestion-warnings skill into the wizard as a first-class native command: npx @posthog/wizard@latest ingestion-warnings.

  • src/lib/programs/ingestion-warnings/index.tscreateSkillProgram config + an abort case for the skill's [ABORT] Could not read ingestion warnings and no PostHog instrumentation found to scan (so the user gets a structured outro, not a generic failure).
  • src/commands/ingestion-warnings.tsnativeCommandFactory command file.
  • Registered in program-registry.ts and bin.ts, mirroring revenue-analytics.

The command name is also registered by the skill's cli: block, so it works from a context-mill release alone; this PR adds the dedicated program so it gets proper messaging and abort handling instead of falling through the generic agent-skill path. Depends on context-mill#207 shipping so the ingestion-warnings skill resolves at runtime.

Test plan

  • pnpm build — clean; wizard ingestion-warnings appears in --help with the right description.
  • pnpm test — green (1088 tests).
  • pnpm fix — clean.
  • Not yet run end-to-end against a live project (draft) — that needs context-mill#207 published first.

Created with PostHog from a Slack thread

Wires the context-mill `ingestion-warnings` skill into the wizard as a first-class native command (`wizard ingestion-warnings`), mirroring the `revenue-analytics` pattern: a `createSkillProgram` config registered in the program registry, a `nativeCommandFactory` command file, and a bin.ts entry.

Adds an abort case for the skill's `[ABORT] Could not read ingestion warnings and no PostHog instrumentation found to scan` so the user gets a structured outro instead of a generic failure.

Generated-By: PostHog Code
Task-Id: 9e7dceff-bc33-4dcd-bf3d-aa14f0abee65
@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 error-tracking-upload-source-maps
  • /wizard-ci mcp-analytics
  • /wizard-ci misc
  • /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 error-tracking-upload-source-maps/android
  • /wizard-ci error-tracking-upload-source-maps/cicd-docker-node-raw
  • /wizard-ci error-tracking-upload-source-maps/cicd-github-actions-docker-node-raw
  • /wizard-ci error-tracking-upload-source-maps/cicd-github-actions-nested-docker-node-raw
  • /wizard-ci error-tracking-upload-source-maps/cicd-github-actions-node-raw
  • /wizard-ci error-tracking-upload-source-maps/cicd-github-actions-single-stage-docker-node-raw
  • /wizard-ci error-tracking-upload-source-maps/cicd-gitlab-node-raw
  • /wizard-ci error-tracking-upload-source-maps/cicd-monorepo-pnpm-node-react
  • /wizard-ci error-tracking-upload-source-maps/cicd-monorepo-raw-node-react
  • /wizard-ci error-tracking-upload-source-maps/cicd-ssh-vps-node-raw
  • /wizard-ci error-tracking-upload-source-maps/flutter
  • /wizard-ci error-tracking-upload-source-maps/ios
  • /wizard-ci error-tracking-upload-source-maps/next
  • /wizard-ci error-tracking-upload-source-maps/next-no-posthog
  • /wizard-ci error-tracking-upload-source-maps/node-raw
  • /wizard-ci error-tracking-upload-source-maps/node-rollup
  • /wizard-ci error-tracking-upload-source-maps/node-rollup-typescript-plugin
  • /wizard-ci error-tracking-upload-source-maps/node-webpack
  • /wizard-ci error-tracking-upload-source-maps/nuxt-3-6
  • /wizard-ci error-tracking-upload-source-maps/nuxt-4-3
  • /wizard-ci error-tracking-upload-source-maps/react-native
  • /wizard-ci error-tracking-upload-source-maps/react-vite
  • /wizard-ci error-tracking-upload-source-maps/rust
  • /wizard-ci mcp-analytics/custom-dispatcher
  • /wizard-ci mcp-analytics/typescript-sdk
  • /wizard-ci misc/quack-quack
  • /wizard-ci revenue/stripe

Results will be posted here when complete.

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