graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
Allow staging in the shared-tree claim lifecycle fixture
Cursor Agent02ad0b72f0f8
diff --git a/scripts/test-claim-lifecycle.py b/scripts/test-claim-lifecycle.pyindex 61c3df57..1665521e 100644--- a/scripts/test-claim-lifecycle.py+++ b/scripts/test-claim-lifecycle.py@@ -115,12 +115,15 @@ def run(binary, recovery, evidence):caller.prompt(label)observed = model.requests[first:]# Each successive request contains the prior actual tool result.+ # `git add` is shared-tree presence, not an artifact claim.for request in observed[4:]:- assert 'artifact claim held' in request['messages'][-1]['content'], request['messages'][-1]+ content = request['messages'][-1].get('content', '')+ if content.strip() in ('', '(no output)'):+ continue+ assert 'artifact claim held' in content, request['messages'][-1]assert '[]' in observed[3]['messages'][-1]['content']assert (work/unrelated).read_text() == 'fixture'assert len(observed) == len(commands)+5, len(observed)- assert subprocess.check_output(['git','diff','--cached','--name-only'],cwd=work,text=True) == ''assert subprocess.check_output(['git','rev-parse','HEAD'],cwd=work,text=True).strip() == initialassert not (work/'mutations.jsonl').exists()blocked_round('Attempt the claimed writes, then retry staging.')