graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
Drop peer-inbox rows from lifecycle request counts
justrach3fd3db4cc400
diff --git a/scripts/test-claim-lifecycle.py b/scripts/test-claim-lifecycle.pyindex e9364f08..508300df 100644--- a/scripts/test-claim-lifecycle.py+++ b/scripts/test-claim-lifecycle.py@@ -113,12 +113,13 @@ def run(binary, recovery, evidence):prefix = [write, write, tool('bash',command='gh pr list --json number')]model.caller_steps = prefix+[tool('bash',command=cmd) for cmd in commands+commands[:1]]caller.prompt(label)- observed = model.requests[first:]+ def is_peer(req):+ content = req['messages'][-1].get('content', '')+ return isinstance(content, str) and content.startswith('[peer]')+ observed = [req for req in model.requests[first:] if not is_peer(req)]# Each successive request contains the prior actual tool result.for request in observed[4:]:content = request['messages'][-1].get('content', '')- if isinstance(content, str) and content.startswith('[peer]'):- continueassert 'artifact claim held' in content, request['messages'][-1]assert '[]' in observed[3]['messages'][-1]['content']assert (work/unrelated).read_text() == 'fixture'