Skip to content

feat(context): extract knowledge pills from Context Center pages - #29119

Merged
pmbrull merged 11 commits into
mainfrom
pmbrull/article-knowledge-pills
Jun 18, 2026
Merged

pmbrull merged 11 commits into
mainfrom
pmbrull/article-knowledge-pills

Conversation

@pmbrull

@pmbrull pmbrull commented Jun 17, 2026 •

Copy link
Copy Markdown
Member

Fixes #29132

Summary

Extends the file knowledge-pill pipeline (docs/company-context-knowledge-pills.md) to Context Center pages (Knowledge Center articles). When a page body settles, an LLM extracts knowledge pills (ContextMemory rows) linked back to the page, embedded and searchable like file-extracted pills — no new entity.

The work is structured as a generic, shared ContextProcessingEngine with File and Page implementations. The page-specific hard part is lifecycle: pages autosave every few seconds, so naive reuse would storm the LLM and churn pills.

How page extraction is gated

  • In-memory, bounded, trailing throttle inside PageContextProcessingEngine — each body-changed save reschedules a run for the quiet period (default 5 min) after the last edit, so an entire editing session yields one extraction. No sweep job, no separate process. Configurable via page.context.quiet.period.millis / page.context.max.pending.pages.
  • Content hash-gate — a new ExtractionStats.sourceHash lets a run skip the LLM entirely when the body is unchanged (pages hash the markdown; files use the content checksum).
  • Reconciliation (ContextMemoryReconciler) — instead of wholesale delete-and-recreate, derived pills are matched against the page's existing pills by normalized question: keep (preserve identity + usageCount/lastUsedAt, skip re-embed) / update / retire (archive) / add.

The hash-gate and reconciliation live in the shared engine, so the file pipeline inherits both fixes (it no longer hard-deletes and recreates pills on re-upload, and skips re-extraction of identical content).

Linkage, manual edits, lifecycle

  • Pills link to their source via a generic sourceEntity reference resolved from the existing MENTIONED_IN edge. sourceFile is retained as a deprecated derived alias, so shipped MCP/ES/contributor consumers keep working and no data migration is needed. sourceType gains PageExtraction.
  • Manual-edit guard: a user PATCH flips a pill's sourceType to Manual — keyed on the operation (PATCH), not updatedBy, since the extraction engine also writes as admin. Reconciliation never updates or retires a human-edited pill.
  • KnowledgePageRepository schedules extraction on article create / body-change, cascades pill deletion on page delete (mirrors ContextFileRepository.postDelete), and exposes memoryCount.

Schema changes

  • contextMemory.json / createContextMemory.json: sourceType += PageExtraction, new generic sourceEntity.
  • ExtractionStats (shared type): new sourceHash.
  • page.json: extractionStats + memoryCount.

Testing

  • 30 unit tests across ContextMemoryExtractorTest, ContextMemoryReconcilerTest, PageContextProcessingEngineTest (hash-gate skip, throttle coalesce/evict), ContextFileProcessingServiceTest (status orchestration around the injected engine). mvn spotless:check clean.
  • The existing CompanyContextPipelineIT already exercises the shared engine end-to-end via the file source.

Follow-ups (intentionally out of scope)

  • A page end-to-end IT is deferred — the throttle timing + in-process engine make a REST IT fragile. A repository-level IT (Manual-flip, cascade) is a good follow-up.
  • ContextMemoryBodyTextContributor still reads sourceFile, so page pills embed on their Q/A only (avoids re-embedding all file pills); switchable to sourceEntity if page source context in embeddings is wanted.
  • Generated TS mirrors are produced by the typescript-type-generation workflow.

🤖 Generated with Claude Code

Greptile Summary

This PR extends the knowledge-pill pipeline to Knowledge Center pages (articles) by introducing a generic ContextProcessingEngine hierarchy with File and Page implementations, a ContextMemoryReconciler that preserves pill identity across re-extractions, and a trailing-throttle debouncer that coalesces page autosaves into a single LLM call.

  • Schema — contextMemory gains a generic sourceEntity reference (sourceFile kept as a deprecated alias) and a new PageExtraction source type; page gains extractionStats and memoryCount; ExtractionStats gains sourceHash for the hash gate.
  • Backend — KnowledgePageRepository schedules extraction on article create/body-change and cascades pill soft/hard-delete and restore via the new *AdditionalChildren hooks (mirrors ContextFileRepository); ContextMemoryRepository adds sourceEntity relationship handling and a flipToManualOnUserEdit guard.
  • UI — a new ExtractedMemoriesCard component surfaces extracted pills in the Knowledge Page right panel, wired to the new sourceEntityId list filter.

Confidence Score: 4/5

Safe to merge; the two open items from earlier rounds are already tracked and neither breaks correctness on the happy path.

The core extraction, reconciliation, hash-gate, and lifecycle cascade logic are all sound and well-tested. Items flagged in earlier review rounds remain open (broad exception catch in FileContextProcessingEngine, previously noted edge-deletion concern) but neither causes incorrect behavior in normal operation. New findings this round are narrow: independent getPage reads in loadSource/loadStats produce a spurious skip on a rare concurrent-autosave race (self-healing via the next schedule), and the ListFilter subquery lacks a toType guard (semantically impure but practically safe).

FileContextProcessingEngine.java and PageContextProcessingEngine.java.

Important Files Changed

Filename Overview
openmetadata-service/src/main/java/org/openmetadata/service/drive/ContextProcessingEngine.java New shared abstract engine: loads source, applies hash gate, runs LLM extraction, reconciles pills, stamps stats. Correctly stores only reconciled.created() in pillsCreated. Clean design.
openmetadata-service/src/main/java/org/openmetadata/service/drive/PageContextProcessingEngine.java New page engine with trailing-throttle debouncer. loadSource and loadStats each call getPage independently, resulting in 2-3 DB reads per run with a narrow window for stale-state skips.
openmetadata-service/src/main/java/org/openmetadata/service/drive/FileContextProcessingEngine.java New file engine. getFile catches all Exceptions (not just EntityNotFoundException), silently returning null and treating DB connectivity failures as file not found.
openmetadata-service/src/main/java/org/openmetadata/service/drive/ContextMemoryReconciler.java New reconciler: matches existing vs derived pills by normalized question, keeps Manual pills untouched, hard-deletes retired pills. Logic and data safety checks are correct.
openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/ContextMemoryRepository.java Adds sourceEntity field, flipToManualOnUserEdit guard, restore/delete helpers. updateFromRelationships correctly uses per-ref types for edge cleanup.
openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/KnowledgePageRepository.java Adds postCreate/postUpdate/postDelete hooks for pill lifecycle and AdditionalChildren cascade. Logic is correct.
openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/ListFilter.java Adds sourceEntityId filter via MENTIONED_IN subquery without a toType constraint.
openmetadata-service/src/main/java/org/openmetadata/service/drive/ContextFileProcessingService.java Delegates file extraction to FileContextProcessingEngine; markProcessed reads post-stampStats DB state so extractionStats are preserved.

Comments Outside Diff (1)

  1. openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/ContextMemoryRepository.java, line 1162-1178 (link)

    P1 fromType is taken from the updated source, not the original one

    updateFromRelationship uses fromType to locate and delete the old MENTIONED_IN relationship in the DB. The stored relationship was written with originalSource.getType() as the from-type. When a PATCH changes sourceEntity from a page-typed reference to a contextFile-typed reference (or vice versa), this code derives fromType from updatedSource.getType(), so the lookup for the old edge uses the new type. The old relationship is never deleted and the pill ends up with two MENTIONED_IN edges — and getSourceEntity (which returns refs.getFirst()) could return the stale source on subsequent reads.

    The fix is to use originalSource.getType() as the from-type for the delete leg.

Reviews (10): Last reviewed commit: "test(context): fix DocumentPreviewPanel ..." | Re-trigger Greptile

Mirror the file knowledge-pill pipeline for Context Center pages (Knowledge
Center articles) through a new shared ContextProcessingEngine with File and
Page implementations.

Page bodies autosave constantly, so page extraction is gated three ways:
- an in-memory, bounded, trailing throttle (one run after the body settles)
  so editing churn never triggers the LLM mid-edit;
- a content hash-gate (new ExtractionStats.sourceHash) so unchanged content
  is never reprocessed;
- reconciliation against the page's existing pills (match by question:
  keep/update/retire/add) instead of wholesale delete-and-recreate, so pill
  identity and usage telemetry survive edits.

Both the hash-gate and reconciliation live in the shared engine, so the file
pipeline inherits them too (no more hard-delete-and-recreate on re-upload,
and identical content is skipped).

Pills link back to their source via a generic sourceEntity reference resolved
from the MENTIONED_IN edge; sourceFile is kept as a deprecated derived alias,
so no data migration is needed. A user PATCH flips a pill's sourceType to
Manual (keyed on the operation, not updatedBy, since the engine writes as
admin), and reconciliation never touches human-edited pills.

KnowledgePageRepository schedules extraction on article create/body-change,
cascades pill deletion on page delete, and exposes memoryCount.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings June 17, 2026 11:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Jun 17, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR checks passed

The linked issue has a description and all required Shipping project fields set. Thanks!

@github-actions github-actions Bot added Ingestion safe to test Add this label to run secure Github workflows on PRs labels Jun 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

✅ TypeScript Types Auto-Updated

The generated TypeScript types have been automatically updated based on JSON schema changes in this PR.

@github-actions
github-actions Bot requested a review from a team as a code owner June 17, 2026 11:16
…actor

Page knowledge-pill extraction never persisted its ExtractionStats: KnowledgePageUpdater did not recordChange the field, so entityChanged stayed false and EntityRepository.storeUpdate dropped the write. The sourceHash hash-gate therefore never engaged and every throttled run re-invoked the LLM. Record extractionStats (with updateVersion=false, matching lifeCycle) so the stamp persists without churning the article version history, and preserve the stored value when an update omits it so a PUT body edit cannot wipe it (CreatePage has no extractionStats).

ContextMemoryExtractor is now a pure derivation: drop the dead persist() method and its ContextMemoryRepository dependency (the reconciler owns all writes); its constructor takes only the LLM client. Give ContextMemoryReconciler.reconcileExisting a single exit.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings June 17, 2026 12:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

- KnowledgePageRepository.postDelete now calls super.postDelete so hard deletes still purge RDF and every delete invalidates the list-count cache (regression: the override dropped both).
- ContextProcessingEngine reconciles an emptied source against an empty derived set instead of skipping, so clearing an article body / file text archives its now-stale pills rather than leaving them ACTIVE forever; a never-extracted empty source stays a no-op.
- extractionStats.pillsCreated stores reconciled.created() (new pills this run) instead of the active total, which had inflated it to the whole knowledge base on every re-extraction.
- PageContextProcessingEngine.runScheduled removes the map entry only when it is still the future that fired, so a concurrently rescheduled run stays tracked and cancellable; clarified the best-effort eviction bound.
- ContextMemory Manual-flip on PATCH now requires a change to a reconciler-managed field (title/question/answer/summary/memoryType), so tagging or starring an automated pill no longer freezes re-extraction.

Also removed the now-unused ReconcileResult.activeCount().

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@github-actions

github-actions Bot commented Jun 17, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 62%
62.26% (66573/106914) 44.01% (37237/84596) 45.37% (11182/24646)

@github-actions

github-actions Bot commented Jun 17, 2026 •

Copy link
Copy Markdown
Contributor

🟡 Playwright Results — all passed (13 flaky)

✅ 4298 passed · ❌ 0 failed · 🟡 13 flaky · ⏭️ 88 skipped

Shard Passed Failed Flaky Skipped
✅ Shard 1 302 0 0 4
✅ Shard 2 812 0 0 9
🟡 Shard 3 810 0 3 8
🟡 Shard 4 855 0 2 12
🟡 Shard 5 730 0 3 47
🟡 Shard 6 789 0 5 8
🟡 13 flaky test(s) (passed on retry)
  • Features/IncidentManager.spec.ts › Resolving incident & re-run pipeline (shard 3, 1 retry)
  • Features/Table.spec.ts › Table pagination with sorting should works (shard 3, 1 retry)
  • Flow/CustomizeWidgets.spec.ts › Following Assets Widget (shard 3, 1 retry)
  • Flow/NotificationAlerts.spec.ts › Alert operations for a user with and without permissions (shard 4, 1 retry)
  • Pages/Domains.spec.ts › Create DataProducts and add remove assets (shard 4, 1 retry)
  • Pages/Entity.spec.ts › Column detail panel data type display and nested column navigation (shard 5, 1 retry)
  • Pages/EntityDataSteward.spec.ts › User as Owner Add, Update and Remove (shard 5, 1 retry)
  • Pages/ExplorePageRightPanel_KnowledgeCenter.spec.ts › Should remove user owner for knowledgeCenter (shard 5, 1 retry)
  • Pages/Lineage/LineageFilters.spec.ts › Verify lineage service type filter selection (shard 6, 1 retry)
  • Pages/Lineage/LineageFilters.spec.ts › Verify lineage schema filter selection (shard 6, 1 retry)
  • Pages/Lineage/LineageInteraction.spec.ts › Verify edge delete button in drawer (shard 6, 1 retry)
  • Pages/Lineage/LineageRightPanel.spec.ts › Verify custom properties tab IS visible for supported type: searchIndex (shard 6, 1 retry)
  • Pages/Lineage/PlatformLineage.spec.ts › Verify domain platform view (shard 6, 1 retry)

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

A knowledge pill the source no longer yields is now hard-deleted by the reconciler rather than flipped to ARCHIVED. Archived pills were invisible in the UI yet still lived in the search/vector index (nothing filters status) and kept their MENTIONED_IN edge, so they polluted retrieval, inflated memoryCount, and accumulated monotonically (reloaded one-by-one every run). These pills are regenerable from the source, so deletion is the correct lifecycle and removes them from the index and counts in one step. Survivors still keep their id/telemetry; human-edited (Manual) pills are still skipped. ReconcileResult.archived renamed to deleted.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings June 18, 2026 06:35
listExtractedMemories now batch-loads pills in one query (find(ids, NON_DELETED)) instead of a get() per ref, removing the N+1 the reconciler hit each run. The set is now just the live pill count since retired pills are hard-deleted (no archived accumulation).

updateSourceEntityRelationship switched from the singular updateFromRelationship (one fromType for both delete and add) to the plural updateFromRelationships with single-element lists, which removes and adds each edge under its own entity type. The singular form orphaned the stale edge when a memory's sourceEntity changed type (ContextFile <-> Page). Mirrors the primaryEntity reconciliation.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
ExtractedMemoriesCard (lifted out of DocumentPreviewPanel) now fetches via getListContextMemories({sourceEntityId, fields:'owners,sourceEntity'}); the panel test still asserted the old sourceFileId/sourceFile shape, failing the ui-coverage-tests job. Update the assertion to the current call.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings June 18, 2026 11:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@sonarqubecloud

Copy link
Copy Markdown

@sonarqubecloud

Copy link
Copy Markdown

@pmbrull
pmbrull merged commit 506c8c9 into main Jun 18, 2026
69 checks passed
@pmbrull
pmbrull deleted the pmbrull/article-knowledge-pills branch June 18, 2026 13:30
@gitar-bot

gitar-bot Bot commented Jun 18, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 6 resolved / 6 findings

Implements a generic ContextProcessingEngine to extract knowledge pills from Knowledge Center articles, addressing all previous lifecycle, reconciliation, and deletion findings. The new pipeline successfully coalesces autosaves and preserves manually edited pills.

✅ 6 resolved
✅ Bug: Page postDelete drops base RDF/cache cleanup (no super call)

📄 openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/KnowledgePageRepository.java:846-854
The newly added KnowledgePageRepository.postDelete(Page, boolean) overrides the base method but never calls super.postDelete(entity, hardDelete). The base EntityRepository.postDelete performs two side effects: RdfUpdater.deleteEntity(...) on hard delete and ListCountCache.invalidate(entityType) on every delete. Previously Page had no override, so the base behavior ran. After this change, deleting a page no longer removes the entity from the RDF store on hard delete and no longer invalidates the list-count cache, which is a regression introduced by this PR (pages will leak RDF triples and serve stale listing counts).

Note: ContextFileRepository.postDelete has the same missing-super pattern, but that is pre-existing and out of scope; this finding is about the newly introduced page override.

✅ Bug: Throttle runScheduled unconditionally removes possibly-rescheduled future

📄 openmetadata-service/src/main/java/org/openmetadata/service/drive/PageContextProcessingEngine.java:96-110
runScheduled calls pending.remove(pageId) unconditionally. There is a race: a firing future for pageId can call remove(pageId) after a concurrent schedule(pageId) has already installed a new future for the same page, evicting the new future from the map. The new future still executes (so extraction is not lost), but it is no longer tracked, so a subsequent cancel(pageId) (e.g. on page delete) cannot cancel it. The eventual run is harmless because loadSource uses Include.NON_DELETED (a deleted page yields a skip) and the hash gate guards correctness, so impact is low. To make tracking robust, remove only when the stored future is the one that fired, e.g. pending.remove(pageId, thisFuture).

✅ Edge Case: Emptying a page/file body never retires its existing pills

📄 openmetadata-service/src/main/java/org/openmetadata/service/drive/ContextProcessingEngine.java:48-58
ContextProcessingEngine.runExtraction short-circuits to ExtractionOutcome.skip() whenever the source text is null/blank (the source.text() != null && !source.text().isBlank() guard), so reconciler.reconcile(...) is never reached. As a result, if a user clears an article's markdown body (or a file's extracted text becomes empty), the previously derived knowledge pills are left ACTIVE and searchable forever — they are never archived. The old file pipeline did the opposite: it called extractor.derive (empty) then deleteExtractedMemories, effectively removing stale pills. This is a behavioral regression now shared by both file and page sources. Consider, when the source becomes empty, still running reconciliation with an empty derived list so all automated pills are archived (or explicitly archiving them), rather than skipping.

✅ Quality: memoryCount counts archived pills, inflating over time

📄 openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/KnowledgePageRepository.java:136-144 📄 openmetadata-service/src/main/java/org/openmetadata/service/drive/ContextMemoryReconciler.java:113-119
setFields computes memoryCount as the total number of MENTIONED_IN -> CONTEXT_MEMORY relationships for the page. The reconciler retires pills by setting status to ARCHIVED (via archive) rather than deleting them, so archived pills keep their MENTIONED_IN edge. As a result memoryCount includes retired pills and will only grow across re-extractions, diverging from the live pill total (ReconcileResult.activeCount() / ExtractionStats.pillsCreated). The count surfaced to users/consumers is therefore misleading. Consider counting only ACTIVE pills, or filtering archived ones, to keep memoryCount consistent with the active set.

✅ Quality: Throttle uses a bare ConcurrentHashMap with arbitrary eviction

📄 openmetadata-service/src/main/java/org/openmetadata/service/drive/PageContextProcessingEngine.java:38 📄 openmetadata-service/src/main/java/org/openmetadata/service/drive/PageContextProcessingEngine.java:116-127
The per-page throttle is a bare ConcurrentHashMap<UUID, ScheduledFuture<?>> with manual size-based eviction. Per the project caching guideline ("Bounded Only: use Caffeine/Guava ... No bare Maps"), this should be a bounded cache. Beyond the guideline, evictIfFull drops pending.keySet().stream().findFirst(), and ConcurrentHashMap iteration order is hash-based, not insertion order — so the evicted entry is effectively arbitrary and may be a page whose quiet period is about to elapse, silently discarding an extraction that was nearly due rather than the least-recently-touched one. A Caffeine cache with maximumSize + a removal listener that cancels the future would give true LRU eviction and remove the hand-rolled bound, while also handling future cancellation on eviction in one place.

...and 1 more resolved from earlier reviews

Options

Display: compact → Showing less information.

Comment with these commands to change:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

pmbrull added a commit that referenced this pull request Jul 15, 2026
…s/Memory Agent (#30041)

* revert(ai): remove AISettings + Memory/Ontology Agent (#29201)

Removes the AISettings config plane and the Memory/Ontology Agent that
derived glossary terms and metrics from ContextMemory. Keeps the
ContextMemory entity (schemas frozen), CreateContextMemoryTool, and the
Persona AI Context feature that reads ContextMemory. Restores the base
McpApplication files #29201 had refactored away.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

* revert(context): remove page knowledge-pill extraction (#29119)

Reverts the Context Center *page* extraction pipeline (generic
ContextProcessingEngine + File/Page engines, ContextMemoryReconciler,
sourceEntity generalization, ExtractedMemoriesCard UI). Keeps the frozen
ContextMemory/ContextFile/Page schemas, file-side sourceFile handling
(removed later with #28973), and all follow-on work (pinning, pagination,
attachment widget, ui-core-components migration).

This reverts commit 506c8c9.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

* chore(ai): keep metric.json/createMetric.json schema frozen

Extends the D1 schema-freeze decision to the Metric schema: the AI revert
(#29201) removed the Memory/Ontology Agent *code* that populated Metric's
'derivedFrom'/'provider', but the JSON schema fields are left intact (inert)
so re-introducing the feature later needs no schema change. Verified the
service compiles with the fields present and unused.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

* revert(context-center): remove file knowledge-pill extraction (#28973)

Removes the file extraction pipeline (ContextFileProcessingService,
ContextMemoryExtractor, the LLM completion-client layer, KnowledgePill,
DocumentStatusBadge UI) and restores the pre-#28973 ContextFileExtractionService
stub. Keeps the 3 MCP context tools (Get/Search/CreateContextMemory), the
object-storage upload + /system/validate stack (D3), and the frozen
ContextMemory/ContextFile schemas (D1).

This reverts commit 03530b2.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

* revert(mcp): remove MCP Chat client, conversation tracking, chat UI (#26343, #29169)

Removes the MCP Chat feature: chat client service (mcpclient/*), the chat
LLM-client layer (clients/llm/* except LlmConfigHolder), McpConversation/
McpMessage entities+repos+resource+schemas, McpChatApplication, the chat UI
(McpChatPage, /mcp-chat routes) and its playwright spec (#29169), and the
mcp_conversation/mcp_message tables.

KEPT (now load-bearing for semantic-search embeddings, not chat):
llmConfiguration.json + LlmConfigHolder + OpenMetadataApplicationConfig.
llmConfiguration — the vector-embedding stack (SystemRepository, the
*EmbeddingClient family, OpenSearchBulkSink, #29678 AI Context Platform)
depends on it, so a wholesale revert would break semantic search.

Follow-up UI reconciliation (package.json deps, locale keys, ApplicationsProvider,
generated TS) lands in the codegen/i18n commit.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

* revert(ui): reconcile MCP-chat/AI UI removal + checkstyle

Finalizes the UI side of the reverts: removes the residual MCP-chat route,
plugin, and provider state; reverse-applies #26343's UI wiring (sidebar,
constants, ApplicationsClassBase); restores getContextMemoryById (still used
by the surviving memories page); fixes the DocumentPreviewPanel status-row
JSX left by the badge removal; and runs the organize-imports + eslint +
prettier sequence. Locale files and orphaned i18n keys are intentionally left
in place (harmless, re-introduction-friendly, in-sync).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

* Update generated TypeScript types

* fix(revert): keep full objectStorage config for file upload

The extraction revert (#28973) over-reverted objectStorage down to a NOOP
stub, but file upload (ContextFile) survives and needs the full
s3/azure/env-overridable config (D3). Restore it to main's version. Net conf
diff is now only the llmConfiguration comment, updated to reference its
surviving consumer (semantic-search embeddings) instead of the removed
extraction/MCP-chat.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

* minor fix

* lint fix

* fixed playwright test

---------

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rohit0301 <[email protected]>

This branch was previously deployed

1 inactive deployment
test — 4e9a2f17 Deployed Jun 18, 2026 by pmbrull via playwright-ci-postgresql (3, 6) #51828
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ingestion safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extract memories from Context Center Articles

3 participants