Repository navigation
Conversation
Git-on-my-level
left a comment
There was a problem hiding this comment.
Verified the core diagnosis and it is correct: backend/routers/integration.py registers POST /v2/integrations/{app_id}/user/memories and the backend's own contract test (backend/tests/unit/test_integration_public_contract.py:27-29) documents that /user/facts is intentionally absent, so the URL change in plugins/composio/src/omi_api.py is the right one-line fix. I ran the new hermetic suite locally: 1/1 pass, no network or credentials needed — good test design.
Requesting changes because, as written, the PR only half-fixes #14384 — the plugin's primary Notion ingestion path still never lands:
plugins/composio/src/notion.py:396stores pending memories withsource="notion_page".process_pending_memoriesinplugins/composio/src/omi_api.pyforwards that value (source=memory["source"] or "other").- The backend's
ExternalIntegrationCreateMemory.text_sourceis a strict enum (email | social_post | other,backend/models/integrations.py:27), so those requests now return 422 instead of 404 — sync still fails silently. Free-formtext_sourcevalues onPOST /api/omi/factshit the same 422. - The fix is to clamp non-enum sources to
"other"and carry the original value intext_source_spec— the same provenance pattern the plugin's ownstore_factalready uses (source="other",source_spec="notion:<id>"). Please also extendplugins/composio/test_omi_api_route.pywith a case for it; right now it pins only the happy path.
File notes: plugins/composio/src/omi_api.py — change and comment accurate, only the enum gap above. plugins/composio/test_omi_api_route.py — solid hermetic approach (framework/db seams stubbed, real module loaded); would benefit from the retired-route-never-used and missing-credentials cases. .github/checks-manifest.yaml — entry well-formed, mid-file insertion with both lanes; Hygiene passed. The two failing Desktop Swift jobs are runner network failures cloning firebase-ios-sdk (logs show Failed to connect to github.com port 443), unrelated to this Python-only diff.
One coordination note for the maintainers: #14385 (by the #14384 author, opened earlier) fixes the same bug and already includes this source clamp plus a broader test suite, so someone should adjudicate which PR lands and how credit for the bounty is handled. Leaving that decision to the maintainers.
by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.
d444cc9 to
0611701
Compare
kodjima33
left a comment
There was a problem hiding this comment.
Root fix is correct (confirmed /user/facts is not a registered route) but reviewer found it only half-fixes #14384 — Notion-sourced memories still 422 on the backend's strict text_source enum. A more complete duplicate, #14385, already covers the enum-clamp case. DIRTY (needs manual rebase, not done here). Approve only; let maintainer adjudicate #14507 vs #14385.
ef68bd5 to
6454faf
Compare
|
Follow-up after the merge: the linked bounty issue proposed US$25, but the PR states that eligibility and payment remain subject to maintainer review. Could a maintainer confirm whether a reward was approved for this PR, the final amount, and the official private payout channel or instructions? I will not post any wallet or financial details publicly. Thank you. |
What changed
/user/factsroute to the documented/user/memoriesroute./api/omi/factscompatibility endpoints unchanged.create_fact()function with framework/database seams stubbed and asserts the exact URL, query string, header, and JSON payload..github/checks-manifest.yamlfor local and CI lanes.Verification
python plugins/composio/test_omi_api_route.py— 1 test passed.python -m py_compile plugins/composio/src/omi_api.py plugins/composio/test_omi_api_route.py— passed.git diff --check— clean.python .github/scripts/run_checks.py --lane local --base origin/main --head HEAD --check-id composio-memory-route-tests --check-id check-manifest-contract— both selected checks passed (1 route test; 53 manifest-contract tests, 3 expected skips).No credentials, network calls, or provider services are used by the regression test. AI assistance was used and the implementation was reviewed locally against #14384.
Fixes #14384. The issue proposes a US$25 bounty; reward eligibility and payment remain subject to maintainer review, acceptance, and merge.
Failure-Class: none