Files
marketplace-ai/plugins/server-ops/skills/service-config-drift/SKILL.md
T

3.2 KiB

name, description
name description
service-config-drift Сравнивает сохранённую конфигурацию, файлы запуска и действующие настройки сервиса. Выявляет расхождения и оценивает, что сохранится после перечитывания настроек, перезапуска или повторного развёртывания.

Use the server-ops checkout for all repository paths and commands in this skill.

Compare the same setting at each layer

  1. Resolve the target through server-operate. Identify the affected settings, expected values, and lifecycle event. Diagnose with read-only checks unless the request includes changes.
  2. Find the source that owns those settings for the next launch or deploy. Examples include the panel's stored settings, Coolify's source Compose and deployed revision, or the systemd unit with its drop-ins and referenced files. Identify the actual service instance, version, and container or network namespace. For a systemd service, start with systemctl show UNIT -p MainPID -p FragmentPath -p DropInPaths.
  3. Inspect the startup inputs used by that instance, including generated files, mounts, includes, and relevant overrides. Record the source revision and process or container identity when available. Current files establish the startup inputs visible now. Use launch or reload evidence when attributing specific values to the running process.
  4. Read the effective settings through the installed service's supported read-only status or API, or inspect the relevant kernel or namespace state. Compare with a listener or functional check if it can distinguish the settings. Select only the needed non-secret fields at the source. Avoid whole configs, command lines, environments, and API payloads in output or history. Preserve order when it affects precedence. Recheck the comparison if a deployment or reload occurred during collection.

Report persistence and verify authorized fixes

  • For each affected setting, report the expected value, the observed source, startup, and runtime values, and any unknown layer. Identify where an override takes effect. A syntax check verifies the supplied file. Use live evidence to verify the running service.
  • Assess reload, process or container restart, and recreation or redeploy separately. For a container sysctl, compare the value inside the relevant network namespace with the source deploy definition. Mark persistence as unknown if the owning source or applicable revision is unknown. Otherwise, report it as inferred until the specified lifecycle event has been tested.
  • For an authorized fix, change the owning source. Follow "Configuration research" in the selected checkout's AGENTS.md and the backup and rollback workflow. Validate the rendered result. After any requested reload, restart, or redeploy, confirm the new instance or reload, re-read the affected runtime settings, and repeat the functional check. Record the result.