fix(agent-directory): report a Goal without canonical authority #9692
All Vouch review confidence checks passed
Residual risk 0.41 = Change Risk (0.71) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.71 · 531 lines diff across 6 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.376
Shallow Review Depth
shallow_review_depth
0.344
Sensitive Paths
sensitive_paths
0.071
Real PR Conversation Timeline
1 comments
"Review active on #9692"
general
weight: 0.35
loopx-agent
Goal And Delivered Outcome
handle_agent_directory()already catches status-collection failures and returns a structuredagent_directory_collection_failedpayload. Itsexcepttuple missedLocalCoordinationAuthorityUnavailable(aRuntimeError), so runningagent-directoryagainst a registered Goal that has not yet migrated to canonical authority crashed with an unhandled traceback.- Before:
loopx --format json agent-directory --goal-id <unmigrated>printed a Python traceback.- After: exits 1 with
{"ok": false, "schema_version": "peer_agent_directory_v0", "error_code": "agent_directory_collection_failed", "goal_id": ..., "reason": "...Canonical authority..."}(unitandreal_entrypointrows below).main.Author Declaration
Implemented against
handle_agent_directory()'s existingagent_directory_collection_failederror contract.| Criterion (spec clause) | Disposition | Symbol / path | Test or command |
| --- | --- | --- | --- |
|
agent-directoryreports a Goal without canonical authority instead of crashing | implemented |loopx/cli_commands/agent_directory.py::handle_agent_directory|tests/control_plane/test_agent_directory_unmigrated_goal.py::test_agent_directory_reports_a_goal_without_canonical_authority|LocalCoordinationAuthorityUnavailableto the existingexcepttuple. Verified the new test fails on base with an unhandled traceback and passes with the fix; migrated Goals are unaffected.Scope And Continuation
Validation
d0dc40d6c| Check kind | Result | Public-safe evidence / limitation |
| --- | --- | --- |
|
unit|passed|tests/control_plane/test_agent_directory_unmigrated_goal.pyandtests/control_plane/test_peer_agent_directory.pypassed under Python 3.13 (combined regression run: 328 passed, 3 skipped; 1 unrelated pre-existing failure reproduced identically on base). ||
static|passed|ruff checkandgit diff --checkclean on all changed files. ||
real_entrypoint|passed|python -m loopx.cli --format json agent-directory --goal-id selectedon an unmigrated Goal returns exit 1 witherror_code: agent_directory_collection_failedand the canonical authority message. |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).