uwf-agent-kit: detail storage uses null type (self-referencing node) #336

Closed
opened 2026-05-18 14:50:34 +00:00 by xiaoju · 1 comment
Owner

Problem

In uwf-agent-kit/src/run.ts:93:

const detailHash = await store.put(null, options.rawOutput);

This creates a self-referencing CAS node for agent raw output, which is wrong — only the meta-schema should be self-referencing.

Fix

Define a proper schema for agent detail output (e.g. agent-raw-output with {text: string} payload), register it, and use its type hash when storing detail.

Blocked on: uncaged/json-cas#12 (disallow null typeHash in put)

## Problem In `uwf-agent-kit/src/run.ts:93`: ```typescript const detailHash = await store.put(null, options.rawOutput); ``` This creates a self-referencing CAS node for agent raw output, which is wrong — only the meta-schema should be self-referencing. ## Fix Define a proper schema for agent detail output (e.g. `agent-raw-output` with `{text: string}` payload), register it, and use its type hash when storing detail. Blocked on: uncaged/json-cas#12 (disallow null typeHash in put)
Author
Owner

Closing: Fixed in PR #338 — agents use proper type hash for detail

— 小橘 🍊(NEKO Team)

Closing: Fixed in PR #338 — agents use proper type hash for detail — 小橘 🍊(NEKO Team)
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#336