Add ingestion-warnings command#775
Draft
luke-belton wants to merge 1 commit into
Draft
Conversation
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
🧙 Wizard CIRun 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:
Test all apps in a directory:
Test an individual app:
Show more apps
Results will be posted here when complete. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 doctoralready detects them as a health issue but offers only a generic docs link.Changes
Wires the new context-mill
ingestion-warningsskill into the wizard as a first-class native command:npx @posthog/wizard@latest ingestion-warnings.src/lib/programs/ingestion-warnings/index.ts—createSkillProgramconfig + 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.ts—nativeCommandFactorycommand file.program-registry.tsandbin.ts, mirroringrevenue-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 theingestion-warningsskill resolves at runtime.Test plan
pnpm build— clean;wizard ingestion-warningsappears in--helpwith the right description.pnpm test— green (1088 tests).pnpm fix— clean.Created with PostHog from a Slack thread