You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add source field to knowledge insights, unify connections tool (#113)
* feat: add source field to knowledge insights for agent-discovered knowledge
Add a source field to capture_insight that distinguishes user-provided
insights from agent-discovered ones. Three source values: user (default),
agent_discovery (agent figured it out via data exploration), and
enrichment_gap (metadata gap flagged for admin attention).
- Migration 000010: add source column with DEFAULT 'user' for backward compat
- Types: source constants, ValidateSource, NormalizeSource
- Store: INSERT/SELECT/filter support for source field
- Toolkit: input schema, validation, tool description updated
- Prompt: expanded agent guidance for self-capture and when to ask users
- Docs: overview, admin-api, governance, llms.txt, llms-full.txt updated
- Swagger: regenerated for new Insight.Source field
* test: fix patch coverage for PR #113
Add targeted tests covering previously-uncovered code paths:
- datahub/toolkit: RegisterTools with non-nil inner toolkit
- trino/toolkit: RegisterTools with non-nil inner toolkit
- platform/connections_tool: invoke tool through MCP transport
- platform/lifecycle: rollback with nil stop callback
- knowledge/toolkit: MarkApplied error path in apply handler
- oauth/postgres: cleanup goroutine error handling
- oauth/server: cleanup routine error handling
Patch coverage: 92.4% (134/145 changed lines)
Copy file name to clipboardExpand all lines: docs/llms.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@
53
53
54
54
## Knowledge Capture
55
55
56
-
- [Overview](knowledge/overview.md): Tribal knowledge capture for data catalogs. capture_insight records domain knowledge during AI sessions; apply_knowledge provides admin review, synthesis, and DataHub write-back with changeset tracking and rollback. Insight categories, lifecycle states, governance workflow, configuration, persona integration, AI agent guidance prompt
56
+
- [Overview](knowledge/overview.md): Tribal knowledge capture for data catalogs. capture_insight records domain knowledge during AI sessions; apply_knowledge provides admin review, synthesis, and DataHub write-back with changeset tracking and rollback. Insight categories, lifecycle states, insight sources (user, agent_discovery, enrichment_gap), governance workflow, configuration, persona integration, AI agent guidance prompt for both user-provided and agent-discovered insights
57
57
- [Governance Workflow](knowledge/governance.md): Active metadata management through human-in-the-loop curation. Bulk review, per-entity review, approve/reject actions, synthesize change proposals, apply changes to DataHub, changeset tracking, rollback. Complete end-to-end workflow example
58
58
- [Admin API](knowledge/admin-api.md): REST endpoints for managing insights and changesets. List/filter/get/update insights, approve/reject status transitions, insight statistics. List/get changesets, rollback. Authentication, error responses, database schema reference
0 commit comments