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.
Submit a background agent run with a context snapshot.
Goal
Start an auditable agent execution with full provenance.
Context
Used by Studio and API clients to launch background agent workflows.
Source Definition
import { ScalarTypeEnum, SchemaModel } from '@lssm-tech/lib.schema';
import { docId } from '../../docs/registry';
import type { DocBlock } from '../../docs/types';
import { defineCommand } from '../../operations';
import {
AGENT_DOMAIN,
AGENT_OWNERS,
AGENT_STABILITY,
AGENT_TAGS,
} from '../constants';
import { AgentRunStartedEvent } from '../events/agentRunStarted.event';
export const AgentRunCommand = defineCommand({
meta: {
key: 'agent.run',
title: 'Run Agent',
version: '1.0.0',
description: 'Submit a background agent run with a context snapshot.',
goal: 'Start an auditable agent execution with full provenance.',
context:
'Used by Studio and API clients to launch background agent workflows.',
domain: AGENT_DOMAIN,
owners: AGENT_OWNERS,
tags: [...AGENT_TAGS, 'run'],
stability: AGENT_STABILITY,
docId: [docId('docs.tech.agent.run')],
},
capability: {
key: 'agent.execution',
version: '1.0.0',
},
io: {
input: AgentRunInput,
output: AgentRunOutput,
},
policy: {
auth: 'user',
pii: ['prompt'],
},
sideEffects: {
emits: [
{
ref: AgentRunStartedEvent.meta,
when: 'A new agent run is created and queued.',
},
],
},
});