ARADR-002: unify Nix and standalone configuration #5
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/llm-log!5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rage/4-unified-config"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #4
Auto-ARADR
Canonical design:
research/LLM-LOG-RESEARCH-002-unified-configuration.orgDecision: one runtime configuration model with two frontends:
services.llm-log.*andservices.llm-log.enable = trueowns the systemd user service.~/.llm-proxy.services.llm-log.dataDir = "${config.home.homeDirectory}/Documents/AI/proxy"without changing llm-log defaults.RED first
Initial config contract:
7cc8e5b test: define red unified configuration contractStorage-default correction RED contract:
1eacad43a5d2303daf790eeec08c416f56975ed9The corrected contract requires
default_data_dir()to resolve to$HOME/.llm-proxyeven whenXDG_DATA_HOMEis set, while explicit TOML/CLI/Home Manager overrides remain higher precedence.Implementation
llm_log/config.py: standard-librarytomllibconfig loader + validation$XDG_CONFIG_HOME/llm-log/config.toml, fallback~/.config/llm-log/config.toml~/.llm-proxydd493e34c9a1702395cfa5c7776b045745ac269664713e26eb32cc376d86de3764e4188a1194f403--configerrors--prolog-classifier/--no-prolog-classifier--upstream NAME=URLoverrides individual providers while preserving othersapps.default/apps.llm-logfornix run ... -- serveValidation
The earlier focused local config contract was 6/6 passing against the preceding configuration implementation. The new
~/.llm-proxycorrection has RED-first test and implementation commits, but no new local execution is claimed from this environment.The repository still intentionally has no GitHub Actions development loop. Full local Python/Nix verification is required before merge.
Security
No credential storage was added. Nix config contains runtime/upstream routing only; client auth continues to be forwarded and capture persistence continues to redact secret headers.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.