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.

AgentTask — usage

How to build and validate an agent task tree.

field.key.label
AgentTask — usage
field.version.label
field.type.label
field.title.label
AgentTask — usage
field.description.label

How to build and validate an agent task tree.

field.tags.label
agent,task-tree
field.owners.label
field.stability.label
public

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);