ContractSpec docs
OSS-first docs
These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.
Build a tree
import type { AgentTask } from '@lssm-tech/lib.contracts-spec/agent';
const tasks: AgentTask[] = [
{ id: 'root', label: 'Root task' },
{ id: 'child-a', label: 'Child A', parent: 'root' },
{ id: 'child-b', label: 'Child B', parent: 'root' },
];Validate before running
import { validateAgentTaskTree } from '@lssm-tech/lib.contracts-spec/agent';
const result = validateAgentTaskTree(tasks);
if (!result.valid) throw new Error(result.error);