Validate a Charm agent before running or publishing it.Documentation Index
Fetch the complete documentation index at: https://docs.charmos.io/llms.txt
Use this file to discover all available pages before exploring further.
Usage
What It Checks
Validation catches common project issues, including:- missing
charm.yaml, - invalid manifest schema,
- unsupported adapter type,
- invalid auth provider names,
- missing or invalid entry point,
- absolute paths that will not work in cloud runtimes,
- pricing configuration issues,
- policy configuration issues,
- interface and state schema issues.
When to Run It
Run validation:- after editing
charm.yaml, - before
charm push, - before opening a PR for a template,
- before testing in Docker.
Fixing Errors
Common fixes:- Make sure
charm.yamlis at the project root. - Confirm
runtime.adapter.entry_pointpoints to an importable object. - Use supported lifecycle values:
serverless,interactive, ordaemon. - Declare secrets as environment variables instead of hardcoding them.
- Use relative paths instead of machine-specific absolute paths.
