Repository navigation
Conversation
Cancelled and superseded tasks can omit the legacy deleted flag. Make that raw wire marker private and route every TaskActionItem lifecycle decision through isRetired so status-only-retired tasks cannot surface as live or accept mutations. Add regression coverage for task filters, active surfaces, provenance, and deleted-wire compatibility. Failure-Class: none
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed and why
Fixes #11518.
TaskActionItem.isRetiredalready understood canonicalcancelledandsupersededstatuses, but desktop task surfaces, filters, automation, and chat tools could still read the optional legacydeletedflag directly and treat status-only-retired tasks as live.This makes the legacy wire marker private, preserves its
deletedJSON key, and routes everyTaskActionItemlifecycle decision throughisRetired. Cancelled and superseded tasks are now excluded from active lists and mutations and classified into the correct Removed lane even when the backend omitsdeleted.Product invariants affected
INV-CHAT-1: task chat/tool paths still use the existing canonical task and conversation owners; this only rejects already-retired task targets.INV-NAV-1: chat-first and legacy task surfaces now apply the same retirement predicate.INV-TASK-1: complete dated buckets and bounded No Deadline paging are unchanged; retired rows are consistently removed from both active bucket shapes.How it was verified
xcrun swift build -c debug --package-path desktop/macos/Desktop— passed./Applications/omi-11518-retirement.app(com.omi.omi-11518-retirement) against the development desktop backend. The automation bridge reported the exact bundle and exposed the genuine task store actions. This machine has no signed-in desktop auth seed; an attempted CRUD smoke correctly failed closed as signed out. The repository's offline synthetic-auth harness could not start because Docker/Typesense is not installed, so no authenticated UI claim is made.FloatingBarNotificationPreviewPolicyTests.testDirectorDeliveryWithDisabledCategoryToggleIsSuppressedAtTheEntryPointfailed only in the full shared-state run and passed when rerun in isolation.RewindCaptureExclusionGenerationTests.testOwnerSnapshotStaysCurrentWhenAuthLeadsUnresolvedRewindDatabasereproduces in isolation with the process-global owner resolving toanonymous; no changed file participates in that test.swift-format lint --strict,check_desktop_test_quality.py, andgit diff --check— passed.Tests
TaskActionItemRetirementAuthorityTestsis the regression coverage. It constructscancelledandsupersededpayloads withdeleted: niland proves they are retired, appear only in the appropriate Removed filter, and never enter the active dated surface. It also proves user-removal provenance and exact legacydeletedwire compatibility.Related
TasksStoreTaskPaginationTests,TasksStoreDeletedLaneRetirementTests,ActionItemStorageVisibilityReconciliationTests, andDashboardIntelligenceStoreTestsall pass with the new authority boundary.Failure class (fixes)
Failure-Class: none