From 281861fd64c8cb23c1bc928edc2f5f44158fdf95 Mon Sep 17 00:00:00 2001 From: Reidar Date: Tue, 7 Jul 2026 20:34:36 +0200 Subject: [PATCH] Preserve proof surface status paths --- agent_os/proof_surface.py | 2 +- tests/test_proof_surface.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/agent_os/proof_surface.py b/agent_os/proof_surface.py index b5527e9e..3fc5c17e 100644 --- a/agent_os/proof_surface.py +++ b/agent_os/proof_surface.py @@ -238,7 +238,7 @@ def _git_status(root: Path, *paths: str) -> str: ) if result.returncode != 0: return "" - return result.stdout.strip() + return result.stdout.rstrip() def _status_paths(status_text: str) -> list[str]: diff --git a/tests/test_proof_surface.py b/tests/test_proof_surface.py index d1cb09c2..c5b6facb 100644 --- a/tests/test_proof_surface.py +++ b/tests/test_proof_surface.py @@ -78,6 +78,8 @@ def test_proof_surface_distinguishes_current_main_snapshot_and_local_readback( assert dirty.committed_dashboard_state == "modified_local_readback" assert dirty.generated_readback_state == "local_uncommitted_readback" assert dirty.merge_claim == "current_main_proof_valid" + assert "docs/dashboard.md" in dirty.generated_readback_paths + assert "ocs/dashboard.md" not in dirty.generated_readback_paths def test_proof_surface_avoids_merge_claim_for_branch_or_stale_proof(tmp_path: Path) -> None: