fix(configure-goal): reject list values that parse to nothing instead of clearing the setting #9690
All Vouch review confidence checks passed
Residual risk 0.43 = Change Risk (0.75) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.75 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.344
Sensitive Paths
sensitive_paths
0.075
Real PR Conversation Timeline
1 comments
"Review active on #9690"
general
weight: 0.35
loopx-agent
Goal And Delivered Outcome
configure-goalcounterpart of #9372 / #9373, which hardenedregister-agentand leftconfigure-goalunchanged.configure-goal --registered-agentreplaces the roster, and--clear-registered-agentsis the explicit way to empty it. A value that parses to no usable id ("",","," , ") was silently dropped by_clean_registered_agents(), causing the preview to reportok=truewithchanged_fields: ["registered_agents"]and--executeto wipe the roster (for example when a script passes--registered-agent "$AGENT"with an unset variable).--allowed-domainhad the exact same defect, wipingallowed_domainsinstead of requiring--clear-allowed-domains.- Before:
configure-goal --registered-agent "" --executereturnedok=trueand cleared["agent-a", "agent-b"]to[];--allowed-domain ""cleared["docs"]to[].- After: both raise
ValueErrorpointing to--clear-registered-agents/--clear-allowed-domains, leaving the registry unchanged (unitandreal_entrypointrows below). Valid ids, empty entries between valid ids (agent-a,,agent-c), explicit clear flags, and programmatic empty lists keep their existing behavior.main.Author Declaration
Implemented against
configure-goal --help(--registered-agent/--allowed-domainvs explicit--clear-flags) and the empty-request rule #9373 established forregister-agent.| Criterion (spec clause) | Disposition | Symbol / path | Test or command |
| --- | --- | --- | --- |
| Empty or delimiter-only
--registered-agentvalues fail before any write (preview and execute) | implemented |loopx/configure_goal.py::configure_goal|tests/control_plane/test_configure_goal_registered_agents.py::test_empty_or_delimiter_only_values_are_rejected(8 cases) || Valid ids, skipped empty entries, and explicit
--clear-registered-agentsare unchanged | implemented |loopx/configure_goal.py::configure_goal|tests/control_plane/test_configure_goal_registered_agents.py::test_valid_ids_and_explicit_clear_keep_working|| Empty or delimiter-only
--allowed-domainvalues are rejected while--clear-allowed-domainsstill clears | implemented |loopx/configure_goal.py::configure_goal|tests/control_plane/test_configure_goal_registered_agents.py::test_empty_or_delimiter_only_allowed_domains_are_rejected(3 cases) |--clear-flags remain unchanged. Checked--write-scope ""already changes nothing and left it untouched.Scope And Continuation
Validation
de444765e| Check kind | Result | Public-safe evidence / limitation |
| --- | --- | --- |
|
unit|passed|tests/control_plane/test_configure_goal_registered_agents.py(12 passed on Python 3.13 and 3.14; the 11 rejection cases fail on base). ||
unit|passed| 12 suites exercisingconfigure_goal/register-agent: 729 passed (3 failures matched base: 2 Windows-onlytest_windows_install.pycases on macOS and pre-existing #9586test_steward_generic_monitor_todo.py); 10--allowed-domainsuites: 695 passed, 0 failed. ||
static|passed|ruff checkandgit diff --checkclean on all changed files. ||
real_entrypoint|passed|python -m loopx.cli configure-goal --registered-agent "",","," , ": rejected with explicit message, roster unchanged. |Frontend / Visual Evidence
Type of Change
LoopX Area
Technical Direction
Shared-authority RFC fixture impact
N/A
Boundary Checklist
.loopx/,.codex/goals/, and liveACTIVE_GOAL_STATE.md).python3 scripts/check_rfc_bilingual.py --base origin/main --head HEADpasses, or no paired RFC changed.none.Signed-off-bytrailer (git commit -s).