Repository navigation
Conversation
|
Verdict: the fix is correct and well tested, but it duplicates an already-open PR for the same issue (#23170) — a maintainer needs to pick one before either merges.
One behavioral difference vs the sibling PR worth knowing when choosing: in Security / blast radius: no new dependencies, no network or credential surface; changes are confined to the retry-claim ledger. If a coercion were wrong, the worst case is a mis-computed duration or a lease misjudged live/dead — the failure directions here are conservative. USER IMPACT: none directly visible — conversations whose summary-retry ledger hit the crash or bad-lease paths get reliable retries again. #23170 (opened Oct 22 by the bounty proposal's author) implements the same fix and is already positively reviewed, so a maintainer should choose which PR carries forward — yours guards more sites, #23170 is slightly more conservative in If yours is kept: add a by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
@Git-on-my-level Thank you for the detailed feedback and suggestions! All review items addressed in commit
Ready for maintainer merge review! |
📊 Maintainer Decision Matrix (Triage vs #23170)Hi @kodjima33 @beastoin @Git-on-my-level 👋 To assist maintainer review and selection between the two open PRs for issue #23169, here is a concise comparison matrix:
All feedback from earlier reviews has been addressed. Ready for 1-click merge!
|
|
The production change is correct and nicely scoped — leaving for human maintainer review, since one deliberate lease-semantics change deserves a sign-off and no CI run has executed on this head yet. backend/database/processing_attention.py — backend/tests/unit/test_processing_attention_timestamp_guards.py — solid coverage of the exact crash modes from #23169; imports stay credential-free since One behavior change worth a maintainer eye: ISO-string Nits, non-blocking: (1) in
USER IMPACT: users whose conversation-summary processing failed can now see those attention items (with correct durations) and retry them, instead of the attention list/claim path erroring out on mixed timestamp formats. Still wanted before merge: a green Backend Unit Tests run on this head (no check results are posted yet), and optionally a test asserting by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
@Git-on-my-level Thank you for the review and verification! Lease semantics and error guards verified; all unit tests pass. All feedback processed and confirmed passing cleanly. Ready for maintainer merge consideration! |
…try fields (BasedHardware#23169) # Conflicts: # backend/database/processing_attention.py
…d RETRY_LEASE_SECONDS, and enforce explicit is not None in timing
9666a7c to
852fb05
Compare
|
Since my last review: addressed (the Verdict: the production logic is unchanged in substance from the version I verified earlier, CI has now run on this head, and the only red check is an unrelated runner flake — nothing blocks from my side. What remains is a maintainer selection call, not a code fix.
USER IMPACT: users whose conversation-summary processing failed see those attention items again (with correct durations) and can retry them, instead of the list/claim path erroring out on mixed timestamp formats. Still wanted: (1) a maintainer chooses which of this PR and #23170 carries the fix — the bounty proposal #23169 was closed as not planned, so credit no longer complicates that choice; (2) sign-off on the one deliberate semantics change: an ISO-string Leaving for human maintainer review — the duplicate-PR selection and the lease-reclaim semantics sign-off are maintainer calls, not code fixes. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
Hey @Dimank92 👋 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
Closes #23169
backend/database/processing_attention.py, introduced_coerce_utc_datetimeto safely normalize timezone-naive datetimes, aware datetimes, and ISO-8601 strings to UTC-aware datetime objects.timing(row), safely parsestarted_at/created_atandfinished_atthrough_coerce_utc_datetimeto eliminateTypeError: can't subtract offset-naive and offset-aware datetimesand properly compute durations for ISO-8601 strings.lease_live(operation, now), normalizenow,lease_expires_at, andcreated_atto UTC-aware datetimes before comparison to prevent TypeError and premature expiration of claims stored as ISO-8601 strings.list_items(),claim_in_transaction(), andfinish_in_transaction(), safely guarditem.get('retry')against explicitNonevalues and use.get()on operation dictionaries to preventAttributeError: 'NoneType' object has no attribute 'get'.backend/tests/unit/test_processing_attention_timestamp_guards.py.Product invariants affected
none
UI evidence
UI-Evidence: none -- internal logic and test suite only; no UI change.
Failure class (fixes)
Failure-Class: none