Skip to content

fix(switchboard): gate the pi harness flag to posthog-integration only - #824

Merged
gewenyu99 merged 4 commits into
mainfrom
fix/pi-gate-posthog-integration-only
Jul 8, 2026
Merged

gewenyu99 merged 4 commits into
mainfrom
fix/pi-gate-posthog-integration-only

Conversation

@gewenyu99

@gewenyu99 gewenyu99 commented Jul 7, 2026 •

Copy link
Copy Markdown
Collaborator

Turn off PI for everything but posthog-integration for now. This just lets us isolate variables.

The `wizard-use-pi-harness` flag switched every program to pi. pi drives the
linear posthog-integration flow reliably, but on the step-gated skill programs
(self-driving, audit, …) it batch-reads all the per-step reference files at
once and shortcuts to the final step — every task marked done, no products,
sources, or scouts actually configured, because the intervening MCP calls are
never made.

Gate the flag to posthog-integration. Off that flow the flag is a no-op and the
binding default (anthropic) stands. The sequence pi-clamp derives pi-ness from
the harness resolver, so it stops firing for gated programs with no extra
change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 7, 2026

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.

Copy link
Copy Markdown
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@gewenyu99
gewenyu99 requested a review from a team July 7, 2026 18:18
@gewenyu99
gewenyu99 marked this pull request as ready for review July 7, 2026 18:18
gewenyu99 and others added 3 commits July 8, 2026 08:34
wizard-pi-effort only tunes a pi run, but modelCapabilities applied it to any
reasoning model straight off the flag, decoupled from whether pi was actually
selected. Honour it only when wizard-use-pi-harness is on — the single flag the
PI_FLAG_PROGRAMS gate and PI_MODEL_FLAG_VARIANTS model pick both sit behind — so
the effort value stays inert and can't ride onto a non-pi (anthropic) pick when
the gate declines pi. The model's own table effort (e.g. gpt-5 low) is a model
trait and is unaffected.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@gewenyu99
gewenyu99 merged commit eb5c61e into main Jul 8, 2026
17 checks passed
@gewenyu99
gewenyu99 deleted the fix/pi-gate-posthog-integration-only branch July 8, 2026 13:43
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.

2 participants