Suggested rail dismiss feedback is silently dropped on macOS and Windows because FeedbackCreate requires intervention_id
Rejecting a task on the Suggested rail never records feedback on either desktop client. Both send POST /v1/task-intelligence/feedback with subject_kind=candidate, subject_id and action=dismiss but no intervention_id, and FeedbackCreate.validate_action (backend/models/task_recommendation.py, "dismiss feedback requires intervention_id") rejects the request with a 422. Both clients swallow the failure (macOS SuggestedTasksStore sends interventionId nil for dismiss and ignores errors; the Windows rail in desktop/windows/src/renderer/src/lib/suggestedTasks.ts sends the identical shape and catches the rejection), so the dismissal only works through the local suppression cache. The server-side effects never happen: no attribution event, and the DISMISS_TTL override in record_feedback (backend/utils/task_intelligence/recommendations.py) is unreachable, so a dismissed suggestion can resurface on another device.
Evidence: validator at backend/models/task_recommendation.py (validate_action, dismiss branch); record_feedback DISMISS_TTL path only runs after validation; found by Git-on-my-level while reviewing #11624 and verified against the model on main.
Two candidate fixes, maintainer's pick: relax the validator for candidate-subject dismiss (the candidate id already identifies the subject, and the suppression TTL in record_feedback does not use the intervention), or have both clients register an intervention first via POST /v1/task-intelligence/interventions and thread the returned intervention_id through the feedback call. Whichever way it goes, both platforms need the same change, which is the cross-platform coupling flagged in the #11624 review.
Checked this against main (d908865b4b) — the premise doesn't hold on either client, so I don't think there's a maintainer's pick to make here.
macOS already threads intervention_id through dismiss. The interventionId: nil at the dismiss / later / accept call sites (SuggestedTasksStore.swift:537, :576, :635) is the pre-flight shape, not what goes on the wire. Every one of them goes through recordOrQueueFeedback (:834), which registers the intervention first and rewrites the request before sending:
let intervention = try await ensureIntervention(for: record, request: pendingInterventionRequest) // :852
preparedRequest = Self.feedbackRequest(request, interventionID: intervention.interventionId) // :862
let feedback = try await client.recordTaskFeedback(preparedRequest, ...) // :863
feedbackRequest(_:interventionID:) (:1032) is what sets interventionId. The offline outbox retry does the same before replaying (retryPendingFeedback, :923-935), and it's covered — SuggestedTasksStoreTests.swift:391 asserts XCTAssertNotNil(api.feedback.last?.interventionId). So FeedbackCreate.validate_action is satisfied, record_feedback runs, and the DISMISS_TTL override is reachable.
The Windows path in the report doesn't exist. desktop/windows/src/renderer/src/lib/suggestedTasks.ts isn't in the tree, and nothing under desktop/windows/src calls the feedback endpoint at all — the only occurrence is the declaration in the generated client (omiApi.generated.ts:13965). There's no Windows Suggested rail sending this, so there's no cross-platform coupling to resolve either.
Worth flagging the risk in the proposed fix: relaxing validate_action for subject_kind=candidate would drop a guard that is currently satisfied, and it would break the attribution chain (attribution_chain_id is derived from the intervention) for the one client that does send this feedback.
If there's a real dismissal that isn't sticking across devices, it's a different defect — happy to look with a client log or the subject_id that resurfaced. Closing-worthy as reported, but leaving that to a maintainer.
You are right, and the issue as I filed it was wrong on both legs. I re-verified against main after your comment: recordOrQueueFeedback does register the intervention via ensureIntervention and rewrites the request before the wire call (SuggestedTasksStore.swift), so macOS satisfies the validator and the DISMISS_TTL path is reachable; the interventionId nil at the call sites is only the pre-flight shape, exactly as you said. My report took the call-site shape at face value, which was the mistake.
The one real instance of the described failure was in code that is not on main: the Windows Suggested rail in open PR #11624 sent dismiss feedback without an intervention_id, which would have 422ed silently once merged. Fixed there in bcd7e7c0f3 by mirroring the macOS order: register the presentation intervention first (same dedupe_key, expiry and idempotency-key shapes), thread the returned intervention_id into the feedback call, cache the in-flight registration per candidate, and cover it with tests including the dismiss-carries-intervention assertion mirroring SuggestedTasksStoreTests.
Agreed the validator should not be relaxed; nothing backend-side needs to change. Closing since the reported cross-platform defect does not exist on main and the only real instance is fixed in the PR that introduced it.