feat(controller-peers-env-fallback): add the environment-variable reader for the default candidate list (task 1.1)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Rongsong Shen 2026-10-03 05:12:34 +00:00
parent ab21c1622d
commit 7328b06c53
Signed by untrusted user: rshen
GPG key ID: 80533536B0EB651C
4 changed files with 57 additions and 1 deletions

View file

@ -1,7 +1,7 @@
# Implementation Plan
- [ ] 1. Foundation: shared libxce primitives and the regression script
- [ ] 1.1 Add the environment-variable reader for the default candidate list
- [x] 1.1 Add the environment-variable reader for the default candidate list
- Write the failing libxce unit tests first: variable unset gives no value, set to an empty string gives no value, set to a non-empty string returns it unchanged
- Add the reader to the shared cluster module and declare it next to the existing peers parser, so every C daemon and the harness can call it with no new build dependency
- Each test restores the variable to unset afterwards, so later libxce tests are unaffected