Add layered llm-log init files #63

Open
nsaspy wants to merge 4 commits from rage/59-init-files-r3 into rage/57-openrouter-quant-observability-r2
Owner

Part of #59. Stacked on #62.

What this adds

  • implicit $XDG_CONFIG_HOME/llm-log/init.toml (fallback ~/.config/llm-log/init.toml);
  • lexically ordered init.d/*.toml fragments;
  • repeatable explicit --init PATH files/directories;
  • deterministic recursive TOML table merge;
  • explicit missing init paths fail while implicit missing paths are allowed;
  • CLI remains the highest-precedence layer;
  • no executable Python/shell init files.

Initial typed init surfaces cover [serve], [upstreams], and [expert], with the structure available for quant/anomaly policy in the next stacked slice.

RED-first structure

The init precedence/error contract is committed before production loader/CLI changes.

Validation status

Diff structure is audited. Full local unittest + Nix gates remain required before leaving draft.

Part of #59. Stacked on #62. ## What this adds - implicit `$XDG_CONFIG_HOME/llm-log/init.toml` (fallback `~/.config/llm-log/init.toml`); - lexically ordered `init.d/*.toml` fragments; - repeatable explicit `--init PATH` files/directories; - deterministic recursive TOML table merge; - explicit missing init paths fail while implicit missing paths are allowed; - CLI remains the highest-precedence layer; - no executable Python/shell init files. Initial typed init surfaces cover `[serve]`, `[upstreams]`, and `[expert]`, with the structure available for quant/anomaly policy in the next stacked slice. ## RED-first structure The init precedence/error contract is committed before production loader/CLI changes. ## Validation status Diff structure is audited. Full local unittest + Nix gates remain required before leaving draft.
* test: define RED quant anomaly and alert contracts

* feat: add bounded quantization anomaly detector

* feat: persist quant anomalies and safe alert events

* feat: configure quant detection from init files
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin rage/59-init-files-r3:rage/59-init-files-r3
git switch rage/59-init-files-r3

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.

git switch rage/57-openrouter-quant-observability-r2
git merge --no-ff rage/59-init-files-r3
git switch rage/59-init-files-r3
git rebase rage/57-openrouter-quant-observability-r2
git switch rage/57-openrouter-quant-observability-r2
git merge --ff-only rage/59-init-files-r3
git switch rage/59-init-files-r3
git rebase rage/57-openrouter-quant-observability-r2
git switch rage/57-openrouter-quant-observability-r2
git merge --no-ff rage/59-init-files-r3
git switch rage/57-openrouter-quant-observability-r2
git merge --squash rage/59-init-files-r3
git switch rage/57-openrouter-quant-observability-r2
git merge --ff-only rage/59-init-files-r3
git switch rage/57-openrouter-quant-observability-r2
git merge rage/59-init-files-r3
git push origin rage/57-openrouter-quant-observability-r2
Sign in to join this conversation.
No description provided.