Skip to content

fix(backend): ground action items on the primary user - #12089

Merged
kodjima33 merged 2 commits into
BasedHardware:mainfrom
arhxam:fix/action-item-primary-user-context
Aug 23, 2026
Merged

kodjima33 merged 2 commits into
BasedHardware:mainfrom
arhxam:fix/action-item-primary-user-context

Conversation

@arhxam

@arhxam arhxam commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Action-item extraction renders the account owner's display name into transcripts, but the extractor is still instructed to infer the primary user from conversational style. In multi-speaker recordings that can assign another participant's request to the wrong person, which is the ownership failure reported in #8918.

Thread the resolved primary-user name through every legacy extraction path and place it in the per-conversation dynamic context as JSON-encoded, explicitly untrusted identity data. The cacheable static prefix contains only the generic authority rule, preserving the prompt-cache contract added after the earlier attempt at this fix.

Fixes #8918.

Verification

  • Red on the test-only commit: two prompt-grounding cases rejected the missing parameter and the composition test observed no forwarded identity.
  • Green prompt/date and wake-word suite: 60 passed.
  • Green conversation composition suite: 42 passed.
  • Green prompt-cache and gateway suite: 89 passed.
  • The injection-shaped display-name case remains JSON data, never enters the static prefix, and cannot alter cached instructions.
  • Black, git diff --check, make preflight, and PR-body preflight pass.

Product invariants affected

  • INV-MEM-4 — the shared conversation composition path is touched only to forward action-item prompt identity; memory intake, promotion, and consolidation authority are unchanged.

Failure-Class: none

Line-Count-Exception: backend/utils/conversations/process_conversation.py | 2403 -> 2411 | thread the resolved primary-user identity through all three legacy action-item extraction paths
Line-Count-Exception: backend/utils/llm/conversation_processing.py | 1751 -> 1765 | keep primary-user identity in dynamic untrusted prompt context without changing the cacheable static prefix

Review in cubic

@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.

Fixes #8918: threads resolved primary-user identity into action-item extraction instead of relying on LLM inference from conversational style; well tested, CI green. 5/5 confidence, merging.

@kodjima33
kodjima33 merged commit d31370e into BasedHardware:main Aug 23, 2026
34 checks passed
formed2forge pushed a commit to formed2forge/omi that referenced this pull request Aug 24, 2026
…12089)

* test(backend): cover primary-user action-item grounding

* fix(backend): ground action items on primary user

Failure-Class: none
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.

Backend: Ground speaker labels with voice profiles for precise action item extraction (#5474)

2 participants