Diagnostics
Diagnostics describe errors and warnings from initialization, validation, builds, evaluation, and materialization. This reference defines their fields and terminal format. Troubleshooting organizes recovery procedures by symptom.
Each diagnostic has a severity, stable code, and message. It may also carry a source reference, a JSON Pointer, a one-based source location, a resource reference chain, an expected contract, a recovery action, and a normalized cause:
error [invalid-resolved-input]: binding input is invalidat: atlante.jsonc:12:7 /agents/reviewer/missionexpected: a string accepted by the selected templatenext: update the field or select a compatible templateThe terminal formatter emits these lines in order, omitting optional fields when they are unavailable:
- Severity, stable code, and failure statement on one line.
at:source, location, and JSON Pointer.expected:required contract.next:recovery action.cause:normalized low-level cause.
CLI diagnostics are written to stderr. Color can be disabled with
NO_COLOR=1; see CLI output.
Diagnostic sources may be project-relative paths, package-qualified resource
identities, or absolute filesystem paths. Materialization diagnostics can
include absolute paths in both source and the message. See
CLI path behavior for paths in success messages.
Diagnostic fields
Section titled “Diagnostic fields”| Field | Meaning |
|---|---|
severity | error or warning |
code | Stable machine-readable diagnostic code |
message | Human-readable failure statement |
source | Source identity or filesystem path, which may be absolute |
path | Primary JSON Pointer into document data, when applicable |
pointer | Explicit JSON Pointer alias used by source and resource diagnostics |
location | One-based { line, column }, when available |
chain | Preset, instance, or template traversal that caused a resource failure |
expected | Expected contract or runtime condition |
next | Deterministic recovery action |
cause | Normalized low-level cause |
Only severity, code, and message are required. The resource traversal
chain is structured metadata; the terminal formatter does not print it as
a separate line. When both path and pointer are present, the formatter uses
path.
Common codes
Section titled “Common codes”This table lists common codes and is not exhaustive. Validation, resource, watch, and publication failures can produce additional stable codes.
| Code | Meaning |
|---|---|
config-not-found | Neither supported configuration filename was found |
ambiguous-config | Both atlante.jsonc and atlante.json were found |
missing-target | A selected preset, template, or instance target is missing |
package-not-declared | A package locator lacks an admitted declaration: project references use dependencies, optionalDependencies, or devDependencies; pack-to-pack references use runtime dependencies |
package-not-installed | A declared package cannot be found in the installation |
invalid-json | A configuration or scenario document is malformed JSON or JSONC |
markdown-parse-failed | The Markdown source could not be parsed |
invalid-frontmatter | Markdown frontmatter is malformed YAML or not a YAML mapping |
invalid-frontmatter-value | A mapped frontmatter value is not a string |
unknown-frontmatter-key | Frontmatter contains a key without an explicit importer mapping |
missing-metadata | Required agent or skill frontmatter is absent or empty |
unsupported-markdown | Markdown uses HTML, footnotes, or an unsupported node |
unresolved-reference | A Markdown link or image reference has no definition |
invalid-import-name | The generated ID is empty or longer than 64 characters |
import-target-exists | The import output directory exists but is not an Atlante local pack |
import-binding-exists | The generated ID already exists in the target pack as a resource or binding; pass --name |
import-validation-failed | The first-party input schema could not be loaded |
input-not-found | The Markdown input file does not exist |
input-unreadable | The Markdown input file could not be read |
import-write-failed | The generated local pack could not be published |
invalid-prompt-input | Imported AST or metadata fails a loaded template input schema |
malformed-jsonc | A selected resource or local-pack preset JSONC file is malformed |
invalid-resolved-input | Resolved document or template-owned input is invalid |
conflicting-selectors | A source uses $template and $instance together |
build-failed | The CLI caught an unexpected exception from the build operation; ordinary failures retain their specific code |
unsupported-host | The document declares a host with no registered materializer |
materialization-* | A host materialization failure; see Materialization for the code list |
eval-pack-host-incompatible | An included pack suite declares a host that differs from the project eval.host |
watch-build-failed | The watch wrapper’s build function threw unexpectedly; ordinary failed rebuilds retain their underlying code |
watch-inputs-failed | Watch mode caught an exception while resolving or reconciling watched inputs |
Validation and build warnings appear before a success line. Errors produce
exit status 1 for one-shot validation and build commands, without a success
line. Watch-mode errors keep the process active and are retried after changes.
Evaluation uses separate exit statuses
for failed trials, validation failures, and infrastructure failures.
JSON Pointers and locations
Section titled “JSON Pointers and locations”When an issue belongs to document data, at: may include an RFC 6901 JSON
Pointer such as /agents/reviewer/mission. Use the pointer to locate the
invalid field. A location, when present, uses one-based line and column numbers.
For resource failures, the structured diagnostic can include the selected
source and a resource-traversal chain. Each chain entry identifies a preset,
instance, or template by its kind, locator, and source.
Next steps
Section titled “Next steps”- CLI documents the commands that emit diagnostics.
- Materialization lists output-specific failure codes.
- Troubleshooting organizes recovery paths by symptom.
- Eval documents scenario validation and exit statuses.