feat(analytics): recover desktop instrumentation and consent-safe delivery - #256
Merged
Conversation
Contributor
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
yaacovcorcos
marked this pull request as ready for review
September 6, 2026 18:27
yaacovcorcos
enabled auto-merge
September 6, 2026 18:27
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.
What changed
Recover the useful unfinished desktop analytics work onto current main, preserving the original dirty worktree and its snapshot. Extend the existing Scient contract/worker instead of adding a second telemetry system or altering provider-management ownership.
Qualification and limitations
Integration readiness
Owner reviewed the desktop UI and authorized merge/auto-merge; production activation remains separate. The candidate includes main's provider-update fix #254 through a normal merge. Gateway validation/migrations must land and be deployed before releasing these producers. The companion gateway PR keeps both production gates disabled pending qualification.
The manual candidate has fresh isolated state and a local-only gateway without PostHog credentials. Stable Scient and original dirty worktrees are untouched.
Documentation impact: Updated — docs/internals/product-analytics.md and scient-analysis-seams.json. Dependent PRs: gateway/privacy #33 and Scient policy #108.
AI assistance: Codex (GPT-5-based agent), Codex desktop harness; independent read-only reviewer. No agent visual acceptance substitutes for the owner's review.
Latest reviewed UI/defaults checkpoint
Documentation impact: Updated — docs/internals/product-analytics.md and docs/user/telemetry.md; companion privacy/plan PRs synchronized with disabled notification.
CI failure resolved
The failed Web 1 shard had 2,377 passing assertions and one unhandled exception: the existing fileEditorLanguageReadiness test removed animation-frame globals before Pierre's final queued worker-state broadcast. Teardown now awaits the public stopped-state subscription receipt as well as worker termination. No production editor code or assertion was weakened. 30 focused editor/analytics UI tests and web type checking passed. Web 1 now passes on CI. Merge-commit auto-merge is enabled on the exact corrected head; remaining required checks still gate integration.