Skip to content

Commit cf6bf09

Browse files
committed
test(runtime): object-action fixtures name what ActionSchema requires
The registry now stores an object's own actions as their ActionSchema parse, so the reader-seam pin's host-handler script actions name their target and the MCP discovery fixture's AI-exposed ping carries a 40-character description. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012FM5zuP45LkwYGZfazCj5z
1 parent 3867ab7 commit cf6bf09

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

‎packages/runtime/src/domains/mcp-package-object-discovery.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,8 @@ function actionPackageOf(prefix: string) {
594594
const base: any = pkg.artifact();
595595
base.objects[0].actions = [
596596
update('mark_done', true),
597-
{ name: 'ping', label: 'Ping', type: 'script', target: 'qa_ping', ai: { exposed: true, description: 'Ping' } },
597+
// [#25744] An object's own action is stored as its `ActionSchema` parse too.
598+
{ name: 'ping', label: 'Ping', type: 'script', target: 'qa_ping', ai: { exposed: true, description: 'Ping: answers pong, for the MCP discovery test' } },
598599
update('hidden_done', false),
599600
];
600601
base.objects[1].actions = [update('gated_done', true)];

‎packages/runtime/src/stored-metadata-reader-contexts.pin.test.ts‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,12 @@ const PIN_APP: any = {
162162
),
163163
},
164164
// ② / ③ declared here; their handlers are code registered by PIN_HANDLER_PLUGIN.
165-
{ name: 'handler_engine_reads_family', label: 'Handler engine read', type: 'script' },
166-
{ name: 'handler_engine_reads_history', label: 'Handler engine history read', type: 'script' },
167-
{ name: 'handler_api_reads_family', label: 'Handler api read', type: 'script' },
165+
// [#25744] An object's own action is stored as its `ActionSchema` parse
166+
// too, so each names its handler (`target`), as a body-less `script`
167+
// action must; dispatch is by handler key, so the pins' subject is unchanged.
168+
{ name: 'handler_engine_reads_family', label: 'Handler engine read', type: 'script', target: 'handler_engine_reads_family' },
169+
{ name: 'handler_engine_reads_history', label: 'Handler engine history read', type: 'script', target: 'handler_engine_reads_history' },
170+
{ name: 'handler_api_reads_family', label: 'Handler api read', type: 'script', target: 'handler_api_reads_family' },
168171
// EVALUATE shapes — each body attempts to evaluate the stored body or
169172
// hash. [#21594] A body's read is refused whatever it carries, so each
170173
// answers the body boundary's refusal, the same as a plain read. The
@@ -222,7 +225,7 @@ const PIN_APP: any = {
222225
},
223226
// ② the engine handle's evaluate shape — a handler whose ctx.engine.find
224227
// filters the body column is refused the same way.
225-
{ name: 'handler_engine_filters_body', label: 'Handler engine filters body', type: 'script' },
228+
{ name: 'handler_engine_filters_body', label: 'Handler engine filters body', type: 'script', target: 'handler_engine_filters_body' },
226229
// [#21594] subject-record control: an ordinary row is handed to a body as before.
227230
{ name: 'note_reads_record', label: 'Body reads its subject record', type: 'script', body: actionBody(RETURN_RECORD) },
228231
],

0 commit comments

Comments
 (0)