refactor: remove KVARK, enterprise packs and the compliance subsystem (P1.4, P1.6)

KVARK is the commercial enterprise product and is not part of the community
edition. The agent's KVARK tools were never wired into the server, so
removing them changes no runtime behaviour beyond the routes listed here.

- agent: delete kvark-tools; CombinedRetrieval and formatCombinedResult now
  merge workspace and personal memory only (no KVARK lane, no source
  conflict note); connector substrate is always 'waggle'
- agent: promote_skill stops at workspace scope; team and enterprise scopes
  answer "not available in this edition" instead of an upgrade prompt
- server: delete src/kvark and GET /api/marketplace/enterprise-packs
- marketplace: delete ENTERPRISE_PACKS
- compliance (EU AI Act dashboard, its templates and the KVARK template
  seeded on every boot): delete core/src/compliance, the /api/compliance/*
  routes, agent compliance-pdf and the Cockpit compliance panel. The
  ai_interactions table lives in the memory substrate and goes with P1.5.
This commit is contained in:
shumeiko.it
2026-10-20 00:27:02 +02:00
parent 10ad678547
commit b734c1d3d2
53 changed files with 56 additions and 6936 deletions

View File

@@ -212,7 +212,7 @@ export function applyPromptArgTemplate(template: readonly string[], prompt: stri
/**
* Per-tool human-readable display name. Centralized so the launcher
* UI, sidecar logs, and KVARK governance reports all agree.
* UI and sidecar logs agree.
*/
export const TOOL_DISPLAY_NAMES = Object.fromEntries(
BUILTIN_TOOL_MANIFESTS.map((m) => [m.id, m.displayName]),

View File

@@ -323,7 +323,7 @@ export interface ConnectorDefinition {
/** What the connector can do */
capabilities: ('read' | 'write' | 'search')[];
/** Which substrate manages this connector */
substrate: 'waggle' | 'kvark';
substrate: 'waggle';
/** Agent tools this connector provides when connected */
tools: string[];
/** Connector-specific config */