Template manifest schema
A template manifest describes one reusable graph package in the bundled catalogue. The scaffolding CLI uses it to list a template, check its files and locate the graph copied into your application’s project. A declaration of a supported format therefore refers to a file in that package.
The schema is resources/schemas/execkernel_template_manifest_schema.json. The catalogue loader adds identity, layout and graph checks to the schema’s field restrictions. Graph templates and scaffolding explains selection and export as a workflow.
Manifest fields
Section titled “Manifest fields”The root must be a JSON object with exactly these six required properties. Additional properties are rejected.
| Property | Type | Accepted value |
|---|---|---|
templateCode |
string | {family}_{use_case}_{version}; for example, wizard_onboarding_v1. The use case contains lowercase letters and digits, with underscore-separated segments. |
version |
string | v followed by one, two or three numeric components: v1, v1.2 or v1.2.3. |
family |
string | wizard, decision_tree, eligibility or funnel. |
status |
string | pending or published. |
supportedFormats |
array of strings | A nonempty array of unique values from json, dsl and mermaid. The catalogue loader additionally requires json. |
description |
string | Nonempty functional description. The catalogue loader rejects blank or invalid UTF-8 strings. |
templateCode must contain the same family and version as the other fields. Numeric version components must be nonnegative integers representable by PHP, without leading zeros except 0. Prerelease suffixes and build metadata are not part of this template version syntax.
All required string fields must be nonblank UTF-8. Duplicate JSON object keys are rejected when the catalogue is loaded.
A published manifest
Section titled “A published manifest”This is the bundled onboarding wizard’s manifest. Its description is catalogue data and remains in its source language:
{ "templateCode": "wizard_onboarding_v1", "version": "v1", "family": "wizard", "status": "published", "supportedFormats": ["json"], "description": "Wizard básico de onboarding con paso inicial y resultado final."}The identity selects wizard/wizard_onboarding_v1/v1. published permits export after catalogue validation. ["json"] says that the package has a JSON graph; it does not request conversion from another representation.
Download the manifest and the schema. A generic schema validator checks the schema properties; the CLI catalogue check also verifies the package relationships below.
Package layout and format paths
Section titled “Package layout and format paths”The catalogue root is resources/templates in the core package. Each version has the following literal file layout:
resources/templates/ wizard/ wizard_onboarding_v1/ v1/ json/graph.json meta/manifest.json meta/README.md| Declared format | Required source file | Exported graph filename |
|---|---|---|
json |
json/graph.json |
graph.json |
dsl |
dsl/graph.dsl |
graph.dsl |
mermaid |
mermaid/graph.mmd |
graph.mmd |
meta/manifest.json must be located under the exact family, code and version declared in its contents. meta/README.md and every declared graph resource must be readable, nonempty regular files. Catalogue symlinks are rejected, including a linked root or entries beneath it. Each version directory must contain its manifest, and a code/version pair must be unique.
The JSON graph must declare the template’s graph code. If several accepted graph-code aliases are present, they must all agree. For a published template, JSON and DSL resources are also loaded with strict graph validation and must resolve to that code. A Mermaid resource is checked as an existing nonempty file; this catalogue step does not parse it as an executable graph.
pending allows a draft graph, while still requiring a coherent identity and physical package. It does not permit missing files or an incorrect JSON graph code.
Validation and export behavior
Section titled “Validation and export behavior”From a core source checkout with its Composer dependencies installed:
php bin/execkernel scaffold list --status=published --jsonThe command loads and validates the bundled catalogue before filtering its results. A malformed entry elsewhere in that catalogue can therefore fail the command even when a family or status filter would exclude it. There is no separate CLI argument here for an arbitrary external catalogue root.
For the manifest above, this command copies the selected graph and its README:
php bin/execkernel scaffold export \ --template=wizard_onboarding_v1 \ --version=v1 \ --format=json \ --output=./exported-onboardingThe output contains graph.json and README.md. Export copies their bytes; it does not substitute parameters, rewrite graph identity, generate another format or copy the manifest. The target files must not already exist. Scaffold output paths reject parent traversal, stream URLs and symlink traversal.
A template must be published, and the requested format must appear in its supportedFormats. The current catalogue contains eight published templates across the four families, all with JSON only. The schema’s DSL and Mermaid options describe formats a package may provide; they do not establish that the current packages contain those resources.
Malformed manifests, mismatched identities/layouts, unavailable declared files, pending export and unsupported template formats raise graph validation failures, commonly EK-VALID-001. General output I/O failures use the CLI’s failure handling. See CLI commands, options and exit codes for machine-readable envelopes and exit statuses.