Keep harness tools within registration limit
Rolling release / release (push) Successful in 12m20s

This commit is contained in:
2026-09-11 18:05:41 -04:00
parent 28150185dc
commit 354e25995a
3 changed files with 39 additions and 3 deletions
+7 -1
View File
@@ -1,6 +1,6 @@
import test from 'node:test';
import assert from 'node:assert/strict';
import { createPhase9Tools, PHASE9_SPECS } from '../skills/phase9-tools.js';
import { createPhase9GatewayTool, createPhase9Tools, PHASE9_SPECS } from '../skills/phase9-tools.js';
import { SKILLS } from '../skills/catalog.js';
test('Phase 9 exposes the complete local QVAC capability surface', () => {
@@ -13,3 +13,9 @@ test('Phase 9 exposes the complete local QVAC capability surface', () => {
assert.ok(SKILLS.some(([id]) => id === 'model-registry'));
for (const tool of tools) assert.ok(tool.parameters?.type === 'object', tool.name);
});
test('Phase 9 gateway keeps the complete capability surface within harness custom-tool limits', () => {
const [gateway] = createPhase9GatewayTool();
assert.ok(gateway.parameters.properties.operation.enum.length >= PHASE9_SPECS.length);
assert.ok(gateway.parameters.properties.operation.enum.includes('p2p_status'));
});