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.

agent.run

Submit a background agent run with a context snapshot.

  • Type: operation (command)
  • Version: 1.0.0
  • Tags: run
  • File: packages/libs/contracts-spec/src/agent/commands/agentRun.command.ts
  • field.key.label
    agent.run
    field.version.label
    1.0.0
    field.type.label
    operation (command)
    field.title.label
    agent.run
    field.description.label

    Submit a background agent run with a context snapshot.

  • Type: operation (command)
  • Version: 1.0.0
  • Tags: run
  • File: packages/libs/contracts-spec/src/agent/commands/agentRun.command.ts
  • field.tags.label
    run
    field.owners.label
    field.stability.label

    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.',
    			},
    		],
    	},
    });