Skip to content

fix(hume-ai): post emotion memories to the served v2 integration route - #14499

Closed
tluangtea-lab wants to merge 1 commit into
BasedHardware:mainfrom
tluangtea-lab:fix/hume-omi-memory-route
Closed

tluangtea-lab wants to merge 1 commit into
BasedHardware:mainfrom
tluangtea-lab:fix/hume-omi-memory-route

Conversation

@tluangtea-lab

@tluangtea-lab tluangtea-lab commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #14340. create_omi_memory() posted to /v1/integrations/{app_id}/memories, a route the backend does not register, so every emotion-memory creation failed with 404 {"detail":"Not Found"}.

The fix

Point the URL at POST /v2/integrations/{app_id}/user/memories. Only the path changes.

Verification

  • python3 plugins/test_hume_omi_memory_route.py — 3 checks passed.
  • Unpatched code fails at the route assertion.
  • Registered plugin-hume-ai-omi-memory-route-tests in .github/checks-manifest.yaml.

Failure-Class: new

Review in cubic

@Git-on-my-level

Copy link
Copy Markdown
Member

Verified end to end — this is a clean, well-evidenced fix for #14340. Thank you for the quality of the report and the regression guard.

Per-file notes:

  • plugins/hume-ai/app.py — confirmed the dead route: no backend router registers POST /v1/integrations/{app_id}/memories, while POST /v2/integrations/{app_id}/user/memories is served (backend/routers/integration.py, create_memories_via_integration) with the same auth shape the plugin already sends (Bearer API key + uid query param). Payload compatibility also checks out: the v2 model accepts text and ignores extra keys, so the existing {text, timestamp, emotions} body needs no change — and the emotion breakdown is already embedded in the text summary, so nothing is lost.
  • plugins/test_hume_omi_memory_route.py — genuinely hermetic (hume SDK stubbed, capturing fake httpx client, no network/keys) and it drives the real create_omi_memory() rather than asserting on source strings. I ran it on this head (3 checks passed) and again with only the app.py hunk reverted: it fails at the route assertion reporting the dead v1 URL, so the guard actually catches the regression it was written for.
  • .github/checks-manifest.yaml — new plugin-hume-ai-omi-memory-route-tests entry registered in both lanes; I ran the manifest runner in the ci lane with this PR's body and changed files: the new check is selected and passes (16 checks total).
  • .github/failure-classes/FC-integration-client-targets-unserved-route.json — valid definition and accurately scoped; scripts/failure-class validate passes with declaration new.

The live evidence in the issue (404 on the v1 path vs. an auth challenge on the v2 path) matches the code, and the sibling notification path in this plugin already used a served v2 route, so this brings the last caller in line.

Nothing blocking from my side — leaving formal approval and merge to a human maintainer.


by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.

@Git-on-my-level Git-on-my-level added positive-signal Automation verified a genuine fix/quality contribution python labels Sep 18, 2026

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

Confidence 5/5 (fixes #14340, scoped, tests added, no CI failures) but mergeStateStatus is UNKNOWN — per policy, never merge on UNKNOWN. Approve only.

create_omi_memory() posted to /v1/integrations/{app_id}/memories, a
route the backend does not register, so every emotion-memory creation
failed with 404 {"detail":"Not Found"} and the create-memory-from-
detected-emotion path was dead in production (issue BasedHardware#14340).

Point the URL at POST /v2/integrations/{app_id}/user/memories, the
user-import route the backend serves; the payload the plugin already
sends (text/timestamp/emotions) matches that route's model, so only
the path changes.

Verification:
- python3 plugins/test_hume_omi_memory_route.py -> 3 checks passed
  (real create_omi_memory driven through a capturing fake httpx
  client; hume SDK stubbed; no network, no keys)
- same suite against unpatched app.py fails at the route assertion,
  reporting the dead /v1/integrations/{app_id}/memories URL
- registered plugin-hume-ai-omi-memory-route-tests in
  .github/checks-manifest.yaml (local + ci lanes)

Failure-Class: new
@tluangtea-lab
tluangtea-lab force-pushed the fix/hume-omi-memory-route branch from b034f65 to 1771c49 Compare September 19, 2026 04:46

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

5/5 hume-ai integration route fix with test; DIRTY -- approve only.

@tluangtea-lab

Copy link
Copy Markdown
Contributor Author

Superseded by #14342.

@github-actions

Copy link
Copy Markdown
Contributor

Hey @tluangtea-lab 👋

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

positive-signal Automation verified a genuine fix/quality contribution python

Projects

None yet

3 participants