Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: keep Agent Tools evaluation fixture-only (#7196)
[._.]/ Adam Eivyac010e554210
diff --git a/server/lib/agentContextValidation.js b/server/lib/agentContextValidation.jsindex a4ed597b30..70d5fdc7d4 100644--- a/server/lib/agentContextValidation.js+++ b/server/lib/agentContextValidation.js@@ -120,7 +120,7 @@ export const agentContextNavigationOutputSchema = z.object({export const agentContextProfileOutputSchema = z.object({profile: z.enum(AGENT_CONTEXT_PROFILES),scopes: z.array(z.enum(AGENT_CONTEXT_SCOPES)),- actions: portosSemanticToolGrantsSchema,+ actions: agentContextActionGrantsSchema,limits: z.object({defaultResults: z.number().int().positive(),maxResults: z.number().int().positive(),diff --git a/server/services/agentContextEval.js b/server/services/agentContextEval.jsindex 7f324ee51d..f8718c3835 100644--- a/server/services/agentContextEval.js+++ b/server/services/agentContextEval.js@@ -171,6 +171,7 @@ const createFixtureContract = (fixture, settings) => {rejectIfConfigured(scope);return isolated.sourceStatus?.[scope] ?? 'fresh';},+ readRecipeCatalog: async () => [],});};diff --git a/server/services/agentContextMcp.js b/server/services/agentContextMcp.jsindex 761ba6f544..e393d36b39 100644--- a/server/services/agentContextMcp.js+++ b/server/services/agentContextMcp.js@@ -297,8 +297,8 @@ const successToolResult = (output) => ({structuredContent: output,});-const semanticToolsForConfig = async (config) => {- const recipes = await readCosToolRecipeCatalog({ scope: 'agent' });+const semanticToolsForConfig = async (config, readRecipeCatalog) => {+ const recipes = await readRecipeCatalog({ scope: 'agent' });const catalog = getCosToolCatalog({ scope: 'agent', capabilities: config.actions, recipes });return {...catalog,@@ -306,7 +306,8 @@ const semanticToolsForConfig = async (config) => {};};-const semanticMcpToolsForConfig = async (config) => formatCosToolCatalog(await semanticToolsForConfig(config), 'mcp').tools;+const semanticMcpToolsForConfig = async (config, readRecipeCatalog) =>+ formatCosToolCatalog(await semanticToolsForConfig(config, readRecipeCatalog), 'mcp').tools;export function createAgentContextContract({readSettings = getSettings,@@ -317,6 +318,7 @@ export function createAgentContextContract({getBrainRecords = getBrainProjections,previewIdentityExport = previewLegacyExport,getSourceStatus = async () => 'fresh',+ readRecipeCatalog = readCosToolRecipeCatalog,} = {}) {const sourceLoaders = createSourceLoaders({navigationCommands,@@ -350,7 +352,7 @@ export function createAgentContextContract({actions: config.actions,tools: [...advertiseAgentContextTools(config.scopes),- ...await semanticMcpToolsForConfig(config),+ ...await semanticMcpToolsForConfig(config, readRecipeCatalog),],};};@@ -362,7 +364,7 @@ export function createAgentContextContract({const tool = AGENT_CONTEXT_TOOL_REGISTRY.find((candidate) => candidate.name === name);if (!tool || !TOOL_HANDLERS[name]) {- const semanticTool = (await semanticToolsForConfig(config)).tools.find((candidate) =>+ const semanticTool = (await semanticToolsForConfig(config, readRecipeCatalog)).tools.find((candidate) =>candidate.name === name || candidate.providerName === name || candidate.aliases.includes(name));if (!semanticTool) return errorToolResult(`Unknown or ungranted tool: ${cap(name, 120)}`);return executeCosToolCall({diff --git a/server/test/fixtures/agent-context-eval.json b/server/test/fixtures/agent-context-eval.jsonindex 42f59b8013..a9f90fd19c 100644--- a/server/test/fixtures/agent-context-eval.json+++ b/server/test/fixtures/agent-context-eval.json@@ -89,7 +89,7 @@"advertisedToolsCovered": true,"readOnlyTools": true,"equals": [- { "path": "manifest.schemaVersion", "value": 4 },+ { "path": "manifest.schemaVersion", "value": 5 },{ "path": "manifest.limits.maxApproxTokens", "value": 5000 },{ "path": "manifest.tools.length", "value": 5 }],