Repository navigation
Fixes #29826: add configurable persona AI context - #29948
Conversation
✅ TypeScript Types Auto-UpdatedThe generated TypeScript types have been automatically updated based on JSON schema changes in this PR. |
Code Review ✅ Approved 3 resolved / 3 findingsImplements configurable Persona AI context with admin CRUD, deterministic materialization, and MCP retrieval, resolving earlier build timeout and validation issues. Comprehensive testing across backend and UI confirms stable performance. ✅ 3 resolved✅ Performance: findRule() does O(n²) deep-Map equals during materialization
✅ Bug: getAiContextDocument validates 'format' but never uses it
✅ Edge Case: Waiter timeout (15s) far shorter than build lease (120s) throws 500
OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
|
|
Code Review ✅ Approved 3 resolved / 3 findingsAdds configurable Persona AI context with rules, caching, and an admin UI, successfully resolving earlier findings regarding materialization efficiency, format validation, and waiter timeouts. ✅ 3 resolved✅ Performance: findRule() does O(n²) deep-Map equals during materialization
✅ Bug: getAiContextDocument validates 'format' but never uses it
✅ Edge Case: Waiter timeout (15s) far shorter than build lease (120s) throws 500
OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |



Describe your changes:
Fixes #29826
Adds configurable Persona AI context rules, deterministic cached materialization, MCP retrieval, and an admin UI matching the supplied design so agents can consume role-specific asset and knowledge context.
Type of change:
High-level design:
contextDefinition; no relational schema migration is required because Persona JSON is already persisted in the existing entity column.entityType:FQN, a global character budget, full/compact/manifest rendering, and one shared-knowledge appendix.get_persona_contextMCP tool for paged retrieval.Tests:
Use cases covered
Unit tests
PersonaContextBuilder, repository validation, cache, markdown, and MCP tool).Backend integration tests
openmetadata-integration-teststest was added; the endpoints and materialized output were exercised against the local Docker stack with real PostgreSQL/OpenSearch sample data.Ingestion integration tests
Playwright (UI) tests
playwright/e2e/Features/PersonaAIContext.spec.ts.Manual testing performed
entityType:FQNkeys, and cached reads preserved the samegeneratedAtvalue.UI screen recording / screenshots:
Not attached in this draft; the UI was validated locally against the supplied standalone design and reference screenshots.
Checklist:
Fixes <issue-number>: <short explanation>.Fixes #<issue-number>above.Greptile Summary
This PR adds configurable Persona AI context for agents. The main changes are:
Confidence Score: 5/5
This looks safe to merge.
falsevalue when toggled off.Important Files Changed
Reviews (8): Last reviewed commit: "Fix persona Playwright CI failures" | Re-trigger Greptile
Context used (3)