Skip to content

Fixes #35191: let Data Consumers create memories and asset readers find them in search - #35011

Merged
pmbrull merged 12 commits into
mainfrom
pmbrull/dataconsumer-create-memories
Oct 11, 2026
Merged

pmbrull merged 12 commits into
mainfrom
pmbrull/dataconsumer-create-memories

Conversation

@pmbrull

@pmbrull pmbrull commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Describe your changes:

Fixes #35191

Related: open-metadata/ai-platform#1580 (the asset-memory feature spans this PR, Collate #7253 and ai-platform #1640).

Data Consumers can contribute memories, and readers of an asset can find its Entity/Public memories when their search explicitly pins that asset. Memory writes enforce ownership, reference visibility and extraction provenance before returning data. Revalidation also gets a separate content clock and atomic usage telemetry so bookkeeping cannot promote old knowledge or lose concurrent usage.

  • Seed a separate Create-contextMemory rule in DataConsumerPolicy. Append it once on MySQL and PostgreSQL upgrades only when the installation still grants Data Consumers EditDescription; an administrator's read-only policy or later removal is respected.
  • Ordinary writers may create only memories they own, cannot change owners, and may reference only entities they can view. Missing writers fail closed. Admins/bots alone may establish FileExtraction/PageExtraction provenance; permitted edits preserve an existing extraction source.
  • PATCH, PUT and pin/unpin check existing-memory visibility. PUT resolves canonical FQNs, including dotted names, before the check, so a custom EditAll grant cannot disclose a private memory through an update response.
  • Explicit query/post-filter anchor pins, including vector primaryEntityId filters, use the REST anchor-read rule before admitting Entity/Public memories. Resolve readable pins once per request and pass that explicit set to the pure vector builders on both engines. PostgreSQL gets an indexed memory-anchor lookup.
  • Add optional, server-owned lastContentUpdatedAt. Content/subject edits advance it; review, lifecycle, pin, sharing and usage writes preserve it. Creation initializes it. Legacy JSON rows use their previous updatedAt on first update; this optional field needs no structural SQL migration or eager backfill. Java, Python and TypeScript models were regenerated from the schema.
  • Atomic DAO usage updates increment usageCount and monotonic lastUsedAt without changing version or timestamps. Guarded and ordinary metadata updates preserve the current row's telemetry. An unchanged stored anchor may remain referenced after deletion so a privileged lifecycle writer can expire the memory; new/changed anchors must still exist. Single and bulk reads retain deleted anchors, keeping Entity-memory visibility fail-closed in both GET and list responses.

Type of change:

Bug fix and backward-compatible memory schema extension.

High-level design:

The repository owns write authorization and content recency. Search authorization resolves readable anchor pins at the request boundary. SQL row updates own telemetry concurrency. Decisions:

  • ADR:2026-10-09-data-consumers-create-context-memories
  • ADR:2026-10-09-search-admits-memories-of-pinned-anchors
  • ADR:2026-10-10-memory-content-recency-and-usage-are-independent-of-review-writes

Collate #7253 adapts hybrid search to the explicit readable-anchor set. Collate #7247 uses the content-clock and atomic-usage APIs. Merge this PR before either; their temporary OpenMetadata submodule branch must return to main afterward. The metadata-link allowlist is merged separately in #35192.

Tests:

Current head d9807087e89a merges main at b7641e80c9a. The only conflict was the end of the PostgreSQL 2.1.0 schemaChanges.sql, where main's RDF columns and this PR's memory-anchor index were both appended; both are kept.

  • CI fix: RdfOntologyContractTest failed on 14ac49cf1d2a because the RDF projection writes the new lastContentUpdatedAt field and the ontology did not declare it. om:lastContentUpdatedAt is now declared as a stored predicate.
  • Impact plan for this head, with the three RDF ontology tests added: 1,062 unit tests passed (908 service, 154 MCP). search-it on both engines and both cache-tests lanes passed locally; the other lanes passed in full integration CI. Details in the block below.
  • Full integration CI on this head passed: MySQL + Elasticsearch and PostgreSQL + OpenSearch. The MySQL parallel lane needed two retries. Each attempt failed a different timing-dependent test outside this change: MetricResourceIT.rejectMetricUpdateRollsBackPreviousApprovedVersion, then DataProductResourceIT (2) and ChartResourceIT.patch_dataProducts_200. Those three classes pass locally on MySQL + Elasticsearch at this head (761 tests, zero failures).
  • The Collate companions built against this head: UI : Fix Tags page and minor ui issue #7247 (unit tests and MySQL integration tests, including MemoryRevalidationAppIT) and UI: Eliminate NonAdmin Action component #7253 (unit tests) passed.

Previous head 14ac49cf1d2a:

  • Memory/API tests on MySQL + Elasticsearch and PostgreSQL + OpenSearch: 301 tests per engine, 274 passed, 27 skipped, zero failures/errors. Includes content-clock preservation, content edits, concurrent usage increments, metadata/usage races, ownership/provenance guards, dotted-name PUT and deleted-anchor bulk-list visibility.
  • The dotted-name test reproduced a 403 visibility bypass before the fix. Content/usage tests reproduced the missing content clock and a lost concurrent usage update before their fixes. The deleted-anchor regression reproduced a forbidden GET whose memory was nevertheless exposed in a bulk list.
  • Spotless, schema generation/import checks, changed generated-UI formatting, decision records and Java ownership checks passed.
  • Full integration CI passed on both engines: PostgreSQL + OpenSearch, MySQL + Elasticsearch.

Backend integration tests

Local Java test run: PASSED

  • Commit: d9807087e89a (base origin/main)
  • Finished: 2026-10-11 02:13 UTC · 48.5 min
Step Scope Classes Tests Failed Skipped Min Result
unit openmetadata-mcp (6 classes), openmetadata-service (54 classes) 60 1062 0 0 1.9 passed
integration mysql-elasticsearch · parallel passed in CI
integration mysql-elasticsearch · isolated passed in CI
integration mysql-elasticsearch · rdf passed in CI
integration mysql-elasticsearch · search-it 26 68 0 0 19.4 passed
integration cache-tests · parallel 8 39 0 1 2.9 passed
integration cache-tests · isolated 2 11 0 0 2.9 passed
integration postgres-opensearch · parallel passed in CI
integration postgres-opensearch · isolated passed in CI
integration postgres-opensearch · rdf passed in CI
integration postgres-opensearch · search-it 27 69 0 0 21.4 passed

Selected but produced no report: AIApplicationResourceIT (mysql-elasticsearch · parallel), AIContextMcpIT (mysql-elasticsearch · parallel), AIContextRestIT (mysql-elasticsearch · parallel), AIFrameworkControlResourceIT (mysql-elasticsearch · parallel), AIGovernancePolicyResourceIT (mysql-elasticsearch · parallel), APICollectionResourceIT (mysql-elasticsearch · parallel), APIEndpointResourceIT (mysql-elasticsearch · parallel), APIServiceResourceIT (mysql-elasticsearch · parallel), AccentInsensitiveSearchIT (mysql-elasticsearch · parallel), ActivePersonaHeaderIT (mysql-elasticsearch · parallel), ActivityResourceIT (mysql-elasticsearch · parallel), AgentExecutionResourceIT (mysql-elasticsearch · parallel), AlertBacklogMigrationIT (mysql-elasticsearch · parallel), AlertDefinitionIT (mysql-elasticsearch · parallel), AlertDeliveryIT (mysql-elasticsearch · parallel), AlertLedgerIT (mysql-elasticsearch · parallel), AlertReconcilerIT (mysql-elasticsearch · parallel), AlertRunningTickIT (mysql-elasticsearch · parallel), AlertTickOutcomesIT (mysql-elasticsearch · parallel), AlertTimeBudgetIT (mysql-elasticsearch · parallel), AlertTimetableIT (mysql-elasticsearch · parallel), AlertsRuleEvaluatorDeletedEntityIT (mysql-elasticsearch · parallel), AlertsRuleEvaluatorResourceIT (mysql-elasticsearch · parallel), AliasSwapConcreteRemovalIT (mysql-elasticsearch · parallel), AnnouncementResourceIT (mysql-elasticsearch · parallel), AppMarketPlaceResourceIT (mysql-elasticsearch · parallel), AppOperationPermissionsIT (mysql-elasticsearch · parallel), AppRunInterruptionIT (mysql-elasticsearch · parallel), AsyncSearchIndexConsistencyIT (mysql-elasticsearch · parallel), AttachmentListIT (mysql-elasticsearch · parallel), AuditLogResourceIT (mysql-elasticsearch · parallel), AutoAssignIncidentIT (mysql-elasticsearch · parallel), AutoCloseIncidentIT (mysql-elasticsearch · parallel), BotImpersonationIT (mysql-elasticsearch · parallel), BotResourceIT (mysql-elasticsearch · parallel), BulkAssetChangeEventUserIT (mysql-elasticsearch · parallel), BulkChangeEventIT (mysql-elasticsearch · parallel), BulkDeleteStaleIT (mysql-elasticsearch · parallel), BulkOperationPermissionsIT (mysql-elasticsearch · parallel), BulkOverrideMetadataIT (mysql-elasticsearch · parallel), BulkSourceHashFastPathIT (mysql-elasticsearch · parallel), CachedSearchLayerIT (mysql-elasticsearch · parallel), CapabilitiesIT (mysql-elasticsearch · parallel), ChangeSummaryResourceIT (mysql-elasticsearch · parallel), ChartResourceIT (mysql-elasticsearch · parallel), ChildFieldEdgeMatrixIT (mysql-elasticsearch · parallel), ChildFieldPaginationIT (mysql-elasticsearch · parallel), ClassificationResourceIT (mysql-elasticsearch · parallel), ColumnBulkUpdateIT (mysql-elasticsearch · parallel), ColumnChildTypesIT (mysql-elasticsearch · parallel), ColumnCustomPropertiesIT (mysql-elasticsearch · parallel), ColumnGridNewTypesIT (mysql-elasticsearch · parallel), ColumnGridResourceIT (mysql-elasticsearch · parallel), ColumnLineageReconciliationIT (mysql-elasticsearch · parallel), ColumnResourceIT (mysql-elasticsearch · parallel), ColumnSearchIndexIT (mysql-elasticsearch · parallel), ConceptContextIT (mysql-elasticsearch · parallel), ConfigResourceIT (mysql-elasticsearch · parallel), ContainerResourceIT (mysql-elasticsearch · parallel), ContextFileIT (mysql-elasticsearch · parallel), ContextMemoryAnchorIT (mysql-elasticsearch · parallel), ContextMemoryCreateGrantIT (mysql-elasticsearch · parallel), ContextMemoryIT (mysql-elasticsearch · parallel), ContextMemoryLifecycleIT (mysql-elasticsearch · parallel), ContextMemoryRelatedEntitiesReconcileIT (mysql-elasticsearch · parallel), ContextMemorySourceEntityTiebreakIT (mysql-elasticsearch · parallel), ContextMemoryStatusMigrationIT (mysql-elasticsearch · parallel), ContextMemoryWriteAccessIT (mysql-elasticsearch · parallel), ContinuousMigrationIT (mysql-elasticsearch · parallel), ConversationResourceIT (mysql-elasticsearch · parallel), CreationAuditMigrationIT (mysql-elasticsearch · parallel), CsvAsyncJobResourceIT (mysql-elasticsearch · parallel), DashboardDataModelResourceIT (mysql-elasticsearch · parallel), DashboardResourceIT (mysql-elasticsearch · parallel), DashboardServiceResourceIT (mysql-elasticsearch · parallel), DataAccessRequestValidationIT (mysql-elasticsearch · parallel), DataContractPermissionIT (mysql-elasticsearch · parallel), DataContractResourceIT (mysql-elasticsearch · parallel), DataInsightAggregationIT (mysql-elasticsearch · parallel), DataInsightAliasReconciliationIT (mysql-elasticsearch · parallel), DataInsightChartResourceIT (mysql-elasticsearch · parallel), DataInsightSystemChartResourceIT (mysql-elasticsearch · parallel), DataInsightsEnricherBehaviorIT (mysql-elasticsearch · parallel), DataProductDomainMigrationIT (mysql-elasticsearch · parallel), DataProductResourceIT (mysql-elasticsearch · parallel), DataQualityDimensionMigrationIT (mysql-elasticsearch · parallel), DataQualityDimensionPropagationIT (mysql-elasticsearch · parallel), DataQualityLineageIT (mysql-elasticsearch · parallel), DataRetentionAppIT (mysql-elasticsearch · parallel), DatabaseHierarchyIT (mysql-elasticsearch · parallel), DatabaseResourceIT (mysql-elasticsearch · parallel), DatabaseSchemaResourceIT (mysql-elasticsearch · parallel), DatabaseServiceResourceIT (mysql-elasticsearch · parallel), DatabaseSmokeIT (mysql-elasticsearch · parallel), DbTuneIT (mysql-elasticsearch · parallel), DeepCopyBenchmarkIT (mysql-elasticsearch · parallel), DirectoryResourceIT (mysql-elasticsearch · parallel), DispatchScenariosIT (mysql-elasticsearch · parallel), DocStoreResourceIT (mysql-elasticsearch · parallel), DomainAssetsColumnExclusionIT (mysql-elasticsearch · parallel), DomainBulkAssetsDryRunIT (mysql-elasticsearch · parallel), DomainIsolationIT (mysql-elasticsearch · parallel), DomainRecreateSameNameIT (mysql-elasticsearch · parallel), DomainResourceIT (mysql-elasticsearch · parallel), DriveFileUploadIT (mysql-elasticsearch · parallel), DriveServiceResourceIT (mysql-elasticsearch · parallel), EmailFirstIdentityIT (mysql-elasticsearch · parallel), EnricherBulkVsHistoryPathEquivalenceIT (mysql-elasticsearch · parallel), EntityCacheInvalidationIT (mysql-elasticsearch · parallel), EntityCacheMemoryIT (mysql-elasticsearch · parallel), EntityCursorOffsetIT (mysql-elasticsearch · parallel), EntityDeleteTaskCleanupIT (mysql-elasticsearch · parallel), EntityHardDeletionAtomicityIT (mysql-elasticsearch · parallel), EntityHistoryPaginationIT (mysql-elasticsearch · parallel), EntityLifecycleStagesIT (mysql-elasticsearch · parallel), EntityNameIndexIT (mysql-elasticsearch · parallel), EntityProfileResourceIT (mysql-elasticsearch · parallel), EntityRelationshipCleanupIT (mysql-elasticsearch · parallel), EntityShapeBaselineIT (mysql-elasticsearch · parallel), EntityStatusWorkflowOwnershipIT (mysql-elasticsearch · parallel), EntitySubtreeAtomicityIT (mysql-elasticsearch · parallel), EntityTransactionBoundaryIT (mysql-elasticsearch · parallel), EntityUpdateLockOrderIT (mysql-elasticsearch · parallel), EntityUtilValidateEntityReferenceIT (mysql-elasticsearch · parallel), EventSubscriptionBatchProcessingIT (mysql-elasticsearch · parallel), EventSubscriptionBatchUpsertIT (mysql-elasticsearch · parallel), EventSubscriptionResourceIT (mysql-elasticsearch · parallel), FeedAccessAuthzIT (mysql-elasticsearch · parallel), FileResourceIT (mysql-elasticsearch · parallel), FolderIT (mysql-elasticsearch · parallel), FolderResourceIT (mysql-elasticsearch · parallel), GlossaryCsvRelationTypesIT (mysql-elasticsearch · parallel), GlossaryRdfImportIT (mysql-elasticsearch · parallel), GlossaryResourceIT (mysql-elasticsearch · parallel), GlossaryTermInheritedReviewerApprovalIT (mysql-elasticsearch · parallel), GlossaryTermMoveApprovalIT (mysql-elasticsearch · parallel), GlossaryTermRealizationIT (mysql-elasticsearch · parallel), GlossaryTermRelationAdvancedIT (mysql-elasticsearch · parallel), GlossaryTermRelationEdgeCasesIT (mysql-elasticsearch · parallel), GlossaryTermRelationEdgeIT (mysql-elasticsearch · parallel), GlossaryTermRelationFixesIT (mysql-elasticsearch · parallel), GlossaryTermRelationIT (mysql-elasticsearch · parallel), GlossaryTermRelationSettingsIT (mysql-elasticsearch · parallel), GlossaryTermRelationSettingsPermissionsIT (mysql-elasticsearch · parallel), GlossaryTermRelationUsageIT (mysql-elasticsearch · parallel), GlossaryTermRelationsIT (mysql-elasticsearch · parallel), GlossaryTermResourceIT (mysql-elasticsearch · parallel), IdBatchesIT (mysql-elasticsearch · parallel), IncidentGroupsIT (mysql-elasticsearch · parallel), IncidentPaginationIT (mysql-elasticsearch · parallel), IncidentTaskIntegrationIT (mysql-elasticsearch · parallel), IncidentTaskNotificationIT (mysql-elasticsearch · parallel), IndexTemplateIT (mysql-elasticsearch · parallel), IndexingLimitsIT (mysql-elasticsearch · parallel), IngestionPipelineAgentTypeIT (mysql-elasticsearch · parallel), IngestionPipelineLogStreamIT (mysql-elasticsearch · parallel), IngestionPipelineLogStreamingResourceIT (mysql-elasticsearch · parallel), IngestionPipelineOwnerInheritanceIT (mysql-elasticsearch · parallel), IngestionPipelineProgressStreamIT (mysql-elasticsearch · parallel), IngestionPipelineResourceIT (mysql-elasticsearch · parallel), IngestionPipelineSortIT (mysql-elasticsearch · parallel), InnoDbDeadlockReportLoggerTest (mysql-elasticsearch · parallel), IntakeFormResourceIT (mysql-elasticsearch · parallel), K8sEnvVarSerializationIT (mysql-elasticsearch · parallel), K8sOMJobOperatorIT (mysql-elasticsearch · parallel), K8sPipelineEnvVarIT (mysql-elasticsearch · parallel), KnowledgeCenterIT (mysql-elasticsearch · parallel), KnowledgePageHierarchyIT (mysql-elasticsearch · parallel), KpiResourceIT (mysql-elasticsearch · parallel), LLMModelResourceIT (mysql-elasticsearch · parallel), LLMServiceResourceIT (mysql-elasticsearch · parallel), LatencySamplerTest (mysql-elasticsearch · parallel), LatestTestCaseResultListingIT (mysql-elasticsearch · parallel), LearningResourceIT (mysql-elasticsearch · parallel), LifeCycleCreatedSentinelMigrationIT (mysql-elasticsearch · parallel), LineageBidirectionalIT (mysql-elasticsearch · parallel), LineageBrokenReferenceIT (mysql-elasticsearch · parallel), LineageDeletedPipelineIT (mysql-elasticsearch · parallel), LineageEdgePlannerTest (mysql-elasticsearch · parallel), LineageGraphLoaderTest (mysql-elasticsearch · parallel), LineageHydrateIT (mysql-elasticsearch · parallel), LineageImpactAnalysisIT (mysql-elasticsearch · parallel), LineageManualEdgeIT (mysql-elasticsearch · parallel), LineagePipelineAnnotatorIT (mysql-elasticsearch · parallel), LineageResourceIT (mysql-elasticsearch · parallel), McpContextMemoryVisibilityIT (mysql-elasticsearch · parallel), McpExecutionResourceIT (mysql-elasticsearch · parallel), McpIntegrationIT (mysql-elasticsearch · parallel), McpOAuthIT (mysql-elasticsearch · parallel), McpPermissionIT (mysql-elasticsearch · parallel), McpSearchIT (mysql-elasticsearch · parallel), McpServerResourceIT (mysql-elasticsearch · parallel), McpServiceResourceIT (mysql-elasticsearch · parallel), McpToolsValidationIT (mysql-elasticsearch · parallel), McpUserContextIT (mysql-elasticsearch · parallel), MessagingServiceResourceIT (mysql-elasticsearch · parallel), MetadataServiceResourceIT (mysql-elasticsearch · parallel), MetricAssetsIT (mysql-elasticsearch · parallel), MetricGroupResourceIT (mysql-elasticsearch · parallel), MetricResourceIT (mysql-elasticsearch · parallel), MlModelResourceIT (mysql-elasticsearch · parallel), MlModelServiceResourceIT (mysql-elasticsearch · parallel), MlModelServiceSearchAliasIT (mysql-elasticsearch · parallel), MultiDomainHasDomainIT (mysql-elasticsearch · parallel), MultiTeamUserFanOutIT (mysql-elasticsearch · parallel), NamespaceCleanupTest (mysql-elasticsearch · parallel), NotificationTemplateResourceIT (mysql-elasticsearch · parallel), OAuth2TokenManagerIT (mysql-elasticsearch · parallel), OntologyAiResourceIT (mysql-elasticsearch · parallel), OntologyAxiomResourceIT (mysql-elasticsearch · parallel), OntologyBulkIT (mysql-elasticsearch · parallel), OntologyChangeSetIT (mysql-elasticsearch · parallel), OntologyEditLockResourceIT (mysql-elasticsearch · parallel), OntologyEffectiveAttributesIT (mysql-elasticsearch · parallel), OntologyGovernanceIT (mysql-elasticsearch · parallel), OntologyImpactIT (mysql-elasticsearch · parallel), OntologyModelingIT (mysql-elasticsearch · parallel), OntologyPackResourceIT (mysql-elasticsearch · parallel), OntologyPatternIT (mysql-elasticsearch · parallel), OntologyResourceIT (mysql-elasticsearch · parallel), OntologyStructureIT (mysql-elasticsearch · parallel), OntologySubsetIT (mysql-elasticsearch · parallel), OpenLineageLineageResolutionIT (mysql-elasticsearch · parallel), OpenLineageResourceIT (mysql-elasticsearch · parallel), OpenMetadataOperationsIT (mysql-elasticsearch · parallel), OpensearchHC5ReactorReproIT (mysql-elasticsearch · parallel), OptimisticLockingColumnPatchIT (mysql-elasticsearch · parallel), OrphanIngestionPipelineCleanupIT (mysql-elasticsearch · parallel), OrphanedEntityReferenceIT (mysql-elasticsearch · parallel), OrphanedIndexCleanerScopedCleanupIT (mysql-elasticsearch · parallel), OrphanedTimeSeriesCleanupIT (mysql-elasticsearch · parallel), OverrideMetadataRestoreMigrationIT (mysql-elasticsearch · parallel), PaginationIT (mysql-elasticsearch · parallel), PermissionsResourceIT (mysql-elasticsearch · parallel), PersonaAIContextIT (mysql-elasticsearch · parallel), PersonaResourceIT (mysql-elasticsearch · parallel), PipelineResourceIT (mysql-elasticsearch · parallel), PipelineServiceResourceIT (mysql-elasticsearch · parallel), PipelineStatusAuthorizationIT (mysql-elasticsearch · parallel), PolicyResourceIT (mysql-elasticsearch · parallel), PrometheusResourceIT (mysql-elasticsearch · parallel), PromptTemplateResourceIT (mysql-elasticsearch · parallel), QueryCostRecordResourceIT (mysql-elasticsearch · parallel), QueryResourceIT (mysql-elasticsearch · parallel), QueryVisibilityPolicyIT (mysql-elasticsearch · parallel), RdfScaleResourcesTest (mysql-elasticsearch · parallel), RecognizerFeedbackRepositoryTest (mysql-elasticsearch · parallel), RelationshipTypeContradictionIT (mysql-elasticsearch · parallel), RelationshipTypeResourceIT (mysql-elasticsearch · parallel), ReportDataResourceIT (mysql-elasticsearch · parallel), RestoreHierarchyIT (mysql-elasticsearch · parallel), RoleResourceIT (mysql-elasticsearch · parallel), RunIngestionPipelineForEntityIT (mysql-elasticsearch · parallel), SamlSecurityConfigIT (mysql-elasticsearch · parallel), SampleDataStorageMigrationIT (mysql-elasticsearch · parallel), SavedSparqlQueryResourceIT (mysql-elasticsearch · parallel), SdkClientsBaseUrlTest (mysql-elasticsearch · parallel), SearchClusterFitnessResourceIT (mysql-elasticsearch · parallel), SearchConfigurationIT (mysql-elasticsearch · parallel), SearchConsumerFieldBehaviorIT (mysql-elasticsearch · parallel), SearchFieldlessQueryIT (mysql-elasticsearch · parallel), SearchIndexFieldLimitIT (mysql-elasticsearch · parallel), SearchIndexImmenseTermIT (mysql-elasticsearch · parallel), SearchIndexPromotionIT (mysql-elasticsearch · parallel), SearchIndexResourceIT (mysql-elasticsearch · parallel), SearchIndexingFieldsParityIT (mysql-elasticsearch · parallel), SearchRankingRelevanceIT (mysql-elasticsearch · parallel), SearchResourceIT (mysql-elasticsearch · parallel), SearchServiceResourceIT (mysql-elasticsearch · parallel), SearchTestImagesTest (mysql-elasticsearch · parallel), SecretsManagerNullSecretIT (mysql-elasticsearch · parallel), SecurityServiceResourceIT (mysql-elasticsearch · parallel), SeedDataPresenceIT (mysql-elasticsearch · parallel), ServerStallWatchdogTest (mysql-elasticsearch · parallel), ServiceAttributePolicyIT (mysql-elasticsearch · parallel), ServiceLineagePipelineRoutingMigrationIT (mysql-elasticsearch · parallel), ServiceLineageRefcountIT (mysql-elasticsearch · parallel), ServicesOverviewResourceIT (mysql-elasticsearch · parallel), ShapeCanaryTest (mysql-elasticsearch · parallel), SlowEndpointIT (mysql-elasticsearch · parallel), SoftDeleteRetentionIT (mysql-elasticsearch · parallel), SpreadsheetResourceIT (mysql-elasticsearch · parallel), SqlFailureProbeTest (mysql-elasticsearch · parallel), SqlQueryCounterTest (mysql-elasticsearch · parallel), SqlTestDecoratorsIT (mysql-elasticsearch · parallel), StaleIncidentStatusIT (mysql-elasticsearch · parallel), StorageServiceResourceIT (mysql-elasticsearch · parallel), StoredProcedureResourceIT (mysql-elasticsearch · parallel), SystemAlertsIT (mysql-elasticsearch · parallel), TableCertificationPropagationIT (mysql-elasticsearch · parallel), TableCreateCertificationIT (mysql-elasticsearch · parallel), TableDataModelCertificationIT (mysql-elasticsearch · parallel), TableMetadataReadIT (mysql-elasticsearch · parallel), TableResourceIT (mysql-elasticsearch · parallel), TagResourceIT (mysql-elasticsearch · parallel), TaskChangeEventIT (mysql-elasticsearch · parallel), TaskCommentsIT (mysql-elasticsearch · parallel), TaskFormSchemaResourceIT (mysql-elasticsearch · parallel), TaskPermissionsIT (mysql-elasticsearch · parallel), TaskResourceIT (mysql-elasticsearch · parallel), TeamDefaultPersonaIT (mysql-elasticsearch · parallel), TeamHierarchyInheritanceIT (mysql-elasticsearch · parallel), TeamResourceIT (mysql-elasticsearch · parallel), TemplateTestSendIT (mysql-elasticsearch · parallel), TestCaseCsvDomainIsolationIT (mysql-elasticsearch · parallel), TestCaseDeleteResilienceIT (mysql-elasticsearch · parallel), TestCaseLatestStatusIT (mysql-elasticsearch · parallel), TestCaseRelationshipRetentionCleanupIT (mysql-elasticsearch · parallel), TestCaseResolutionStatusLegacyTestSuitesIT (mysql-elasticsearch · parallel), TestCaseResourceIT (mysql-elasticsearch · parallel), TestCaseSoftDeleteSearchIT (mysql-elasticsearch · parallel), TestConnectionDefinitionResourceIT (mysql-elasticsearch · parallel), TestDefinitionResourceIT (mysql-elasticsearch · parallel), TestLoginSessionSweepIT (mysql-elasticsearch · parallel), TestNamespaceTest (mysql-elasticsearch · parallel), TestSuiteResourceIT (mysql-elasticsearch · parallel), TopicResourceIT (mysql-elasticsearch · parallel), TransactionCounterTest (mysql-elasticsearch · parallel), TypeResourceIT (mysql-elasticsearch · parallel), UnitOfWorkRollbackIT (mysql-elasticsearch · parallel), UsageResourceIT (mysql-elasticsearch · parallel), UserDefaultTeamAssignmentIT (mysql-elasticsearch · parallel), UserImportPrivilegeEscalationIT (mysql-elasticsearch · parallel), UserPreferencesIT (mysql-elasticsearch · parallel), UserResourceIT (mysql-elasticsearch · parallel), UserTeamAssignmentPrivilegeIT (mysql-elasticsearch · parallel), WebAnalyticEventResourceIT (mysql-elasticsearch · parallel), WorkflowResourceIT (mysql-elasticsearch · parallel), WorkflowTriggerPermissionsIT (mysql-elasticsearch · parallel), WorksheetResourceIT (mysql-elasticsearch · parallel), WritePathBenchmarkIT (mysql-elasticsearch · parallel), AppsResourceIT (mysql-elasticsearch · isolated), ConversationSchemaMigrationIT (mysql-elasticsearch · isolated), CsvExportMultiNodeIT (mysql-elasticsearch · isolated), DataContractValidationAppIT (mysql-elasticsearch · isolated), EntityShapeIT (mysql-elasticsearch · isolated), GlossaryOntologyExportIT (mysql-elasticsearch · isolated), MetricMigrationIT (mysql-elasticsearch · isolated), SearchIndexRetryQueueIT (mysql-elasticsearch · isolated), SessionMultiNodeIT (mysql-elasticsearch · isolated), SystemResourceIT (mysql-elasticsearch · isolated), TagRecognizerFeedbackIT (mysql-elasticsearch · isolated), TestSuiteReindexIT (mysql-elasticsearch · isolated), UserMetricsResourceIT (mysql-elasticsearch · isolated), VectorEmbeddingIntegrationIT (mysql-elasticsearch · isolated), WorkflowDefinitionResourceIT (mysql-elasticsearch · isolated), AgentSparqlResourceIT (mysql-elasticsearch · rdf), LodResourceIT (mysql-elasticsearch · rdf), RdfBatchFieldsIT (mysql-elasticsearch · rdf), RdfBlueGreenRebuildIT (mysql-elasticsearch · rdf), RdfConceptRealizationIT (mysql-elasticsearch · rdf), RdfFusekiAuthorizationIT (mysql-elasticsearch · rdf), RdfGlossaryGraphIT (mysql-elasticsearch · rdf), RdfGovernanceRulesIT (mysql-elasticsearch · rdf), RdfGraphExploreIT (mysql-elasticsearch · rdf), RdfIndexAppScaleIT (mysql-elasticsearch · rdf), RdfIndexRunRecoveryIT (mysql-elasticsearch · rdf), RdfInferenceMaterializationIT (mysql-elasticsearch · rdf), RdfInferenceMultiServerIT (mysql-elasticsearch · rdf), RdfLiveProjectionIT (mysql-elasticsearch · rdf), RdfLiveWriteRecoveryIT (mysql-elasticsearch · rdf), RdfReindexFailuresIT (mysql-elasticsearch · rdf), RdfReindexInsertOnlyIT (mysql-elasticsearch · rdf), RdfReindexRunLockIT (mysql-elasticsearch · rdf), RdfRelationExclusionsIT (mysql-elasticsearch · rdf), RdfResourceIT (mysql-elasticsearch · rdf), RdfRoundTripFidelityIT (mysql-elasticsearch · rdf), RdfSemanticSearchIT (mysql-elasticsearch · rdf), RdfSourceRevisionIT (mysql-elasticsearch · rdf), RdfSqlResourceIT (mysql-elasticsearch · rdf), RdfStorageReadinessIT (mysql-elasticsearch · rdf), RdfTagsTierCertificationIT (mysql-elasticsearch · rdf), AIGovernancePolicyResourceIT (postgres-opensearch · parallel), AccentInsensitiveSearchIT (postgres-opensearch · parallel), AlertBacklogMigrationIT (postgres-opensearch · parallel), AlertsRuleEvaluatorDeletedEntityIT (postgres-opensearch · parallel), AlertsRuleEvaluatorResourceIT (postgres-opensearch · parallel), AliasSwapConcreteRemovalIT (postgres-opensearch · parallel), AsyncSearchIndexConsistencyIT (postgres-opensearch · parallel), AutoAssignIncidentIT (postgres-opensearch · parallel), AutoCloseIncidentIT (postgres-opensearch · parallel), CachedSearchLayerIT (postgres-opensearch · parallel), ChildFieldEdgeMatrixIT (postgres-opensearch · parallel), ChildFieldPaginationIT (postgres-opensearch · parallel), ClassificationResourceIT (postgres-opensearch · parallel), ColumnSearchIndexIT (postgres-opensearch · parallel), ConfigResourceIT (postgres-opensearch · parallel), ContextMemoryStatusMigrationIT (postgres-opensearch · parallel), ContinuousMigrationIT (postgres-opensearch · parallel), CreationAuditMigrationIT (postgres-opensearch · parallel), DataAccessRequestValidationIT (postgres-opensearch · parallel), DataContractPermissionIT (postgres-opensearch · parallel), DataContractResourceIT (postgres-opensearch · parallel), DataInsightAggregationIT (postgres-opensearch · parallel), DataInsightAliasReconciliationIT (postgres-opensearch · parallel), DataProductDomainMigrationIT (postgres-opensearch · parallel), DataQualityDimensionMigrationIT (postgres-opensearch · parallel), DatabaseSmokeIT (postgres-opensearch · parallel), DbTuneIT (postgres-opensearch · parallel), DeepCopyBenchmarkIT (postgres-opensearch · parallel), EntityCacheInvalidationIT (postgres-opensearch · parallel), EntityCacheMemoryIT (postgres-opensearch · parallel), EntityCursorOffsetIT (postgres-opensearch · parallel), EntityDeleteTaskCleanupIT (postgres-opensearch · parallel), EntityHardDeletionAtomicityIT (postgres-opensearch · parallel), EntityHistoryPaginationIT (postgres-opensearch · parallel), EntityLifecycleStagesIT (postgres-opensearch · parallel), EntityNameIndexIT (postgres-opensearch · parallel), EntityProfileResourceIT (postgres-opensearch · parallel), EntityRelationshipCleanupIT (postgres-opensearch · parallel), EntityShapeBaselineIT (postgres-opensearch · parallel), EntityStatusWorkflowOwnershipIT (postgres-opensearch · parallel), EntitySubtreeAtomicityIT (postgres-opensearch · parallel), EntityTransactionBoundaryIT (postgres-opensearch · parallel), EntityUpdateLockOrderIT (postgres-opensearch · parallel), EntityUtilValidateEntityReferenceIT (postgres-opensearch · parallel), FlattenedChildrenHighlightSearchIT (postgres-opensearch · parallel), GlossaryCsvRelationTypesIT (postgres-opensearch · parallel), GlossaryRdfImportIT (postgres-opensearch · parallel), GlossaryResourceIT (postgres-opensearch · parallel), GlossaryTermInheritedReviewerApprovalIT (postgres-opensearch · parallel), GlossaryTermMoveApprovalIT (postgres-opensearch · parallel), GlossaryTermRealizationIT (postgres-opensearch · parallel), GlossaryTermRelationAdvancedIT (postgres-opensearch · parallel), GlossaryTermRelationEdgeCasesIT (postgres-opensearch · parallel), GlossaryTermRelationEdgeIT (postgres-opensearch · parallel), GlossaryTermRelationFixesIT (postgres-opensearch · parallel), GlossaryTermRelationIT (postgres-opensearch · parallel), GlossaryTermRelationSettingsIT (postgres-opensearch · parallel), GlossaryTermRelationSettingsPermissionsIT (postgres-opensearch · parallel), GlossaryTermRelationUsageIT (postgres-opensearch · parallel), GlossaryTermRelationsIT (postgres-opensearch · parallel), GlossaryTermResourceIT (postgres-opensearch · parallel), IncidentGroupsIT (postgres-opensearch · parallel), IncidentPaginationIT (postgres-opensearch · parallel), IncidentTaskIntegrationIT (postgres-opensearch · parallel), IncidentTaskNotificationIT (postgres-opensearch · parallel), IndexTemplateIT (postgres-opensearch · parallel), IndexingLimitsIT (postgres-opensearch · parallel), IngestionPipelineAgentTypeIT (postgres-opensearch · parallel), IngestionPipelineLogStreamIT (postgres-opensearch · parallel), IngestionPipelineLogStreamingResourceIT (postgres-opensearch · parallel), IngestionPipelineOwnerInheritanceIT (postgres-opensearch · parallel), IngestionPipelineProgressStreamIT (postgres-opensearch · parallel), IngestionPipelineResourceIT (postgres-opensearch · parallel), IngestionPipelineSortIT (postgres-opensearch · parallel), IntakeFormResourceIT (postgres-opensearch · parallel), K8sEnvVarSerializationIT (postgres-opensearch · parallel), K8sOMJobOperatorIT (postgres-opensearch · parallel), K8sPipelineEnvVarIT (postgres-opensearch · parallel), LifeCycleCreatedSentinelMigrationIT (postgres-opensearch · parallel), LineageBidirectionalIT (postgres-opensearch · parallel), LineageBrokenReferenceIT (postgres-opensearch · parallel), LineageDeletedPipelineIT (postgres-opensearch · parallel), LineageEdgePlannerTest (postgres-opensearch · parallel), LineageGraphLoaderTest (postgres-opensearch · parallel), LineageHydrateIT (postgres-opensearch · parallel), LineageImpactAnalysisIT (postgres-opensearch · parallel), LineageManualEdgeIT (postgres-opensearch · parallel), LineagePipelineAnnotatorIT (postgres-opensearch · parallel), LineageResourceIT (postgres-opensearch · parallel), McpSearchIT (postgres-opensearch · parallel), MlModelServiceSearchAliasIT (postgres-opensearch · parallel), OntologyGovernanceIT (postgres-opensearch · parallel), OpenMetadataOperationsIT (postgres-opensearch · parallel), OpensearchHC5ReactorReproIT (postgres-opensearch · parallel), OptimisticLockingColumnPatchIT (postgres-opensearch · parallel), OrphanIngestionPipelineCleanupIT (postgres-opensearch · parallel), OrphanedEntityReferenceIT (postgres-opensearch · parallel), OrphanedIndexCleanerScopedCleanupIT (postgres-opensearch · parallel), OrphanedTimeSeriesCleanupIT (postgres-opensearch · parallel), OverrideMetadataRestoreMigrationIT (postgres-opensearch · parallel), PaginationIT (postgres-opensearch · parallel), PipelineStatusAuthorizationIT (postgres-opensearch · parallel), RecognizerFeedbackRepositoryTest (postgres-opensearch · parallel), RestoreHierarchyIT (postgres-opensearch · parallel), RunIngestionPipelineForEntityIT (postgres-opensearch · parallel), SampleDataStorageMigrationIT (postgres-opensearch · parallel), SearchClusterFitnessResourceIT (postgres-opensearch · parallel), SearchConfigurationIT (postgres-opensearch · parallel), SearchConsumerFieldBehaviorIT (postgres-opensearch · parallel), SearchFieldlessQueryIT (postgres-opensearch · parallel), SearchIndexFieldLimitIT (postgres-opensearch · parallel), SearchIndexImmenseTermIT (postgres-opensearch · parallel), SearchIndexPromotionIT (postgres-opensearch · parallel), SearchIndexResourceIT (postgres-opensearch · parallel), SearchIndexingFieldsParityIT (postgres-opensearch · parallel), SearchRankingRelevanceIT (postgres-opensearch · parallel), SearchResourceIT (postgres-opensearch · parallel), SearchServiceResourceIT (postgres-opensearch · parallel), SearchTestImagesTest (postgres-opensearch · parallel), SeedDataPresenceIT (postgres-opensearch · parallel), ServiceLineagePipelineRoutingMigrationIT (postgres-opensearch · parallel), SoftDeleteRetentionIT (postgres-opensearch · parallel), StaleIncidentStatusIT (postgres-opensearch · parallel), TableCertificationPropagationIT (postgres-opensearch · parallel), TableCreateCertificationIT (postgres-opensearch · parallel), TableDataModelCertificationIT (postgres-opensearch · parallel), TableMetadataReadIT (postgres-opensearch · parallel), TableResourceIT (postgres-opensearch · parallel), TagResourceIT (postgres-opensearch · parallel), TaskChangeEventIT (postgres-opensearch · parallel), TaskCommentsIT (postgres-opensearch · parallel), TaskFormSchemaResourceIT (postgres-opensearch · parallel), TaskPermissionsIT (postgres-opensearch · parallel), TaskResourceIT (postgres-opensearch · parallel), TestCaseSoftDeleteSearchIT (postgres-opensearch · parallel), TestConnectionDefinitionResourceIT (postgres-opensearch · parallel), UserDefaultTeamAssignmentIT (postgres-opensearch · parallel), UserImportPrivilegeEscalationIT (postgres-opensearch · parallel), UserPreferencesIT (postgres-opensearch · parallel), UserResourceIT (postgres-opensearch · parallel), UserTeamAssignmentPrivilegeIT (postgres-opensearch · parallel), WorkflowResourceIT (postgres-opensearch · parallel), WorkflowTriggerPermissionsIT (postgres-opensearch · parallel), WritePathBenchmarkIT (postgres-opensearch · parallel), ConversationSchemaMigrationIT (postgres-opensearch · isolated), DataContractValidationAppIT (postgres-opensearch · isolated), EntityShapeIT (postgres-opensearch · isolated), GlossaryOntologyExportIT (postgres-opensearch · isolated), MetricMigrationIT (postgres-opensearch · isolated), PatchTableEmbeddingIT (postgres-opensearch · isolated), SearchIndexRetryQueueIT (postgres-opensearch · isolated), TagRecognizerFeedbackIT (postgres-opensearch · isolated), TestSuiteReindexIT (postgres-opensearch · isolated), UserMetricsResourceIT (postgres-opensearch · isolated), VectorEmbeddingIntegrationIT (postgres-opensearch · isolated), WorkflowDefinitionResourceIT (postgres-opensearch · isolated), RdfGovernanceRulesIT (postgres-opensearch · rdf), RdfIndexAppScaleIT (postgres-opensearch · rdf), RdfIndexRunRecoveryIT (postgres-opensearch · rdf), RdfReindexFailuresIT (postgres-opensearch · rdf), RdfReindexInsertOnlyIT (postgres-opensearch · rdf), RdfReindexRunLockIT (postgres-opensearch · rdf), RdfSemanticSearchIT (postgres-opensearch · rdf)

Tests run locally

  • unit · openmetadata-mcp (6 classes), openmetadata-service (54 classes): 60 classes, 1062 tests executed (listed below)
  • integration · mysql-elasticsearch · parallel: every lane class, in this CI run
  • integration · mysql-elasticsearch · isolated: every lane class, in this CI run
  • integration · mysql-elasticsearch · rdf: every lane class, in this CI run
  • integration · mysql-elasticsearch · search-it: ColumnIndexingToggleIT (1 passed), CustomPropertyAggregationIT (2 passed), DbToEsCountReconciliationIT (1 passed), FieldNamesAggregationIT (5 passed), HighlightFieldSaveValidationIT (4 passed), IndexFieldExplosionIT (2 passed), IndexMappingTemplatesIT (1 passed), LiveIndexRetryIT (1 passed), LiveSearchSettingsChangeIT (1 passed), NestedHierarchyIndexIT (1 passed), NoDuplicatesDuringReindexIT (1 passed), OwnersNestedMappingIT (1 passed), PerEntitySearchDefaultsIT (1 passed), ReindexAliasSwapIT (1 passed), ReindexDocSurvivalIT (4 passed), ReindexOutageRecoveryIT (1 passed), ReindexStatsIT (2 passed), ReindexStopUnderLoadIT (1 passed), SearchClusterFitnessReindexE2EIT (2 passed), SearchCountConsistencyIT (6 passed), SearchEntityRankingIT (14 passed), SearchRelevancyPreviewIT (8 passed), SearchScoringIT (4 passed), StagedIndexUnrefreshedCountIT (1 passed), TestCaseStaleDefinitionReindexIT (1 passed), UnsafeReindexConfigIT (1 passed)
  • integration · cache-tests · parallel: AlertStateIT (21 passed), BundleWarmupCertificationIT (1 passed), ContainerCacheCorrectnessIT (1 passed), EntityCacheWriteOrderIT (2 passed), OneTransactionFlushAtomicityIT (8 passed, 1 skipped), RelationshipCacheInvalidationIT (1 passed), TagRenameCacheIT (1 passed), UncachedReadIT (3 passed)
  • integration · cache-tests · isolated: SessionRedisMultiNodeIT (8 passed), TokenRevocationRedisMultiNodeIT (3 passed)
  • integration · postgres-opensearch · parallel: every lane class, in this CI run
  • integration · postgres-opensearch · isolated: every lane class, in this CI run
  • integration · postgres-opensearch · rdf: every lane class, in this CI run
  • integration · postgres-opensearch · search-it: ColumnIndexingToggleIT (1 passed), CustomPropertyAggregationIT (2 passed), DbToEsCountReconciliationIT (1 passed), ExtensionHighlightSearchIT (1 passed), FieldNamesAggregationIT (5 passed), HighlightFieldSaveValidationIT (4 passed), IndexFieldExplosionIT (2 passed), IndexMappingTemplatesIT (1 passed), LiveIndexRetryIT (1 passed), LiveSearchSettingsChangeIT (1 passed), NestedHierarchyIndexIT (1 passed), NoDuplicatesDuringReindexIT (1 passed), OwnersNestedMappingIT (1 passed), PerEntitySearchDefaultsIT (1 passed), ReindexAliasSwapIT (1 passed), ReindexDocSurvivalIT (4 passed), ReindexOutageRecoveryIT (1 passed), ReindexStatsIT (2 passed), ReindexStopUnderLoadIT (1 passed), SearchClusterFitnessReindexE2EIT (2 passed), SearchCountConsistencyIT (6 passed), SearchEntityRankingIT (14 passed), SearchRelevancyPreviewIT (8 passed), SearchScoringIT (4 passed), StagedIndexUnrefreshedCountIT (1 passed), TestCaseStaleDefinitionReindexIT (1 passed), UnsafeReindexConfigIT (1 passed)

Per-class counts come from the test reports, which can credit a test to the wrong class when classes run concurrently, and keep only the last run of a nested class that several test classes inherit. The step totals above are Maven's own counts.

unit · openmetadata-mcp (6 classes), openmetadata-service (54 classes): 70 classes

AIContextBuilderTest (51 passed), CheckEntityAttributesImplTest (7 passed), CompanyContextToolTest (17 passed), ConceptContextBuilderTest (21 passed), ContextMemoryAnchorPinsTest (5 passed), ContextMemoryBodyTextContributorTest (6 passed), ContextMemoryConditionalWriteSqlTest (2 passed), ContextMemoryExtractorTest (10 passed), ContextMemoryIndexTest (13 passed), ContextMemoryLifecycleTest (26 passed), ContextMemoryReconcilerTest (17 passed), ContextMemoryRepositoryTest (21 passed), ContextMemorySchemaTest (7 passed), ContextMemorySearchVisibilityTest (0 passed), ContextMemoryStatusTransitionTest (14 passed), ContextMemoryVisibilityTest (30 passed), ContextMemoryWriteAccessTest (23 passed), CreateEntityToolTest (24 passed), DataConsumerPolicyGrantSqlMigrationTest (36 passed), ElasticSearchBulkSinkBehaviorTest (17 passed), ElasticSearchFieldQueryTest (3 passed), ElasticSearchFieldlessQueryTest (5 passed), ElasticSearchNlqRequestBuilderTest (4 passed), ElasticSearchVectorServiceTest (22 passed), EntityRepositoryBulkFieldsTest (5 passed), EntityRepositoryEntityStatusTest (27 passed), EntityStatusAdapterTest (4 passed), EntityTimeSeriesRepositoryPaginationTest (18 passed), GetEntityToolTest (31 passed), InListChunkingTest (16 passed), OntologyChangePreflightTest (8 passed), OntologyMemoryDerivationQueueTest (6 passed), OntologyMemoryDerivationServiceTest (7 passed), OpenSearchBulkSinkBehaviorTest (19 passed), OpenSearchFieldQueryTest (3 passed), OpenSearchFieldlessQueryTest (5 passed), OpenSearchNlqRequestBuilderTest (4 passed), OpenSearchRbacCacheKeyTest (5 passed), OpenSearchVectorMemoryAccessTest (1 passed), OpenSearchVectorServiceChunkStagingTest (10 passed), OpenSearchVectorServiceTest (27 passed), OrphanTestCaseRelationshipCleanupTest (5 passed), PageContextProcessingEngineTest (9 passed), PatchEntityToolTest (31 passed), RdfBatchProcessorTest (23 passed), RdfClasspathResourceTest (3 passed), RdfIndexAppTest (0 passed), RdfIndexAppTest$AdmissionTests (3 passed), RdfIndexAppTest$BlueGreenLifecycleTests (5 passed), RdfIndexAppTest$EntityRelationshipConversionTests (3 passed), RdfIndexAppTest$EntitySelectionTests (5 passed), RdfIndexAppTest$InitializationTests (2 passed), RdfIndexAppTest$PromotionRatioGateTests (4 passed), RdfIndexAppTest$RunLockTests (4 passed), RdfIndexAppTest$RunRecordUpdateTests (7 passed), RdfIndexAppTest$StopFunctionalityTests (2 passed), RdfIndexAppTest$ValidationTests (1 passed), RdfLineageOntologyTest (10 passed), RdfOntologyContractTest (10 passed), RootCauseAnalysisToolTest (17 passed), SearchExportCompletenessTest (8 passed), SearchListFilterTest (30 passed), SearchRepositoryBehaviorTest (142 passed), SearchRequestBuilderMemoryVisibilityTest (29 passed), SemanticMemoryDuplicateFinderTest (7 passed), SemanticSearchToolTest (34 passed), TableMetadataLoaderTest (8 passed), TestCaseRepositoryTest (11 passed), VectorDocBuilderChunkTest (19 passed), VectorSearchQueryBuilderTest (53 passed)

Why these tests
  • full suite ← area core: openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/CoreRelationshipDAOs.java
  • added by author: this PR declares om:lastContentUpdatedAt in the ontology; the RDF contract tests check it, but the planner does not select them for an entity-schema change ← RdfClasspathResourceTest, RdfLineageOntologyTest, RdfOntologyContractTest
  • area ai-mcp-context ← openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/ContextMemoryRepository.java, openmetadata-service/src/main/java/org/openmetadata/service/resources/context/ContextMemoryResource.java, openmetadata-service/src/main/java/org/openmetadata/service/resources/context/ContextMemoryVisibility.java, openmetadata-service/src/main/java/org/openmetadata/service/resources/context/ContextMemoryWriteAccess.java, openmetadata-spec/src/main/resources/json/schema/entity/context/contextMemory.json
  • area core ← openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/CoreRelationshipDAOs.java
  • area governance ← openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/WorkflowDocStoreDAOs.java
  • area ingestion-pipelines ← openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/WorkflowDocStoreDAOs.java
  • area migrations-seed-data ← bootstrap/sql/migrations/native/2.1.0/mysql/schemaChanges.sql, bootstrap/sql/migrations/native/2.1.0/postgres/schemaChanges.sql, openmetadata-service/src/main/resources/json/data/policy/DataConsumerPolicy.json
  • area rdf ← openmetadata-spec/src/main/resources/rdf/ontology/openmetadata.ttl
  • area search ← openmetadata-service/src/main/java/org/openmetadata/service/search/SearchListFilter.java, openmetadata-service/src/main/java/org/openmetadata/service/search/elasticsearch/ElasticSearchAggregationManager.java, openmetadata-service/src/main/java/org/openmetadata/service/search/elasticsearch/ElasticSearchSearchManager.java, openmetadata-service/src/main/java/org/openmetadata/service/search/opensearch/OpenSearchAggregationManager.java, openmetadata-service/src/main/java/org/openmetadata/service/search/opensearch/OpenSearchSearchManager.java (+6 more)
  • area security ← openmetadata-service/src/main/resources/json/data/policy/DataConsumerPolicy.json
  • called from entity Classification ← openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/CoreRelationshipDAOs.java
  • called from entity ContextFile ← openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/ContextMemoryRepository.java, openmetadata-service/src/main/java/org/openmetadata/service/search/security/ContextMemorySearchVisibility.java
  • called from entity ContextMemory ← openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/ContextMemoryRepository.java, openmetadata-service/src/main/java/org/openmetadata/service/resources/context/ContextMemoryVisibility.java, openmetadata-service/src/main/java/org/openmetadata/service/resources/context/ContextMemoryWriteAccess.java, openmetadata-service/src/main/java/org/openmetadata/service/search/elasticsearch/ElasticSearchSearchManager.java, openmetadata-service/src/main/java/org/openmetadata/service/search/security/ContextMemorySearchVisibility.java
  • called from entity Entity ← openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/CoreRelationshipDAOs.java
  • called from entity Glossary ← openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/CoreRelationshipDAOs.java
  • called from entity GlossaryTerm ← openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/ContextMemoryRepository.java, openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/CoreRelationshipDAOs.java
  • called from entity KnowledgePage ← openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/ContextMemoryRepository.java
  • called from entity Lineage ← openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/CoreRelationshipDAOs.java
  • called from entity OntologyAi ← openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/ContextMemoryRepository.java, openmetadata-service/src/main/java/org/openmetadata/service/resources/context/ContextMemoryVisibility.java
  • called from entity OntologyChangeSet ← openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/ContextMemoryRepository.java
  • called from entity Search ← openmetadata-service/src/main/java/org/openmetadata/service/search/SearchListFilter.java, openmetadata-service/src/main/java/org/openmetadata/service/search/vector/ElasticSearchVectorService.java, openmetadata-service/src/main/java/org/openmetadata/service/search/vector/OpenSearchVectorService.java, openmetadata-service/src/main/java/org/openmetadata/service/search/vector/VectorSearchQueryBuilder.java
  • called from entity Table ← openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/CoreRelationshipDAOs.java
  • called from entity Tag ← openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/CoreRelationshipDAOs.java
  • called from entity Task ← openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/CoreRelationshipDAOs.java
  • called from entity User ← openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/CoreRelationshipDAOs.java
  • changed test ← openmetadata-integration-tests/src/test/java/org/openmetadata/it/tests/ContextMemoryAnchorIT.java, openmetadata-integration-tests/src/test/java/org/openmetadata/it/tests/ContextMemoryCreateGrantIT.java, openmetadata-integration-tests/src/test/java/org/openmetadata/it/tests/ContextMemoryWriteAccessIT.java, openmetadata-service/src/test/java/org/openmetadata/service/jdbi3/ContextMemoryRepositoryTest.java, openmetadata-service/src/test/java/org/openmetadata/service/migration/utils/v210/DataConsumerPolicyGrantSqlMigrationTest.java (+7 more)
  • entity ContextMemory ← openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/ContextMemoryRepository.java, openmetadata-service/src/main/java/org/openmetadata/service/resources/context/ContextMemoryResource.java, openmetadata-spec/src/main/resources/json/schema/entity/context/contextMemory.json
  • smoke ← code other than a test class changed
Impacted, not run locally (18)
  • RdfCatalogScaleIT → only with -DrdfCatalogScale=true, which no CI lane sets
  • LineagePayloadScaleIT → nightly: openmetadata-nightly k8s-java-it (scale-it)
  • LineageScenePerformanceScaleIT → nightly: openmetadata-nightly k8s-java-it (scale-it)
  • OntologyScaleIT → nightly: openmetadata-nightly k8s-java-it (scale-it)
  • ReindexBenchmarkIT → nightly: openmetadata-nightly k8s-java-it (scale-it)
  • ReindexCpuHeadroomIT → nightly: openmetadata-nightly k8s-java-it (scale-it)
  • Scale100kEntitiesIT → nightly: openmetadata-nightly k8s-java-it (scale-it)
  • ServiceDeleteSearchCleanupScaleIT → nightly: openmetadata-nightly k8s-java-it (scale-it)
  • GoogleSsoSignInUIIT → nightly: openmetadata-nightly k8s-java-it (ui-it + embedded JavaUIIT)
  • EntityLoaderSmokeUIIT → nightly: openmetadata-nightly k8s-java-it (ui-it + embedded JavaUIIT)
  • LongCompoundNameSearchUIIT → nightly: openmetadata-nightly k8s-java-it (ui-it + embedded JavaUIIT)
  • PipelineOwnerIndexUIIT → nightly: openmetadata-nightly k8s-java-it (ui-it + embedded JavaUIIT)
  • DistributedAutoTuneReindexUIIT → nightly: openmetadata-nightly k8s-java-it (ui-it + embedded JavaUIIT)
  • SearchAvailableAllKindsDuringReindexUIIT → nightly: openmetadata-nightly k8s-java-it (ui-it + embedded JavaUIIT)
  • SearchAvailableDuringReindexUIIT → nightly: openmetadata-nightly k8s-java-it (ui-it + embedded JavaUIIT)
  • SelectiveFieldReindexUIIT → nightly: openmetadata-nightly k8s-java-it (ui-it + embedded JavaUIIT)
  • SimpleReindexTriggerUIIT → nightly: openmetadata-nightly k8s-java-it (ui-it + embedded JavaUIIT)
  • GoogleSsoBootstrapUIIT → nightly: openmetadata-nightly k8s-java-it (ui-it + embedded JavaUIIT)
Commands
mvn -B package -pl openmetadata-mcp,openmetadata-service -am -Dspring-boot.repackage.skip=true -Dtest=AIContextBuilderTest,CheckEntityAttributesImplTest,CompanyContextToolTest,ConceptContextBuilderTest,ContextMemoryAnchorPinsTest,ContextMemoryBodyTextContributorTest,ContextMemoryConditionalWriteSqlTest,ContextMemoryExtractorTest,ContextMemoryIndexTest,ContextMemoryLifecycleTest,ContextMemoryReconcilerTest,ContextMemoryRepositoryTest,ContextMemorySchemaTest,ContextMemorySearchVisibilityTest,ContextMemoryStatusTransitionTest,ContextMemoryVisibilityTest,ContextMemoryWriteAccessTest,CreateEntityToolTest,DataConsumerPolicyGrantSqlMigrationTest,ElasticSearchBulkSinkBehaviorTest,ElasticSearchFieldQueryTest,ElasticSearchFieldlessQueryTest,ElasticSearchNlqRequestBuilderTest,ElasticSearchVectorServiceTest,EntityRepositoryBulkFieldsTest,EntityRepositoryEntityStatusTest,EntityStatusAdapterTest,EntityTimeSeriesRepositoryPaginationTest,GetEntityToolTest,InListChunkingTest,OntologyChangePreflightTest,OntologyMemoryDerivationQueueTest,OntologyMemoryDerivationServiceTest,OpenSearchBulkSinkBehaviorTest,OpenSearchFieldQueryTest,OpenSearchFieldlessQueryTest,OpenSearchNlqRequestBuilderTest,OpenSearchRbacCacheKeyTest,OpenSearchVectorMemoryAccessTest,OpenSearchVectorServiceChunkStagingTest,OpenSearchVectorServiceTest,OrphanTestCaseRelationshipCleanupTest,PageContextProcessingEngineTest,PatchEntityToolTest,RdfBatchProcessorTest,RdfClasspathResourceTest,RdfIndexAppTest,RdfLineageOntologyTest,RdfOntologyContractTest,RootCauseAnalysisToolTest,SearchExportCompletenessTest,SearchListFilterTest,SearchRepositoryBehaviorTest,SearchRequestBuilderMemoryVisibilityTest,SemanticMemoryDuplicateFinderTest,SemanticSearchToolTest,TableMetadataLoaderTest,TestCaseRepositoryTest,VectorDocBuilderChunkTest,VectorSearchQueryBuilderTest -Dsurefire.failIfNoSpecifiedTests=false
mvn -B verify -pl :openmetadata-integration-tests -am -Dspring-boot.repackage.skip=true -Pmysql-elasticsearch -DintegrationTests.lane=parallel '-Dit.test=<331 classes>' -Dfailsafe.failIfNoSpecifiedTests=false -Dtest=NoUnitTestsInThisRun -Dsurefire.failIfNoSpecifiedTests=false
mvn -B verify -pl :openmetadata-integration-tests -am -Dspring-boot.repackage.skip=true -Pmysql-elasticsearch -DintegrationTests.lane=global-state -Dit.test=AppsResourceIT,ConversationSchemaMigrationIT,CsvExportMultiNodeIT,DataContractValidationAppIT,EntityShapeIT,GlossaryOntologyExportIT,MetricMigrationIT,SearchIndexRetryQueueIT,SessionMultiNodeIT,SystemResourceIT,TagRecognizerFeedbackIT,TestSuiteReindexIT,UserMetricsResourceIT,VectorEmbeddingIntegrationIT,WorkflowDefinitionResourceIT -Dfailsafe.failIfNoSpecifiedTests=false -Dtest=NoUnitTestsInThisRun -Dsurefire.failIfNoSpecifiedTests=false
mvn -B verify -pl :openmetadata-integration-tests -am -Dspring-boot.repackage.skip=true -Pmysql-elasticsearch -DintegrationTests.lane=rdf -Dit.test=AgentSparqlResourceIT,LodResourceIT,RdfBatchFieldsIT,RdfBlueGreenRebuildIT,RdfConceptRealizationIT,RdfFusekiAuthorizationIT,RdfGlossaryGraphIT,RdfGovernanceRulesIT,RdfGraphExploreIT,RdfIndexAppScaleIT,RdfIndexRunRecoveryIT,RdfInferenceMaterializationIT,RdfInferenceMultiServerIT,RdfLiveProjectionIT,RdfLiveWriteRecoveryIT,RdfReindexFailuresIT,RdfReindexInsertOnlyIT,RdfReindexRunLockIT,RdfRelationExclusionsIT,RdfResourceIT,RdfRoundTripFidelityIT,RdfSemanticSearchIT,RdfSourceRevisionIT,RdfSqlResourceIT,RdfStorageReadinessIT,RdfTagsTierCertificationIT -Dfailsafe.failIfNoSpecifiedTests=false -Dtest=NoUnitTestsInThisRun -Dsurefire.failIfNoSpecifiedTests=false
mvn -B verify -pl :openmetadata-integration-tests -am -Dspring-boot.repackage.skip=true -Psearch-it -DdatabaseType=mysql -DsearchType=elasticsearch -Djpw.data.mode=ingest -Dit.test=ColumnIndexingToggleIT,CustomPropertyAggregationIT,DbToEsCountReconciliationIT,FieldNamesAggregationIT,HighlightFieldSaveValidationIT,IndexFieldExplosionIT,IndexMappingTemplatesIT,LiveIndexRetryIT,LiveSearchSettingsChangeIT,NestedHierarchyIndexIT,NoDuplicatesDuringReindexIT,OwnersNestedMappingIT,PerEntitySearchDefaultsIT,ReindexAliasSwapIT,ReindexDocSurvivalIT,ReindexOutageRecoveryIT,ReindexStatsIT,ReindexStopUnderLoadIT,SearchClusterFitnessReindexE2EIT,SearchCountConsistencyIT,SearchEntityRankingIT,SearchRelevancyPreviewIT,SearchScoringIT,StagedIndexUnrefreshedCountIT,TestCaseStaleDefinitionReindexIT,UnsafeReindexConfigIT -Dfailsafe.failIfNoSpecifiedTests=false -Dtest=NoUnitTestsInThisRun -Dsurefire.failIfNoSpecifiedTests=false
mvn -B verify -pl :openmetadata-integration-tests -am -Dspring-boot.repackage.skip=true -Pcache-tests -DintegrationTests.lane=parallel -Dit.test=AlertStateIT,BundleWarmupCertificationIT,ContainerCacheCorrectnessIT,EntityCacheWriteOrderIT,OneTransactionFlushAtomicityIT,RelationshipCacheInvalidationIT,TagRenameCacheIT,UncachedReadIT -Dfailsafe.failIfNoSpecifiedTests=false -Dtest=NoUnitTestsInThisRun -Dsurefire.failIfNoSpecifiedTests=false
mvn -B verify -pl :openmetadata-integration-tests -am -Dspring-boot.repackage.skip=true -Pcache-tests -DintegrationTests.lane=global-state -Dit.test=SessionRedisMultiNodeIT,TokenRevocationRedisMultiNodeIT -Dfailsafe.failIfNoSpecifiedTests=false -Dtest=NoUnitTestsInThisRun -Dsurefire.failIfNoSpecifiedTests=false
mvn -B verify -pl :openmetadata-integration-tests -am -Dspring-boot.repackage.skip=true -Ppostgres-opensearch -DintegrationTests.lane=parallel '-Dit.test=<144 classes>' -Dfailsafe.failIfNoSpecifiedTests=false -Dtest=NoUnitTestsInThisRun -Dsurefire.failIfNoSpecifiedTests=false
mvn -B verify -pl :openmetadata-integration-tests -am -Dspring-boot.repackage.skip=true -Ppostgres-opensearch -DintegrationTests.lane=global-state -Dit.test=ConversationSchemaMigrationIT,DataContractValidationAppIT,EntityShapeIT,GlossaryOntologyExportIT,MetricMigrationIT,PatchTableEmbeddingIT,SearchIndexRetryQueueIT,TagRecognizerFeedbackIT,TestSuiteReindexIT,UserMetricsResourceIT,VectorEmbeddingIntegrationIT,WorkflowDefinitionResourceIT -Dfailsafe.failIfNoSpecifiedTests=false -Dtest=NoUnitTestsInThisRun -Dsurefire.failIfNoSpecifiedTests=false
mvn -B verify -pl :openmetadata-integration-tests -am -Dspring-boot.repackage.skip=true -Ppostgres-opensearch -DintegrationTests.lane=rdf -Dit.test=RdfGovernanceRulesIT,RdfIndexAppScaleIT,RdfIndexRunRecoveryIT,RdfReindexFailuresIT,RdfReindexInsertOnlyIT,RdfReindexRunLockIT,RdfSemanticSearchIT -Dfailsafe.failIfNoSpecifiedTests=false -Dtest=NoUnitTestsInThisRun -Dsurefire.failIfNoSpecifiedTests=false
mvn -B verify -pl :openmetadata-integration-tests -am -Dspring-boot.repackage.skip=true -Psearch-it -DdatabaseType=postgres -DsearchType=opensearch -Djpw.data.mode=ingest -Dit.test=ColumnIndexingToggleIT,CustomPropertyAggregationIT,DbToEsCountReconciliationIT,ExtensionHighlightSearchIT,FieldNamesAggregationIT,HighlightFieldSaveValidationIT,IndexFieldExplosionIT,IndexMappingTemplatesIT,LiveIndexRetryIT,LiveSearchSettingsChangeIT,NestedHierarchyIndexIT,NoDuplicatesDuringReindexIT,OwnersNestedMappingIT,PerEntitySearchDefaultsIT,ReindexAliasSwapIT,ReindexDocSurvivalIT,ReindexOutageRecoveryIT,ReindexStatsIT,ReindexStopUnderLoadIT,SearchClusterFitnessReindexE2EIT,SearchCountConsistencyIT,SearchEntityRankingIT,SearchRelevancyPreviewIT,SearchScoringIT,StagedIndexUnrefreshedCountIT,TestCaseStaleDefinitionReindexIT,UnsafeReindexConfigIT -Dfailsafe.failIfNoSpecifiedTests=false -Dtest=NoUnitTestsInThisRun -Dsurefire.failIfNoSpecifiedTests=false

Ingestion integration tests

No ingestion behavior changed. Regenerated the Python schema and verified lastContentUpdatedAt imports successfully.

Playwright (UI) tests

No rendered UI change; the TypeScript schema was regenerated and formatted.

Manual testing performed

Live HTTP/SQL regressions exercise writes and retrieval authorization on both database/search combinations. Collate's live reconciliation tests exercise soft-delete preservation and hard-delete expiration against these repository APIs.

UI screen recording / screenshots:

Not applicable: no visual UI change.

Checklist:

  • Linked issue and durable design decisions
  • Schema-derived models regenerated
  • Selected unit and memory/API regressions pass on both engines
  • Formatting and Java ownership checks pass
  • Final-head broader integration CI and required review approval

Every user inherits Data Consumer, and no default role granted Create on
contextMemory, so the agent's upsertMemory and Collate's memory capture
gate were admin-only (ai-platform#1580). The seeded DataConsumerPolicy
gets its own rule, DataConsumerPolicy-CreateContextMemory-Rule, so an
admin can delete just that rule to opt out. The creator owns the memory,
so editing and deleting it still come from the Organization owner rule.

Existing installs get the rule from the 2.1.0 schemaChanges (MySQL and
PostgreSQL), once, and only while Data Consumer still lists
EditDescription: a memory is contributed knowledge like a description,
so an install that made Data Consumer read-only stays that way.

The SPARQL grant migration test becomes DataConsumerPolicyGrantSqlMigrationTest
and covers both Data Consumer grants, including the shipped seed.

ADR:2026-10-09-data-consumers-create-context-memories
…ns it

Search admitted an anchored Entity memory only to its owners, shared
principals and admins, because it cannot evaluate an anchor's policy per
hit (#34647). The agent reads an asset's memories through search as the
user, so institutional knowledge reached only its authors while REST and
/context showed it to every reader of the asset (ai-platform#1580).

A search can now name the anchors it asks about: the primaryEntityId
filter of vector and hybrid search, or term/terms clauses on
primaryEntity.id in a query or post filter (/v1/search/query,
aggregations, the Context Center listing). For a restricted subject each
named anchor is resolved through the memory anchor edge and evaluated once
by the REST rule, at most 20 per query; the memory clause then also admits
Entity and Public memories anchored to a readable one. The ids are only a
hint: a memory is admitted only when its own anchor passed the REST rule.

Free text that pins nothing keeps the conservative rule. Collate's hybrid
search must pass the pinned anchors to its lexical leg; the KNN leg reads
them from the filters it already passes.

ADR:2026-10-09-search-admits-memories-of-pinned-anchors
… is removed

With the Data Consumer rule deleted, the permissions API reports Create on
contextMemory as conditionalAllow, because the Organization owner rule
(All, isOwner()) is conditional, while every create is still refused: a
memory that does not exist yet has no owner. Assert what MemoryCaptureGate
actually evaluates, Create on the bare resource through the authorizer, and
keep the permissions API for the unconditional ALLOW and DENY cases.
A lookup that cannot run, because no memory repository is registered or
the database refuses it, must leave a query owner-only rather than fail
it. Entity-type counts pinned to an anchor must agree with the hits a
reader and a blocked user get, so the aggregation path is held to the
same rule as search.
…nchor lookup

Review of the Data Consumer grant found that letting every user create
memories also lets them decide what a memory does:

- Ownership: Collate injects the private user-global memories a user owns
  into that user's agent prompt as their preferences, and create accepted
  any owners. A writer who is neither an admin nor a bot now owns every
  memory they create, and cannot change the owners of a memory (403).
- References: a created memory echoes the name and domain of what it points
  at, and resolving an id answered 404 for a missing entity. Such a writer
  may now point a memory only at entities and memories they can view, with
  the same 400 for a missing id as for an unviewable one.
- PATCH answers with the whole memory and Data Consumers may edit any
  entity's description and tags, so any memory was readable by patching it.
  PATCH now enforces the memory's visibility first.

Pinned-anchor search: the anchor lookup reads only edges into context
memories through a typed query PostgreSQL can serve from a new partial
index (2.1.0); without it a pinned domain or team scanned an edge per asset
or user. Pins are extracted by ContextMemoryAnchorPins, which also reads
the vector query filter and skips must_not. Both decision records now state
the rules, costs and remaining REST/search differences.

ADR:2026-10-09-data-consumers-create-context-memories
ADR:2026-10-09-search-admits-memories-of-pinned-anchors
@pmbrull
pmbrull requested a review from a team as a code owner October 9, 2026 09:50
Copilot AI balanced review requested due to automatic review settings October 9, 2026 09:50

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 Oct 9, 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 Oct 9, 2026
Copilot AI balanced review requested due to automatic review settings October 10, 2026 05:51

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.

@harshach harshach left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Re-checked at 96c78e4: all six inline items are fixed.

One item has no line to anchor it, so it stays here: Validate PR Metadata still fails. The workflow honors cross-repo Fixes refs only to openmetadata-collate, so Fixes open-metadata/ai-platform#1580 doesn't count as a linked issue. Link an OSS or Collate issue with the Shipping fields set, or have a maintainer add skip-pr-checks.

Reject missing writers and forged file/page extraction sources.
PUT and pin responses must honor current memory visibility even
when a custom role grants EditAll.

Resolve anchor access once before vector paging and keep query
builders free of database and policy lookups.
Copilot AI balanced review requested due to automatic review settings October 10, 2026 17:24

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.

Raw names containing a dot miss their stored quoted FQN and skip
private-memory visibility. Derive the repository FQN before looking
up the existing memory.

The API regression verifies denied EditAll access and permitted
owner/visible-memory updates on MySQL and Postgres.
Copilot AI balanced review requested due to automatic review settings October 10, 2026 17:47

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.

@pmbrull pmbrull changed the title Fixes open-metadata/ai-platform#1580: let Data Consumers create memories and asset readers find them in search Fixes #35191: let Data Consumers create memories and asset readers find them in search Oct 10, 2026
@pmbrull pmbrull mentioned this pull request Oct 10, 2026
5 tasks done
Keep knowledge ordering stable through reviews and pin writes. Preserve concurrent usage in guarded and ordinary metadata updates, and retain unchanged deleted anchors for lifecycle maintenance.
Copilot AI balanced review requested due to automatic review settings October 10, 2026 19: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.

@github-actions

github-actions Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 76%
76.69% (122262/159407) 62.77% (75815/120764) 64.26% (25427/39565)

Bulk hydration erased deleted anchors and made Entity memories look
org-wide. Keep the stored subject in both read paths so anchor
authorization remains fail-closed after hard deletion.
Copilot AI balanced review requested due to automatic review settings October 10, 2026 19:28

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.

lastContentUpdatedAt is projected like every other contextMemory field, so the
ontology must declare it as a stored predicate or RdfOntologyContractTest fails.
Copilot AI balanced review requested due to automatic review settings October 10, 2026 23:11

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.

@gitar-bot

gitar-bot Bot commented Oct 10, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 2 closed / 2 findings

🔴 High risk · Granting Data Consumers memory creation and widening pinned-anchor search visibility could expose private memories or allow unauthorized preference writes if checks fail.

Lets Data Consumers create memories and makes Entity/Public memories findable through search when a reader explicitly pins the asset, with ownership, visibility and provenance enforced on writes. Resolved the PUT visibility guard so it now resolves canonical and dotted FQNs before checking, and extended the deleted-anchor fallback so bulk list reads match single GET visibility. No issues remain open.

✅ 2 closed
✅ Security: PUT visibility guard looks up by raw name, misses quoted FQNs

📄 openmetadata-service/src/main/java/org/openmetadata/service/resources/context/ContextMemoryResource.java:605-611 📄 openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/ContextMemoryRepository.java:498-508
The new PUT guard calls repository.findByNameOrNull(memory.getName(), Include.ALL), but that method takes an FQN, and ContextMemoryRepository#setFullyQualifiedName stores FullyQualifiedName.build(name). build quotes any name with reserved characters such as .. For a memory named a.b, the stored FQN is "a.b". The lookup for a.b hashes the two segments a and b, finds nothing, and skips enforceCurrentVisibility. EntityResource#createOrUpdate then resolves the real FQN, sees the existing memory and updates it. So a user with EditAll can still PUT over another user's Private memory with a dotted name and get the whole memory back. This is the bypass the amendment says is closed, and editAllCannotRevealAnotherUsersPrivateMemoryThroughPutOrPin misses it because its names contain no dots. The fix is to look up by the derived FQN and to add an IT case using a dotted name.

✅ Edge Case: Deleted-anchor fallback applies to GET but not to bulk list

📄 openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/ContextMemoryRepository.java:374-375 📄 openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/ContextMemoryRepository.java:263-269 📄 openmetadata-service/src/main/java/org/openmetadata/service/resources/context/ContextMemoryResource.java:238 📄 openmetadata-service/src/main/java/org/openmetadata/service/resources/context/ContextMemoryResource.java:459
After this commit, getPrimaryEntity falls back to the stored primaryEntity when the anchor edge is gone. The single-entity path (setFields) uses that fallback. The list path does not: setFieldsInBulk → fetchAndSetPrimaryEntities still sets primaryById.get(id), which is null when the edge is missing.

Here is the trigger. Take an Entity memory whose anchor was hard-deleted. GET /contextMemories/{id} now gets the deleted ref, ContextMemoryAnchorAccess.canView fails closed, and the memory is hidden from non-owners. GET /contextMemories gets primaryEntity = null, and filterByVisibility treats an unanchored Entity memory as org-wide, so every user sees it in the list. The two endpoints now disagree on visibility. Maintenance that lists memories also won't see the stored subject that the new ADR says it needs to expire them.

Fix: use the same fallback in fetchAndSetPrimaryEntities. When the batch has no edge for a memory, keep the memory's stored primaryEntity instead of overwriting it with null.

Review coverage

📋 Rules No rules evaluated

🧪 Functional validation Not enabled · Set up

🤖 Auto-approval Not enabled · Set up

Options

Display: compact → Counting what did not apply, without listing it.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@sonarqubecloud

Copy link
Copy Markdown

@sonarqubecloud

Copy link
Copy Markdown

@pmbrull
pmbrull added this pull request to the merge queue Oct 11, 2026
Merged via the queue into main with commit 082f05f Oct 11, 2026
108 of 112 checks passed
@pmbrull
pmbrull deleted the pmbrull/dataconsumer-create-memories branch October 11, 2026 07:22
sahiljadhav7 pushed a commit to sahiljadhav7/OpenMetadata that referenced this pull request Oct 13, 2026
…ent (open-metadata#35297)

The block make java_affected_run ARGS="--update-pr" writes into the PR
description listed every class each step ran, why the plan chose them,
the impacted tests it could not run, and the commands. Typical PRs
carried 4-6k characters of it, 35-63% of the description; on open-metadata#35011 it
took 56,147 of 62,906. 31,830 of those were a bug: a step that --ci-run
covers has no local reports, so every class in its lane was listed as
"selected but produced no report".

- The description gets a summary: the verdict, the step table, up to 10
  failed, report-less or all-skipped names, and counts of the impacted
  tests not run locally and of impact-map gaps.
- The details go to target/java-tests/local-pr-results-details.md.
  --update-pr posts them as one PR comment, marked
  <!-- local-java-test-results:details -->, links it from the summary,
  and edits it on a re-run. Only the current gh user's comment is edited.
- A step a CI run covers no longer reports missing classes.
- The README, the PR template, java-affected-tests and pr-checklist
  describe the split, and
  ADR:2026-10-12-local-java-test-details-go-in-a-pr-comment records it.

This branch was previously deployed

1 inactive deployment
test — d9807087 Deployed Oct 10, 2026 by pmbrull via RDF Playwright execution #28815
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.

Data Consumers can create memories

3 participants