Shipmind Labs

Artistic deep fakes: a changed manner of disclosure, not an exemption

· 10 min read

A rules engine that files every carve-out as an exemption will eventually excuse a duty that the law only reshaped. Article 50(4) of the EU AI Act is the clearest case we have run into: a deep fake of real people, places or events still has to be disclosed when it forms part of an artistic, creative or satirical work, and the only thing the clause changes is the manner of the disclosure. This is the part of disclosurekit we argued about longest, because getting it wrong does not surface as a failing test. It surfaces as a record stating that a deployer owed nothing.

The sentence that looks like an exemption#

Statutes write adaptations and exemptions in the same grammatical shape. Two duties sit on Article 50(4). A deployer of a deep fake must disclose that the content was artificially generated or manipulated. A deployer publishing AI-generated text to inform the public on matters of public interest must disclose that too, unless a natural or legal person holds editorial responsibility and reviewed the text. The second has a real exemption. The first does not; what it has instead is a clause limiting the obligation to disclosure in an appropriate manner that does not hamper the display or enjoyment of the work.

Both clauses arrive as qualifications, sit in the same article, and read alike. One removes a duty, the other narrows how it is met. A code path with two buckets, applied and excused, has no shape for the second, and the gravity of that design pulls it into the excused bucket, because that is where qualifications go.

The two errors are not symmetric. Filing an exempt duty as applied costs you a notice nobody needed. Filing an adapted duty as exempt produces silence where the law wants a disclosure, and (worse for a library whose other job is evidence) a durable record saying the duty was excused, with a reason attached. Our README puts it in those terms: filing the artistic case as an exemption would be this package's most damaging possible mistake.

One function, three outcomes#

Everything assess() in src/policy.ts returns is settled by one local function over three arrays and a three-member union:

typescript
const applies: Applied[] = [];
const excluded: Exclusion[] = [];
const needsReview: Review[] = [];

type Outcome = { exempt: string } | { adapted: string } | { undecided: string };

const claim = (
  answer: Answer | undefined,
  question: string,
  because: string,
): Outcome | undefined => {
  if (answer === "unknown") return { undecided: question };
  if (answer === true) return { exempt: because };
  return undefined;
};

claim is the helper for the qualifications that really are exemptions: obviousFromContext, assistiveEditingOnly, humanEditorialReview, lawEnforcementAuthorised. It can only produce two of the three shapes, undecided for an "unknown" and exempt for a true. It cannot produce adapted at all, and artisticOrSatirical never passes through it. That is deliberate. We keep the helper that mints exemptions away from the clause that does not grant one.

decide is where the shapes land:

typescript
const decide = (
  obligation: Obligation,
  t: Trigger,
  outcome?: Outcome,
  unresolvedManner?: string,
) => {
  if (!holds(obligation.bearer)) return;
  if (t.unknown) {
    needsReview.push({ obligation, question: t.question });
    return;
  }
  if (!t.yes) return;
  if (outcome && "undecided" in outcome) {
    needsReview.push({ obligation, question: outcome.undecided });
    return;
  }
  if (outcome && "exempt" in outcome) {
    excluded.push({ obligation, because: outcome.exempt });
    return;
  }
  applies.push({
    obligation,
    note: outcome && "adapted" in outcome ? outcome.adapted : undefined,
  });
  if (unresolvedManner !== undefined) {
    needsReview.push({ obligation, question: unresolvedManner });
  }
};

Read the order. The bearer check comes first, because a duty addressed to a role the caller did not claim is not theirs to be excused from either, and a deployer of someone else's chatbot does not carry Article 50(1) or appear in excluded for it. Then the unsettled trigger, then undecided, then exempt. Only after all of those does the duty reach applies.push, and an adapted string travels with it as the note on the Applied entry. It is the same push either way. The note is the whole difference between "you owe this" and "you owe this, and the article has something to say about how".

The deep-fake call builds its outcome inline#

Every other obligation takes its outcome from claim, with the law-enforcement claim offered first because it is the one exemption that reaches several duties at once. Article 50(4) is the exception twice over:

typescript
decide(
  OBLIGATIONS["art50-4-deepfake"],
  trigger(
    "whether the content depicts real people, places or events as a deep fake",
    profile.deepfake,
  ),
  profile.artisticOrSatirical === true
    ? {
        adapted:
          "artistic, creative or satirical work: disclose in an appropriate manner " +
          "that does not hamper the display or enjoyment of the work",
      }
    : // ... an "unknown" builds no outcome and fills unresolvedManner instead
      undefined,
);

Two things are absent on purpose. There is no claim call, so there is no path to exempt. And lawEnforcement, which is handed to art50-1, art50-2 and art50-3, is not handed here: a deep fake is not left undisclosed because the deployer is authorised by law for the detection, prevention, investigation or prosecution of criminal offences. The table in our README has a column for what can excuse each duty, and for this row the entry reads "nothing removes it".

Not knowing is not a licence#

The unanswered case is where the third shape earns its cost. When artisticOrSatirical is "unknown", no outcome is built at all and unresolvedManner carries the question. decide pushes the obligation into applies first, with note undefined, and only then pushes a Review. The duty stands. What is open is the manner alone:

typescript
test("an unanswered artistic claim keeps the deepfake duty and asks about the manner", () => {
  const result = assess({ role: "deployer", deepfake: true, artisticOrSatirical: "unknown" });
  assert.deepEqual(ids(result.applies), ["art50-4-deepfake"]);
  assert.equal(result.applies[0].note, undefined);
  assert.deepEqual(ids(result.needsReview), ["art50-4-deepfake"]);
  assert.match(result.needsReview[0].question, /manner of disclosure but not the duty/);
});

So one obligation appears in two lists at the same time. The lists are not disjoint, and anything you write that reads an Assessment has to be written knowing that. In exchange, nothing about whether the duty exists is in doubt while the open question gets settled.

That question is not advisory. disclose() in src/disclosure.ts checks it before it looks at anything else:

typescript
const assessment = assess(profile);
if (assessment.needsReview.length > 0) throw new UnresolvedQuestions(assessment.needsReview);

The ordering sits in the function because until the question is answered nobody knows which elements the notice owes. Behind the middleware wrapper, that throw lands where the service starts rather than on a request, so a system that might owe a disclosure fails loudly instead of serving responses with no header, which from the outside looks exactly like a system that owes nothing.

The note has to survive the trip#

A third outcome shape is only worth having if it reaches the output. disclose() copies each note into the disclosure, prefixed with the obligation's article:

typescript
const notes = assessment.applies
  .filter((a) => a.note !== undefined)
  .map((a) => `${a.obligation.article}: ${a.note}`);

And recordDecision() in src/log.ts writes it into the entry next to the article, measure and summary, so the file stays legible on its own to a reader months later who has the log and not this code:

typescript
applies: assessment.applies.map(({ obligation, note }) => ({
  obligation: obligation.id,
  article: obligation.article,
  measure: obligation.measure,
  summary: obligation.summary,
  ...(note === undefined ? {} : { note }),
})),

The same record keeps the inputs exactly as they were stated, which is the other half of the same care. An omitted field decides the way a false does, but it is written as "not stated", because never answering and answering no are not the same claim:

typescript
const entry = recordDecision(log, profile);
const inputs = entry.detail.inputs as Record<string, unknown>;
assert.equal(inputs.artisticOrSatirical, "unknown");
assert.equal(inputs.publicInterestText, "not stated");
assert.equal(entry.detail.statement, undefined);

There is no statement to record, because disclose() refused to build one, and that is precisely the case worth writing down.

The third shape is not a special case#

If adapted existed for one row of one article it would be hard to justify. It does not. Article 50(2) asks a provider to embed a machine-readable mark in synthetic content, and a system placed on the market before the article applied owes the same mark by a later date: Article 111(4) sets 2 December 2026. That date is an adaptation of the deadline rather than a release from the duty, so we carry it the same way, and a genuine exemption still comes first:

typescript
lawEnforcement ??
  claim(
    profile.assistiveEditingOnly,
    "whether the system performs only assistive standard editing that does not substantially alter the input data",
    "recorded as assistive standard editing that does not substantially alter the input data",
  ) ??
  (placedEarly ? { adapted: MARKING_DEADLINE_NOTE } : undefined),

A later date, an "unknown" and an omitted placedOnMarket all leave 50(2) applied with nothing to review, because a date can only move the deadline. A string that is not a calendar date is a RangeError rather than a question, since a malformed input is a caller's bug and not a legal uncertainty.

What it costs to run#

One more shape in the result, for every reader of the result. The union has three members instead of two, Applied carries an optional note, the disclosure carries a notes array, the log entry carries a note field, and the comfortable invariant that an obligation lives in exactly one list is gone. Every one of those is a place where a future reader has to be told that an applied duty may be applied with conditions.

The other cost is worth stating plainly. A note is prose. We can show that the duty was recorded as applying, and we can show you the wording that went out, but no library can check that a disclosure on a satirical film is placed in a manner that does not hamper enjoyment of the work. That judgement needs a person, and the third shape exists to put it in front of one instead of resolving it quietly in the wrong direction.

The code is at https://github.com/shipmindlabs/disclosurekit. It decides five duties, says what a notice has to contain and where, and keeps a verifiable record of what was decided. It is a map of one article written by engineers, not legal advice.

Was this useful?

Building something similar?

or email hello@shipmindlabs.com