feat(agents): add the error-tracking orchestrator flow - #377
Draft
ablaszkiewicz wants to merge 4 commits into
Draft
feat(agents): add the error-tracking orchestrator flow#377ablaszkiewicz wants to merge 4 commits into
ablaszkiewicz wants to merge 4 commits into
Conversation
Nine prompts under context/agents/error-tracking/ backing the wizard's new `error-tracking` command. The seed establishes whether PostHog is integrated and which uploader variant applies, then queues install/init (integration-v2 step-skills, like replay-vision) on uninstrumented repos, exception capture via integration-v2-error-tracking-step, the source-map subgraph (adapted from the error-tracking-upload-source-maps flow) where the platform ships minified bundles or stripped binaries, and a report that merges it all. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PVXmLWB31CBujD2FJ2ogvY
🧙 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
Test against a wizard branch:
Add Results will be posted here when complete. |
…ness install/init move terra→sol low, capture-exceptions terra low→sol medium. Pairs with the wizard binding change routing the program to the orchestrator on pi; seed stays terra and report stays luna, matching the metrics flow's pattern. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PVXmLWB31CBujD2FJ2ogvY
…nager A configure run in a pnpm workspace copied the docs' npm install and npm hard-fails on workspace:* deps (EUNSUPPORTEDPROTOCOL); the agent retried npm three ways and never switched. New skill bullet: detect the manager from the lockfile, translate the docs' npm commands, and read EUNSUPPORTEDPROTOCOL as wrong-manager, never a flag to retry. The error-tracking flow's configure task now also mandates detect_package_manager before the first install. Verified: the pnpm monorepo fixture run that failed now completes 4/4, recovering to `pnpm add -D` on first contact with the error. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PVXmLWB31CBujD2FJ2ogvY
…anning A seed run saw "PostHog already integrated" and enqueued only capture+report, never applying the uploader precedence to a tsc-built Node service — while an identical sibling fixture planned the full graph. The two facts are now declared independent, a compiled/bundled JS project is explicitly never "none", and the success criteria demand the plan state the uploader decision (or the readable-stack reason) explicitly. Verified: the fixture that under-planned now queues the full node-uploader graph and completes 5/5. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PVXmLWB31CBujD2FJ2ogvY
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
The wizard is gaining a one-command error-tracking setup (
wizard error-tracking, PostHog/wizard#1185) that installs PostHog first when the repo doesn't have it — the replay-vision pattern. The orchestrator flow backing it needs to live here.Changes
New flow
context/agents/error-tracking/— nine prompts:setup-error-tracking.md(seed) establishes two facts: is PostHog integrated, and which source-map uploader variant applies (or none, on readable-stack-trace platforms). It then queues one graph:install+init(only when PostHog is missing) →capture-exceptions→ the upload subgraph (credentialsas a root so the API-key ask reaches the user early,configureafter the code edits,wire-ci,test-setup) →report.install/initreuse theintegration-v2step-skills, near-verbatim from replay-vision's.capture-exceptionsuses the existingintegration-v2-error-tracking-stepbundle, adapted from integration-v2's task (verification is the user-driven test-setup step here, not a build task).configure/credentials/wire-ci/test-setupare adapted from theerror-tracking-upload-source-mapsflow, secret-vault handling included; the seed passes{ skillId, displayName }inputs so no task re-detects.reportmerges the handoffs, enables the Error Tracking product viaposthog_exec(non-fatal on failure), and writesposthog-error-tracking-report.md.Companion PRs: PostHog/wizard#1185 (program + wiring), wizard-workbench (picker registration).
Test plan
node scripts/build.js— the flow validates and all nine prompts land indist/agents/+agent-menu.json.pnpm test— 173/173.🤖 Generated with Claude Code
https://claude.ai/code/session_01PVXmLWB31CBujD2FJ2ogvY