Skip to content

feat(app): migrate the remaining bool-only C8 events - #14441

Closed
Git-on-my-level wants to merge 5 commits into
task/msd-product-c8-typesfrom
task/msd-product-c8-slice2
Closed

Git-on-my-level wants to merge 5 commits into
task/msd-product-c8-typesfrom
task/msd-product-c8-slice2

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Sep 18, 2026 •

Copy link
Copy Markdown
Member

What changed and why

C8 slice 2 plus leftover bools, after merging origin/main forward through the C7/C8 stack.

Twelve production events whose payloads are only unbounded ints and already-closed enums now emit through TypedEvents, with adapter name and payload byte-identical to goldens captured at 75db8620c6 before emit. Nine leftover bool-only methods that needed no new registry type follow the same path, goldens at b4785879e9 (post-merge HEAD). phoneCallStarted still accepts String? contactName but emits only has_contact_name; the contact string never enters the payload.

The String closed-set list is unchanged and uninvented. Device identity (#14388) and Memory Created (#14392) stay main's named payloads.

Product invariants affected

none

How it was verified

  • Merged origin/main into task/msd-product-c7-registry (spine conflicts took main / harden(dev-harness): distinguish authorized revisions from rejected history #14408), then C7 → c8-migrate → c8-types → c8-slice2. analytics_manager.dart auto-merged; post-merge it still uses _deviceConnectionEventProperties and named Memory Created fields, not BtDevice.toJson().
  • After each merge: TZ=UTC bash app/test.sh, python3 scripts/check_event_registry.py --base origin/main, make preflight, app/AGENTS.md 11278 bytes (budget 11411).
    • C7: 2119 tests, 4 events, preflight 19/72.47s
    • c8-migrate: 2120 tests, 15 events, preflight 19/98.63s
    • c8-types: 2122 tests, 16 events, preflight 19/64.54s
    • c8-slice2 after merge: 2123 tests, 28 events, preflight 19/68.15s
  • Leftover-bool goldens captured at b4785879e9 then re-proven after emit. Prior C8 goldens (c789b4e19e, 75db8620c6, type-extension probe) still pass. Full TZ=UTC bash app/test.sh after leftover bools — 2124 passed.
  • python3 scripts/check_event_registry.py --base origin/main after leftover bools — 37 registered events. adopted_files empty.
  • OMI_PR_BODY_FILE=.local/pr-body-c8-slice2.md make preflight — 19 checks passed in 79.55s (harness 344 passed, 7 skipped, 59 xfailed).

Did not call api.omi.me, PostHog, or any warehouse. Did not invent a String closed set. Did not migrate interpolated-name events, transcript-derived counts, or F1 correlation ids.

Tests

Core path: c8_slice2_goldens_test.dart (int/enum tranche) and c8_leftover_bool_goldens_test.dart (nine bool methods including both branches and phoneCallStarted with/without a name). Main error path: C7 emission-privacy and type-extension constructor TypeError tests remain. Device-identity and Memory Created regression tests from main remain.

Failure class (fixes)

Failure-Class: none

Left for a reviewed String closed set

Unchanged from slice 2; do not invent this set:

  • recordingMuteToggled.recording_type — call sites device | phone_mic; the method still accepts any String, so unknown-versus-passthrough is an owner decision
  • deviceOnboardingStarted.source — auto | settings
  • deviceOnboardingStepCompleted.step — free String step ids from the onboarding flow (distinct from the int step on Abandoned)
  • dailySummaryTimeChanged.period — AM | PM (uppercase; the current enum identifier rule is lowercase snake_case); display_time is a formatted string, not a closed set
  • onboardingUserAcquisitionSource.source
  • memoryReviewCardShown.source
  • memoriesFiltered.filter
  • phoneCallFailed.error — includes unknown and free-form strings such as Failed to start call
  • phoneCallUpsellShown.source
  • appsFilterCategory.category / appsSortChanged.sort_option
  • changelogShown.fromVersion / toVersion
  • memorySearched.query / single-item memoryVisibilityChanged.fact_id + fact_category

🤖 Generated with Claude Code

Review in cubic

Git-on-my-level and others added 5 commits September 18, 2026 04:20
Capture public-method adapter payloads for the int and closed-enum
tranche at 75db862 before any wrapper calls TypedEvents.emit.

Co-authored-by: Cursor <[email protected]>
Route twelve production methods whose payloads are only unbounded ints
or already-closed enums, keeping emitted names and maps byte-identical
to goldens captured before emit.

Co-authored-by: Cursor <[email protected]>
Capture public-method adapter payloads at b478587 after the
main-forward merges and before those wrappers call TypedEvents.emit.

Co-authored-by: Cursor <[email protected]>
Route nine already-bool payloads that needed no new registry type,
keeping names and maps byte-identical to goldens at b478587.

Co-authored-by: Cursor <[email protected]>

@kodjima33 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Bool-only C8 analytics migration, no abuse signal; approve-only per standing account flag.

Git-on-my-level added a commit that referenced this pull request Sep 19, 2026
…all C8 slices (#14697)

Super-PR batching #14449/#14441/#14459/#14461 (cumulative C8 slice stack) onto a
clean ancestry from current main. Registry grows to 121 events with executable
consumers; all 120 emit sites use TypedEvents; main's newer guidedIntro block,
1-param omiDoubleTap, and import hygiene are preserved.
@Git-on-my-level

Copy link
Copy Markdown
Member Author

Fully absorbed: the cumulative C8 slice content (all 121 registered events, TypedEvents migration, slice goldens) reached main via the C8 super-PR #14697. Closing as absorbed per the batching directive.

@github-actions

Copy link
Copy Markdown
Contributor

Hey @Git-on-my-level 👋

Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request.

After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:

  • Project standards — Ensuring consistency across the codebase
  • User needs — Making sure changes align with what our users need
  • Code best practices — Maintaining code quality and maintainability
  • Project direction — Keeping aligned with our product principles and locked invariants

Before your next PR, please skim:

  • PRODUCT.md — product north star
  • Product invariants — locked rules (shared chat, memory tiers, agent control plane, integrations, brand)

If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing.

Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out.

Thank you for being part of the Omi community!

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.

2 participants