Fernando Ramos← All posts
← All posts

Handing work to an agent that wasn't there

A pasted summary drops the decisions you rejected. Those are exactly the ones the next session will cheerfully re-propose. Congratulations, you've hired an amnesiac.

That's why /relay exists. It hands work over as an immutable checkpoint, not a pasted paragraph.

I ran a real handoff on a clone of ultimate-harness: review PRs #282-#286 against issues #265-#267, pane p1 to pane p2. Here's what happened.

Checkpoint first. It writes handoff.json and records its sha256. HANDOFF.md is generated from it. Want to fix something? Write the next checkpoint. Nobody edits the old one quietly.

Then sync pushed decisions to mnemosyne. It stored 3: two accepted, one rejected. The fourth, marked "proposed", wasn't stored, because a maybe isn't a memory. A second sync stored 0. Recalling "follow-ups 285" brought back my rejection of treating #285/#286 as follow-ups. Recalling "schema version bump" found nothing, for the reason above. (Recall without naming the bank returned 0 hits. Always pass the bank.)

Then I made an empty commit after the offer, to move HEAD. The receiver got this:

[relay] r1/p1#2 state=active STALE: workspace changed since checkpoint, verify before acting

Wrong receiver: refused. Second ack: refused. I edited HANDOFF.md: refused. I edited handoff.json: ack said the checkpoint changed after the offer. Wrote a newer checkpoint: the old offer was superseded.

Now the honest part. ack still succeeds on a stale workspace; it just records stale:true. Edit both HANDOFF.md and handoff.json and read passes, because it only compares the two. Only ack catches the second one. And my first draft failed validation because I never listed the field names in the skill. I wrote the docs. I got the bug.

Also: read never printed STALE. Only inject did. Yes, in my own tool. Fixed, as is the receiver's assignment not existing until after ack.

Last caveat, and it's a big one: the two "panes" were simulated by passing pane ids. No real second session read the checkpoint. I haven't tried two machines.

npx skills@latest add luci-efe/skills -s relay

Run excerpt (full transcript in the repo): relay example write-up. Break it and tell me.

Fernando Ramos, co-CEO of Agentic Engineering. More at ferramos.com.

Want something like this built for your company?

Book a callMessage me on LinkedInSee Agentic Engineering
← All posts