Description
When review-loop is called with a --beliefs file that contains .py file references, it crashes at cli.py:1166:
full_ref = Path(repo) / ref_path
NameError: name 'Path' is not defined
Root Cause
pathlib.Path is used in the review_loop command (line 1166) and the review command (lines 1384, 1392, 1397) but was never imported. The fix is to add from pathlib import Path to the module imports.
Fix
Fixed in commit 9f36a3d — added the missing import.
Impact
This caused all --code-review runs within ftl-sdlc-loop to silently fail (exit code 1) when a beliefs file was provided, meaning no review was posted to the PR.
Description
When
review-loopis called with a--beliefsfile that contains.pyfile references, it crashes atcli.py:1166:Root Cause
pathlib.Pathis used in thereview_loopcommand (line 1166) and thereviewcommand (lines 1384, 1392, 1397) but was never imported. The fix is to addfrom pathlib import Pathto the module imports.Fix
Fixed in commit 9f36a3d — added the missing import.
Impact
This caused all
--code-reviewruns withinftl-sdlc-loopto silently fail (exit code 1) when a beliefs file was provided, meaning no review was posted to the PR.