Skip to content

docs: explain configuration ownership and defaults across mecated and mecatui #771

Closed

Description

@jbeda

Problem

Mecatui has two configuration personalities: client-owned settings (for example key bindings in ~/.config/mecatui/settings.yaml) and embedded-server settings inherited from the mecatl operator configuration when running bare mecatui. mecated has server/operator defaults, while mecatui connect must not apply local server/provider settings at all. This is documented in fragments but does not give operators one clear mental model.

Scope

  • Document the configuration planes and precedence for mecated, bare/embedded mecatui, and mecatui connect.
  • Identify and document intentional default differences and their rationale (interactive/headless posture, conventional discovery, storage, provider bootstrap, client keymap settings).
  • Make the code's ownership seams clear: client configuration remains in mecatui; embedded-server configuration becomes app.Config; remote mode does not load local server settings.
  • Add focused tests where a mode boundary is currently implicit or can drift.

Out of scope

  • Unifying client keymap configuration with server settings.
  • Replacing the current configuration resolver with a generic framework.

References

  • cmd/mecatui/keymap_wiring_yaml.go
  • cmd/mecatui/config.go (embeddedConfig)
  • user-docs/mecatui/keybindings.md
  • user-docs/mecatui/remote-servers.md

Activity

  1. jbeda commented on Aug 26, 2026

    @jbeda
    ContributorAuthor

    Follow-up design implication from reviewing PR #758:

    The existing generated docs/configuration-reference.md and settings.skeleton.yaml describe the shared mecatl/settings.yaml schema. They do not describe the final effective defaults of every command root.

    Bare mecatui applies embedded-server defaults before app.Build folds operator settings; mecated, mecak8s, mecatequi, and mecatui connect have different ownership/default behavior. A missing settings key can therefore produce different effective behavior by binary/mode.

    This issue should document those intentional differences and add tests for mode boundaries. Do not make the shared schema lie by choosing one universal default. The likely first deliverable is a clear per-root/mode matrix; only if divergence keeps growing should we consider a generated effective-default model alongside configgen's schema reference.

  2. self-assigned this
    on Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions