feat(controller-peers-env-fallback): accept name= prefixes and report malformed controller entries cleanly (task 4.1)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Rongsong Shen 2026-10-03 07:31:38 +00:00
parent 65ae25a1e6
commit 6eab344c6e
Signed by untrusted user: rshen
GPG key ID: 80533536B0EB651C
4 changed files with 89 additions and 7 deletions

View file

@ -71,7 +71,7 @@
- _Requirements: 1.1, 1.2, 1.3, 1.4, 1.5, 1.7_
- [ ] 4. xceadmin
- [ ] 4.1 (P) Accept `name=` prefixes and report malformed entries cleanly when parsing controller candidates
- [x] 4.1 (P) Accept `name=` prefixes and report malformed entries cleanly when parsing controller candidates
- Write the failing tests first: a single `name=host:port`; a mixed named/bare list keeping its order; a non-numeric port raising the new controller-value error that quotes the entry; existing bare-host and list cases unchanged
- Add the controller-value error next to the existing controller-reachability errors
- Strip everything up to the first `=` in each entry before the existing host/port split; turn the failing port conversion into the new error