ai newsMi., 25. Nov.
EilmeldungYale’s Sonnenfeld: Nvidia is a ‘detriment’ to U.S. industrial might — not a champion

KI-Agenten: Kurzlebige Identitäten pro Task als Sicherheitskonzept

Jeder Agentenlauf soll eine eigene, an eine Aufgabe gebundene Identität erhalten, die schnell abläuft. Jeder Tool-Aufruf soll in einer Infrastruktur geprüft werden, die das Modell weder lesen noch verändern kann, inklusive vollständiger Protokollierung von Prompts und Antworten.

dev.toMontag 21:30 · 23.11.DE5 Min. Lesezeit
Bild: dev.to

Veröffentlicht am 23. November · Ursprünglich veröffentlicht auf chainofthought.show

Gib jedem Agentenlauf eine frische Identität, die an genau eine Aufgabe gebunden ist, lass sie schnell ablaufen und prüfe jeden Tool-Aufruf in einer Infrastruktur, die das Modell weder lesen noch verändern kann. Zeichne danach jeden Prompt, jede Tool-Anfrage, jede Tool-Antwort und jeden Output auf. Regeln im System-Prompt helfen, aber sie dürfen nicht das sein, was einen Agenten davon abhält, Kundendaten oder Geld anzufassen.

Tyler Akidau ist Chief Technology and Product Officer bei Redpanda. Diese Governance-Schicht stellte er im Mai 2026 in Chain of Thought vor, aufbauend auf seinem O'Reilly-Radar-Beitrag darüber, warum niemand eine Art Personalabteilung für Agenten gebaut hat.

Anweisungen, die der Agent liest, können nicht das Einzige sein, was eine Regel durchsetzt. Akidau bezeichnet Prompts und trainierte Guard-Modelle als Inbound-Kontrollen und sagt, dass diese irgendwann unter Prompt Injection oder Halluzination zusammenbrechen werden. Akidaus Vergleich: einem Agenten zu sagen, er solle die Datenbank nie löschen, ist wie das gesamte Bargeld des Unternehmens in einem Raum ohne Schloss aufzubewahren und die Leute zu bitten, nichts mitzunehmen. "Es ist in Ordnung, bis es nicht mehr in Ordnung ist."

Seine Regel lautet, Limits außerhalb des Bandes durchzusetzen, über Kanäle, auf die der Agent nicht zugreifen, die er nicht verändern oder einsehen kann. Behandle den Prompt als Orientierung. Alles, was unbedingt gelten muss, gehört ins Tool-Gateway, in den Identity Provider und in die Policy-Schicht.

Service-Accounts setzen Software voraus, die sich jedes Mal gleich verhält und eine feste Rolle hat. Agenten sind nicht-deterministisch und lassen sich leicht klonen, weshalb Akidau argumentiert, dass jede Instanz eine eigene Identität für die Aufgabe braucht, die sie gerade ausführt:

jede Agenteninstanz braucht für jede konkrete Aufgabe, die sie ausführt, eine Identität, die festlegt, dass diese Instanz genau diese Version des Agenten ist, gebunden an diese Aufgabe. Kurzlebig, im Grunde bekommt sie jedes Mal, wenn man sie beauftragt etwas zu tun, ein neues Badge.

Tyler Akidau, Chief Technology and Product Officer bei Redpanda, in Chain of Thought Folge 60

Podcast-Episode · Chain of Thought | AI Agents, Infrastructure & Engineering · 27. Mai · 51 Min

Diese Identität erfasst auch, wer die Arbeit delegiert hat, sodass jede Aktion auf einen Menschen zurückverfolgt werden kann (oder auf einen Agenten, der in dessen Auftrag handelt). Die Autorisierung darauf sollte sein:

Der letzte Punkt ist sein Gast-Badge-Modell:

man kann ein Gast-Badge bekommen und im Grunde überall hingehen, wo einen ein Mensch mitnimmt. Aber selbst wenn der Mensch Zugang zum geheimen Serverraum hat, in den Gäste nicht dürfen, darf man trotzdem nicht hinein, weil man das Gast-Badge trägt.

Ein minimales Beispiel zur Anpassung. log_event und is_revoked sind hypothetische Anknüpfungspunkte an deine Trace-Pipeline und deine Widerrufsliste.

from dataclasses import dataclass from datetime import datetime, timedelta, timezone @dataclass ( frozen = True ) class Grant: grant_id: str instance_id: str # die Agenteninstanz, an die dieser Lauf gebunden ist task_id: str delegator: str # der Mensch (oder Agent), der diesen Lauf angefordert hat expires_at: datetime allowed: frozenset # {("billing_db", "read"),...} def mint_grant ( grant_id, instance_id, task_id, delegator, human_perms, agent_allow, agent_deny, ttl ): effective = ( human_perms & agent_allow ) - agent_deny # Denys gewinnen immer return Grant ( grant_id, instance_id, task_id, delegator, datetime. now ( timezone. utc ) + ttl, frozenset ( effective ) ) def authorize ( grant, ctx, resource, action, is_revoked, log_event ): # ctx kommt aus der Runtime (wer tatsächlich aufruft), nicht vom Modell ok = ( datetime. now ( timezone. utc ) < grant. expires_at and ctx. instance_id == grant. instance_id and ctx. task_id == grant. task_id and not is_revoked ( grant. grant_id ) and ( resource, action ) in grant. allowed ) log_event ( "authz", { "grant": grant. grant_id, "by": grant. delegator, "perm": ( resource, action ), "allowed": ok } ) return ok Vollbildmodus öffnen Vollbildmodus verlassen Rufe authorize in der Tool-Schicht auf, bevor das Tool ausgeführt wird. Diese Prüfung gilt unabhängig davon, was dem Modell gesagt wurde, denn das Modell kann weder den Grant noch den Aufruferkontext noch die Widerrufsliste ändern.

Alles. Ein Modell lässt sich nicht so debuggen wie eine fehlerhafte if-Anweisung, deshalb ist Akidaus Antwort, jeden Prompt, jeden Input, jede Tool-Anfrage, jede Tool-Antwort und jeden Output aufzuzeichnen und darauf dann Observability, nachträgliche Erklärungen und automatisierte Evals aufzubauen. Sein Beispiel, warum das wichtig ist: ein Customer-Service-Slack-Bot, der zwei oder drei Wochen gut funktionierte und den Kunden dann Vorschläge machte, die keinen Sinn ergaben. Ohne die Historie kann man nicht erkennen, wann oder warum sich das Verhalten geändert hat.

Beim Format empfiehlt er, mit OpenTelemetry zu beginnen, das auch Redpanda in dem System verwendet, das es gerade baut, damit Traces aus jedem beliebigen Agent-Framework herauskommen und an einem Ort landen können.

Setze das Limit dorthin, wo die Aktion ausgeführt wird, nicht dorthin, wo der Agent entscheidet. Akidau beschrieb eine Wealth-Management-Demo aus einem Workshop-Paper: Man kann Parameter für automatischen Handel festlegen, aber jeder Trade mit mehr als beispielsweise 1.000 US-Dollar Auswirkung auf das Portfolio geht immer zur Prüfung an einen Menschen. Der Agent kann das nicht umgehen, und er weiß nicht, dass es diese Prüfung gibt.

Dieselbe Identitätsschicht gibt dir einen Kill-Switch. Wenn jede Instanz eine eigene Identität hat und die Autorisierung dynamisch ist, bedeutet das Stoppen eines fehlverhaltenden Agenten (oder einer ganzen Klasse davon), den Zugriff an einer einzigen Stelle zu entziehen. Mit seinen Worten: Chain of Responsibility und der Kill-Switch hängen "im Wesentlichen davon ab, dass man sagt: löst Identität und Autorisierung richtig".

Reicht ein System-Prompt oder eine Skills-Datei, um einen Produktions-Agenten einzuschränken? Nicht bei Kundendaten oder Geld. Der Agent kann diese Anweisungen lesen und sich trotzdem nicht daran halten. Setze die Regel in einer Infrastruktur durch, die er nicht erreichen kann.

Wie unterscheidet sich Agenten-Identität von einem Service-Account? Ein Service-Account hat eine feste Rolle und setzt vorhersagbares Verhalten voraus. Eine Agenteninstanz bekommt pro Aufgabe eine frische Identität, mit kurzer Gültigkeit und einem Vermerk, wer die Arbeit delegiert hat.

Braucht man ein separates Kill-Switch-System? Nach Akidaus Sicht ergibt es sich aus richtig gemachter Identität und Autorisierung: Widerrufe die Grants (die is_revoked-Prüfung oben) und der Agent stoppt.

Das vollständige Gespräch mit Transkript findest du bei Chain of Thought.

Abonniere den Chain-of-Thought-Newsletter für neue Episoden und Zusammenfassungen wie diese.

Mit Unterstützung von KI aus den Episoden-Transkripten verfasst.

Automatisch übersetzt. Das Original auf Englisch ist unten aufklappbar.

Original (Englisch) anzeigen

Posted on Nov 23 • Originally published at chainofthought.show

Give every agent run a fresh identity bound to one task, let it expire fast, and check each tool call in infrastructure the model can't read or change. Then record every prompt, tool request, tool response and output. Rules in the system prompt help, but they can't be the thing that stops an agent from touching customer data or money.

Tyler Akidau is chief technology and product officer at Redpanda. He laid out this governance layer on Chain of Thought in May 2026, building on his O'Reilly Radar piece about why nobody built HR for agents.

Instructions the agent reads can't be the only thing enforcing a rule. Akidau calls prompts and trained guard models inbound controls, and says they will at some point collapse under prompt injection or hallucination. Akidau's comparison: telling an agent never to delete the database is like keeping all of the company's cash in a room with no lock and asking people not to take any. "It's fine until it's not."

His rule is to enforce limits out of band, through channels the agent can't access, modify or see. Treat the prompt as guidance. Put anything that must hold in the tool gateway, the identity provider and the policy layer.

Service accounts assume software that behaves the same way every time, with a fixed role. Agents are non-deterministic and easy to clone, so Akidau argues each instance needs its own identity for the task it's running:

you need each agent instance for any given specific tasks it's running to have an identity, nailing down like this instance is, you know, this version of the agent bound to this task. short-lived, you know, it's essentially every time you get asking you to go do something, it gets a new badge.

Tyler Akidau, chief technology and product officer at Redpanda, on Chain of Thought ep 60

Podcast Episode · Chain of Thought | AI Agents, Infrastructure & Engineering · May 27 · 51m

That identity also records who delegated the work, so every action traces back to a human (or to an agent acting for one). Authorization on top of it should be:

The last point is his guest-badge model:

you can get a guest badge and you can kind of go anywhere that a human will take you. But even if the human has access to the secret server room that guests aren't allowed in, you're still not allowed to go because you've got the guest badge.

A minimal sketch to adapt. log_event and is_revoked are hypothetical hooks into your trace pipeline and revocation list.

from dataclasses import dataclass from datetime import datetime, timedelta, timezone @dataclass ( frozen = True ) class Grant: grant_id: str instance_id: str # the agent instance this run is bound to task_id: str delegator: str # the human (or agent) who asked for this run expires_at: datetime allowed: frozenset # {("billing_db", "read"),...} def mint_grant ( grant_id, instance_id, task_id, delegator, human_perms, agent_allow, agent_deny, ttl ): effective = ( human_perms & agent_allow ) - agent_deny # denies always win return Grant ( grant_id, instance_id, task_id, delegator, datetime. now ( timezone. utc ) + ttl, frozenset ( effective ) ) def authorize ( grant, ctx, resource, action, is_revoked, log_event ): # ctx comes from the runtime (who is actually calling), not from the model ok = ( datetime. now ( timezone. utc ) < grant. expires_at and ctx. instance_id == grant. instance_id and ctx. task_id == grant. task_id and not is_revoked ( grant. grant_id ) and ( resource, action ) in grant. allowed ) log_event ( "authz", { "grant": grant. grant_id, "by": grant. delegator, "perm": ( resource, action ), "allowed": ok } ) return ok Enter fullscreen mode Exit fullscreen mode Call authorize in the tool layer, before the tool runs. The check holds whatever the model has been told, because the model can't change the grant, the caller context or the revocation list.

Everything. You can't debug a model the way you debug a bad if-statement, so Akidau's answer is to record every prompt, input, tool request, tool response and output, then build observability, after-the-fact explanations and automated evals on that record. His example of why it matters: a customer service Slack bot that worked well for two or three weeks, then started giving customers suggestions that made no sense. Without the history, you can't see when or why behavior shifted.

For the format, he recommends starting with OpenTelemetry, which is what Redpanda uses in the system it is building, so traces can leave whatever agent framework produced them and land in one place.

Put the limit where the action executes, not where the agent decides. Akidau described a wealth-management demo from a workshop paper: you might set parameters for automatic trading, but any trade with more than, say, $1,000 of portfolio impact always goes to a human for review. The agent can't get around it, and it doesn't know the check exists.

The same identity layer gives you a kill switch. If every instance has its own identity and authorization is dynamic, stopping a misbehaving agent (or a whole class of them) means revoking access in one place. In his words, chain of responsibility and the kill switch are "largely dependent on just saying, look, solve identity and authorization properly."

Is a system prompt or skills file enough to restrict a production agent? Not for customer data or money. The agent can read those instructions and still fail to follow them. Enforce the rule in infrastructure it can't reach.

How is agent identity different from a service account? A service account has a fixed role and assumes predictable behavior. An agent instance gets a fresh identity per task, with a short expiry and a record of who delegated the work.

Do you need a separate kill-switch system? Akidau's view is that it falls out of identity and authorization done well: revoke the grants (the is_revoked check above) and the agent stops.

The full conversation, with the transcript, is on Chain of Thought.

Subscribe to the Chain of Thought newsletter for new episodes and write-ups like this one.

Drafted with AI assistance from the episode transcripts.

Originaltitel: Give each AI agent run its own short-lived, task-scoped identityQuelle: dev.to (dev.to). Original öffnen