Repository navigation
feat(desktop): add context bucket proactivity engine - #11431
Git-on-my-level wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 52 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
d5f1c8a to
d91b9c0
Compare
d91b9c0 to
ff30801
Compare
|
Superseded by combined PR #11447. |
|
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:
Before your next PR, please skim:
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! |
## Summary - supersede #11431 and #11433 with one integrated branch on current `main` - ship universal memory/task convergence together with context-bucket proactivity - add configurable 24-hour notification active periods, persistent frequency budgets, quiet-period cost short-circuiting, typed notification presentation, and deterministic QA controls - repair notification permission lifecycle, message-action hit testing, and repeated screen-derived Suggested Task reconciliation ## Validation - 4,730 Desktop tests passed, 1 skipped, 0 failed before main integration - 91 focused merged-tree Swift tests passed - 19 merged-tree backend proactivity/quota tests passed - SwiftLint and swift-format clean - product file line-count ratchet and mutation fixtures pass - final bounded pre-push gate passed after current-main integration; backend pyright: 0 errors - 27 focused notification/suggestion Swift tests, 56 memory/export tests, and 34 privacy tests pass - signed `/Applications/omi-qa-main.app` rebuilt from the final branch; 03:00–06:00 active period and Maximum frequency persist across relaunch ## Product invariants affected - INV-AGENT-* - INV-AUTH-1 - INV-CHAT-1 - INV-MEM-1 - INV-MEM-2 - INV-MEM-3 - INV-MEM-4 - INV-MEM-5 - INV-TASK-1 - INV-CUTOVER-1 - INV-DATA-1 - INV-INT-1 - INV-UI-1 Failure-Class: FC-split-mutation-authority <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/11447?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="Review in cubic" src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
Summary
context_bucketsMemoryAssistantuntouched, and confine task graduation to the canonical candidate API throughCandidateSinkPlan: context buckets + unified proactivity engine rev 4
Gateway spike
The required live dev-gateway spike ran before facade implementation:
json_schemaomi:auto:desktop-proactive-extractionresolved to Nano;omi:auto:desktop-proactive-reasoningresolved to Lunacache_write_tokens=3289, thencached_tokens=3289on the immediate repeatprompt_cache_retention=24hand explicit 30-minute cache options both survived without facade strippingThe scratch spike was not shipped.
Grounding drift
The plan was grounded at
454b153ab7. The implementation was repeatedly rebased as main advanced and is now based exactly onb626e60b5e477f6fb2b03be2cf99638c26e4a9df; final head is9a7ce2b91a1a3d544f8c01e533e33fd7cc8e8c55. The last upstream change added desktop Gemini quotas and strengthened the direct-gateway exception guard. The branch retained upstream's policy-aware guard and added the two proactive structured-output lanes to its inventory. The final tree reran the complete PR preflight, Swift build, and deterministic focused suites.Review hardening
Three independent adversarial review lanes and Cubic findings were applied together:
policy_approveduntil actual presentation; dropped cards terminalize without graduating candidates, and abandoned attempts are reconciled deterministicallyIntentional small deviations
unknownuntil gateway executor metadata is exposed, as allowed by the planVerification
b626e60b5eProduct invariants
Failure-Class: none