Tracked by #399.
Outcome
Editor clients and other automation can consume the exact authoring contract and project diagnostics from the matching registryctl version without scraping human-readable error strings or duplicating private compiler rules.
Requirements
- Define a versioned, machine-readable editor metadata contract covering:
- supported authored file roles and their matching patterns;
- the five embedded JSON Schema documents or stable version-matched locators;
- project authoring contract/version information;
- the existing generated
xw.v1 editor metadata.
- Define a versioned diagnostic envelope with:
- source file;
- stable diagnostic code;
- severity;
- message;
- start and end line/column when available;
- related locations when one authored reference conflicts with another.
- Report YAML syntax and deserialization failures through the structured envelope.
- Convert project semantic validation failures needed by editor clients to structured diagnostics instead of terminal-only
anyhow chains.
- Keep the public command/library boundary narrow. The private project compiler type system should remain private unless a concrete reusable type is required.
- Preserve current bounded-file, path-confinement, symlink, and secret-handling invariants.
- Never include secret values, credential contents, environment contents, or generated private artifacts in diagnostics.
Acceptance criteria
Non-goals
- Implementing the language server transport
- Editor-specific packaging
- Executing live source tests from an editor
Tracked by #399.
Outcome
Editor clients and other automation can consume the exact authoring contract and project diagnostics from the matching
registryctlversion without scraping human-readable error strings or duplicating private compiler rules.Requirements
xw.v1editor metadata.anyhowchains.Acceptance criteria
registryctlcommand emits the versioned editor metadata as deterministic JSON.check,test, andbuildbehavior remains compatible.Non-goals