Repository navigation
docs(capture-ai): specify the AI lane's configuration surface - #118
Closed
posthog[bot] wants to merge 1 commit into
Closed
posthog[bot] wants to merge 1 commit into
posthog[bot] wants to merge 1 commit into
Conversation
posthog-python and posthog-go now expose the AI delivery lane's compression, queue capacity and upload timeout as public, lane-scoped options with matching defaults. The spec still said capture-ai had "one public flag" and treated the whole AI transport as non-normative. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Generated-By: PostHog Desktop Task-Id: 08d25f4a-271b-47cb-b118-cf3527017f0a
Contributor
|
Closing as superseded by #147, which specifies the full capture v1 AI lane including this configuration surface. |
eli-r-ph
added a commit
that referenced
this pull request
Oct 27, 2026
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The
capture-aispec's Configuration section said the capability has one public flag (enable_full_ai_capture) and treated everything about the AI delivery lane — compression, queue capacity, upload timeout, per-event size cap — as non-normative transport. Two server SDKs have since converged on a public, AI-lane-scoped configuration surface with identical defaults, so the spec is out of date and the next SDK to add AI capture has no contract to copy.Source changes
v1branch). Addscapture_ai_compression,capture_ai_max_queue_size,capture_ai_timeout,capture_ai_max_event_bytes; isolates the AI lane fromPOSTHOG_CAPTURE_COMPRESSION; rejects invalid values at construction. Its description explicitly flags the cross-SDK/sdk-specs angle.v1branchconfig.go—CaptureAICompression,CaptureAIMaxQueueSize(default 1000),CaptureAIBatchUploadTimeout(default 30s), with the per-event cap kept as an internal constant.What changed in the spec
MAY(Go keeps it constant) and the batch-size target stays non-configurable, matching both SDKs.Proposed, applied and archived on this branch per AGENTS.md;
openspec validate capture-ai --type spec --strictpasses.Uncertain / worth a look
v1branches, not on their default branches. If you'd rather the spec wait for a release, this can sit until then.captureAibut no AI-lane knobs, so this gives it a gap to close.Created with PostHog Desktop
🤖 Generated with Claude Code