Skip to content

fix(deps): bump @posthog/warlock to 0.2.3 - #827

Merged
sarahxsanders merged 2 commits into
mainfrom
chore/bump-warlock-0.2.3
Jul 7, 2026
Merged

sarahxsanders merged 2 commits into
mainfrom
chore/bump-warlock-0.2.3

Conversation

@sarahxsanders

@sarahxsanders sarahxsanders commented Jul 7, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

oopsie

#804 migrated the pi harness onto @posthog/warlock but left the pin at 0.2.2. Warlock #59 (the PII capture-rule fixes) shipped as 0.2.3, so main currently runs the pi security fence on the un-fixed rules:

  • Bleed false positive still live — 0.2.2's PII rule uses an argument gap that doesn't stop at ), so a properties-less posthog.capture('event') bleeds into a following posthog.identify(userId, { email }) and false-flags it. This is the exact "identify() triggering the PII rule" symptom the incident was about. 0.2.3 fixes it ([^{]* → [^{)]*).
  • Weaker remediation text — 0.2.2's block message says "use posthog.identify() or person properties"; 0.2.3 names the concrete escape hatches (identify(), setPersonProperties(), $set / $set_once), which the pi fence surfaces to a blocked agent so it can self-correct.

Changes

  • Bump @posthog/warlock 0.2.2 → 0.2.3 (exact pin, as before) + lockfile.

Test plan

  • pnpm install resolves 0.2.3; lockfile diff is the warlock entry only, no dependency drift.
  • Typecheck clean — the test mock's compile-time conformance guard still matches the real 0.2.3 API (no API changes, rules-only release).
  • yara-hooks + pi security suites green (62 tests).

Note: the wizard test suite mocks @posthog/warlock, so it validates the wizard's decision logic, not warlock's rule behavior. A real-warlock smoke test that actually exercises the rules on every bump is the follow-up (stacked PR), alongside removing the wizard-warlock-disabled kill-switch flag in favor of version-locking + that test.

🤖 Generated with Claude Code

0.2.3 ships warlock #59: the PII capture-rule bleed fix (a propless
capture() no longer false-positives a following identify()) and
remediation text naming the $set / $set_once / setPersonProperties
escape hatches. #804 migrated pi onto warlock but stayed on 0.2.2, so
main currently runs the pi fence on the un-fixed rules; this closes that.

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.

@sarahxsanders

Copy link
Copy Markdown
Collaborator Author

/wizard-ci basic-integration/next-js

@sarahxsanders
sarahxsanders requested a review from a team July 7, 2026 20:09
@wizard-ci-bot

wizard-ci-bot Bot commented Jul 7, 2026 •

Copy link
Copy Markdown

🧙 Wizard CI Results

Trigger ID: 359d82a
Workflow: View run

App Confidence PR YARA
basic-integration/next-js/15-app-router-saas 4/5 #2458 (logs) ✓
basic-integration/next-js/15-app-router-todo 4/5 #2459 (logs) ✓
basic-integration/next-js/15-pages-router-saas 4/5 #2460 (logs) ✓
basic-integration/next-js/15-pages-router-todo 4/5 #2457 (logs) ✓

Configuration

Setting Value
Wizard ref chore/bump-warlock-0.2.3
Context Mill ref main
PostHog ref master

Search for trigger ID 359d82a in wizard-workbench PRs.

@gewenyu99 gewenyu99 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noice

@sarahxsanders
sarahxsanders enabled auto-merge (squash) July 7, 2026 21:08
@sarahxsanders
sarahxsanders merged commit 2c33885 into main Jul 7, 2026
16 checks passed
@sarahxsanders
sarahxsanders deleted the chore/bump-warlock-0.2.3 branch July 7, 2026 21:10
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