Skip to content

Commit 281861f

Browse files
committed
Preserve proof surface status paths
1 parent cd7bcca commit 281861f

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

agent_os/proof_surface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def _git_status(root: Path, *paths: str) -> str:
238238
)
239239
if result.returncode != 0:
240240
return ""
241-
return result.stdout.strip()
241+
return result.stdout.rstrip()
242242

243243

244244
def _status_paths(status_text: str) -> list[str]:

tests/test_proof_surface.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ def test_proof_surface_distinguishes_current_main_snapshot_and_local_readback(
7878
assert dirty.committed_dashboard_state == "modified_local_readback"
7979
assert dirty.generated_readback_state == "local_uncommitted_readback"
8080
assert dirty.merge_claim == "current_main_proof_valid"
81+
assert "docs/dashboard.md" in dirty.generated_readback_paths
82+
assert "ocs/dashboard.md" not in dirty.generated_readback_paths
8183

8284

8385
def test_proof_surface_avoids_merge_claim_for_branch_or_stale_proof(tmp_path: Path) -> None:

0 commit comments

Comments
 (0)