You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs: explain configuration ownership and defaults across mecated and mecatui #771
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.
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.
Activity
jbeda commentedon Aug 26, 2026
Follow-up design implication from reviewing PR #758:
The existing generated
docs/configuration-reference.mdandsettings.skeleton.yamldescribe the sharedmecatl/settings.yamlschema. They do not describe the final effective defaults of every command root.Bare mecatui applies embedded-server defaults before
app.Buildfolds 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.