Skip to content

C8 registry: admit int and per-property closed enums - #14449

Closed
Git-on-my-level wants to merge 2 commits into
task/msd-product-c8-migratefrom
task/msd-product-c8-types
Closed

Git-on-my-level wants to merge 2 commits into
task/msd-product-c8-migratefrom
task/msd-product-c8-types

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

The event registry now admits int and per-property closed enums so the next C8 tranche can be pinned without inventing free strings. No production AnalyticsManager wrappers were migrated. A generator probe event (Type Extension Probe) plus goldens prove that bool, int, and enum wire values survive TypedEvents.emit as the same adapter payload.

Product invariants affected

none

How it was verified

  • TZ=UTC bash app/test.sh — 2074 passed, including first-slice goldens unchanged and two new type-extension tests (emit goldens; constructor TypeError + fresh property bag).
  • python3 scripts/check_spine_contracts.py — 39 pending, 13 protected. No spine files edited.
  • python3 scripts/check_event_registry.py --base origin/main — 16 registered events, generated output current.
  • dart format --line-length 120 --set-exit-if-changed on the non-generated Dart test file — 0 changed. Did not format events.g.dart.
  • OMI_PR_BODY_FILE=.local/pr-body-c8-types.md make preflight — 19 checks passed in 125.18s (harness 322 passed, 7 skipped, 59 xfailed).

Did not call api.omi.me, PostHog, or any warehouse. Did not migrate a second production tranche. Did not add free String, double, Map, List, or optional/nullable fields.

Tests

Core path: c8_slice_goldens_test.dart emits TypeExtensionProbe for {enabled, count, mode} combinations covering 0/1/99 and every enum wire string (off, headphones_only, always) and asserts the adapter payload including globals. Main error path: constructors reject strings/maps/wrong types; a mutated property bag does not stick. Harness probes admit int/enum, reject String/double/Map/Object/num, and reject degenerate enums.

Failure class (fixes)

Failure-Class: none

🤖 Generated with Claude Code

Review in cubic

Git-on-my-level and others added 2 commits September 18, 2026 04:01
Unblock the next C8 tranche without migrating production wrappers.
A type-extension probe proves emit goldens for the new types; free
String, double, and Map stay rejected.

Co-authored-by: Cursor <[email protected]>
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.

1 participant