Skip to content

feat(audit): check cross-runtime session correlation - #1085

Draft
hpouillot wants to merge 1 commit into
mainfrom
posthog/audit-cross-runtime-session-id
Draft

feat(audit): check cross-runtime session correlation#1085
hpouillot wants to merge 1 commit into
mainfrom
posthog/audit-cross-runtime-session-id

Conversation

@hpouillot

@hpouillot hpouillot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • seed a cross-runtime-session-id check next to the existing cross-runtime identity check
  • show the check in the comprehensive audit ledger
  • cover check ordering and metadata with a focused test

Test plan

  • pnpm build
  • pnpm vitest run src/lib/programs/__tests__/audit-seed.test.ts
  • pnpm exec prettier --check src/lib/programs/audit/seed.ts src/lib/programs/__tests__/audit-seed.test.ts
  • git diff --check

Companion change

Depends on PostHog/context-mill#335, which defines the audit rule.

Note

pnpm typecheck currently fails on pre-existing errors in unrelated files; this change adds no new type errors.

Seed a dedicated audit check for frontend-to-backend $session_id correlation and verify its placement alongside the cross-runtime distinct_id check.

Generated-By: PostHog Desktop
Task-Id: affb0421-c754-4167-8998-6a25bd80c58a
@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 ai-observability
  • /wizard-ci basic-integration
  • /wizard-ci mcp-analytics
  • /wizard-ci revenue
  • /wizard-ci self-driving

Test an individual app:

  • /wizard-ci ai-observability/anthropic
  • /wizard-ci ai-observability/groq
  • /wizard-ci ai-observability/manual-capture
Show more apps
  • /wizard-ci ai-observability/openai
  • /wizard-ci ai-observability/openai-agents
  • /wizard-ci ai-observability/vercel-ai
  • /wizard-ci basic-integration/android
  • /wizard-ci basic-integration/angular
  • /wizard-ci basic-integration/astro
  • /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.

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.

1 participant