Repository navigation
feat: stage explicit reminders with date precision and creation evidence - #24485
Merged
Merged
Conversation
Meeting-note action items now read the same on web, macOS and mobile: the item, then owner and due date on one line, then the context on its own line. An unknown owner or due date is left out instead of saying "Unknown". - web share page: drop "Due Unknown" and the unknown-owner avatar; the context moves to its own line. The agent Markdown export keeps its explicit Unknown markers. - macOS: ActionItem now decodes and caches owner_name, due_at and context; the row shows them, and Add to Tasks keeps the due date. - mobile: the summary shows the note's tasks again (read-only, after the sections, as on the Mac) with the same metadata. The reader's own items say "You". Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Meeting-note action items now read the same on web, macOS and mobile: the item, then owner and due date on one line, then the context on its own line. An unknown owner or due date is left out instead of saying "Unknown". - web share page: drop "Due Unknown" and the unknown-owner avatar; the context moves to its own line. The agent Markdown export keeps its explicit Unknown markers. - macOS: ActionItem now decodes and caches owner_name, due_at and context; the row shows them, and Add to Tasks keeps the due date. - mobile: the summary shows the note's tasks again (read-only, after the sections, as on the Mac) with the same metadata. The reader's own items say "You". Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…overage Structured.toJson() wrote description-only strings, so the Flutter conversation cache dropped owner/due/context on every restart; it now emits the full action-item objects while the legacy String branch still decodes old caches. Structured.encode(to:) on macOS rebuilt items with dueAt: nil and no ownerName/context; it now maps all three fields, and a new Structured-level round-trip test pins it. The widget test now covers a due-dated row (keeping the no-Unknown assertions), the share HTTP test asserts the owner inside .sn-owner, and the meta separator rides at the owner's tail so a wrapped due date never starts a row with a stray dot.
…ta' into lane/meeting-note-action-meta # Conflicts: # app/changelog/unreleased/20261005-meeting-note-tasks.json # app/lib/backend/schema/structured.dart # app/lib/pages/conversation_detail/widgets/conversation_action_items_section.dart # app/lib/pages/conversation_detail/widgets/summary_tab.dart # app/test/widgets/conversation_action_items_section_test.dart # desktop/macos/Desktop/Sources/MainWindow/Components/ConversationActionItemRow.swift # desktop/macos/Desktop/Sources/Services/APIClient/APIClient+ConversationModels.swift # desktop/macos/Desktop/Tests/ActionItemRowMetadataTests.swift # desktop/macos/changelog/unreleased/20261005-meeting-note-action-item-owner-due.json # web/frontend/src/__tests__/shared-note.test.mjs # web/frontend/src/app/memories/[id]/share-note.css # web/frontend/src/components/memories/summary/action-items.tsx # web/frontend/src/lib/shared-note.mjs # web/frontend/tests/share-http.test.mjs
Address review feedback on the action-item task flows: - TasksStore.createTask now inserts completed creates into completedTasks and passes 'completed' to the backend create, so a checked-off summary item no longer resurfaces as an open task after refresh. - TasksStore.toggleTask reports whether the mutation took effect; ConversationActionItemsSection only patches the conversation summary after a confirmed task mutation (or a completed create), so the two surfaces can no longer disagree. - Action-item session identity binds segments + description + due date on both macOS and mobile: segment IDs are evidence references, not unique identities, and one segment can carry several commitments.
…oggles Reconcile the action-item flows with main's canonical candidate promotion (#19815): Add-to-Tasks now goes through ConversationSummaryTaskPromoter, whose accept path persists target_task_id server-side, replacing the offline TasksStore.createTask add path whose task link lived only in page state. The completion toggle stays, and a cached task is re-read from SQLite before toggling so a local_<rowid> id can never reach toggleTask after its create-sync finished (its local-only branch would skip the backend and desync the surfaces). Also keep the action-item metadata (owner, due, certainty, context) when linking a conversation to its promoted task, and restrict owner suppression to email-shaped names so a handle like @alex stays visible, matching the Flutter and web adapters.
The promoted task id and its idempotency key lived only in the page's in-memory session, so navigating away or restarting left the summary item unlinked and a later Add or check-off minted a duplicate task. - ConversationActionItemTaskSession now takes the conversation id and derives the create idempotency key from it plus the item's content identity, so a retry from any session lands on the same task (the backend returns the task an equal key already created). - The identity -> task id map is persisted per conversation (SharedPreferences, bounded to the 50 most recent conversations) and restored before the first mutation, so a reopened note addresses the existing task instead of creating another. - New tests cover cross-session restore and deterministic keys.
segment.id is non-nullable, so 'segment.id != null' is always true and the unnecessary_null_comparison lint (baseline 0) failed the Mobile App Checks analyzer ratchet at 0ebf66b.
…ionItem The origin/main merge moved recurrenceRule ahead of completed in APIClient.createActionItem's parameter list; this call site kept the pre-merge order, so the desktop Swift compile failed with 'argument recurrenceRule must precede argument completed'.
ConversationSummaryTaskPromoter.linkedConversation, merged from origin/main (#19815), is a @mainactor static method; calling it from a nonisolated synchronous test failed the desktop Swift compile. Mark the test class @mainactor like ConversationSummaryTaskPromoterTests.
This PR made TasksStore.toggleTask return whether the completion mutation took effect; the three Task-wrapped call sites in TasksStoreOwnerBoundaryTests still discarded the result, which the Swift compiler rejects as an unused Bool expression. Assert the outcome at each site: false when the owner lease was revoked mid-flight, true when the toggle completed under the captured lease.
…s, canonical promotion Trusted-bot review round on the action-item metadata work: - Mobile: task-session identity now includes the row index, so identical extracted twins keep separate pending state, idempotency keys, task links and widget keys; a conversation PATCH failure compensates the task it just created (delete) or toggled (restore); the row is re-resolved against the provider's current items before patching so a reprocessed note cannot redirect the write onto another row. - macOS: completion-created tasks go through ConversationSummaryTaskPromoter (durable target_task_id link, backend-addressable id — no local-only ids), the conversation PATCH failure rolls the task back, and completion overrides key by row identity instead of the description. - Apple Reminders: a completed create propagates isCompleted/completionDate to the new EKReminder instead of appearing open in Reminders. - Web: the Markdown export marks tentative due dates, matching the page. - Backend: a linked row (target_task_id) mirrors exactly its task instead of every standalone task sharing the description; unlinked rows keep the legacy description mirror. - Tests: hermetic mirror regression suite; twins/rollback/reprocess mobile tests; tentative-export test; manifest registers the two new writer files; the owner-boundary assertion now matches toggleTask's stale-lease bail.
The section's rows now take part in the tab's search: the page counts matches in each row's description, verbatim owner name and context (the localized "You" label, email-shaped names and deleted rows are not searchable), passes the section its offset into the tab's results, and the rows highlight their matches and scroll to the tab's current result exactly like the note's own paragraphs.
set_action_item_status now reads the row's target_task_id to scope the standalone-task mirror; the fake predating that field made the route's mirror raise inside its except and skip the mirror entirely, so the two reminder tests failed with mark_action_item_completed called 0 times.
…ings Require exact textual or attendee corroboration for names and emails; only screen/background or attendee corroborated names can become provisional people. Preserve owner speech, existing non-notes matches, and manual receipts, and remove rejected identifiers from the saved participant list. Correct the identity-write and late-refresh types without adding teaching or another admission scanner. Validation: backend/test.sh selected identity, rich-context, screen-evidence, admission, people and speaker suites: 308 passed. Hook-configured targeted Pyright: 0 errors. Line-Count-Exception: backend/utils/conversations/process_conversation.py | 3571 -> 3577 | Expose the existing notes generator as a public accessor for late refresh; this round adds only three lines at that seam. Line-Count-Exception: backend/utils/llm/conversation_processing.py | 1961 -> 1969 | Retain the notes evidence gate while removing the name-validation waiver; this round reduces the file from 1971 lines.
…rought the identity-based overrides
This was referenced Nov 4, 2026
Perf: smooth the cold-start warm-up window (init ordering, quiet wiring, demand-mounted tabs)
#21364
Closed
…ract participant fields, people-generation re-audit for the notes-identity writer
…itation contract, people-generation re-audit for the notes-identity writer, lifecycle payload-site declarations (outbox note writer, evidence refresh, diarization scorecards), linear share-email shape check, analyzer dead code from the saveString union
…s section; un-orphan its widget
# Conflicts: # backend/database/conversations.py # backend/tests/support/lifecycle_writer_inventory.py
…trigger, the detail page's resume re-read lifecycle hook, DeviceProvider setProviders notify-on-change, and main's adapter-identity updateExternalActions (drop the projection layer that suppressed real installs and read strict mocks); remove the widget-snapshot fetch path whose extra page fetches broke the task ownership counts
…ps main's notify-on-change for real installs and capture swaps, bindProviders wires action targets by reference without device-state notifications (quick actions setup)
…e took the count from one side and the names from the other)
Git-on-my-level
added a commit
that referenced
this pull request
Nov 17, 2026
…instead of kill Panel review found both arms ship in code since 8999d37 (#24485); control was not serving. Correct notes, PostHog ids, extension reason and prereg outcomes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Git-on-my-level
added a commit
that referenced
this pull request
Nov 17, 2026
…ped trial and Pocket arms) (#25583) ## What changed and why David ruled on 2026-11-17 to retire the stale `paywall-variant` and `onboarding-variant` experiments. The panel review of the first version found that the registry note ("control 100% until the build is in the stores") was stale. Both experiments had already been run to 100% for one arm in PostHog, and commit 8999d37 (squashed into #24485, merged 2026-11-04) then fixed those arms in code: - `PaywallExperiment.current` returns `trial` outside debug builds. - `OnboardingVariantGate.arm` returns `pocket`. So retiring the experiments means graduating the arms already shipped, not reverting to control. This PR records both rows as `decision: graduate`, `terminal: on`. It also corrects the notes, sets the extension reason to the code-retirement deadline, and adds a dated outcome line to both pre-registration docs. No app behaviour, flag value or PostHog setting changes. Users keep the 7-day trial paywall and Pocket onboarding, which they have had since 11-04. Follow-up code PR, due by 2026-11-30, when the registry checker starts failing graduated flags whose code is still read: - delete the unused arms (paywall control/outline/web; onboarding control/reid/yinka) and the debug overrides; - remove the exposure tracking (`paywall_router.dart` `recordExposure`, "Onboarding Variant Shown"); - remove the reid Vercel workflow (`.github/workflows/reid_onboarding_vercel.yml`) and its ci-budget entry; - delete PostHog flags 957521 (paywall-variant) and 961069 (onboarding-variant), and dashboards 2207880/2212642. 957522 is the older onboarding-webview flag. ## Product invariants affected none ## How it was verified - `python3 scripts/check_feature_flag_registry.py`: OK. - `python3 scripts/render_feature_flag_registry.py --as-of 2026-11-11` regenerated `backend/docs/feature-flag-registry.md`. - `pytest scripts/test_check_feature_flag_registry.py scripts/test_posthog_flag_sync.py`: 120 passed. - I read the shipped arm from code on origin/main: `app/lib/services/experiments/paywall_experiment.dart` (`current`) and `app/lib/services/experiments/onboarding_variant_gate.dart:109`. `app/changelog/unreleased/fixed-paywall-onboarding-arms.json` records the 100% PostHog state. - Panel review `review-20261117t080746-f373`: FIX-FIRST, 7 findings, all accepted. F1, F3, F4, F5 and F6 are fixed here. F2 and F7 are in the follow-up list above. ## Tests No test change: registry and doc metadata only. The existing checker tests cover the graduate/on vocabulary. The app tests already pin the shipped arms (`app/test/unit/paywall_experiment_test.dart`). ## UI evidence UI-Evidence: none -- registry metadata only; no UI change. ## Failure class (fixes) Failure-Class: none 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This branch was successfully deployed
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.
Requested by: @dazheng
Implemented by: Codex
Explicit voice reminders now carry date precision and source evidence into the existing staged Candidate workflow. A date without an hour remains all day with
due_at=null; uncertain speakers remain review Candidates. Acceptance stays a separate user gesture.Implements the proposal's Smallest first slice behind a kill switch, including the relevant One extractor, explicit intent and evidence, Remind me dates and notification behavior, and creation-only Durable origin and mutation contract sections. #24415 already owns the general reminder/errand/current-session prompt safeguards; this PR extends the contract and existing notes call without copying those edits or adding a model call.
ACTION_ITEM_REMINDER_REDESIGN_ENABLED=false. Stops new reminder admission and undelivered exports tagged with this policy, including claimed work before the provider attempt. Existing accepted tasks, manual edits, due precision and creation receipts survive.reminder_creation_onlycoverage.Deferred: broad call commitments and labeled waiting-on inference (including the legacy/V2 difference), the non-staged automatic writer, speaker identity, common-event cross-device/alias lineage, completion/all-writer history migration and summary refresh. Manual/import/integration/MCP writers do not gain mutation receipts here. Date resolution has a deliberately bounded grammar; ambiguous/unsupported wording stays reviewable.
Verification (synthetic fixtures only):
BACKEND_UNIT_TEST_FILE_LIST=/Volumes/Ephemeral/scratch/action-reminder-tests.txt BACKEND_PYTEST_WORKERS=3 bash backend/test.sh(15 focused files, 503 tests);bun run check(typecheck, 6 runtime smoke tests, 916 UI/logic tests);bash scripts/run-plugin-sdk-tests.sh(15 tests);backend/scripts/openapi_runner.sh scripts/export_openapi.py --surface app-client --writeplus Dart/Swift/TypeScript codegen;check_app_client_openapi_compatibility.py --base-ref origin/main. Heavy commands run throughomi-heavy. Follow-up validation: 80 lifecycle tests, 71 extraction/input/codec tests, 168 router/title/extractor tests, and 9 Flutter wire tests plus analysis of all three regenerated Dart files passed. The final storage-boundary narrowing passes focused Pyright (zero errors/warnings) and 8 date-coercion tests. A loaded-host UI retry passed all 48 affected tests withVITEST_MAX_WORKERS=2, unchanged assertions/timeouts; the full publication gate uses the same worker cap. The unresolved/cleared reminder date gesture regression suite passes (16 tests across four files, including six new hook cases), and web typechecking passes. Rebase integration adds 38 passing notes-context/input-shape tests. Changed typed boundaries pass Pyright; the full enforced backend Pyright lane passed with zero errors. The complete pre-push gate passed on6baecd828df3555a6c0cdaf56ef19cd167880183, including 72 repository preflight checks, selected backend unit tests, schema/client freshness, and the native Swift debug build.python -m pytest backend/testing/e2e/test_explicit_reminder_candidate.pypasses against the real FastAPI routers with the existing network-blocking offline harness (1 test). It stages without a task, separately accepts, reads date precision/creation receipt and replays acceptance after rollback. Providers and persistence are synthetic.Deployment readiness: pending CI.
Release handoff: task integration lane owner; lead owns deployment approval. Qualification and the 24-hour shadow/dogfood/1%/10%/50%/100% sequence, label minimums, precision/recall/date/duplicate gates and rollback conditions are in
backend/docs/action-item-reminders.md. No rollout is authorized by this PR.Preserves INV-TASK-2, INV-MEM-4 and INV-MEM-5: extraction proposes, explicit acceptance materializes, and the existing task workflow/generation/outbox authority remains the only owner. No memory enrollment or new UID allowlist selects a task system.
Product invariants affected
Line-count exceptions (survivor fold of #24434, #24370, #21380, #20725, #20766, #21364, #24386 into the reminder lane; each file's growth is the union of the folded features plus this lane's reminder work, not a rewrite):
Line-Count-Exception: app/lib/backend/preferences.dart | 1641 -> 1655 | folded apps-list revision tracking joined the existing quarantine/save paths
Line-Count-Exception: app/lib/providers/action_items_provider.dart | 1477 -> 1594 | folded reminder-due + widget-snapshot wiring joined the staged-task reconciliation in one provider
Line-Count-Exception: app/lib/services/capture/capture_controller.dart | 4591 -> 4855 | folded not-a-person exclusion state, reconcile refresh and projection-quiet binding joined the existing capture controller
Line-Count-Exception: app/lib/providers/conversation_provider.dart | 2271 -> 2287 | folded detail/projection wiring additions
Line-Count-Exception: app/lib/providers/device_provider.dart | 1670 -> 1695 | folded firmware-battery gate plus cold-start wiring joined the existing device pipeline
Line-Count-Exception: backend/database/conversations.py | 4607 -> 4633 | folded notes-identity staging and evidence-refresh user-title guard joined the existing write paths
Line-Count-Exception: backend/routers/conversations.py | 2486 -> 2519 | folded target-task precise mirroring plus reminder sync joined the existing routes
Line-Count-Exception: backend/routers/listen/receiver.py | 2966 -> 2995 | folded rejected-speaker retraction wiring joined the existing receiver
Line-Count-Exception: backend/routers/listen/speakers.py | 1527 -> 1539 | folded exclusion endpoints joined the existing speaker routes
Line-Count-Exception: backend/utils/conversations/process_conversation.py | 3377 -> 3383 | folded notes-identity payload attach joined the existing processing pipeline
Line-Count-Exception: desktop/macos/Desktop/Sources/Stores/TasksStore.swift | 3679 -> 3696 | folded action-item owner/due metadata joined the existing task store
UI-Evidence: none -- all-day rendering and date mutations are covered by synthetic local UI tests; no live screenshot.
Failure-Class: none
CI repair verification (2026-11-03,
0dd0cb75442664d24a28358559f2184b580c63c0):BACKEND_UNIT_TEST_FILE_LIST=/Volumes/Ephemeral/scratch/pr24485-focused-tests.txt BACKEND_PYTEST_WORKERS=4 bash backend/test.shpassed 716 tests across 14 files, including the failing contract/import suites and the reminder/candidate/capture suites. The 42-test explicit-reminder policy file passed in 4.41 seconds. Fixtures remain synthetic; no tests, markers or budgets were relaxed.omi-heavy.guardpasses on this head. The separate human UI author approval gate remains untouched.Fixture import follow-up (
044d0703c13abef1b75321861170c6da0620bd88):utils.task_intelligencepackages with empty search paths, in the client-processing acceptance/finalization and usage-context fixtures. They now allow the real pure reminder policy to load while the persistence adapters stay stubbed. Existing test assertions, CI selection and timing budgets are unchanged.BACKEND_UNIT_TEST_FILE_LIST=/Volumes/Ephemeral/scratch/pr24485-fixture-tests.txt BACKEND_PYTEST_WORKERS=4 bash backend/test.shpassed 345 tests across those three suites plus free-tier processing and short-clip rollout. The three acceptance failures were reproduced before the fix. The complete normal pre-push gate passed again on this head, including selected backend tests, 916 web tests and the native Swift debug build.Registry insertion follow-up (
be4951c5485c53f87db188f6692d0eac3e518f0d):config/feature-flags.yaml, making the PR unmergeable and preventing its backend PR workflows from starting. Relocated this PR's existing reminder entry beside the staged-task control. Parsed registry entries and values are unchanged; generated documentation remains unchanged because it sorts by key.backend/.venv/bin/python scripts/check_feature_flag_registry.pyandbackend/.venv/bin/python scripts/render_feature_flag_registry.py --checkpass. A read-onlygit merge-treepreview against main5f640aa022f5667e6c614fdae9f4f261db289f27is conflict-free and preserves all main registry data plus the unchanged reminder entry. No branch merge, rebase or force-push was used.Folded PRs: #24434, #24370, #24386, #21380, #21364, #20766, #20725 — folded into this survivor branch; each folded PR is closed with a pointer to it.