/track, /import, /engage and /groups always answered PostHog-shaped JSON
({"status":1}), but the official mixpanel SDKs default to verbose=0 and
treat any body other than the literal text "1" as a failure -- every
real SDK call against this service failed without verbose:true. Add
responseMode()/okResponse() in src/capture/routes.ts to read the
caller's own verbose query param (0/1, always explicitly sent by the real
SDKs) and answer plain "1"/"0" or JSON accordingly; a request that never
mentions verbose (this service's own PostHog-shaped SDKs) is unaffected
and keeps today's JSON body.
Verified against the real mixpanel npm client (not a mock) with its
actual default config end to end on track/people.set/groups.set, plus
raw-fetch checks of the literal body and content-type for verbose=0,
verbose=1 and no verbose param at all, in
test/qy/mixpanel-compat.test.ts. The other ingestion-compat gaps this
task was scoped to (/groups disambiguation, $add/$append/$union/$remove,
/import, lookup tables, data views) were already implemented and proven
in the prior 2026-10-15 pass -- confirmed by reading src/capture/routes.ts,
src/persons/properties.ts and the existing test suite before touching
anything, not re-done here. pnpm run test:all: 231 tests, 227 pass, 0
fail, 4 skipped (no cached Chromium, unrelated), up from 225/221/0/4.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Closes all 5 open rows in docs/MIXPANEL-PARITY-CHECKLIST.md, each proven
against the real `mixpanel` npm client (test/qy/mixpanel-compat.test.ts) or
a direct library test (test/qy/lookup-tables-data-views.test.ts):
- /engage: $add/$append/$union/$remove now apply through the same
PropertyOps/applyOps pipeline $set already used (src/persons/properties.ts).
- /groups: disambiguates Mixpanel's $group_key/$group_id (type/key) from
this service's own $group_type/$group_key, and applies a full PropertyOps
(set/set_once/unset/union/remove) instead of a flat jsonb merge.
- /import: new route sharing /track's normalizeEvents + CapturePipeline,
differing only in auth (Basic or api_key/token query param, not a bare
body token), retention (skips the window cutoff /track applies) and is
idempotent via the existing uuid/$insert_id dedup.
- Lookup tables: CSV-backed pa.lookup_tables/pa.lookup_table_rows, joined
into filters via a new "lookup" PropertyFilter and Joins.lookup(), reusing
filters.ts's existing compareProperty.
- Data views: named, reusable filter sets (pa.data_views) merged into a
query's own properties by id before any builder runs (runner.ts).
pnpm run test:all: 220 -> 225 tests, 216 -> 221 pass, 0 fail, 4 skipped
(unchanged, no cached Chromium). Fixed one pre-existing test
(test/a1/identity.test.ts) that constructed a raw PropertyOps literal
missing the new required fields.
The 2026-10-05 static parity recount still called A4 (native SDKs),
A22 (warehouse destinations) and A23 (CDP destinations/transforms)
PARTIAL, but the code that closes them landed on main the next day
(fba4dba7, 8cd06952, 0e611a19, b4612a4f, 41653aeb, aa25b536) and was
never folded back in. Add scripts/parity/wave-r.mjs on top of wave-q.mjs
(recount.mjs now merges waves, later wins) and regenerate
docs/parity/recount-2026-10-15.txt: analytics moves from 24/6/7 to
27/3/7 DONE/PARTIAL/MISSING. Verified before writing any of it: full
pnpm run test:all in apps/product-analytics (220 tests, 216 pass, 0
fail, 4 skipped for an uncached Chromium) and `swift test` in
packages/analytics-swift (6/6).
Add apps/product-analytics/docs/MIXPANEL-PARITY-CHECKLIST.md and
test/qy/mixpanel-compat.test.ts, which points the real `mixpanel` npm
client (not a mock) at this service. Findings: /track and /engage
($set/$set_once/$unset) are Mixpanel-compatible today; /groups is not
(the real SDK's $group_key/$group_id don't match this service's
$group_type/$group_key), the $add/$append/$union/$remove people ops are
accepted but silently dropped, there's no /import route, and a
non-verbose Mixpanel client treats this service's JSON response as a
failure. None of that ingestion-routing code is touched here; it's
scoped to docs and tests only.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>