Repository navigation
Fixes #34710: Start memories as Unprocessed - #34717
Conversation
New memories must await processing before they ground agent responses. Keep approved edits trusted until explicitly requeued. BREAKING CHANGE: memory creation without entityStatus starts Unprocessed instead of Approved. Trusted producers can still set Approved explicitly. Existing statuses and PUT requests that omit the stage are preserved. Fixes #34710
✅ PR checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
🔄 Playwright impact map auto-refreshedThis PR touched specs or UI source that changed the source→spec routing map. I regenerated What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit: python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit # or a separate commit |
🚦 Removed from the merge queue —
|
Code Review ✅ Approved🔴 High risk · New memories default to Unprocessed, changing API creation and grounding eligibility. Implements default Unprocessed status for newly created memories so assumptions don't immediately become trusted grounding. Approved memories retain their status when edited, and explicit transitions are required for reprocessing. Changes include lifecycle management in OptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
|
🚦 Removed from the merge queue —
|



Describe your changes:
Fixes #34710
Follow-up to #34647. Creating a memory without
entityStatusnow starts it as Unprocessed, so a newly captured assumption does not immediately become trusted grounding.Approved memories retain their approval when their content is amended. Reprocessing requires an explicit transition back to Unprocessed. Context Center shows Approved and Unprocessed memories by default, and the overview and sidebar counts use the same filter.
Type of change:
High-level design:
Unprocessedentity status inContextMemoryRepository; allow pending memories to be approved, rejected, superseded, or archived, and allow reviewed memories to be explicitly requeued.BaseEntityITkeeps generic default-stage and omitted-stage PUT tests exercising requests that omitentityStatus.Rollout: clients that require immediately trusted memories must explicitly send
entityStatus: "Approved", or approve a pending memory after processing. Existing producers that already supply Approved keep their behavior. This PR supplies the OSS lifecycle foundation; candidate-only reconciliation and conflict review tasks belong to the companion application work, rather than introducing another status here.Tests:
Use cases covered
Unit tests
ContextMemoryStatusTransitionTest,ContextMemoryLifecycleTest,EntityRepositoryEntityStatusTest,ContextMemorySchemaTest, andContextMemoryReconcilerTest.ContextCenterMemoriesPage.test.tsx,CreateMemoryModal.test.tsx, anduseContextCenterBadges.test.tsx.ContextMemoryRepositoryclass; its database behavior is exercised by the integration suite below.ContextCenterMemoriesPage.tsxand 100% foruseContextCenterBadges.ts. The page-wide figure includes existing handlers outside this change.Backend integration tests
ContextMemoryIT,ContextMemoryLifecycleIT,ContextMemoryAnchorIT,OntologyChangeSetIT, andMcpContextMemoryVisibilityITusing isolated PostgreSQL and Elasticsearch containers.ContextMemoryLifecycleITincludes the default-status and approval/edit/requeue regression scenarios.Ingestion integration tests
Playwright (UI) tests
playwright/e2e/Features/ContextCenterMemoryLifecycle.spec.tsandContextCenterDashboard.spec.tswith pending-memory and Approved-only citation coverage.ContextCenterDashboard.spec.ts: 9 passed;ContextCenterMemoryLifecycle.spec.ts: 4 passed in Chromium against the changed OSS service and UI (64.7 seconds total, no retries). Both tests that failed in CI now pass.The pillar navigation test also passed independently with no Approved memories present; its own Unprocessed fixture enables the Memories link. Playwright lint and the changed-file UI checkstyle checks passed.
The isolated integration-test server's authentication metadata was set to
basicfor browser testing; its defaultopenmetadataprovider is not rendered by the UI. Production authentication code is unchanged.Manual testing performed
Reviewed the captured browser flow against the isolated local OSS stack as admin. The API and UI steps were executed by the integration and browser tests, rather than by hand:
entityStatus; verify the returned Unprocessed stage and its visibility under the default two-status filter.Also verified: backend reactor install and integration-test compilation, schema/model regeneration, focused UI ESLint, and all commit-time JSON, Java formatting, UI formatting, license, and Tailwind gates.
UI screen recording / screenshots:
unprocessed-memory.webm
Checklist:
Fixes #34710: Start memories as Unprocessed.Fixes #34710above.Backward-Incompatible-Changelabel.