Repository navigation
Generate atmos.yaml JSON Schema from code; add atmos config schema - #2761
Conversation
…nfig schema Add pkg/config/schema (package configschema): reflects schema.AtmosConfiguration into a draft 2020-12 JSON Schema via go:generate, with Go doc comments becoming descriptions, runtime-only fields excluded, YAML function (!include, !env, ...), null, and scalar-string-list alternatives injected, and polymorphic sections (schemas, steps, durations, when conditions) modeled per their custom unmarshalers. The committed artifact is embedded and served at atmos://schema/atmos/config/1.0, guarded by a drift test plus classification ratchets and an examples/ corpus test. Add `atmos config schema [output-path]` mirroring `atmos stack schema`, and seed a built-in `config` schemas entry so `atmos validate schema` validates atmos.yaml, atmos.d fragments, and project-local profiles out of the box (replacing the misdefault that validated atmos.yaml against the stack-manifest schema). Publish floating and per-release pinned schema copies from the website workflows, and add the command docs, schemas reference section, changelog post, and roadmap milestone. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Tip Atmos Pro
No affected stacks workflow was detected for this pull request. |
Dependency ReviewThe following issues were found:
License Issuesgo.mod
Scanned Files
|
|
Warning This PR exceeds the recommended limit of 10,000 lines.Large PRs are difficult to review and may be rejected due to their size. Please verify that this PR does not address multiple issues. |
|
Important Cloud Posse Engineering Team Review RequiredThis pull request modifies files that require Cloud Posse's review. Please be patient, and a core maintainer will review your changes. To expedite this process, reach out to us on Slack in the |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughAdds generated JSON Schema support for ChangesValidation platform
Estimated code review effort: 5 (Critical) | ~120 minutes Sequence Diagram(s)sequenceDiagram
participant Developer
participant AtmosCLI
participant EmbeddedSchema
participant YAMLValidator
participant LSP
participant Actionlint
Developer->>AtmosCLI: Run config schema or validation command
AtmosCLI->>EmbeddedSchema: Fetch generated schema
EmbeddedSchema-->>AtmosCLI: Return schema bytes
AtmosCLI->>YAMLValidator: Validate configuration files
YAMLValidator-->>AtmosCLI: Return diagnostics
AtmosCLI-->>Developer: Print text, rich, or SARIF results
LSP->>YAMLValidator: Validate edited config document
YAMLValidator-->>LSP: Return positioned diagnostics
AtmosCLI->>Actionlint: Validate workflow files
Actionlint-->>AtmosCLI: Return workflow diagnostics
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
🧹 Nitpick comments (3)
pkg/config/schema/generator/main.go (1)
19-24: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valuePrefer
uihelpers over directfmt.Fprintlnto stderr.As per coding guidelines, standard UI messages and errors should use
ui.*helpers instead of printing directly toos.Stderr. Since this is a standalonego:generatebinary rather than the main Atmos CLI, avoiding the heavy initialization of theuipackage may be an acceptable exception. However, please consider it to maintain consistency.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pkg/config/schema/generator/main.go` around lines 19 - 24, Update main to use the established ui helper for reporting run errors instead of calling fmt.Fprintln directly on os.Stderr, while preserving the existing nonzero exit behavior. If ui initialization is inappropriate for this standalone generator, retain the current stderr approach as the documented exception.Source: Coding guidelines
pkg/config/schema/schema.go (2)
48-50: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueDefine static errors centrally.
As per coding guidelines, consider defining static errors in
errors/errors.gorather than directly usingerrors.Newwithin specific packages. While this is an internal generator package, keeping error declarations centralized ensures consistency across the codebase.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pkg/config/schema/schema.go` around lines 48 - 50, Move the static ErrRepoRootNotFound declaration from the schema package into the shared errors/errors.go location, preserving its exported name and message; update schema package references to use the centralized error symbol instead of calling errors.New locally.Source: Coding guidelines
60-62: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueWrap returned errors with context.
As per coding guidelines, Go's error handling idioms require wrapping errors with context using
fmt.Errorf("...: %w", err)rather than returning them raw.
pkg/config/schema/schema.go#L60-L62: wrap the error fromRepoRoot().pkg/config/schema/schema.go#L80-L82: wrap the error fromaddGoComments().pkg/config/schema/schema.go#L88-L90: wrap the error fromjson.MarshalIndent().pkg/config/schema/schema.go#L113-L115: wrap the error fromos.Getwd().pkg/config/schema/schema.go#L116-L118: wrap the error fromos.Chdir().pkg/config/schema/schema.go#L122-L122: wrap the error fromr.AddGoComments().pkg/config/schema/generator/main.go#L28-L30: wrap the error fromconfigschema.Generate().pkg/config/schema/generator/main.go#L32-L34: wrap the error fromconfigschema.RepoRoot().pkg/config/schema/generator/main.go#L36-L38: wrap the error fromos.MkdirAll().pkg/config/schema/generator/main.go#L39-L41: wrap the error fromos.WriteFile().🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pkg/config/schema/schema.go` around lines 60 - 62, Wrap each raw error with contextual fmt.Errorf messages while preserving %w propagation: in pkg/config/schema/schema.go at 60-62 (RepoRoot), 80-82 (addGoComments), 88-90 (json.MarshalIndent), 113-115 (os.Getwd), 116-118 (os.Chdir), and 122 (r.AddGoComments); and in pkg/config/schema/generator/main.go at 28-30 (configschema.Generate), 32-34 (configschema.RepoRoot), 36-38 (os.MkdirAll), and 39-41 (os.WriteFile). Add the fmt import where needed and make each context identify the failed operation.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pkg/datafetcher/schema/atmos/config/1.0.json`:
- Line 2286: The synopsis extraction logic must preserve abbreviations such as
“e.g.” instead of truncating generated descriptions. Update the
synopsis-generation code used for CICacheConfig and ProvisionTarget, then
regenerate pkg/datafetcher/schema/atmos/config/1.0.json so both complete
descriptions are reflected.
In `@website/docs/cli/commands/config/config-schema.mdx`:
- Around line 8-17: Add the required Screengrab component import and render it
in the config schema command documentation alongside the existing Intro and
CastPlayer components, using the command’s screengrab asset; retain CastPlayer
as supplementary media.
In `@website/docs/cli/commands/config/usage.mdx`:
- Line 39: Update the Usage block in the config command documentation to include
the atmos config schema [output-path] invocation, keeping it consistent with the
existing subcommand list and CLI help text.
---
Nitpick comments:
In `@pkg/config/schema/generator/main.go`:
- Around line 19-24: Update main to use the established ui helper for reporting
run errors instead of calling fmt.Fprintln directly on os.Stderr, while
preserving the existing nonzero exit behavior. If ui initialization is
inappropriate for this standalone generator, retain the current stderr approach
as the documented exception.
In `@pkg/config/schema/schema.go`:
- Around line 48-50: Move the static ErrRepoRootNotFound declaration from the
schema package into the shared errors/errors.go location, preserving its
exported name and message; update schema package references to use the
centralized error symbol instead of calling errors.New locally.
- Around line 60-62: Wrap each raw error with contextual fmt.Errorf messages
while preserving %w propagation: in pkg/config/schema/schema.go at 60-62
(RepoRoot), 80-82 (addGoComments), 88-90 (json.MarshalIndent), 113-115
(os.Getwd), 116-118 (os.Chdir), and 122 (r.AddGoComments); and in
pkg/config/schema/generator/main.go at 28-30 (configschema.Generate), 32-34
(configschema.RepoRoot), 36-38 (os.MkdirAll), and 39-41 (os.WriteFile). Add the
fmt import where needed and make each context identify the failed operation.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: f3663908-d626-46eb-803c-acce4bd71d90
📒 Files selected for processing (25)
.github/workflows/website-deploy-prod.yml.github/workflows/website-preview-build.yml.gitignorecmd/config/config.gocmd/config/schema.gocmd/config/schema_test.gocmd/validate_schema.godemo/casts/atmos.d/screengrabs/cli.yamlgo.modinternal/exec/validate_schema.gointernal/exec/validate_schema_test.gopkg/config/schema/corpus_test.gopkg/config/schema/drift_test.gopkg/config/schema/generate_test.gopkg/config/schema/generator/main.gopkg/config/schema/overrides.gopkg/config/schema/ratchet_test.gopkg/config/schema/schema.gopkg/datafetcher/schema/atmos/config/1.0.jsonwebsite/blog/2026-07-16-atmos-yaml-schema.mdxwebsite/docs/cli/commands/config/config-schema.mdxwebsite/docs/cli/commands/config/usage.mdxwebsite/docs/cli/commands/validate/validate-schema.mdxwebsite/docs/cli/configuration/schemas.mdxwebsite/src/data/roadmap.js
…and LSP Extend the schema corpus test to this repository's own atmos.yaml, .atmos.d, and demo/** configs, and fix the over-strictness it exposed: command env accepts the map form (commandEnvMapDecodeHook), terminal pager accepts a boolean, and polymorphic anyOf wrappers gain the YAML-function alternative (e.g. `env: !include defaults.yaml .env.command`). Stop `atmos validate schema` from bailing out when no stacks directory exists (WithStackValidation(false)) — schema validation must work in repositories that only carry CLI configuration, such as profile-only setups. Add the `atmos_validate_schema` AI/MCP tool alongside `atmos_validate_stacks`, and teach the Atmos LSP server to validate atmos.yaml documents (including atmos.d and profile fragments) against the generated schema, publishing line-positioned diagnostics with anyOf cascade noise filtered to the most specific violation. pkg/validator gains ValidateYAMLContent for in-memory (unsaved editor buffer) validation. Co-Authored-By: Claude Fable 5 <[email protected]>
Extract full type doc comments (WithFullComment) instead of go/doc synopses, which truncated descriptions at abbreviations like "e.g." (CICacheConfig, ProvisionTarget); regenerate the schema artifact. Add `atmos config schema` to the config command group's Usage block. Co-Authored-By: Claude Fable 5 <[email protected]>
…nfig` A thin subcommand in the config group that validates atmos.yaml, atmos.d fragments, and project-local profiles against the generated schema by delegating to the same validator executor with the built-in `config` key preset. Exits non-zero on violations, matching the long form. Co-Authored-By: Claude Fable 5 <[email protected]>
…eral matches Add `atmos stack validate` as an alias for `atmos validate stacks`, completing the symmetry with `atmos config validate`. Literal (non-glob) patterns in pkg/filematch now resolve with a direct stat instead of walking the entire base path: a plain "atmos.yaml" match previously traversed every file under the repository (including .git and node_modules) per pattern, which made `atmos validate schema` sit on its spinner for seconds in large repositories. Warm runs in this repository drop from ~6s to ~0.6s, so per-file validation results now stream immediately. Literal nested paths (e.g. "conf/atmos.yaml") also match now; previously the non-recursive depth check silently prevented them from ever matching. Co-Authored-By: Claude Fable 5 <[email protected]>
Co-Authored-By: Claude Fable 5 <[email protected]>
There was a problem hiding this comment.
🧹 Nitpick comments (1)
cmd/config/validate.go (1)
27-46: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winPrevent deferred tracking from being bypassed by early exits.
Calling
errUtils.OsExit(1)immediately terminates the process, which prevents the deferredperf.Trackcleanup inRunEfrom executing and flushing metrics.Moving the tracking setup down into
runConfigValidateallows you to explicitly flush the metrics right before the hard exit, all while keeping your test suite logic intact.🛠️ Proposed fix to ensure metrics are flushed
- RunE: func(cmd *cobra.Command, args []string) error { - defer perf.Track(atmosConfigPtr, "config.validateRunE")() - return runConfigValidate() - }, + RunE: func(cmd *cobra.Command, args []string) error { + return runConfigValidate() + }, } func runConfigValidate() error { atmosConfig := atmosConfigPtr if atmosConfig == nil { atmosConfig = &schema.AtmosConfiguration{} } + + track := perf.Track(atmosConfig, "config.validateRunE") + defer track() if err := exec.NewAtmosValidatorExecutor(atmosConfig).ExecuteAtmosValidateSchemaCmd(configSchemaKey, ""); err != nil { if errors.Is(err, exec.ErrInvalidYAML) { + track() // Flush metrics before hard exit errUtils.OsExit(1) } return err } return nil }🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@cmd/config/validate.go` around lines 27 - 46, Move the perf.Track setup from the RunE closure into runConfigValidate, retaining the same "config.validateRunE" tracking key and deferring its cleanup there. Before errUtils.OsExit(1) handles exec.ErrInvalidYAML, explicitly flush the tracking cleanup, then exit so metrics are recorded despite the hard process termination.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@cmd/config/validate.go`:
- Around line 27-46: Move the perf.Track setup from the RunE closure into
runConfigValidate, retaining the same "config.validateRunE" tracking key and
deferring its cleanup there. Before errUtils.OsExit(1) handles
exec.ErrInvalidYAML, explicitly flush the tracking cleanup, then exit so metrics
are recorded despite the hard process termination.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: c77efa88-9a2f-4596-ad7d-63972cc01418
📒 Files selected for processing (32)
cmd/config/config.gocmd/config/validate.gocmd/config/validate_test.gocmd/stack/stack.gocmd/stack/validate.gocmd/stack/validate_test.gocmd/validate_schema.godemo/casts/atmos.d/screengrabs/cli.yamlpkg/ai/tools/atmos/setup.gopkg/ai/tools/atmos/validate_schema.gopkg/ai/tools/atmos/validate_schema_test.gopkg/config/schema/corpus_test.gopkg/config/schema/overrides.gopkg/config/schema/schema.gopkg/datafetcher/schema/atmos/config/1.0.jsonpkg/filematch/filematch.gopkg/filematch/filematch_test.gopkg/lsp/server/config_schema.gopkg/lsp/server/config_schema_test.gopkg/lsp/server/diagnostics.gopkg/validator/mock_schema_validator.gopkg/validator/schema_validator.gowebsite/blog/2026-07-16-atmos-yaml-schema.mdxwebsite/docs/ai/mcp-server.mdxwebsite/docs/cli/commands/config/config-validate.mdxwebsite/docs/cli/commands/config/usage.mdxwebsite/docs/cli/commands/lsp/start.mdxwebsite/docs/cli/commands/stack/stack-validate.mdxwebsite/docs/cli/commands/stack/usage.mdxwebsite/docs/cli/commands/validate/validate-schema.mdxwebsite/docs/cli/configuration/ai/tools.mdxwebsite/docs/cli/configuration/schemas.mdx
🚧 Files skipped from review as they are similar to previous changes (10)
- website/docs/cli/commands/config/usage.mdx
- cmd/config/config.go
- website/blog/2026-07-16-atmos-yaml-schema.mdx
- demo/casts/atmos.d/screengrabs/cli.yaml
- cmd/validate_schema.go
- pkg/datafetcher/schema/atmos/config/1.0.json
- website/docs/cli/configuration/schemas.mdx
- website/docs/cli/commands/validate/validate-schema.mdx
- pkg/config/schema/schema.go
- pkg/config/schema/overrides.go
Plans extending all four `atmos validate` subcommands to reuse the existing pkg/ci framework for GitHub Actions annotations and SARIF output, including a line/column plumbing fix for schema validation. Co-Authored-By: Claude Sonnet 5 <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/prd/native-ci/phases/validate-command-parity.md`:
- Around line 43-45: Resolve the output contract for validate editorconfig
before implementation: either remove editorconfig from the all-four
--format=sarif requirement or revise its wiring to support a distinct,
non-conflicting output-format flag alongside the existing default/gcc option.
Update the “All four validate subcommands” statement and the editorconfig wiring
section consistently so they specify one unambiguous behavior.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: c2f616f3-bfdb-44cd-8bb8-9a22874fcc89
📒 Files selected for processing (1)
docs/prd/native-ci/phases/validate-command-parity.md
Pin websocket-driver to >=0.7.5 via a pnpm override to fix a critical message-corruption issue and a moderate resource-limit-bypass issue (GHSA advisories #253, #254). It's a transitive dep pulled in by webpack-dev-server -> sockjs -> faye-websocket, not a direct dependency. Co-Authored-By: Claude Sonnet 5 <[email protected]>
…in table snapshot This repo's own atmos.yaml sets ci.enabled: true, and CI runs `go test` via an `atmos test acceptance` custom-command step that itself opens a CI log group. That sets the ATMOS_CI_LOG_GROUP_ACTIVE sentinel on the go test process's own environment, which every "does grouping emit markers" test in pkg/ci, pkg/runner/step, and internal/exec then inherited -- making them see a false "parent already grouping" and silently no-op, failing their assertions. Reproduced locally by setting ATMOS_CI_LOG_GROUP_ACTIVE=1 before the fix (fails) and after (passes) for each affected test. Also stabilizes the "atmos toolchain info tar.gz format tool" (and its atmos-inline-registry sibling) CLI snapshot test: lipgloss/table sizes the VERSION/DATE/TITLE header columns from the widest actual (pre-sanitize) cell content, so the header row's padding drifts whenever junegunn/fzf publishes a release with a differently-sized version tag, even though sanitized data rows stay stable. Added the header row to the existing diff-ignore pattern list alongside the data-row patterns already there for the same reason. Co-Authored-By: Claude Sonnet 5 <[email protected]>
…on Windows GitHub Actions Windows runners check out the repo on one drive letter while t.TempDir() and other temp paths can land on another. validationRepositoryPath called filepath.Rel(cwd, path) unconditionally for absolute paths, which errors on Windows when the two paths are on different volumes -- there's no way to express a relative path across drives. This failed the entire ExcludePaths call for any such path, breaking TestFilterValidationSchemaFiles in internal/exec (and, in production, any --exclude validation on Windows CI whenever an input path happened to resolve outside the checkout's drive). Since such a path is outside the repo either way, no repo-relative exclude glob can legitimately match it, so falling back to the absolute path (rather than erroring) is correct: the file simply won't match a repo-relative pattern and stays unfiltered. Added a Windows-gated regression test exercising the fallback directly, since a real cross-volume path isn't reproducible on Unix. Co-Authored-By: Claude Sonnet 5 <[email protected]>
|
💥 This pull request now has conflicts. Could you fix it Erik Osterman (Cloud Posse) (@osterman)? 🙏 |
…chema-validation # Conflicts: # website/package.json # website/pnpm-lock.yaml
The Check Markdown Links CI job failed with 27 errors, all shields.io/badge and img.shields.io URLs returning Cloudflare 520 "Unknown status code" or a bare 500 -- not real broken links. These are dynamically-generated badge images used as illustrative examples in CI-status docs (job-summaries.mdx, README.md, terraform CI summary golden fixtures), and shields.io's badge endpoint is known to be flaky under lychee's request volume; verified they render fine in a browser. Broadened the existing narrow img.shields.io/github/release/ exclude (added for a different shields.io quirk) to cover the whole shields.io domain, following this file's established pattern for flaky third-party CI checks. Verified locally with lychee against a minimal fixture: both shields.io/badge and img.shields.io/badge URLs are now excluded. Co-Authored-By: Claude Sonnet 5 <[email protected]>
…rpus test TestEmbeddedSchemaIsCurrent was failing: the merged atmos init/scaffold feature added toolchain.proxies (ToolchainProxy) to the config structs, but the embedded pkg/datafetcher/schema/atmos/config/1.0.json wasn't regenerated to match. Ran `go generate ./pkg/config/schema` and committed the result. TestGeneratedSchemaAcceptsRealConfigs was also failing on the four new examples/scaffolds/**/atmos.yaml files, e.g. "components.terraform.command: Invalid type. Expected: string, given: array". These aren't real runtime configs -- they're atmos scaffold template sources using [[ ... ]] Go-template placeholder delimiters (e.g. `command: [[ .Config.terraform_command ]]`), which YAML parses as an array literal but which the scaffold engine substitutes before the result is ever schema-validated. Excluded examples/scaffolds from the corpus scan, the same way tests/fixtures is already excluded for its intentionally invalid configs. Co-Authored-By: Claude Sonnet 5 <[email protected]>
|
💥 This pull request now has conflicts. Could you fix it Erik Osterman (Cloud Posse) (@osterman)? 🙏 |
…chema-validation # Conflicts: # lychee.toml # tests/preconditions.go # tests/test-cases/toolchain.yaml
|
Tip Atmos Pro
No affected stacks workflow was detected for this pull request. |
|
Warning Release Documentation RequiredThis PR is labeled
|
|
These changes were released in v1.223.1-rc.2. |
what
atmos.yamlthat is generated from the Go configuration structs (pkg/config/schema,go generate) — Go doc comments become schema descriptions, runtime-only fields are excluded, and YAML function (!include,!env, …), null, and scalar-string-list alternatives are injected so real configs validate.AtmosConfigurationfield and every new YAML function constant; a corpus test validates allexamples/**anddemo/**configs plus this repository's ownatmos.yamland.atmos.d(which surfaced and fixed real gaps: map-formenv, booleanpager, function-valued polymorphic fields).atmos config schema [output-path], mirroringatmos stack schema, printing the embedded schema served atatmos://schema/atmos/config/1.0.configentry in theschemasregistry soatmos validate schemavalidatesatmos.yaml,atmos.d/**, and project-local profiles out of the box (overridable viaschemas.config), addatmos config validateas a shorthand alias foratmos validate schema config, and stop the command from bailing out when no stacks directory exists — schema validation now works in config-only repositories.atmos stack validateas the symmetric alias foratmos validate stacks, and makepkg/filematchresolve literal (non-glob) patterns with a direct stat instead of walking the entire tree —atmos validate schemain this repository drops from ~6s to ~0.6s, so per-file results stream immediately.atmos_validate_schematool alongsideatmos_validate_stacks) and the experimental LSP server (line-positioned schema diagnostics foratmos.yamldocuments and fragments, with anyOf cascade noise filtered to the most specific violation);pkg/validatorgainsValidateYAMLContentfor unsaved editor buffers..../atmos-config/1.0/...) and per-release pinned schema copies from the website workflows, and add command docs, a schemas reference section, MCP/LSP doc updates, a changelog post, and a roadmap milestone.why
atmos.yamlhas grown a larger configuration surface than stack manifests but had no schema at all: typos and mistyped sections were silently ignored by the loader, and editors offered no completion or validation.atmos validate schema atmosmatchedatmos.yaml/atmos.ymlbut validated them against the stack-manifest schema, and a gap whereatmos validate schemasilently skipped all validation in repositories without a stacks directory.yaml-language-servermodeline (or natively viaatmos lsp start), and pinned per-release URLs let teams upgrade the binary without silently absorbing schema changes — the same model the manifest schema adopted in Consolidate atmos-manifest schema, publish per-release pins #2749.references
atmos.yamlJSON Schemaatmos.yamlfile #2731 — supersedes the hand-written schema in that PR (thanks rennokki (@rennokki)!); generating the schema from the config structs means it can never drift from what the CLI actually acceptswebsite/blog/2026-07-16-atmos-yaml-schema.mdx; docs:/cli/commands/config/config-schema,/cli/configuration/schemas,/ai/mcp-server,/cli/commands/lsp/startSummary by CodeRabbit
atmos config schemato print or write the generatedatmos.yamlJSON Schema.atmos config validateandatmos stack validate, plus built-in schema validation foratmos.yaml/atmos.d//local profile fragments viaschemas.configoverride/disable.atmos_validate_schematool and LSP config-schema diagnostics with accurate line/column reporting.atmos validate ci/atmos ci validateworkflow validation (including SARIF/annotations when enabled).