Skip to content

docs(adr): propose 0057, the daemon owns config.json while it runs (#1151) - #1152

Closed
leonardoxr wants to merge 6 commits into
callstackincubator:mainfrom
leonardoxr:feature/1151-adr
Closed

leonardoxr wants to merge 6 commits into
callstackincubator:mainfrom
leonardoxr:feature/1151-adr

Conversation

@leonardoxr

Copy link
Copy Markdown
Contributor

ADR 0057 for #1151, at Proposed. While a daemon runs, it is the one writer of its config.json: simlock config set sends config.set to it, and writes the file itself only when no daemon of that role runs. Two admin operations, config.list (one row per setting: running, saved and default values, live or on restart, secret) and config.set (one key, the same loadConfig validation as the CLI). idle.shutdownAfterMs, idle.deleteAfterMs and diskPressure.freeBytesThreshold apply live; every other key on restart. gateway.token and the alert destinations are write-only. A new daemon.restart runs the updater in a restart mode (stop, start; no install). One event, config.changed, names the keys and the caller, never a value. The console gains a Settings page, with confirms on keys that can cut it off. A gateway edits only its own settings. The protocol rises by one.

It narrows ADR 0056 (Proposed) §1, "config.json is never written by the daemon", to warm.set, and ADR 0037's action list.

This PR is the bottom of #1151's stack and merges with the feature's last task.

🤖 Generated with Claude Code

Written by an agent.

@coderabbitai

coderabbitai Bot commented Nov 4, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@V3RON

V3RON commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Replaced by ADR 0099 (#1989). After an interview, #1151 reads and changes settings at /v1/settings, and keys that name a program are changed on the machine only. Thank you for the first draft.

Written by an agent.

@V3RON V3RON closed this Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants