Skip to content

feat: add audit-3000 wizard command#452

Merged
edwinyjlim merged 8 commits into
mainfrom
posthog-code/audit-3000-wizard-command
May 14, 2026
Merged

feat: add audit-3000 wizard command#452
edwinyjlim merged 8 commits into
mainfrom
posthog-code/audit-3000-wizard-command

Conversation

@leonhardprinz
Copy link
Copy Markdown
Contributor

Summary

  • Adds a new audit-3000 CLI subcommand that runs the v3000 audit skill (extends the base audit with event quality, stale-flag hygiene, customer enrichment, and use-case match)
  • New workflow at src/lib/workflows/audit-3000/ that seeds 15 ledger checks (10 base + 5 v3000-specific) and writes to posthog-audit-3000-report.md
  • New intro screen at src/ui/tui/screens/audit-3000/Audit3000IntroScreen.tsx
  • Run + outro screens reused from audit/ and parameterized via a new top-level WorkflowConfig.reportFile field, so they render the correct report path for either workflow
  • Outro success view now explicitly shows the full saved report path (project folder + filename)

Test plan

  • `pnpm typecheck` passes
  • `pnpm build` succeeds and smoke test passes
  • `node dist/bin.js --help` lists `audit-3000` with the v3000 description
  • `node dist/bin.js audit-3000` (in a project with PostHog installed) renders the new intro screen
  • On success, the outro displays `Report saved to: /posthog-audit-3000-report.md`
  • Existing `audit` command still renders `posthog-audit-report.md` correctly

Created with PostHog Code

Adds a new `audit-3000` CLI subcommand that runs the v3000 audit skill
(extends the base audit with event quality, stale-flag hygiene, customer
enrichment, and use-case match).

- New workflow at src/lib/workflows/audit-3000/ that seeds 15 ledger
  checks (10 base + 5 v3000-specific) and writes to
  posthog-audit-3000-report.md
- New intro screen at src/ui/tui/screens/audit-3000/
- Run + outro screens reused from audit/ and parameterized via a new
  top-level WorkflowConfig.reportFile field so they render the correct
  report path for either workflow
- Outro success view now explicitly shows the full saved report path

Generated-By: PostHog Code
Task-Id: 1f2601d8-e5b5-434e-9ef7-29d996a2cdb9
@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 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 misc/quack-quack
  • /wizard-ci revenue/stripe

Results will be posted here when complete.

consultingsultan and others added 6 commits May 14, 2026 11:04
Adds dedicated audit-3000 TUI surfaces and fills out the seed ledger to
match every check the audit-3000 skill writes:

- Intro: ASCII "AUDIT-3000" banner, blinking INSERT COIN tagline, PRESS
  START menu, 23-check tagline.
- Run: arcade SCORE panel (SCORE n/23, PASS / MISS / QUEUE counters,
  LEVEL n prefixes per area), six area slides including new Event
  Quality, Stale Flags, and Use Case: Expansion levels.
- Outro: GAME OVER / FINAL SCORE high-score tile with pass/miss tally,
  then absolute report path and the standard findings list.
- Seed: adds the 8 missing expansion-* entries so Use Case: Expansion
  renders alongside the existing Installation / Identification / Event
  Capture / Event Quality / Feature Flags areas (23 total).
- Wires Flow.Audit3000{Run,Outro} and the matching Screen enum / screen
  registry entries.

Generated-By: PostHog Code
Task-Id: 598dae15-1b52-45e2-8c14-e59aafb1ab9b
`\u2026` inside a JSX text node renders literally; wrap in `{'...'}`
so React resolves the escape.

Generated-By: PostHog Code
Task-Id: 598dae15-1b52-45e2-8c14-e59aafb1ab9b
- Seed: +8 session-replay checks (Dana, step 6b) and +3 phase markers
  for the post-flags chain; total 34 across 9 areas.
- Hi-score Table tab: group checks by area with sub-headers, dynamic
  subtitle, pretty-print JSON details, top summary line. Mirrors the
  final report layout.
- Intro: bump to "34 checks. 9 levels", call out the Hi-score Table tab
  as the live report and the exported posthog-audit-3000-report.md path.

Generated-By: PostHog Code
Task-Id: 1f2601d8-e5b5-434e-9ef7-29d996a2cdb9
Adds a Sonic-style endless runner playable in a new "Play" tab on the
audit-3000 run screen, so users have something to do while the audit
runs in the background. Game state lives in Audit3000RunScreen so it
survives tab switches: the component unmounts when another tab is
active, but score, hedgehog position, and obstacles freeze in the
parent until the user returns. Engine is pure and fully covered by
unit tests.

Also extracts the inline NEON_PINK/BLUE/GOLD palette from the intro
screen into a shared arcade-colors module.

Generated-By: PostHog Code
Task-Id: b5c74ccd-3cb0-45fc-9552-a95e477fc9c2
- ChecksPanel: drop per-check rows; keep only the area-level "L# Area
  (n/total)" lines plus the score banner. The Hi-score table tab has
  the full check-by-check breakdown, so this pane is the at-a-glance
  stage overview.
- Tab label: "Hi-score table" → "Hi-score table (report)" to signal
  that's where the full audit lives.

Generated-By: PostHog Code
Task-Id: 1f2601d8-e5b5-434e-9ef7-29d996a2cdb9
Switches the agent runtime from claude-sonnet-4-6 to the latest and
most capable model, claude-opus-4-7.

Generated-By: PostHog Code
Task-Id: 1f2601d8-e5b5-434e-9ef7-29d996a2cdb9
@leonhardprinz leonhardprinz requested a review from edwinyjlim May 14, 2026 15:52
@edwinyjlim edwinyjlim merged commit 8e434f4 into main May 14, 2026
17 checks passed
@edwinyjlim edwinyjlim deleted the posthog-code/audit-3000-wizard-command branch May 14, 2026 16:17
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.

3 participants