fix(connect): reconnect a Goal registered under another spelling of its directory #9691
All Vouch review confidence checks passed
Residual risk 0.30 = Change Risk (0.52) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 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
Real PR Conversation Timeline
1 comments
"Review active on #9691"
general
weight: 0.35
loopx-agent
Goal And Delivered Outcome
bootstrap_project()normalizes--projectwithPath.resolve(). On a case-insensitive APFS volume (macOS default),resolve()preserves the caller's letter case whileos.getcwd()returns the on-disk spelling. A Goal connected once with--project ~/code/appfor~/Code/Apptherefore recordsrepo: .../code/app; afterwards,loopx connectfrom inside the project (or the reverse: a registered project re-connected with differently cased--project) fails withCanonical creation is not bound to the registered original operation, source and target, because the canonical-creation check compares the registered repo string with the current state path.- Before: connecting with one letter case and reconnecting from the project directory (or with another case spelling) failed with
Canonical creation is not bound ....- After: when the registered absolute
reporefers to the same directory (Path.samefile),bootstrap_project()keeps the registered spelling (and the default project registry route under it), so both directions succeed withkept-existing(unitandreal_entrypointrows below).main.Author Declaration
Implemented against
bootstrap_project()reconnect handling with the canonical-creation binding recorded inloopx/control_plane/coordination/new_goal_initialization.ts.| Criterion (spec clause) | Disposition | Symbol / path | Test or command |
| --- | --- | --- | --- |
| A Goal registered under another spelling of the same directory reconnects from the project directory | implemented |
loopx/bootstrap.py::bootstrap_project,_same_directory|tests/test_connect_project_path_case.py::test_a_goal_connected_with_another_spelling_reconnects_from_the_project|| A correctly registered Goal reconnects with a differently cased
--project| implemented |loopx/bootstrap.py::bootstrap_project,_same_directory|tests/test_connect_project_path_case.py::test_a_goal_reconnects_with_a_differently_cased_project_path|| A relative registered
repois not compared against the working directory | implemented |loopx/bootstrap.py::_same_directory(is_absolute()guard) | unchanged connect/bootstrap suites |Path.samefilewithout macOS-onlyF_GETPATH). Both new tests fail on base withCanonical creation is not bound ...and safely skip on case-sensitive Linux filesystems.Scope And Continuation
--registryor--state-filearguments spelled with different case are still used as passed.Validation
9372540c3| Check kind | Result | Public-safe evidence / limitation |
| --- | --- | --- |
|
unit|passed|tests/test_connect_project_path_case.py(2 passed on Python 3.13 and 3.14; both fail on base withCanonical creation is not bound ...). ||
unit|passed| Connect/bootstrap suites (test_connect_project_path_case.py,test_new_goal_storage_defaults.py,test_canonical_handoff_invariants.py,test_goal_terminal_no_followup.py,test_bootstrap_command_pack_platform.py,test_install_hint_platform.py): 239 passed, 10 skipped, 0 failed. ||
static|passed|ruff checkandgit diff --checkclean; mypy reports the same 6 pre-existing errors inloopx/bootstrap.pyas base. ||
real_entrypoint|passed|python -m loopx.cli connectacross both casing directions and reconnecting a base-created Goal:appendedthenkept-existingwithstatusok. |Path.samefileis cross-platform).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).