feat(controller-peers-env-fallback): add the shared "which candidate is me" lookup (task 1.2)

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

View file

@ -8,7 +8,7 @@
- Done when the libxce suite passes with the three new cases and every existing libxce test still passes
- _Requirements: 1.2, 1.3, 1.7_
- [ ] 1.2 Add the shared "which candidate is me" lookup
- [x] 1.2 Add the shared "which candidate is me" lookup
- Write the failing libxce unit tests first: named match, unnamed entry matched by hostname, named entry not matched by its hostname, no match, first of duplicate names wins, no name given, and an empty name matching an unnamed empty-hostname entry exactly as the controller's existing loops do
- Implement the lookup with the matching rule moved unchanged from the controller (candidate name when set, otherwise hostname; first match wins); it applies no default of its own
- Done when the libxce suite passes with all seven cases