---
title: "Who may know what: need-to-know in code, not by discipline"
description: "How an AI function sees only the data that role and tenant allow, even when a developer forgets a check."
canonical: "https://simosphereai.com/en/field-reports/need-to-know-in-code"
lang: en
---

# Who may know what: need-to-know in code, not by discipline

How an AI function sees only the data that role and tenant allow, even when a developer forgets a check.

- Published: 2026-10-06
- Updated: 2026-10-06
- Status: erprobung
- Publisher: SIMO GmbH

## Starting question

How do we make sure an AI function only sees the data its role and tenant allow, even if a developer forgets a check?

## Result: open

Design in testing: without a signed permission object, an AI call does not even compile.

By requiring every call to an AI component to carry a signed permission object that only a central policy service issues. Without it, the code does not compile. Need-to-know thus becomes a property of the architecture; the design is in testing.

## What we tested

Until now, authorization hung on one middleware line per route. If that line is missing, the endpoint is open.

We designed a model in which every call to an AI component has to carry a signed permission object. Without it, the code does not even compile. Only a central policy authority may issue these objects. The design is in testing and not yet in production.

## What it means for business architecture

Need-to-know becomes a property of the architecture rather than something code review has to catch. For regulated organizations that is exactly what matters: you can show that data access without approval cannot happen technically. Showing that it rarely happens is not enough.

## Lessons learned

- A forgotten line is the typical data leak. Structural guarantees beat checklists.
- When components call each other, the risk multiplies. The check belongs at every handoff.
- Permissions need an expiry and a narrow scope, otherwise they turn into a master key.

Rendered version: https://simosphereai.com/en/field-reports/need-to-know-in-code
