Repository navigation
SCA-3427: Keep historical reprocessing summary-only - #25894
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8cc5cbe379
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if app_id and historical_tier.is_historical(conversation): | ||
| raise HTTPException(status_code=400, detail='Historical conversations can only be reprocessed with Omi notes') |
There was a problem hiding this comment.
Add the required conversation-lifecycle change note
This changes historical conversation reprocessing by rejecting explicit app selections and keeping processing summary-only, but the commit contains no pipeline change note. I checked the commit's complete changed-file list and searched backend/docs/listen_pusher_pipeline/changes/ for this change. backend/AGENTS.md explicitly requires a note in the same PR for conversation-lifecycle changes. Add a dated note describing the changed behavior and verification evidence so the maintained lifecycle documentation records this restriction.
AGENTS.md reference: backend/AGENTS.md:L164-L164
Useful? React with 👍 / 👎.
…pin (#25903) #25894 made historical reprocessing summary-only and removed the template-app results dump in process_conversation. The pin still listed that site, so test_pinned_conversation_dump_set_is_exact fails on main since the merge. Removing a site that no longer exists narrows the serialization set. Co-authored-by: Claude Opus 5.5 <[email protected]>
What changed and why
/reprocessrejects an explicitapp_idwith HTTP 400 before it validates an app or reserves historical-summary quota. The processor also skips app execution and the app-results write for historical rows.structured.title_provenancewhen generated notes replace the historical stand-in. An empty write keeps the marker and leaves automatic summary debt unset.Fixes SCA-3427. Follow-up to #25755.
Product invariants affected
How it was verified
backend/test.sh. The regression exercises the actual FastAPI route with an in-process client, synthetic conversation data, and stubbed service boundaries.make preflightpassed all 41 checks. The pre-push hook also passed Pyright and the 40-file backend selection.Tests
test_historical_summary_open.pycovers HTTP refusal before quota reservation, app lookup, or processing.test_historical_tier_processing.pychecks that even a direct processor call with a resolved app cannot trigger it.test_summary_delivery.pychecks the nested field deletion through the persistence writer's leaf mask and retention on an empty summary.UI evidence
UI-Evidence: none -- backend-only change
Failure class (fixes)
Failure-Class: none
Line-Count-Exception: backend/routers/conversations.py | 3014 -> 3015 | Keep the historical app-selection guard at the request boundary before admission.