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.cancel

Cancel an in-flight agent run.

  • Type: operation (command)
  • Version: 1.0.0
  • Tags: run, cancel
  • File: packages/libs/contracts-spec/src/agent/commands/agentCancel.command.ts
  • Provide safe operator control to stop background agents.

    field.key.label
    agent.cancel
    field.version.label
    1.0.0
    field.type.label
    operation (command)
    field.title.label
    agent.cancel
    field.description.label

    Cancel an in-flight agent run.

  • Type: operation (command)
  • Version: 1.0.0
  • Tags: run, cancel
  • File: packages/libs/contracts-spec/src/agent/commands/agentCancel.command.ts
  • Provide safe operator control to stop background agents.

    field.tags.label
    run,cancel
    field.owners.label
    field.stability.label

    Cancel an in-flight agent run.

    Goal

    Provide safe operator control to stop background agents.

    Context

    Used when an agent run must be halted or escalated.

    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';
    
    export const AgentCancelCommand = defineCommand({
    	meta: {
    		key: 'agent.cancel',
    		title: 'Cancel Agent Run',
    		version: '1.0.0',
    		description: 'Cancel an in-flight agent run.',
    		goal: 'Provide safe operator control to stop background agents.',
    		context: 'Used when an agent run must be halted or escalated.',
    		domain: AGENT_DOMAIN,
    		owners: AGENT_OWNERS,
    		tags: [...AGENT_TAGS, 'run', 'cancel'],
    		stability: AGENT_STABILITY,
    		docId: [docId('docs.tech.agent.cancel')],
    	},
    	capability: {
    		key: 'agent.execution',
    		version: '1.0.0',
    	},
    	io: {
    		input: AgentCancelInput,
    		output: AgentCancelOutput,
    	},
    	policy: {
    		auth: 'admin',
    		pii: [],
    	},
    });