Skip to content

kanon validate should report a missing kanon.yaml with a Kanon error #96

Description

@kelos-bot

Repro:

  1. Create an empty directory.
  2. Run kanon validate --home <empty-dir>.

Actual:

open /tmp/.../kanon.yaml: no such file or directory

Expected:

  • A Kanon-authored error that names the missing config file and the command context.
  • Ideally a hint to run kanon init when the home has not been initialized yet.

Why this matters:

  • This is a common first-run mistake for a new user who tries to validate before initializing the home.
  • The current error looks like a low-level filesystem failure rather than an actionable CLI message, which makes onboarding rougher.

This is distinct from malformed kanon.yaml parsing errors; it is specifically about the missing config file case.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions