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.

platform.agent

Run, cancel, and approve AI agent executions with full audit trail

  • Type: feature
  • Version: 1.0.0
  • Tags: agent, execution
  • File: packages/libs/contracts-spec/src/agent/agent.feature.ts
  • field.key.label
    platform.agent
    field.version.label
    1.0.0
    field.type.label
    feature
    field.title.label
    platform.agent
    field.description.label

    Run, cancel, and approve AI agent executions with full audit trail

  • Type: feature
  • Version: 1.0.0
  • Tags: agent, execution
  • File: packages/libs/contracts-spec/src/agent/agent.feature.ts
  • field.tags.label
    agent,execution
    field.owners.label
    field.stability.label

    Run, cancel, and approve AI agent executions with full audit trail

    Operations (5)

    `agent.run` (v1.0.0)

    `agent.cancel` (v1.0.0)

    `agent.approvals` (v1.0.0)

    `agent.status` (v1.0.0)

    `agent.artifacts` (v1.0.0)

    Events (4)

    `agent.run.started` (v1.0.0)

    `agent.run.completed` (v1.0.0)

    `agent.run.failed` (v1.0.0)

    `agent.approval.requested` (v1.0.0)

    Presentations (1)

    `agent.run.audit` (v1.0.0)

    Source Definition

    import type { DocBlock } from '../docs/types';
    import { defineFeature } from '../features';
    import {
    	AGENT_DOMAIN,
    	AGENT_OWNERS,
    	AGENT_STABILITY,
    	AGENT_TAGS,
    } from './constants';
    
    export const AgentExecutionDocBlock = {
    	id: 'docs.tech.agent.execution',
    	title: 'Agent execution',
    	summary: 'Background agent execution, approvals, and artifacts.',
    	kind: 'reference',
    	visibility: 'public',
    	route: '/docs/tech/agent/execution',
    	tags: ['agent', 'execution'],
    	body: `# Agent execution
    
    Defines the core operations, events, and UI surfaces for background agent runs with auditability and approvals.
    `,
    } satisfies DocBlock;
    
    export const AgentFeature = defineFeature({
    	meta: {
    		key: 'platform.agent',
    		version: '1.0.0',
    		title: 'Agent Execution',
    		description:
    			'Run, cancel, and approve AI agent executions with full audit trail',
    		domain: AGENT_DOMAIN,
    		owners: AGENT_OWNERS,
    		tags: [...AGENT_TAGS],
    		stability: AGENT_STABILITY,
    	},
    
    	operations: [
    		{ key: 'agent.run', version: '1.0.0' },
    		{ key: 'agent.cancel', version: '1.0.0' },
    		{ key: 'agent.approvals', version: '1.0.0' },
    		{ key: 'agent.status', version: '1.0.0' },
    		{ key: 'agent.artifacts', version: '1.0.0' },
    	],
    
    	events: [
    		{ key: 'agent.run.started', version: '1.0.0' },
    		{ key: 'agent.run.completed', version: '1.0.0' },
    		{ key: 'agent.run.failed', version: '1.0.0' },
    		{ key: 'agent.approval.requested', version: '1.0.0' },
    	],
    
    	presentations: [{ key: 'agent.run.audit', version: '1.0.0' }],
    
    	capabilities: {
    		provides: [{ key: 'agent.execution', version: '1.0.0' }],
    	},
    
    	dataViews: [{ key: 'agent.run.index', version: '1.0.0' }],
    
    	forms: [{ key: 'agent.run.form', version: '1.0.0' }],
    });