Skip to content

Speech-triggered proactivity bypasses JIT suppression; dwell and departure do not #12407

Closed

Description

@aryanorastar

ContextProactivityEngine now has three evaluation entry points, and only two of them consult JIT admission.

contextEntered (line 220) and evaluateAfterDeparture (line 278) both call JITProactivityCoordinator.shared.handle(...) first and return early when it answers true. evaluateFromSpeech (line 299) calls evaluateAndDeliver directly — it never reaches the coordinator.

That matters only in one direction. handle() returns false for .legacyContextBucketFallback, which is what the kill switch produces (JITProactivityPolicy.swift:87–95, via permitsNewLane at :29), so with JIT off or killed all three lanes end up in the legacy director and behave alike. The difference appears when JIT is enabled and returns .suppressed (JITProactivityCoordinator.swift:42–44): dwell and departure stop without delivering, while a spoken mid-visit question still evaluates and can deliver.

So the speech lane bypasses JIT's suppression decisions — dedup, continuity keys, planned-trigger precedence — not its kill switch.

Whether that is a defect or the intended design is a product question, not a code one. A plausible reading is that it's correct: a user asking out loud is a direct request, where dwell is the engine volunteering, and a direct request arguably should outrank planned-trigger precedence. The opposite reading — that one owner should not receive two uncoordinated proactive surfaces — is equally defensible.

No user impact today: the transcript flag (ContextBucketsFeature.isTranscriptProactivityEnabled) is hard-off in production and Beta, and JIT's default-unknown fails closed to legacy. This wants deciding before either flag widens, which is why it's filed rather than fixed.

Surfaced by @Git-on-my-level while reviewing #11804; the kill-switch half of the original framing was corrected in that thread and the above reflects the verified behaviour.

Activity

  1. aryanorastar commented on Sep 4, 2026

    @aryanorastar
    CollaboratorAuthor

    The third entry point this describes (evaluateFromSpeech) is introduced by
    #11804
    and isn't on main — contextEntered and evaluateAfterDeparture both consult the coordinator today. Closing here; I'll route speech through JIT admission in that PR before it merges.

  2. moved this from Someday to In review in omi TODO / bountieson Sep 4, 2026
  3. added 2 commits that reference this issue on Sep 4, 2026
    a04bcc3
    c362365
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions