Skip to content

Split telemetry event schema responsibilities - #17235

Merged
nwparker merged 53 commits into
mainfrom
ra/max-lines-bottom-23-telemetry-events
Aug 30, 2026
Merged

nwparker merged 53 commits into
mainfrom
ra/max-lines-bottom-23-telemetry-events

Conversation

@nwparker

@nwparker nwparker commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 12 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1899 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1654 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​245

Summary

  • split the 1,657-line telemetry schema monolith into focused schema, registry, and classification modules
  • preserve the original 52-symbol public facade and the literal 81-event registry ordering
  • reduce the max-lines baseline from 64 entries to 63; every new TypeScript module is at most 300 lines

Stacked on #17231.

Validation

  • pnpm tc
  • telemetry-related suite: 40 files, 395 tests
  • focused validator/IPC suite: 4 files, 134 tests
  • direct Oxlint with --deny-warnings
  • pnpm run check:code-quality:changed
  • pnpm check:max-lines-ratchet
  • pnpm check:runtime-electron-ratchet
  • pnpm format
  • git diff --check
  • direct module-cycle check
  • two independent refactor audits: clean
  • real-commit move-check: 8 formatter-only vanished lines, 198 module-boundary/import appearances

Electron validation is not applicable because this is shared telemetry schema plumbing with no rendered UI change.

@greptile-apps

greptile-apps Bot commented Aug 29, 2026 •

Copy link
Copy Markdown

Greptile Summary

The PR reorganizes the shared telemetry schema monolith without intentionally changing its public contract.

  • Splits property, event-family, registry, and classification responsibilities into focused modules.
  • Retains telemetry-events.ts as the compatibility facade for existing consumers.
  • Derives event typing and cohort classification from the centralized registry.
  • Removes the former monolith from the max-lines baseline.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
src/shared/telemetry-events.ts Replaces the schema monolith with a compatibility-oriented re-export facade.
src/shared/telemetry-event-registry.ts Centralizes the ordered event-name-to-schema registry using schemas imported from the new focused modules.
src/shared/telemetry-event-classification.ts Derives event types and cohort classification sets from the centralized registry.
src/shared/telemetry-property-schemas.ts Houses reusable telemetry property enums, schemas, and associated public types.
src/shared/telemetry-onboarding-event-schemas.ts Moves onboarding, activation, and smart-sort event schemas into a dedicated module.
src/shared/telemetry-repository-event-schemas.ts Moves repository, workspace-creation, nested-repository, and setup-script event schemas into a dedicated module.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  Producers[Telemetry producers] --> Facade[telemetry-events.ts facade]
  Facade --> Properties[Property schemas]
  Facade --> Registry[Event registry]
  Facade --> Classification[Event classification]
  Registry --> App[App schemas]
  Registry --> Daemon[Daemon schemas]
  Registry --> Repository[Repository schemas]
  Registry --> Onboarding[Onboarding schemas]
  Registry --> Native[Native feature schemas]
  Registry --> Education[Feature education schemas]
  Registry --> Classification
  Classification --> Validator[Validator and IPC cohort injection]
Loading

Reviews (3): Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." | Re-trigger Greptile

…ax-lines-bottom-10-automation-dispatch-events
…lines-bottom-20-cdp-bridge

# Conflicts:
#	src/main/browser/cdp-bridge.ts
…3-telemetry-events

# Conflicts:
#	src/renderer/src/hooks/automation-dispatch-completion.ts
@nwparker
nwparker changed the base branch from ra/max-lines-bottom-22-linear-item-drawer to main August 30, 2026 03:19
@coderabbitai

coderabbitai Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 14 minutes.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: c66d3a88-c767-4224-87f9-3984d51dd216

📥 Commits

Reviewing files that changed from the base of the PR and between 7cef5f4 and 4abeb4c.

📒 Files selected for processing (12)
  • config/max-lines-baseline.txt
  • src/shared/telemetry-app-event-schemas.ts
  • src/shared/telemetry-daemon-event-schemas.ts
  • src/shared/telemetry-event-classification.ts
  • src/shared/telemetry-event-registry.ts
  • src/shared/telemetry-events.ts
  • src/shared/telemetry-feature-education-event-schemas.ts
  • src/shared/telemetry-native-feature-event-schemas.ts
  • src/shared/telemetry-onboarding-event-schemas.ts
  • src/shared/telemetry-onboarding-foundation-schemas.ts
  • src/shared/telemetry-property-schemas.ts
  • src/shared/telemetry-repository-event-schemas.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker merged commit 23009d9 into main Aug 30, 2026
4 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
* Split speech session lifecycle

* Split terminal output scheduler pipeline

* Split mobile browser pane modules

* Prune resolved max-lines suppressions

* Split pane tree equalization logic

* Extract mobile troubleshoot screen styles

* Split external automation manager

* Split main window service attachments

* Split hosted review creation checks

* Split automation dispatch event handling

* Split settings navigation metadata

* Split daemon initialization lifecycle

* Split GitLab item dialog

* Split relay dispatcher layers

* Split mobile host screen

* Retarget mobile view settings source test

* Split runtime file client layers

* Split ports panel layers

* Split runtime environments pane layers

* Split local PTY provider responsibilities

* Split CDP bridge responsibilities

* Split relay Git handler responsibilities

* Track moved relay Git fetch audit

* Split Linear item drawer responsibilities

* Split telemetry event schema responsibilities

* Fix F3-speech for stablyai#17123

* Fix F1-cycle for stablyai#17131

* Fix F4-navtest for stablyai#17157

* Fix F2-allowlist for stablyai#17161
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