Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python
380 B
Raw Blame
"""Peer-channel resume — incomplete. Fix the SPEC.md contract."""

ROOM = ["[peer] alice: leftover", "[peer] bob: also leftover"]


def snapshot(cursor, inbox):
    return {"cursor": cursor, "inbox": list(inbox)}


def resume(snap):
    # BUG: replays the room into history (ADR 0014).
    return {
        "cursor": 0,
        "inbox": [],
        "history": list(ROOM),
    }