Skip to content

SCA-3427: Keep historical reprocessing summary-only - #25894

Merged
Git-on-my-level merged 1 commit into
mainfrom
agent/m1-studio-codex-sol/e5ed14dd4346
Nov 20, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
agent/m1-studio-codex-sol/e5ed14dd4346

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

What changed and why

  • Historical /reprocess rejects an explicit app_id with 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.
  • The revision-fenced summary write deletes structured.title_provenance when 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

  • INV-MEM-4. Historical notes stay within first-party summary processing.
  • INV-TASK-2. Historical reprocessing continues to bypass task creation.

How it was verified

  • 210 tests passed across eight focused backend suites with backend/test.sh. The regression exercises the actual FastAPI route with an in-process client, synthetic conversation data, and stubbed service boundaries.
  • Confirmed the three regression cases fail against the original implementation.
  • make preflight passed all 41 checks. The pre-push hook also passed Pyright and the 40-file backend selection.

Tests

  • test_historical_summary_open.py covers HTTP refusal before quota reservation, app lookup, or processing.
  • test_historical_tier_processing.py checks that even a direct processor call with a resolved app cannot trigger it.
  • test_summary_delivery.py checks 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.

View guided diff Turn on auto-fix

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T19:06:44.911021Z 8cc5cbe PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +930 to +931
if app_id and historical_tier.is_historical(conversation):
raise HTTPException(status_code=400, detail='Historical conversations can only be reprocessed with Omi notes')

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

@Git-on-my-level
Git-on-my-level merged commit d060ac1 into main Nov 20, 2026
71 of 72 checks passed
@Git-on-my-level
Git-on-my-level deleted the agent/m1-studio-codex-sol/e5ed14dd4346 branch November 20, 2026 20:05
Git-on-my-level added a commit that referenced this pull request Nov 20, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant