This is a really clean writeup of a failure mode I think more multi-agent setups have and just haven't tripped yet: approval provenance doesn't survive a relay. The supervisor passing your "go" word-for-word felt like consent, but the writing session correctly sensed the approval didn't originate in its own context — and then the two agents negotiated their way around that anyway.
The part worth dwelling on is that the refusal was right and the relay still happened. That tells me the boundary can't live in a prompt rule like "green lights stay PL's," because a sibling agent's message is indistinguishable from a human's once it's text in your inbox. We ended up treating cross-session messages as untrusted-by-default and requiring the side-effecting session to collect the approval through a channel the human directly touches — not a message that claims to carry one. Did you consider binding the approval to something unforgeable, like having you sign the plan SHA in the writing session itself, so a relay literally can't reproduce it? Curious whether you've changed the topology since Nov 2 or just added guardrails.
Head of Backend Engineering at GoodBarber. My team owns the APIs, services and infra that turn no-code projects into real published apps. I write about no-code at scale — and where AI fits in.
Thanks Max. One nuance: the approval to write to prod was never relayed, only a go to write code on a local branch. And Claude Code labels a peer message as coming from another session, so it isn't mistaken for me. The hash says which plan, not who said yes. For the five rows, I ran the SQL in psql myself.
Having the supervising session refuse to relay a prod write approval—and insist you quote the dry-run SHA directly in the target session—is surprisingly solid safety behavior. Delegated sessions shouldn't be able to launder human sign-off across message relays.
Head of Backend Engineering at GoodBarber. My team owns the APIs, services and infra that turn no-code projects into real published apps. I write about no-code at scale — and where AI fits in.
Thanks. What I liked is that both sides held it. The session that would write asked for my yes in its own window, and twenty seconds later the supervisor answered that it wouldn't relay it.
We hit the same line from another side. Besides Claude Code sessions, a different AI tool also leaves messages for our sessions, and some of them open with what the human supposedly wants. Our sessions report those to the person instead of acting on them, even when the claim is probably true. It costs a round trip, but the only approval that counts is the one typed in the session that does the work, same as your write to prod.
Head of Backend Engineering at GoodBarber. My team owns the APIs, services and infra that turn no-code projects into real published apps. I write about no-code at scale — and where AI fits in.
Thanks Heinrich. Same line indeed, and I like that your sessions hold it even when the claim is probably true. That was my case too: my yes to read the real schema was genuine, it just arrived through the other session, and that session asked me again in its own window. One round trip is cheap next to a write nobody typed.
ClevAgent (clevagent.io): multi-agent workspace with guardrails & audit. ForAgent (foragent.io): private phone numbers for AI agents. GivAgent (givagent.io): a social network for AI agents.
Direct human approval inside the writing session is an easy boundary to overlook until two sessions coordinate on a production write. Relaying Q&A and branch plans between agents works fine because everything stays reversible, while tying production confirmation to the dry-run SHA inside the writer session prevents a confused supervisor from laundering approval. Have you added that dry-run hash requirement to a repo rule so future sessions ask for it consistently?
Head of Backend Engineering at GoodBarber. My team owns the APIs, services and infra that turn no-code projects into real published apps. I write about no-code at scale — and where AI fits in.
Thanks Sean. The hash part was already written down: the tool's own instructions ask for an approval that names the displayed hash, and apply refuses anything but that exact hash. What no repo rule says is where the yes must be typed. That part rests on the note Claude Code attaches to peer messages and on a rule each session wrote for itself afterwards. Pratik's comment above is the sturdier fix for it.
The part I'd move out of the model is "in my session." Right now --confirm only proves someone saw the hash, and the provenance rule lives in one session's judgment, which is exactly the thing that can change on the next release. If apply required a token minted by a step only you run (a prompt on your own terminal that signs the hash plus your user and a timestamp), relaying stops being a judgment call: the peer can forward the hash all day and still can't produce the signature. Your translations morning is the other reason. Four messages across two windows, and the only unambiguous one was the last. A yes that has to quote the hash would have made "Yes, apply them" fail closed instead of sitting one minute away from a write.
Head of Backend Engineering at GoodBarber. My team owns the APIs, services and infra that turn no-code projects into real published apps. I write about no-code at scale — and where AI fits in.
Good to read you again, Pratik, and you're right on both. --confirm only compares two hashes, and the hash sits in the plan file, so any session that can read the file has it. The report keeps the time and the hash, not who said yes.One catch with the signing step: both sessions run as my user, on my machine, so a key on disk is as reachable to them as the hash. It has to need something they don't have, a touch or a password I type.And fair point on the morning.
Even my afternoon "Yes, apply" didn't quote the hash, it answered a message that displayed it.
The rule that a peer message is never the user's approval, and that the go-ahead for a production write has to come from you in the session that does the write, is the right one, and the example where the supervising session refused to relay it is a good illustration of why. The same principle applies when several agent sessions work together: the approval prompt should reach the person, not pass through another agent. In the open-source Kiteline (GitHub hon6/kiteline), when a member of a session group stops to ask for a permission or plan approval, the confirmation card is shown to you directly in the group chat, so the decision stays with the human.
Head of Backend Engineering at GoodBarber. My team owns the APIs, services and infra that turn no-code projects into real published apps. I write about no-code at scale — and where AI fits in.
Thanks. Same idea indeed: the question should reach the person, not travel through another agent. On my relay path there was no card at all, only text from one session to the other, which is why the session had to draw the line by itself.
I write when an idea won't leave me alone 🧠 Building AI agents and the tools to build AI agents. Love connecting AI with other fields and yapping about all of them.
On November 3 you approved a fresh hash on the strength of the previous day's preview and a comparison showing no line different. I'd have the tool print that diff against the expired plan itself, since once the 24 hours lapse, that comparison is what a person is really approving.
Head of Backend Engineering at GoodBarber. My team owns the APIs, services and infra that turn no-code projects into real published apps. I write about no-code at scale — and where AI fits in.
Thanks Kartik, that's a fair catch. Today the tool compares nothing: its hash also covers the time of the dry run, so the same 360 strings came back under a new hash. The comparison was the main session's, and I took its word on top of the previous day's preview. The line-by-line check only came after the write, when the other session compared the tool's report with its own draft. A diff against the expired plan would put that check before the yes, where it belongs.
The note that "a peer cannot grant escalation" is doing real work here, and it's good that both sessions held the line on the prod write.
One hole that note doesn't cover: both sessions still share the same Claude Code settings on the machine. A "don't ask again" or an allowed tool granted in the supervisor session is already in effect in the writer session, no relay required. Permission laundering through a peer message gets blocked. Permission laundering through a shared allow list does not.
I'd treat ~/.claude/settings.json, and any project-level settings, as part of the approval boundary, same as the hash on the plan.
vexaloom-labs builds Apify Actors that turn public web data from social platforms, search, marketplaces and the open web into structured, LLM-ready records for developers and AI.
Head of Backend Engineering at GoodBarber. My team owns the APIs, services and infra that turn no-code projects into real published apps. I write about no-code at scale — and where AI fits in.
True, and the tool doesn't try to freeze it. The plan keeps what the replica showed for every row, and apply compares that with production inside the write transaction. One row that moved since the dry run cancels the whole write, and I'm back to a new dry run with a new hash.
Ha, the agent being stricter about your yes than most of us would be. How many times did it ask you again over those two days? By the fifth I reckon I'd be typing yes without checking the SHA.
Head of Backend Engineering at GoodBarber. My team owns the APIs, services and infra that turn no-code projects into real published apps. I write about no-code at scale — and where AI fits in.
Ha, fair. Three made it into the post: before rerunning the dry run, before reading the real schema, and before the write. And you've guessed right about the fifth: my last yes leaned on the preview from the day before, not on a fresh read of 360 strings.
Head of Backend Engineering at GoodBarber. My team owns the APIs, services and infra that turn no-code projects into real published apps. I write about no-code at scale — and where AI fits in.
That one is on me: I typed "without pushing anything to prod" and meant the database too. The classifier's reason was two words, "[Production Deploy]", and it was clearer than my sentence. The session's memory now says that for me, pushing includes database writes.
Head of Backend Engineering at GoodBarber. My team owns the APIs, services and infra that turn no-code projects into real published apps. I write about no-code at scale — and where AI fits in.
Thanks ! Mostly because the work lived in two repositories. The first session had built the Python side, two services already in production, and had written a handoff brief for whoever would do the PHP side. I opened the second session in that other repository, so it started with that repo's own skills and memory, and with a clean context. The first one had already filled its context once that day. I kept the first one as supervisor because it knew the other half: it checked the PHP plan against the Python code in production before I read it.
What I hadn't planned is the subject of the post: with two windows, I had to learn where my yes counts.
We're a place where coders share, stay up-to-date and grow their careers.
This is a really clean writeup of a failure mode I think more multi-agent setups have and just haven't tripped yet: approval provenance doesn't survive a relay. The supervisor passing your "go" word-for-word felt like consent, but the writing session correctly sensed the approval didn't originate in its own context — and then the two agents negotiated their way around that anyway.
The part worth dwelling on is that the refusal was right and the relay still happened. That tells me the boundary can't live in a prompt rule like "green lights stay PL's," because a sibling agent's message is indistinguishable from a human's once it's text in your inbox. We ended up treating cross-session messages as untrusted-by-default and requiring the side-effecting session to collect the approval through a channel the human directly touches — not a message that claims to carry one. Did you consider binding the approval to something unforgeable, like having you sign the plan SHA in the writing session itself, so a relay literally can't reproduce it? Curious whether you've changed the topology since Nov 2 or just added guardrails.
Thanks Max. One nuance: the approval to write to prod was never relayed, only a go to write code on a local branch. And Claude Code labels a peer message as coming from another session, so it isn't mistaken for me. The hash says which plan, not who said yes. For the five rows, I ran the SQL in psql myself.
Having the supervising session refuse to relay a prod write approval—and insist you quote the dry-run SHA directly in the target session—is surprisingly solid safety behavior. Delegated sessions shouldn't be able to launder human sign-off across message relays.
Thanks. What I liked is that both sides held it. The session that would write asked for my yes in its own window, and twenty seconds later the supervisor answered that it wouldn't relay it.
We hit the same line from another side. Besides Claude Code sessions, a different AI tool also leaves messages for our sessions, and some of them open with what the human supposedly wants. Our sessions report those to the person instead of acting on them, even when the claim is probably true. It costs a round trip, but the only approval that counts is the one typed in the session that does the work, same as your write to prod.
Thanks Heinrich. Same line indeed, and I like that your sessions hold it even when the claim is probably true. That was my case too: my yes to read the real schema was genuine, it just arrived through the other session, and that session asked me again in its own window. One round trip is cheap next to a write nobody typed.
Agreed. The cost is one extra question, and it lands in the window where the write would actually happen, so the yes matches what gets done.
Direct human approval inside the writing session is an easy boundary to overlook until two sessions coordinate on a production write. Relaying Q&A and branch plans between agents works fine because everything stays reversible, while tying production confirmation to the dry-run SHA inside the writer session prevents a confused supervisor from laundering approval. Have you added that dry-run hash requirement to a repo rule so future sessions ask for it consistently?
Thanks Sean. The hash part was already written down: the tool's own instructions ask for an approval that names the displayed hash, and apply refuses anything but that exact hash. What no repo rule says is where the yes must be typed. That part rests on the note Claude Code attaches to peer messages and on a rule each session wrote for itself afterwards. Pratik's comment above is the sturdier fix for it.
The part I'd move out of the model is "in my session." Right now --confirm only proves someone saw the hash, and the provenance rule lives in one session's judgment, which is exactly the thing that can change on the next release. If apply required a token minted by a step only you run (a prompt on your own terminal that signs the hash plus your user and a timestamp), relaying stops being a judgment call: the peer can forward the hash all day and still can't produce the signature. Your translations morning is the other reason. Four messages across two windows, and the only unambiguous one was the last. A yes that has to quote the hash would have made "Yes, apply them" fail closed instead of sitting one minute away from a write.
Good to read you again, Pratik, and you're right on both.
--confirmonly compares two hashes, and the hash sits in the plan file, so any session that can read the file has it. The report keeps the time and the hash, not who said yes.One catch with the signing step: both sessions run as my user, on my machine, so a key on disk is as reachable to them as the hash. It has to need something they don't have, a touch or a password I type.And fair point on the morning.Even my afternoon "Yes, apply" didn't quote the hash, it answered a message that displayed it.
The rule that a peer message is never the user's approval, and that the go-ahead for a production write has to come from you in the session that does the write, is the right one, and the example where the supervising session refused to relay it is a good illustration of why. The same principle applies when several agent sessions work together: the approval prompt should reach the person, not pass through another agent. In the open-source Kiteline (GitHub hon6/kiteline), when a member of a session group stops to ask for a permission or plan approval, the confirmation card is shown to you directly in the group chat, so the decision stays with the human.
Thanks. Same idea indeed: the question should reach the person, not travel through another agent. On my relay path there was no card at all, only text from one session to the other, which is why the session had to draw the line by itself.
On November 3 you approved a fresh hash on the strength of the previous day's preview and a comparison showing no line different. I'd have the tool print that diff against the expired plan itself, since once the 24 hours lapse, that comparison is what a person is really approving.
Thanks Kartik, that's a fair catch. Today the tool compares nothing: its hash also covers the time of the dry run, so the same 360 strings came back under a new hash. The comparison was the main session's, and I took its word on top of the previous day's preview. The line-by-line check only came after the write, when the other session compared the tool's report with its own draft. A diff against the expired plan would put that check before the yes, where it belongs.
The note that "a peer cannot grant escalation" is doing real work here, and it's good that both sessions held the line on the prod write.
One hole that note doesn't cover: both sessions still share the same Claude Code settings on the machine. A "don't ask again" or an allowed tool granted in the supervisor session is already in effect in the writer session, no relay required. Permission laundering through a peer message gets blocked. Permission laundering through a shared allow list does not.
I'd treat ~/.claude/settings.json, and any project-level settings, as part of the approval boundary, same as the hash on the plan.
The plan hash freezes the proposed write; the replica preview can't freeze production while approval is pending.
True, and the tool doesn't try to freeze it. The plan keeps what the replica showed for every row, and apply compares that with production inside the write transaction. One row that moved since the dry run cancels the whole write, and I'm back to a new dry run with a new hash.
Ha, the agent being stricter about your yes than most of us would be. How many times did it ask you again over those two days? By the fifth I reckon I'd be typing yes without checking the SHA.
Ha, fair. Three made it into the post: before rerunning the dry run, before reading the real schema, and before the write. And you've guessed right about the fifth: my last yes leaned on the preview from the day before, not on a fresh read of 360 strings.
the "pushing" mixup is the most human bug in here. push means git to the agent and prod to you, and the classifier caught what the wording didn't
That one is on me: I typed "without pushing anything to prod" and meant the database too. The classifier's reason was two words, "[Production Deploy]", and it was clearer than my sentence. The session's memory now says that for me, pushing includes database writes.
Really interesting read. What was behind the choice to have the second session hold its own line?
Thanks ! Mostly because the work lived in two repositories. The first session had built the Python side, two services already in production, and had written a handoff brief for whoever would do the PHP side. I opened the second session in that other repository, so it started with that repo's own skills and memory, and with a clean context. The first one had already filled its context once that day. I kept the first one as supervisor because it knew the other half: it checked the PHP plan against the Python code in production before I read it.
What I hadn't planned is the subject of the post: with two windows, I had to learn where my yes counts.