stax
Command reference

stax validate

Validate definitions without producing an artifact

Check agent or package definitions against the current CLI validation rules without producing an artifact.

Usage

stax validate
stax validate .stax/backend/agent.ts
stax validate .stax/shared/package.ts

When run without arguments, stax validate auto-discovers entries only from:

  • .stax/<name>/agent.ts
  • .stax/<name>/package.ts

What gets validated

Validation currently checks:

CheckWhat it catches
Required fieldsMissing name, version, description, adapter
Path existenceReferenced files or directories that don't exist
Path typeFile-vs-directory mismatches for known layer fields
Name / versionInvalid names and semver values
Tag uniquenessDuplicate tag entries
Symlink policyRejected symlinks when symlinkMode is reject
Package referencesEmpty or malformed package reference strings

Example output

Validation passed.
Warnings:
  [OPTIONAL_MISSING_PATH] /repo/.stax/backend/memory: Optional path for "memory" does not exist

On this page