Skip to content

fix(emails): keep Category obsolete and refuse it before any request - #416

Merged
Silthus merged 5 commits into
mainfrom
revert/emails-send-category
Dec 2, 2026
Merged

Silthus merged 5 commits into
mainfrom
revert/emails-send-category

Conversation

@Silthus

@Silthus Silthus commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

💡 Motivation and Context

  • Code-sent emails are staying strictly transactional, so message category support on code sends is being reverted. The server flag for categories on code sends is now off.
  • 2.31.0 shipped SendCodeEmailOptions.Category (feat(emails): add Category to code sends #378).

Changes

  • Category stays, marked [Obsolete] with a pointer to workflows. Built code loads; source gets warning CS0618, an error under warnings-as-errors.
  • Any set value, even empty, throws EmailException with code invalid_form and field category before any other check or request. Its Fix points marketing email to a PostHog workflow.
  • The SDK never sends category; a null Category sends as before.
  • A patch changeset records it.
  • Pending spec change: revert(emails): remove the message category from code sends sdk-specs#287, still open, drops the option; this SDK deliberately keeps it deprecated.

Rejected: removing Category, because it breaks source and binary compatibility.

No picture: one guarded option.

Read yourself: the refusal, L757–766: does any set Category stop before the request?

Merge risk: medium

Alignment: good ✅

Impact: medium ⚠️

  • A categorized send that a host would queue now throws locally; warnings-as-errors builds fail on CS0618 (step 4: exact-body test)

Verification: good ✅

  • Safe because: a null Category sends the same body as main (step 4: exact-body test)

Rollback cost: low ✅

  • two-way until the release that merge publishes: the property stays, so a later release can relax it.

Error detection: N/A ✅

Tier: critical (f: merge publishes a PostHog NuGet patch release)

Rollout

  • Switch-off: none: live on release, fix forward.

💚 How did you test it?

What was proven, and what not

  • ✅ A null Category sends the exact body without it; a set one, empty, with an empty To or a file, throws with workflow guidance and makes no request.
  • ✅ Moving the guard after the other checks turns the empty-To case red.
  • ❌ No live send: category never reaches the wire.

📝 Checklist

  • All commits are signed (see Commit signing)
  • I reviewed the submitted code.
  • I added tests to verify the changes.
  • I updated the docs if needed.
  • No breaking change or entry added to the changelog.

If releasing new changes

  • Ran pnpm changeset to generate a changeset file

🤖 Agent context

Autonomy: Human-driven (agent-assisted)

Claude Code (claude-opus-5-5) wrote this. A first pure revert was dropped because it breaks callers in a patch.

Question Answer Who Where
Remove or deprecate Category Keep it [Obsolete], never send it, refuse a set value locally with workflow guidance; patch 👤 Human this PR

🤖 Generated with Claude Code

How did you test this code?

Proof What ran Result Commit
live-run not run gap, accepted
cross-version not run gap, accepted
post-deploy-watch not yet pending until the PR lands
Review 3-lens panel (gpt-6.2-sol, claude-opus-5-5), round 1, final read 1, final read 2, final read 3 15 findings: 8 fixed, 7 rejected, 0 other 6f5b84a to 6c61df3
Proof judge an independent model reads the evidence against the diff not yet run at 6c61df3

End table: no gate at HEAD yet. Run hedge proof gate, then hedge proof receipt.

Not checked: none recorded
Full receipt: https://artifacts.posthog.com/a/4fag1SunsULAtUoN5K5M3R

Silthus and others added 2 commits December 2, 2026 13:32
This reverts commit b083162 (#378).

Code-sent emails are staying strictly transactional, so message category
support on code sends is being reverted. The recent release shipped
shortly before this decision while the server feature flag was disabled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Silthus Silthus self-assigned this Dec 2, 2026
@posthog

posthog Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

PostHog Review · Deep · reviewed 5050009

Nothing to post.

Step Status Result
Prepare the diff done 4 files, 1 chunk
Pick perspectives done 4 perspectives
Run review passes done 0 issues
Merge overlapping findings done 0 → 0
Validate findings done
Publish done Nothing to post

Salad Fingers holds a rusty spoon

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

posthog-dotnet Compliance Report

Date: 2026-12-02T13:29:09.071031+00:00
Duration: 125039ms

✅ All Tests Passed!

47/47 tests passed


Capture Tests

✅ 30/30 tests passed

View Details
Test Status Duration
Format Validation.Event Has Required Fields ✅ 213ms
Format Validation.Event Has Uuid ✅ 122ms
Format Validation.Event Has Lib Properties ✅ 108ms
Format Validation.Distinct Id Is String ✅ 114ms
Format Validation.Token Is Present ✅ 110ms
Format Validation.Custom Properties Preserved ✅ 115ms
Format Validation.Event Has Timestamp ✅ 110ms
Format Validation.Non Utc Event Timestamp Is Converted To Utc ✅ 118ms
Retry Behavior.Retries On 503 ✅ 8124ms
Retry Behavior.Does Not Retry On 400 ✅ 2117ms
Retry Behavior.Does Not Retry On 401 ✅ 2113ms
Retry Behavior.Respects Retry After Header ✅ 8118ms
Retry Behavior.Implements Backoff ✅ 22135ms
Retry Behavior.Retries On 500 ✅ 6117ms
Retry Behavior.Retries On 502 ✅ 6118ms
Retry Behavior.Retries On 504 ✅ 6119ms
Retry Behavior.Max Retries Respected ✅ 22133ms
Deduplication.Generates Unique Uuids ✅ 114ms
Deduplication.Preserves Uuid On Retry ✅ 6116ms
Deduplication.Preserves Uuid And Timestamp On Retry ✅ 13130ms
Deduplication.Preserves Uuid And Timestamp On Batch Retry ✅ 6119ms
Deduplication.No Duplicate Events In Batch ✅ 114ms
Deduplication.Different Events Have Different Uuids ✅ 109ms
Compression.Sends Gzip When Enabled ✅ 109ms
Batch Format.Uses Proper Batch Structure ✅ 107ms
Batch Format.Flush With No Events Sends Nothing ✅ 106ms
Batch Format.Multiple Events Batched Together ✅ 113ms
Error Handling.Does Not Retry On 403 ✅ 2110ms
Error Handling.Does Not Retry On 413 ✅ 2112ms
Error Handling.Retries On 408 ✅ 6118ms

Feature_Flags Tests

✅ 17/17 tests passed

View Details
Test Status Duration
Request Payload.Request With Person Properties Device Id ✅ 135ms
Request Payload.Flags Request Uses V2 Query Param ✅ 107ms
Request Payload.Flags Request Hits Flags Path Not Decide ✅ 106ms
Request Payload.Flags Request Omits Authorization Header ✅ 107ms
Request Payload.Token In Flags Body Matches Init ✅ 106ms
Request Payload.Groups Round Trip ✅ 110ms
Request Payload.Groups Default To Empty Object ✅ 105ms
Request Payload.Disable Geoip False Propagates As Geoip Disable False ✅ 107ms
Request Payload.Disable Geoip Omitted Defaults To False ✅ 107ms
Request Payload.Flag Keys To Evaluate Contains Only Requested Key ✅ 106ms
Request Lifecycle.No Flags Request On Init Alone ✅ 3ms
Request Lifecycle.No Flags Request On Normal Capture ✅ 106ms
Request Lifecycle.Two Flag Calls Produce Two Remote Requests ✅ 211ms
Request Lifecycle.Mock Response Value Is Returned To Caller ✅ 116ms
Retry Behavior.Retries Flags On 502 ✅ 1113ms
Retry Behavior.Retries Flags On 504 ✅ 1112ms
Side Effect Events.Get Feature Flag Captures Feature Flag Called Event ✅ 210ms

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

SDK performance: posthog-dotnet

Benchmarks completed. No changes flagged for review.

Flags require at least a 5% change in the median and all six pairs agreeing on direction. This is a noise filter, not proof of a performance change or a CI gate.

View all results
Test Measurement Before PR With PR Change Assessment
Capture and deliver events (32-byte payload, burst) Allocations per operation — — — unavailable; base:​ unsupported; head:​ unsupported; base:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​; head:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​
Capture and deliver events (4,096-byte payload, burst) Allocations per operation — — — unavailable; base:​ unsupported; head:​ unsupported; base:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​; head:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​
Capture and deliver events (32-byte payload, steady) Allocations per operation — — — unavailable; base:​ unsupported; head:​ unsupported; base:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​; head:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​
Capture and deliver events (4,096-byte payload, steady) Allocations per operation — — — unavailable; base:​ unsupported; head:​ unsupported; base:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​; head:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​
Queue an event (32-byte payload) Allocations per operation — — — unavailable; base:​ unsupported; head:​ unsupported; base:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​; head:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​
Queue an event (4,096-byte payload) Allocations per operation — — — unavailable; base:​ unsupported; head:​ unsupported; base:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​; head:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​
Evaluate all 10 flags Allocations per operation — — — unavailable; base:​ unsupported; head:​ unsupported; base:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​; head:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​
Evaluate all 100 flags Allocations per operation — — — unavailable; base:​ unsupported; head:​ unsupported; base:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​; head:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​
Evaluate all 1,000 flags Allocations per operation — — — unavailable; base:​ unsupported; head:​ unsupported; base:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​; head:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​
Evaluate one boolean flag Allocations per operation — — — unavailable; base:​ unsupported; head:​ unsupported; base:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​; head:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​
Evaluate a cohort-filtered flag Allocations per operation — — — unavailable; base:​ unsupported; head:​ unsupported; base:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​; head:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​
Evaluate a flag (early match) Allocations per operation — — — unavailable; base:​ unsupported; head:​ unsupported; base:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​; head:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​
Evaluate a flag (late match) Allocations per operation — — — unavailable; base:​ unsupported; head:​ unsupported; base:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​; head:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​
Evaluate a flag (no match) Allocations per operation — — — unavailable; base:​ unsupported; head:​ unsupported; base:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​; head:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​
Evaluate a property-filtered flag Allocations per operation — — — unavailable; base:​ unsupported; head:​ unsupported; base:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​; head:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​
Evaluate a regex-filtered flag Allocations per operation — — — unavailable; base:​ unsupported; head:​ unsupported; base:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​; head:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​
Evaluate a rollout flag Allocations per operation — — — unavailable; base:​ unsupported; head:​ unsupported; base:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​; head:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​
Evaluate a multivariate flag Allocations per operation — — — unavailable; base:​ unsupported; head:​ unsupported; base:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​; head:​ CLR byte counters do not expose exact object allocation counts; native allocations are not included.​
Capture and deliver events (32-byte payload, burst) Allocated memory per operation 5.37 KiB/op 5.37 KiB/op <0.1% less memory Not flagged
Capture and deliver events (32-byte payload, burst) Time per operation 4.44 µs/op 4.48 µs/op 0.9% more time Not flagged
Capture and deliver events (32-byte payload, burst) idle_managed_heap_bytes (estimated) 822.48 KiB 824.87 KiB 0.3% more memory Not flagged
Capture and deliver events (32-byte payload, burst) Idle process memory (RSS) 55.02 MiB 54.91 MiB 0.2% less memory Not flagged
Capture and deliver events (32-byte payload, burst) Observed peak process memory (RSS) 57.62 MiB 57.51 MiB 0.2% less memory Not flagged
Capture and deliver events (32-byte payload, burst) Managed heap after settling (estimated) 2.24 MiB 2.24 MiB 0.1% more memory Not flagged
Capture and deliver events (32-byte payload, burst) Process memory after settling (RSS) 57.71 MiB 57.6 MiB 0.2% less memory Not flagged
Capture and deliver events (32-byte payload, burst) Process CPU time per operation 4.46 µs/op 4.5 µs/op 1% more time Not flagged
Capture and deliver events (32-byte payload, burst) Lifetime peak process memory (RSS) 57.71 MiB 57.6 MiB 0.2% less memory Not flagged
Capture and deliver events (4,096-byte payload, burst) Allocated memory per operation 39.87 KiB/op 39.87 KiB/op <0.1% less memory Not flagged
Capture and deliver events (4,096-byte payload, burst) Time per operation 15.99 µs/op 16.01 µs/op 0.1% more time Not flagged
Capture and deliver events (4,096-byte payload, burst) idle_managed_heap_bytes (estimated) 2.13 MiB 2.13 MiB <0.1% less memory Not flagged
Capture and deliver events (4,096-byte payload, burst) Idle process memory (RSS) 56.82 MiB 56.93 MiB 0.2% more memory Not flagged
Capture and deliver events (4,096-byte payload, burst) Observed peak process memory (RSS) 81.94 MiB 82.05 MiB 0.1% more memory Not flagged
Capture and deliver events (4,096-byte payload, burst) Managed heap after settling (estimated) 25.63 MiB 25.63 MiB <0.1% less memory Not flagged
Capture and deliver events (4,096-byte payload, burst) Process memory after settling (RSS) 82.11 MiB 82.22 MiB 0.1% more memory Not flagged
Capture and deliver events (4,096-byte payload, burst) Process CPU time per operation 17.52 µs/op 17.64 µs/op 0.7% more time Not flagged
Capture and deliver events (4,096-byte payload, burst) Lifetime peak process memory (RSS) 82.11 MiB 82.22 MiB 0.1% more memory Not flagged
Capture and deliver events (32-byte payload, steady) Allocated memory per operation 18.15 KiB/op 18.15 KiB/op <0.1% less memory Not flagged
Capture and deliver events (32-byte payload, steady) Time per operation 8.06 µs/op 8.09 µs/op 0.5% more time Not flagged
Capture and deliver events (32-byte payload, steady) idle_managed_heap_bytes (estimated) 822.48 KiB 822.48 KiB No observed change Not flagged
Capture and deliver events (32-byte payload, steady) Idle process memory (RSS) 54.99 MiB 54.97 MiB <0.1% less memory Not flagged
Capture and deliver events (32-byte payload, steady) Observed peak process memory (RSS) 55.57 MiB 55.55 MiB <0.1% less memory Not flagged
Capture and deliver events (32-byte payload, steady) Managed heap after settling (estimated) 938.29 KiB 938.29 KiB No observed change Not flagged
Capture and deliver events (32-byte payload, steady) Process memory after settling (RSS) 55.56 MiB 55.54 MiB <0.1% less memory Not flagged
Capture and deliver events (32-byte payload, steady) Process CPU time per operation 8.22 µs/op 8.21 µs/op 0.1% less time Not flagged
Capture and deliver events (32-byte payload, steady) Lifetime peak process memory (RSS) 55.56 MiB 55.54 MiB <0.1% less memory Not flagged
Capture and deliver events (4,096-byte payload, steady) Allocated memory per operation 30.96 KiB/op 30.96 KiB/op <0.1% less memory Not flagged
Capture and deliver events (4,096-byte payload, steady) Time per operation 13.35 µs/op 13.13 µs/op 1.6% less time Not flagged
Capture and deliver events (4,096-byte payload, steady) idle_managed_heap_bytes (estimated) 2.13 MiB 2.13 MiB <0.1% less memory Not flagged
Capture and deliver events (4,096-byte payload, steady) Idle process memory (RSS) 56.8 MiB 56.87 MiB 0.1% more memory Not flagged
Capture and deliver events (4,096-byte payload, steady) Observed peak process memory (RSS) 63.89 MiB 63.93 MiB <0.1% more memory Not flagged
Capture and deliver events (4,096-byte payload, steady) Managed heap after settling (estimated) 3.12 MiB 3.12 MiB <0.1% less memory Not flagged
Capture and deliver events (4,096-byte payload, steady) Process memory after settling (RSS) 60.45 MiB 60.6 MiB 0.3% more memory Not flagged
Capture and deliver events (4,096-byte payload, steady) Process CPU time per operation 15.83 µs/op 15.47 µs/op 2.3% less time Not flagged
Capture and deliver events (4,096-byte payload, steady) Lifetime peak process memory (RSS) 63.82 MiB 63.84 MiB <0.1% more memory Not flagged
Queue an event (32-byte payload) Allocated memory per operation 1.67 KiB/op 1.67 KiB/op No observed change Not flagged
Queue an event (32-byte payload) Time per operation 1.37 µs/op 1.36 µs/op 0.2% less time Not flagged
Queue an event (32-byte payload) Process CPU time per operation 1.38 µs/op 1.38 µs/op 0.2% less time Not flagged
Queue an event (4,096-byte payload) Allocated memory per operation 1.67 KiB/op 1.67 KiB/op No observed change Not flagged
Queue an event (4,096-byte payload) Time per operation 1.3 µs/op 1.29 µs/op 0.3% less time Not flagged
Queue an event (4,096-byte payload) Process CPU time per operation 1.31 µs/op 1.31 µs/op 0.3% less time Not flagged
Evaluate all 10 flags Allocated memory per operation 22.38 KiB/op 22.38 KiB/op No observed change Not flagged
Evaluate all 10 flags Time per operation 28.84 µs/op 29.32 µs/op 1.7% more time Not flagged
Evaluate all 10 flags Process CPU time per operation 28.85 µs/op 29.33 µs/op 1.7% more time Not flagged
Evaluate all 100 flags Allocated memory per operation 217.06 KiB/op 217.06 KiB/op No observed change Not flagged
Evaluate all 100 flags Time per operation 262.31 µs/op 261.28 µs/op 0.4% less time Not flagged
Evaluate all 100 flags Process CPU time per operation 262.43 µs/op 261.38 µs/op 0.4% less time Not flagged
Evaluate all 1,000 flags Allocated memory per operation 2.11 MiB/op 2.11 MiB/op No observed change Not flagged
Evaluate all 1,000 flags Time per operation 2.26 ms/op 2.27 ms/op 0.1% more time Not flagged
Evaluate all 1,000 flags Process CPU time per operation 2.26 ms/op 2.27 ms/op 0.1% more time Not flagged
Evaluate 1,000 flags under concurrent load idle_managed_heap_bytes (estimated) 4.76 MiB 4.77 MiB 0.1% more memory Not flagged
Evaluate 1,000 flags under concurrent load Idle process memory (RSS) 108.07 MiB 108.12 MiB <0.1% more memory Not flagged
Evaluate 1,000 flags under concurrent load Observed peak process memory (RSS) 113.75 MiB 113.76 MiB <0.1% more memory Not flagged
Evaluate 1,000 flags under concurrent load Managed heap after settling (estimated) 4.86 MiB 4.87 MiB <0.1% more memory Not flagged
Evaluate 1,000 flags under concurrent load Process memory after settling (RSS) 113.83 MiB 111.9 MiB 1.7% less memory Not flagged
Evaluate 1,000 flags under concurrent load Lifetime peak process memory (RSS) 113.83 MiB 113.56 MiB 0.2% less memory Not flagged
Refresh 1,000 flag definitions idle_managed_heap_bytes (estimated) 19.55 MiB 19.58 MiB 0.1% more memory Not flagged
Refresh 1,000 flag definitions Idle process memory (RSS) 140.35 MiB 140.55 MiB 0.1% more memory Not flagged
Refresh 1,000 flag definitions Observed peak process memory (RSS) 148.78 MiB 146.03 MiB 1.8% less memory Not flagged
Refresh 1,000 flag definitions Managed heap after settling (estimated) 20.54 MiB 20.57 MiB 0.1% more memory Not flagged
Refresh 1,000 flag definitions Process memory after settling (RSS) 146.69 MiB 144.55 MiB 1.5% less memory Not flagged
Refresh 1,000 flag definitions Lifetime peak process memory (RSS) 148.21 MiB 145.44 MiB 1.9% less memory Not flagged
Evaluate one boolean flag Allocated memory per operation 1.63 KiB/op 1.63 KiB/op No observed change Not flagged
Evaluate one boolean flag Time per operation 2.14 µs/op 2.16 µs/op 0.7% more time Not flagged
Evaluate one boolean flag Process CPU time per operation 2.14 µs/op 2.16 µs/op 0.7% more time Not flagged
Evaluate a cohort-filtered flag Allocated memory per operation 1.89 KiB/op 1.89 KiB/op No observed change Not flagged
Evaluate a cohort-filtered flag Time per operation 2.22 µs/op 2.21 µs/op 0.2% less time Not flagged
Evaluate a cohort-filtered flag Process CPU time per operation 2.22 µs/op 2.21 µs/op 0.2% less time Not flagged
Evaluate a flag (early match) Allocated memory per operation 3.49 KiB/op 3.49 KiB/op No observed change Not flagged
Evaluate a flag (early match) Time per operation 3.5 µs/op 3.5 µs/op 0.2% more time Not flagged
Evaluate a flag (early match) Process CPU time per operation 3.5 µs/op 3.5 µs/op 0.2% more time Not flagged
Evaluate a flag (late match) Allocated memory per operation 5.09 KiB/op 5.09 KiB/op No observed change Not flagged
Evaluate a flag (late match) Time per operation 4.59 µs/op 4.57 µs/op 0.5% less time Not flagged
Evaluate a flag (late match) Process CPU time per operation 4.59 µs/op 4.57 µs/op 0.5% less time Not flagged
Evaluate a flag (no match) Allocated memory per operation 4.88 KiB/op 4.88 KiB/op No observed change Not flagged
Evaluate a flag (no match) Time per operation 4.1 µs/op 4.12 µs/op 0.5% more time Not flagged
Evaluate a flag (no match) Process CPU time per operation 4.1 µs/op 4.12 µs/op 0.5% more time Not flagged
Evaluate a property-filtered flag Allocated memory per operation 1.85 KiB/op 1.85 KiB/op No observed change Not flagged
Evaluate a property-filtered flag Time per operation 2.07 µs/op 2.09 µs/op 0.9% more time Not flagged
Evaluate a property-filtered flag Process CPU time per operation 2.08 µs/op 2.09 µs/op 0.9% more time Not flagged
Evaluate a regex-filtered flag Allocated memory per operation 6.28 KiB/op 6.28 KiB/op No observed change Not flagged
Evaluate a regex-filtered flag Time per operation 6.99 µs/op 7.05 µs/op 0.8% more time Not flagged
Evaluate a regex-filtered flag Process CPU time per operation 7.01 µs/op 7.07 µs/op 0.9% more time Not flagged
Evaluate a rollout flag Allocated memory per operation 1.73 KiB/op 1.73 KiB/op No observed change Not flagged
Evaluate a rollout flag Time per operation 2.59 µs/op 2.57 µs/op 0.9% less time Not flagged
Evaluate a rollout flag Process CPU time per operation 2.59 µs/op 2.57 µs/op 0.9% less time Not flagged
Evaluate a multivariate flag Allocated memory per operation 1.77 KiB/op 1.77 KiB/op No observed change Not flagged
Evaluate a multivariate flag Time per operation 2.31 µs/op 2.33 µs/op 0.8% more time Not flagged
Evaluate a multivariate flag Process CPU time per operation 2.31 µs/op 2.33 µs/op 0.7% more time Not flagged

Values are medians of paired measurements. Not flagged does not mean unchanged. Unavailable means a measurement could not be provided, not zero. Estimated allocation measurements retain their instrumentation uncertainty. RSS measures the whole process, not just SDK allocations; observed peaks are sampled checkpoints. Paired ranges in the diagnostics describe variability, not confidence intervals.

Compared 33e0273942b1364dd5dbdcd6e48c0ec6da7d0392 → 6c61df3f803ed8cf35254cd67fa9e90319be1844.

Full report and diagnostics

108 metric rows; 108 rows shown in all results. Omitted or shortened data remain in comparison.json, including per-runner environments, resource limits, measurement methods, samples and checkpoints.

Code-sent emails are transactional only. Keep SendCodeEmailOptions.Category
in the public API, marked [Obsolete], so code built against 2.31 still
compiles and loads. A send that sets it throws an EmailException with the
code invalid_form and the field category before any request, pointing
marketing email to a PostHog workflow. The SDK never sends a category,
and a null Category sends exactly as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Silthus Silthus changed the title revert(emails): remove Category from code sends fix(emails): keep Category obsolete and refuse it before any request Dec 2, 2026
Silthus and others added 2 commits December 2, 2026 14:14
A categorized send with another invalid option now still gets the
invalid_form refusal with workflow advice, and no file is uploaded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Silthus
Silthus marked this pull request as ready for review December 2, 2026 13:42
@Silthus
Silthus requested a review from a team as a code owner December 2, 2026 13:42
@veria-ai

veria-ai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

PR overview

No security issues were found in this pull request.

Reviews

@stamphog stamphog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Approved.

The public-contract and write-path changes have independent assurance through the author's trusted STRONG familiarity, with focused regression tests. No unresolved substantive concerns or other refusal grounds are present.

  • Author wrote 100% of the modified lines and has 4 merged PRs in these paths (familiarity STRONG).
Gate mechanics and policy version
Gate Result
prerequisites ✓ all clear
deny-list ✓ no deny categories matched
every_file_attested ✓ not a bot PR
size ✓ 54L, 3F substantive, 111L/5F incl. size-exempt files — within ceiling
tier ✓ T1-agent / T1d-complex (111L, 5F, cross-cutting, fix)
stamphog 2.11.0 .stamphog/policy.yml @ 6c61df3 · reviewed head 6c61df3

@Silthus
Silthus merged commit c68f136 into main Dec 2, 2026
25 of 26 checks passed
@Silthus
Silthus deleted the revert/emails-send-category branch December 2, 2026 17:15
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