Python DSL reference
.service-architect/project.yamlProject manifest
Declare the trusted Python entrypoint, canonical YAML output, and generation targets in one discoverable project contract.
When to use
Add a manifest to every Python-authored repository used by CLI, Codex, MCP, or CI.
Behavior
inspectreads the manifest without importing or executing project Python.validateandexportexecute the Python entrypoint in a child process with a 30-second default timeout.exportwrites through a temporary file and atomically replaces the configured canonical output.- Paths are relative to the workspace root and use forward slashes.
Manifest fields properties
Version 1 project contract.
PropertyTypeDescription
project.namestringHuman-readable project identity.
authoring.modepythonSelect typed Python as editable authoring source.
authoring.entrypointmodule:attributeImportable Project object or callable.
canonical.outputrelative YAML pathGenerated interchange artifact.
generation.targetslistRequested target runtimes such as go, cpp, python, rust, and typescript.
.service-architect/project.yaml
version: 1
project:
name: ProcessOrder
authoring:
mode: python
entrypoint: processorder.main:project
canonical:
output: .service-architect/build/processorder.yaml
generation:
targets:
- go
- python
- rust