All files / src/util aiDisclosure.ts

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21                      14x                  
// ─── AI disclosure ────────────────────────────────────────────────────────────
//
// What CHAIN-R tells a person about content an AI system produced. Article 50
// of the EU AI Act has required, since 2 August 2026, that people are told
// when they are interacting with an AI system and that generated content is
// marked as such — and CHAINR Bot and every agent here are chatbots.
//
// One module, so the chat, each answer and every export say the same thing.
// `aiDisclosure.test.ts` pins each place it is shown. svc-ai's PDF renderer
// carries the same sentence for documents (`app/documents/pdf.py`).
 
export const AI_DISCLOSURE = {
  /** Under the chat input, on every chat, always visible. */
  chat: "You're talking to an AI system. Its answers can be wrong, so check the sources before relying on them.",
  /** Tooltip on the "AI" label each answer carries. */
  answerTitle: "Written by an AI system",
  /** On anything exported from a chat: PDF footer, Markdown and JSON. */
  document:
    "Generated by an AI system on CHAIN-R. It can be wrong, so check the sources before relying on it.",
} as const;