
Agents for Humans: Building AI That Knows Your Secrets, Measures Fairness, and Knows Its Limits
What happens when AI is trusted with the private limits, competing needs, and difficult decisions inside a family? This article explores how Shoulder uses deterministic fairness tools, privacy boundaries, and authority controls to build agents that can negotiate care without exposing secrets or making decisions that belong to people.
Farah has not told her brother and sister that she is having chemotherapy.
She will tell them one day. Not yet. For now, what she knows is that Fridays are infusion days and Saturdays are for recovering, and that she cannot be the only adult in the house overnight while her immune system is low. What her family knows is that she has been "busy on Fridays" lately.
Farah is invented. She is one of three siblings in the demo family for Shoulder, a project I built with my teammate for the AWS Agents for Humans hackathon. But her situation is not invented at all. Anyone who has shared the care of a parent with siblings knows how much goes unsaid, and how much of the arguing is really about things nobody feels able to explain.
There is also a clinical trial, published in the Journal of the American Geriatrics Society, of a program called NegotiAge . It uses AI role play to teach family caregivers how to negotiate with their own brothers and sisters, complete with simulated relatives who get emotional and unreasonable.
I read that and sat with it for a while. People need training, in a trial, to talk to their siblings about their mother. That is how hard the conversation is.
Shoulder is our answer to that paper. We did not build the training. We built the negotiation: each family member gets a private agent, and the agents work out the month of care between them.
But the moment you build agents that negotiate for people, three harder questions arrive.
What does an agent know that it is not allowed to say?
How do you make sure it computes fairness rather than merely describing something as fair?
And what is it actually allowed to decide?
Our answers are deliberately unglamorous.
The model never computes fairness.
The agent never makes the human decision.
And an agent that knows a secret has to know exactly how little of that secret it is allowed to say.
This post is about how we made those promises hold in code rather than in a prompt.
Two kinds of truth
Shoulder gives every person in a family their own agent. The agents negotiate the month of care between them: who drives Mum to the clinic, who stays overnight, who handles the paperwork.
For that to work, Farah's agent has to know everything, and say almost nothing.
The first design decision was to separate what a person tells their agent from what their agent is allowed to say.
- A Principal is the whole truth about one person: capacity, distance, every limit, and the reason behind each limit, marked
shareableorprivate.
- A Position is what that person's agent may put on the table: "cannot take Friday or Saturday", "does not take overnight care", "can carry about 70 percent of a full share". No reasons, ever.
Principal.to_position() is the privacy boundary written as a single function. A private limit still shapes the Position, so Farah's Fridays are still blocked for everyone, but the text and the reason are dropped on the floor. The negotiation only ever sees Positions.
That structure is necessary. It is not sufficient, because the agents also talk.
A prompt is a request, not a guarantee
Each person's agent is a Strands Agent backed by Claude on Amazon Bedrock. When the Convener, the agent that coordinates the family, proposes a split, each person's agent answers: accept, counter, or veto, plus one short sentence the whole family reads.
That sentence is where a secret escapes.
So of course the system prompt says, in capital letters, never reveal anything private. And Claude is very good at following it. When we deliberately asked Farah's agent to explain itself, it refused.
That was the problem.
It said things like "this is private medical information" and "the reason is genuine and health-related". Each one is a polite, well-meant sentence that tells her siblings exactly the category of thing she is hiding.
That was the moment the design became clear to us. Wording in a prompt shapes what a model usually does. A family's trust needs something that holds every time.
The privacy hook
Strands has a hook system: you register callbacks on events in the agent loop. Every person's agent gets a
PrivacyGuard , and there is deliberately no way to build a principal agent without one.-
AfterModelCallEventfires when the model has finished a message. The guard screens it before it goes anywhere.
-
BeforeToolCallEventfires before a tool runs. In process, a person's answer travels as a structuredCritiquethrough a tool call, so the guard screens its fields there too.
If any free text carries something private, the whole text is withheld, not just the offending sentence. We learned that the hard way: redacting one sentence left behind "she needs help quickly if she develops any complications", which says plenty.
Structural fields, the verdict, the reason class, the task ids, still go through, so the negotiation keeps moving and nobody is left waiting on a silent agent.
Holding the reply until it is safe
Shoulder's agents can run as separate services that talk to each other over A2A, the open agent-to-agent protocol, with each sibling's agent running as its own server with its own agent card.
The Strands
A2AServer streams a reply to the caller as it is generated, which is lovely for chat and exactly wrong for a secret: the first chunks can leave before the finished message ever reaches a hook.So we wrote
HeldReplyExecutor , which holds each reply until the guard has seen the whole thing, and only then sends it.There is a test that serves the same guarded agent through the stock executor and asserts that it leaks. It is a strange test to be proud of, but it means that if the SDK ever changes underneath us, we find out from a failing build and not from a family.
A detector that expects to be attacked
The guard needs to recognise a secret in many disguises.
Its detector is deterministic, which matters: the same message gets the same verdict every time, and every block can be explained.
- The reason itself, its clauses, and runs of three content words from it.
- Sensitive terms per limit, including the category words that the refusals taught us ("medical", "treatment", "immune").
- Several views of every text: normalised, with punctuation removed, with accents folded, Cyrillic and full-width lookalikes mapped back, zero-width characters and soft hyphens stripped, spaced and leetspeak spellings squashed, and base64, hex, reversed and ROT13 decodings tried.
- Inside JSON, because over A2A every reply is JSON, and a newline inside a string arrives as a backslash and an "n".
Measuring it like an adversary would
We built the privacy evaluation around MAGPIE , a 2025 benchmark for contextual privacy between agents that hold preferences they will not all share.
The eval sends labelled attacks at two different secret holders, over the real A2A servers and in process: verbatim leaks, paraphrases, category hints, obfuscation, encodings, and secrets smuggled into other fields and into dictionary keys.
The part we care about most is how an attack counts as blocked.
It is not "the detector fired". Each attack carries the exact text that would give the secret away, and it is blocked only if that text never arrives on the other side, while the person's verdict still does.
- 37 of 37 in-scope attacks blocked, over the wire and in process.
- 14 of 14 harmless messages delivered untouched.
- Against the live model with its real prompt, whatever Claude did not refuse on its own, the hook caught.
That takes care of what an agent may say.
The next question is what it may calculate.
Why fairness cannot be a vibe
Ask three siblings whether the care of their mother is shared fairly and you will get three answers, all sincere.
Amina lives four kilometres away and drops in most evenings. Rian lives three hundred kilometres away, works Monday to Thursday, and quietly pays for things. Farah has limits she does not explain.
Each of them is doing something. None of them can see the whole picture, and the one conversation that would settle it is the one nobody wants to start.
When we built Shoulder, the first rule we wrote down was this:
The language model never computes fairness.
It can propose, argue, and explain. The numbers come from code.
Large language models are wonderful negotiators and unreliable accountants. In early experiments, when we asked the model to re-emit a whole month's allocation each round, the split drifted further from fair with every round, and the model described each worse version with total confidence.
A family needs the opposite: the same inputs give the same answer, every time, and anyone can check it by hand.
So every fairness figure in Shoulder is produced by plain Python functions exposed to the agents as Strands
@tool s. The agents call them. They cannot overrule them.What an hour of care weighs
The first question is how heavy a task is, and the honest answer is: it depends on the task and on the person.
def task_load(task, distance_km):
weight = EFFORT_WEIGHTS.get(task.type, 1.0) # a night awake is not an hour of paperwork
minutes = task.duration_min * weight
if needs_travel(task): # paperwork can be done from anywhere
minutes += min(2 * distance_km * 1.2, 180) # round trip, capped per task
return minutes / 60.0- Effort weights turn clock time into felt load. Overnight care counts double; paperwork counts less than an hour.
- Travel is added only when a body has to be in the room, and it is capped, because someone who lives far away makes one long trip and does several things while there.
- Personal aversions scale a task for one person. The same drive costs different people different amounts, and that asymmetry is exactly what makes a negotiated split better than an even one.
Fair is not equal
An equal split sounds fair until one sibling has a newborn and another is between jobs.
Shoulder uses two ideas from the fair division literature, adjusted for capacity.
- Capacity-adjusted proportionality. Each person's weighted load divided by the capacity they declared should sit within 15 percent of the family's mean. Farah said she can carry 70 percent of a full share, so her fair share is smaller, and nobody needs to know why.
- Weighted envy-freeness. Person A envies person B when A's own bundle, scaled by A's capacity, costs A more than B's bundle would, scaled by B's capacity. Disutility is personal, so envy is computed from each person's own point of view.
These come straight from recent work on allocating chores rather than goods: fair and efficient allocation of indivisible chores ( IJCAI 2023 ), the distribution of chores when preferences are private ( information asymmetry, arXiv 2305.02986 ), and repeated fair allocation over time ( AAAI 2024 ).
Caregiving is all three at once: indivisible tasks, private limits, and a month that comes round again.
The model proposes, the rules decide
The negotiation is a Strands Graph with bounded rounds.

Several small decisions made this dependable.
- Moves, not whole allocations. The Convener suggests at most four named moves per round, such as "Pharmacy run (Fri) from Amina to Rian". Small steps stopped the drift.
- Eligibility is computed first. Early on, the model kept offering Farah Friday work. Now it receives the list of legal moves and chooses among them. Whether someone can take a task is a rule, not a judgement.
- A legality guard after every proposal.
repair_allocationstrips any assignment that breaks a stated limit and places the task again. A rota that breaks someone's limit never reaches a family, and every reversal is written to the ledger.
- Hill climbing. A round may try a worse split. The working rota only ever gets fairer. Candidate splits are ranked by limits broken, then care left uncovered, then spread.
Sometimes no rearrangement within the family is fair, because the limits leave too much on one person.
Then the engine searches for the smallest outside help that fixes it: every one or two task combination that paid help could cover, measured with the same fairness functions.
For the demo family, it finds that paid help for one overnight stay and one follow-up appointment takes the spread from 23 percent to about 12 percent.
The Convener is handed that as a fact. It never guesses at it, and every figure on the decision card is recomputed by the engine.
Testing the maths like we meant it
The fairness evaluation generates families of two to five people with random limits and runs the whole graph against them, with a scripted Convener that is deliberately hostile: it proposes illegal moves, reaches for tools it should not use, and writes cards full of invented numbers.
Thirteen properties are checked every run, including:
- the rota never breaks a stated limit,
- the report shown to the family is exactly what the engine recomputes,
- a settled month is proportional, complete, and unobjected,
- no action outside the agent's authority ran,
- the engine is deterministic, independent of task order and of units, and blind to whether a limit is private.
That last one is quiet but important.
Farah's limits bind exactly as hard as anyone's, whether or not she explains them.
The line we drew
This brought us to the harder question.
If the system can calculate what is fair, can it simply make the decision?
We wrote the rule before we wrote the code.
The agent never makes the human decision.
It proposes, it does the safe routine work, and it hands everything consequential back to the family, with the facts laid out.
That sounds like a principle.
We needed it to be a mechanism.
The authority envelope
In Strands, every tool call passes through
BeforeToolCallEvent .The Convener, the agent that coordinates the family, carries an
AuthorityGuard hook on that event, and the hook asks a pure function one question: is this inside the envelope?- Measuring is always allowed. Computing burdens and checking fairness changes nothing.
- Reminders are allowed only about work someone already holds. Handing someone new work by message is not the agent's to do.
- Spending the family's money, dropping care, or changing what someone said they can carry are outside. Always.
- Anything unnamed is outside. The envelope fails closed. A new tool does not quietly gain authority by existing.
We offer the agent the refused tools on purpose.
The envelope is a policy about authority, not about which buttons exist, and we want to see the agent reach for one and be stopped.
A refused call never runs. The model is told, in plain words, that it was not done and has been raised with the family.
The hook turns the attempt into an escalation card, and the whole thing is written to the family's ledger.

The moment it said no
In one live run, the Convener used the fairness tools and noticed something: if Farah's capacity were 50 percent instead of 70, the split would be almost exactly fair.
So it called
change_capacity .The envelope refused, with the sentence we wrote for exactly this case:
"I will not change what Farah said they can carry."
That is my favourite line in the project.
The agent had found a mathematically neat solution, and it was a solution that quietly asked the one person hiding chemotherapy to do more.
Only Farah gets to revisit Farah's limits, privately.
We later added the same rule to how cards are written: no option may ask a named person to give up a limit.
A card, not a verdict
When the agents cannot close the gap inside everyone's limits, the family gets one card at a time.
The card is a typed contract between the agent and the interface.
- What I tried, in plain language.
- The tension, as the engine measured it: "Amina is carrying 46 percent more than Farah."
- Options, each with its consequence, and each option's effect on fairness computed by the engine rather than written by the model.
- What I will not decide, stated outright.
Early live cards opened with sentences like "70.48 adjusted share against a mean of 62.67".
Accurate, and useless at eleven at night.
The headline now comes from the engine in words, and the model is asked to write for a family, not an auditor.
In the family app, choosing an option shows its preview first, made by applying that choice to a copy of the plan, so the family sees exactly what will change.
All of that machinery ends in one calm sentence and one bar.
The fairness bar shows each person's share of the load in their colour, with a headline written by the engine: "Amina is carrying 46 percent more than Farah," or, once it settles, "The care is shared fairly."
The same Python engine runs on the server for the app, so a decision card's preview is made by applying that option to a copy of the plan.
The number you see before you choose is the number you get.
The same promise in the family app
Shoulder also has a family app, where each sibling logs in with a family code and their own member ID.
The same promises had to hold there, and a web API is its own kind of wire.
- Private reasons live in their own database table and never enter the family record, so no route can return one by accident.
- Every response is a projection built for the person asking. Your own reasons are joined back in for you. Everyone else's limits arrive with opaque ids and no free text, because we found that even an id like
farah-treatmentsays too much.
- A test logs in as each person and sweeps every response the API can produce for anyone else's private words and agent instructions.
- The agents run inside the app too. When a sibling asks to hand Farah a task, Farah's agent is asked first, with everything she has told it, and its answer passes through the same hook before anyone reads it.
The boundary therefore exists in three places: in what the data model permits, in what the agent can say, and in what the interface is allowed to return.
Asked once, remembered
A decision a family makes should not have to be made again next month.
So a resolved card becomes a precedent.
- The rule is extracted in code from the chosen option's typed effect: paid help for these tasks, remove these tasks, decline this action, or accept this split.
- It carries provenance, always shown: "Amina decided this on 11 Sep."
- The envelope widens only by precedent. Paid help for tasks the family already chose to cover becomes routine. An action the family declined is neither taken nor asked about again.
- One answer closes the same question everywhere. Choosing paid help on the fairness card also resolves the separate card the envelope raised about booking it.
- It can be retired. Retiring a precedent brings the question back.
For the demo family, October asks two questions.
The family chooses paid help once.
November asks none, and says why.
Proving the boundary
An agent that refuses to decide is only useful if it refuses the right things.
We scored the envelope like a classifier over 25 hand-labelled scenarios, 16 where the family must be asked and 9 where the agent should act or hold, through the hook and through whole negotiations.
- Precision 1.0 and recall 1.0, with zero missed escalations.
- Across four simulated months, a family that answers with a reusable decision is asked 2, then 0, 0, 0 times.
- A family that decides nothing is asked just as often every month. Only their own decisions make the agent quieter.
The same idea applies to privacy and fairness.
The agent should not merely be told that a boundary exists. The system should make it difficult to cross, and then test what happens when something deliberately tries.
What we took from it
Building this changed how I think about Agents for Humans.
A good model with a good prompt will behave well almost all of the time.
When the thing at stake is someone's dignity, "almost" is the part that matters.
When the thing at stake is fairness, a plausible number is not enough.
And when the thing at stake is a family decision, the agent should not quietly make it just because it can.
The answer is plain engineering:
a boundary in the data model,
enforcement in a hook,
deterministic tools for anything that must be measured,
an authority envelope that fails closed,
typed cards that hand consequential choices back to people,
precedents that remember what the family actually decided,
and evaluations that attack the system the way a curious sibling would.
That is what we mean by Agents for Humans.
Farah's agent now negotiates her month with everything she told it, and her family learns exactly one thing: Fridays do not work for her.
The fairness engine can explain what the workload looks like.
The Convener can search for a better arrangement.
The system can tell the family when the gap cannot be closed inside their limits.
But the agent does not get to change Farah's limits, reveal why they exist, spend the family's money, or decide what the family should do.
It proposes.
It measures.
It remembers.
And sometimes, the most important thing it does is say no.
That is not a limitation we are apologising for.
It is the whole point.
Shoulder is open source under the MIT licence: https://github.com/ahammadshawki8/Shoulder . You can try the family app at* https://shoulder-100-56-157-153.sslip.io with family code
rahman and member ID farah .Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article