Skip to content

fix(wizard): Whack a mole part 4: align init token rule with the commandments' no-env exception - #290

Open
gewenyu99 wants to merge 2 commits into
mainfrom
posthog-code/whack-a-mole-4
Open

fix(wizard): Whack a mole part 4: align init token rule with the commandments' no-env exception#290
gewenyu99 wants to merge 2 commits into
mainfrom
posthog-code/whack-a-mole-4

Conversation

@gewenyu99

@gewenyu99 gewenyu99 commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

State the commandments' no-environment token carve-out in the integration-v2 init skill — both Swift runs independently hit the contradiction.

Before: skill: "Set the PostHog keys through the wizard tools (set_env_values), never hardcoded."
        commandment: "…where a build genuinely has no environment to read from (e.g. iOS/Android release and archive builds), embed the real token…"
        → agent remark: "the supplied Swift commandments recommend embedding a real public token for archive builds, but this task explicitly requires env-based configuration and prohibits hardcoding"
After:  skill adds: "One exception, matching the commandments: where a build genuinely has no environment to read from (iOS/Android release and archive builds), embed the real public token in the config the build ships — never an empty string or placeholder."

Generally mobile apps will just have these in a giant config file. Because environment variables are so strangely handled and Swift doesn't allow possibly undefined strings, we can either:
Just stick it in as a constant
default to '' and fail silently

It seems better to just stick it in as a constant


Created with PostHog Code

… no-env exception

Both Swift runs independently flagged the contradiction: the commandments
require embedding the real public token when a build has no environment to
read (iOS/Android release/archive), while the init skill said "never
hardcoded" without exception. State the same carve-out in the skill.

Generated-By: PostHog Code
Task-Id: affdea28-7761-4d50-8335-6b32376b1a82
@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 mcp-analytics
  • /wizard-ci revenue
  • /wizard-ci self-driving

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 mcp-analytics/custom-dispatcher
  • /wizard-ci mcp-analytics/typescript-sdk
  • /wizard-ci revenue/stripe
  • /wizard-ci self-driving/astro
  • /wizard-ci self-driving/fastapi
  • /wizard-ci self-driving/nuxt
  • /wizard-ci self-driving/react-router
  • /wizard-ci self-driving/sveltekit

Results will be posted here when complete.

Comment thread context/skills/integration-v2/init/description.md Outdated
@gewenyu99
gewenyu99 marked this pull request as ready for review July 29, 2026 14:27
@gewenyu99
gewenyu99 requested a review from a team as a code owner July 29, 2026 14:27
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