The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore(ai): remove learning workload and memory graph constants
Steven Enamakel15768d1dfbb5
diff --git a/app/src/components/settings/panels/ai/BackgroundLoopControls.tsx b/app/src/components/settings/panels/ai/BackgroundLoopControls.tsxindex 8e7761230d..19e5c0f8e1 100644--- a/app/src/components/settings/panels/ai/BackgroundLoopControls.tsx+++ b/app/src/components/settings/panels/ai/BackgroundLoopControls.tsx@@ -2,7 +2,7 @@* Background loop map + usage diagnostics.** The loop map of the background work that runs without a chat message- * (memory workers, reflection rebuilds, connection sync), plus the+ * (connection sync), plus the* recent-usage ledger + budget math. `view` lets a host panel (UsagePanel) mount just the ledger.*/import debug from 'debug';@@ -25,9 +25,6 @@ import {COMPOSIO_PERIODIC_TICK_MINUTES,describeProvider,formatCount,- LEARNING_REBUILD_MINUTES,- MEMORY_POLL_SECONDS,- MEMORY_WORKERS,spendAmount,summarizeSpendByAction,summarizeSpendByHour,@@ -106,12 +103,9 @@ export const BackgroundLoopControls = ({const latestSpend = spendRows[0] ?? null;const activeConnections = connections.filter(activeConnection);const composioPeriodicTicksPerWeek = Math.ceil(WEEK_MINUTES / COMPOSIO_PERIODIC_TICK_MINUTES);- const learningTicksPerWeek = Math.ceil(WEEK_MINUTES / LEARNING_REBUILD_MINUTES);- const memoryPollsPerWeek = Math.ceil((WEEK_MINUTES * 60 * MEMORY_WORKERS) / MEMORY_POLL_SECONDS);const composioConnectionScansPerWeek = composioPeriodicTicksPerWeek * activeConnections.length;const backgroundApiReadsPerWeek = composioConnectionScansPerWeek;- const backgroundWakeupsPerWeek =- composioPeriodicTicksPerWeek + learningTicksPerWeek + memoryPollsPerWeek;+ const backgroundWakeupsPerWeek = composioPeriodicTicksPerWeek;const scheduledCallsPerRemainingDollar =usage && usage.remainingUsd > 0 ? backgroundApiReadsPerWeek / usage.remainingUsd : null;const estimatedRowsLeft =@@ -136,27 +130,6 @@ export const BackgroundLoopControls = ({: 'n/a';const loops = [- {- name: t('settings.ai.loops.memoryTreeWorkers.name'),- enabled: true,- cadence: t('settings.ai.loops.cadence.queue'),- route: describeProvider(routing.memory, cloudProviders),- work: t('settings.ai.loops.memoryTreeWorkers.work'),- risk: t('settings.ai.loops.memoryTreeWorkers.risk')- .replace('{workers}', String(MEMORY_WORKERS))- .replace('{seconds}', String(MEMORY_POLL_SECONDS)),- },- {- name: t('settings.ai.loops.reflectionRebuild.name'),- enabled: true,- cadence: t('settings.ai.loops.cadence.thirtyMin'),- route: describeProvider(routing.learning, cloudProviders),- work: t('settings.ai.loops.reflectionRebuild.work'),- risk: t('settings.ai.loops.reflectionRebuild.risk').replace(- '{count}',- formatCount(learningTicksPerWeek)- ),- },{name: t('settings.ai.loops.composioSync.name'),enabled: true,@@ -241,7 +214,6 @@ export const BackgroundLoopControls = ({backgroundApiReadsPerWeek={backgroundApiReadsPerWeek}backgroundWakeupsPerWeek={backgroundWakeupsPerWeek}composioConnectionScansPerWeek={composioConnectionScansPerWeek}- memoryPollsPerWeek={memoryPollsPerWeek}estimatedRowsLeft={estimatedRowsLeft}estimatedRowsPerBudget={estimatedRowsPerBudget}projectedExhaustAt={projectedExhaustAt}diff --git a/app/src/components/settings/panels/ai/UsageLedgerSection.tsx b/app/src/components/settings/panels/ai/UsageLedgerSection.tsxindex ef212bcadc..0811396ec2 100644--- a/app/src/components/settings/panels/ai/UsageLedgerSection.tsx+++ b/app/src/components/settings/panels/ai/UsageLedgerSection.tsx@@ -32,7 +32,6 @@ export const UsageLedgerSection = ({backgroundApiReadsPerWeek,backgroundWakeupsPerWeek,composioConnectionScansPerWeek,- memoryPollsPerWeek,estimatedRowsLeft,estimatedRowsPerBudget,projectedExhaustAt,@@ -56,7 +55,6 @@ export const UsageLedgerSection = ({backgroundApiReadsPerWeek: number;backgroundWakeupsPerWeek: number;composioConnectionScansPerWeek: number;- memoryPollsPerWeek: number;estimatedRowsLeft: number | null;estimatedRowsPerBudget: number | null;projectedExhaustAt: string;@@ -127,10 +125,6 @@ export const UsageLedgerSection = ({<MetricTilelabel={t('settings.ai.backgroundWakeups')}value={t('settings.ai.perWeek').replace('{count}', formatCount(backgroundWakeupsPerWeek))}- detail={t('settings.ai.memoryPollsDetail').replace(- '{count}',- formatCount(memoryPollsPerWeek)- )}/></div>{latestSpend && (diff --git a/app/src/components/settings/panels/ai/aiPanelTypes.ts b/app/src/components/settings/panels/ai/aiPanelTypes.tsindex 675e6d662d..a0c1dee821 100644--- a/app/src/components/settings/panels/ai/aiPanelTypes.ts+++ b/app/src/components/settings/panels/ai/aiPanelTypes.ts@@ -43,8 +43,7 @@ export type WorkloadId =| 'agentic'| 'coding'| 'vision'- | 'memory'- | 'learning';+ | 'memory';export type WorkloadGroup = 'chat' | 'background';@@ -122,7 +121,6 @@ export const ROUTING_WORKLOAD_IDS: WorkloadId[] = ['coding','vision','memory',- 'learning',];export const BUILTIN_RESERVED_SLUGS = [@@ -208,12 +206,6 @@ export const WORKLOADS: Workload[] = [labelKey: 'settings.ai.routing.workload.memory.label',descriptionKey: 'settings.ai.routing.workload.memory.description',},- {- id: 'learning',- group: 'background',- labelKey: 'settings.ai.routing.workload.learning.label',- descriptionKey: 'settings.ai.routing.workload.learning.description',- },];// i18n keys for the per-workload "Recommended: …" hints (resolved with `t()`).@@ -224,7 +216,6 @@ export const WORKLOAD_MODEL_HINT_KEYS: Record<WorkloadId, string> = {coding: 'settings.ai.routing.workload.coding.hint',vision: 'settings.ai.routing.workload.vision.hint',memory: 'settings.ai.routing.workload.memory.hint',- learning: 'settings.ai.routing.workload.learning.hint',};export const EMPTY_ROUTING: RoutingMap = {@@ -234,7 +225,6 @@ export const EMPTY_ROUTING: RoutingMap = {coding: { kind: 'default' },vision: { kind: 'default' },memory: { kind: 'default' },- learning: { kind: 'default' },};export const EMPTY_SETTINGS: AISettings = {diff --git a/app/src/components/settings/panels/ai/backgroundLoopPrimitives.tsx b/app/src/components/settings/panels/ai/backgroundLoopPrimitives.tsxindex bc73ae4c6d..0a8c74a495 100644--- a/app/src/components/settings/panels/ai/backgroundLoopPrimitives.tsx+++ b/app/src/components/settings/panels/ai/backgroundLoopPrimitives.tsx@@ -15,9 +15,6 @@ export const USD = new Intl.NumberFormat('en-US', {export const WEEK_MINUTES = 7 * 24 * 60;export const COMPOSIO_PERIODIC_TICK_MINUTES = 20;-export const LEARNING_REBUILD_MINUTES = 30;-export const MEMORY_WORKERS = 4;-export const MEMORY_POLL_SECONDS = 5;export const formatUsd = (value: number): string => {const safe = Number.isFinite(value) ? value : 0;diff --git a/app/src/components/settings/panels/ai/useAISettingsState.ts b/app/src/components/settings/panels/ai/useAISettingsState.tsindex 71d3400eef..1cf5611cc3 100644--- a/app/src/components/settings/panels/ai/useAISettingsState.ts+++ b/app/src/components/settings/panels/ai/useAISettingsState.ts@@ -52,7 +52,6 @@ function toPanelRoutingFromApi(api: ApiAISettings): { panel: AISettings } {coding: liftRef(api.routing.coding),vision: liftRef(api.routing.vision),memory: liftRef(api.routing.memory),- learning: liftRef(api.routing.learning),};return {panel: {@@ -81,7 +80,6 @@ function toApiSettings(panel: AISettings): ApiAISettings {coding: panel.routing.coding,vision: panel.routing.vision,memory: panel.routing.memory,- learning: panel.routing.learning,},modelRegistry: panel.modelRegistry,defaultModel: panel.defaultModel ?? '',diff --git a/app/src/services/api/aiSettingsApi.ts b/app/src/services/api/aiSettingsApi.tsindex a27999ec6a..3284e54082 100644--- a/app/src/services/api/aiSettingsApi.ts+++ b/app/src/services/api/aiSettingsApi.ts@@ -46,11 +46,10 @@ export type WorkloadId =| 'agentic'| 'coding'| 'vision'- | 'memory'- | 'learning';+ | 'memory';export const CHAT_WORKLOADS: WorkloadId[] = ['chat', 'reasoning', 'agentic', 'coding'];-const BACKGROUND_WORKLOADS: WorkloadId[] = ['memory', 'learning'];+const BACKGROUND_WORKLOADS: WorkloadId[] = ['memory'];export const ALL_WORKLOADS: WorkloadId[] = [...CHAT_WORKLOADS, ...BACKGROUND_WORKLOADS];// Workloads that own a `<id>_provider` config field and must round-trip through@@ -312,7 +311,6 @@ export async function loadAISettings(): Promise<AISettings> {coding: parseProviderString(config.coding_provider),vision: parseProviderString(config.vision_provider),memory: parseProviderString(config.memory_provider),- learning: parseProviderString(config.learning_provider),};// Diagnostic: detect partial BYOK routing — some workloads have a BYOK clouddiff --git a/app/src/utils/tauriCommands/config.ts b/app/src/utils/tauriCommands/config.tsindex 39bfa1d2b7..09601f047a 100644--- a/app/src/utils/tauriCommands/config.ts+++ b/app/src/utils/tauriCommands/config.ts@@ -115,7 +115,6 @@ export interface ModelSettingsUpdate {vision_provider?: string | null;memory_provider?: string | null;embeddings_provider?: string | null;- learning_provider?: string | null;}export interface RuntimeSettingsUpdate {@@ -160,7 +159,6 @@ export interface LocalAiSettingsUpdate {model_id?: string | null;chat_model_id?: string | null;usage_embeddings?: boolean | null;- usage_learning_reflection?: boolean | null;}export interface RuntimeFlags {@@ -245,7 +243,6 @@ export interface ClientConfig {vision_provider: string | null;memory_provider: string | null;embeddings_provider: string | null;- learning_provider: string | null;}export async function openhumanGetClientConfig(): Promise<CommandResponse<ClientConfig>> {diff --git a/docs/TEST-COVERAGE-MATRIX.md b/docs/TEST-COVERAGE-MATRIX.mdindex 8b26d41e93..2a77829061 100644--- a/docs/TEST-COVERAGE-MATRIX.md+++ b/docs/TEST-COVERAGE-MATRIX.md@@ -496,7 +496,7 @@ The thread JSONL store moved to `tinyagents_session::threads` (`vendor/tinyagent| ID | Feature | Layer | Test path(s) | Status | Notes || ------- | ------------------------------------------------------------------- | ----- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| 11.1.1 | Multi-Source Analysis | RI | `tests/in_process/memory_sources_e2e.rs`, `tests/in_process/memory_graph_roundtrip_e2e.rs` | ✅ | the graph half of the removed `memory_graph_sync_e2e.rs` (deleted in `cc99ba9c67`) is replaced by `tests/in_process/memory_graph_roundtrip_e2e.rs`: JSON-RPC round trip, namespace isolation, and the unfiltered-superset invariant. **Frontend trigger remains untested and is not writable** — see 11.1.3 |+| 11.1.1 | Multi-Source Analysis | RI | `tests/memory_v2_e2e.rs` (`sources_add_sync_list_and_remove`) | ✅ | Sources sync into the selected memory engine; the memory graph was removed in v2 || 11.1.2 | Actionable Item Extraction | VU | `app/src/components/intelligence/__tests__/utils.test.ts` | ✅ | Was ❌ || 11.1.3 | Analyze Trigger | WD | `app/test/e2e/specs/insights-dashboard.spec.ts` mounts the route; explicit analyze-handler invocation TBD | 🟡 | Route mounts and search/filter UI assert — full analyze trigger flow tracked as follow-up || 11.1.4 | MCP server (stdio + HTTP) | RU | `crates/openhuman-core/src/mcp/server/` | ✅ | Stdio framing plus Streamable HTTP/SSE session lifecycle; `McpHttpClient` round-trip tests |@@ -518,9 +518,7 @@ The thread JSONL store moved to `tinyagents_session::threads` (`vendor/tinyagent| ID | Feature | Layer | Test path(s) | Status | Notes || ------ | --------------------- | ----- | ---------------------------- | ------ | ------------------------------------------ |-| 11.2.1 | Memory View | WD | `insights-dashboard.spec.ts` | ✅ | Was ❌ |-| 11.2.2 | Memory Graph Controls | WD | `insights-dashboard.spec.ts` | ✅ | Brain Graph tab actions toolbar |-| 11.2.3 | Memory Graph Surface | WD | `insights-dashboard.spec.ts` | ✅ | Populated SVG or empty-state graph surface |+| 11.2.1 | Memory View | WD | `app/test/playwright/specs/memory-v2.spec.ts` | ✅ | Connections > Memory chips |------ | --------------------------------------------------------------------- | ----- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |