feat: Merkle node format + content → CAS #45
Reference in New Issue
Block a user
Delete Branch "feat/41-merkle-content-cas"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Merkle node format (
{ type, payload, children }YAML) + content stored in global CAS.Changes
merkle.ts— MerkleNode type, serialize/parse, helperstypes.ts— RoleOutput.content → contentHashengine.ts— store content as Merkle node in CAScreate-workflow.ts— putContentMerkleNode before yieldfork-thread.ts— contentHash formatbuild-agent-prompt.ts— async, reads from CASRef
Fixes #41, Refs #40
- MerkleNode type: { type, payload, children } serialized as YAML - RoleOutput.content → contentHash (CAS hash of Merkle content node) - Engine stores content in global CAS before writing to .data.jsonl - create-workflow puts content as Merkle node, merges contentHash into refs - fork/parse adapted for contentHash format - buildAgentPrompt now async, reads content from CAS - Bundle validator allows @uncaged/workflow import - 150 tests passing BREAKING: .data.jsonl no longer contains inline content Fixes #41