AboutWorkProjectsNotes
PT

say hi

 © 2026

  • Embed less, find moreRetrieval
  • The teacher was confidently wrongFine-tuning
  • Every agent write needs a name on itAgents
  • Too long to train onTraining
0/ 340 tokens

Agents · Draft · ~2 min

Every agent write needs a name on it

An agent you can't audit is a demo, not a product.

We built MCP agents that let non-engineers push a 200-artifact change across two systems of record in two tool calls. The hard part wasn't the model. It was making every write attributable.

A five-hop OAuth chain carries the end user's identity all the way to the system of record, so no write is ever just "the agent".

The chain

User → Claude → MCP server → PKCE with XSUAA → SAP auth → Microsoft Entra. Each hop exists for one reason: to make sure the next one can't act without the user.

what User does

Asks for a change in plain language. They're already signed in with their company account.

hands to Claude

the request, inside their signed-in session

Simplified. Five hops between the user and the identity provider.

Click a hop, or press Next hop, to follow one request from chat to the identity provider.

Claude never sees a password and holds no long-lived credential. The MCP server has no shared service account to fall back on, so a call without a valid user token simply fails. PKCE lets a public client get tokens from XSUAA without storing a secret, and an intercepted code is useless on its own.

SAP checks the token and the user's roles before any write, and Microsoft Entra sits at the root: it's what says the person behind the token is a real, active employee. When something changes, the log says exactly who asked for it.

Locks and logs

Entity-level locks serialize conflicting writes across ten workers, and every tool call is logged with who, what and when, so any change can be rolled back.

This is a draft. If you've hit the same problem, I'd love to compare notes.