Studio — Execution & Artifacts
Purpose
Section titled “Purpose”The execution engine and artifact manager. Where work gets done. Every AI-generated artifact is tracked, attributed, and cryptographically verified. Like the filesystem and application runtime of an OS, Studio manages what gets created, where it lives, and proves it hasn’t been tampered with.
Key interfaces
Section titled “Key interfaces”interface StudioCommandResult { success: boolean; command?: string; output?: string; artifacts?: ArtifactEntry[]; manifest?: ArtifactManifest;}
interface ArtifactEntry { id: string; type: 'output' | 'manifest' | 'template' | 'artifact'; format: string; content: string; hash: string; // SHA-256 provenance: ArtifactProvenance;}
interface WorkflowDefinition { name: string; steps: string[];}import { BaselineStudioSystem } from '@baselineos/studio';
const studio = new BaselineStudioSystem();
// Execute a commandconst result = await studio.executeCommand('generate', { format: 'json' }, {});// { success: true, command: 'generate', manifest: { ... } }
// Register and render templatesstudio.registerTemplate({ id: 'hello', name: 'Hello', format: 'text', template: 'Hello {{user.name}}',});studio.renderTemplate('hello', { user: { name: 'Amani' } });// "Hello Amani"LayerSweep checks
Section titled “LayerSweep checks”The layer sweep runs three checks against Studio:
| Check | What it validates |
|---|---|
| Artifact tracking | SHA-256 provenance hashing is active for all outputs |
| Provenance chain | Artifacts are linked to a task context (task ID present) |
| Output format | Output format is valid and negotiable (JSON, YAML, text, table, CSV, HTML) |
References
Section titled “References”- Specification: 03-studio — artifact system, hash computation, and execution flow
- Package README —
@baselineos/studio