Exercise: check a credential, test a watermark, label a course folder
Goal
By the end of this exercise you should be able to:
- check the content credential of an AI-generated image, and see it disappear in a screenshot,
- explain, using a watermark demo, why a text watermark needs enough text and why paraphrasing weakens it,
- decide for each item in a small course folder whether it needs a label under the EU AI Act, what else your university or the venue may ask for, and write the labels,
- list the AI-generated content in your own project that you will publish, with a label for each.
The worked example uses a made-up course folder. Nothing in it is real.
Before you start
- Claude Code or Codex working, and your course folder
~/agentic-course(Windows:C:\Users\<you>\agentic-course). - Download course-materials.zip and unzip it into
~/agentic-course/content-labelling/. You should see a foldercourse-materialswith seven small files, among themai-use-log.md. - For Part 1, access to one tool that generates images or files:
- ChatGPT (any plan with image generation; the Free plan has a low limit), or
- the Claude app (claude.ai or the desktop app) with file creation, where Claude can make a PNG file for you to download.
- Open the watermark demo in your browser: watermark-demo.html. It runs entirely in your browser, with no network. To keep a copy, save the page (right-click, “Save link as”) into your exercise folder.
- Keep the slide “What this means for what you publish” from the lecture at hand.
Worked example
Part 1: Check a content credential, then lose it
No agent needed.
Make an image. In ChatGPT, ask for a simple, harmless image, for example:
Make a simple flat illustration of a plant cell with labelled organelles, white background.In the Claude app, ask for a file instead, for example: “Create a PNG image of a simple bar chart of these numbers: 3, 5, 2, 7. Give me the file to download.” Download the file to your exercise folder as
ai-image.png.Check it with the provider’s tool.
| If you used ChatGPT | If you used the Claude app | |
|---|---|---|
| Checker | openai.com/verify: looks for C2PA credentials and SynthID watermarks | claude.com/check-content: looks for Claude’s C2PA credential; runs in your browser, the file is not uploaded |
| Note | Uploading means accepting OpenAI’s terms; only use images with nothing private in them | Checks files, not text |
Check it with a neutral tool. Open the Content Authenticity Initiative’s inspector at verify.contentauthenticity.org and drop the same file on it. What does it say about who issued the credential and what action was recorded?
Lose the credential. Open
ai-image.png, take a screenshot of it (Mac: Shift+Cmd+4; Windows: Windows key+Shift+S, then save the snip), save it asai-image-screenshot.png, and check that file with the same two tools.A figure drawn by a script. Start your agent in the exercise folder and ask:
Write a short Python or R script that draws a bar chart of the numbers 3, 5, 2, 7 and saves it as script-chart.png. Run it. Do not change any other files.Check
script-chart.pngwith the provider’s checker. The pixels were drawn by Python or R on your computer, not generated by the model.
- The original image usually shows a content credential issued by the provider (OpenAI or Anthropic), with an action such as “created” by a generative AI tool. Images from OpenAI may also show a SynthID watermark on openai.com/verify.
- The screenshot has no credential: a screenshot is a new file with the same pixels and none of the metadata. On openai.com/verify the SynthID watermark may still be found, because it is in the pixels. That is the two-layer idea from the lecture.
- The script-drawn chart most likely has no credential: credentials are attached by the provider’s file-generation features, not to files your own software writes. Whatever you see, note it.
- If the original showed no credential at all, check that you downloaded the file itself (not a screenshot or a copy pasted into another program), and read the provider’s help page: coverage differs between products and changes over time.
Part 2: Play with the watermark demo
Open watermark-demo.html. Read the short explanation at the top of the page, then work through these questions. Write your answers in a file watermark-notes.md (or on paper).
- Length. Set the strength to weak. Move the length slider from 10 words upwards. At roughly what length does the verdict change from “No evidence” to “Watermark detected”? Press New text two or three times and repeat. Is it always the same length?
- Strength. Do the same for medium and strong. How does the length needed change?
- Ordinary text. Set the strength to off and the length to 800. What does the detector say? Press New text five times. Does it ever claim a watermark?
- Paraphrasing. Set medium and 400 words. Press Paraphrase once, then again, and again. After how many presses (roughly what share of words replaced) does the verdict drop? Tick Show the detector’s view: which words are underlined, and what happened to their colours?
- The chart. In your own words: what is the grey band, and why does it get narrower to the right?
- With a weak watermark (about 60% green), detection usually comes somewhere between 300 and 700 words, and now and then not even by 800. It varies a lot between texts, because which words are green is partly chance, just as 100 coin flips do not always give the same number of heads.
- Medium (about 67% green) usually needs one to three hundred words, strong (75%) usually well under 150. The stronger the preference, the less text is needed, which matches the bar chart in the lecture.
- With the watermark off, the green share stays near 50% and the verdict stays “No evidence”, almost always. With the threshold the demo uses, ordinary text is wrongly flagged only about once in 30,000 texts. That low false-alarm rate is what makes a watermark detector usable; style-based detectors have nothing like it.
- Each press replaces about 10% of the words. After one to three presses (10 to 30% replaced) a 400-word medium-strength text often drops to “Suspicious” or lower; some texts hold out longer. Replaced words are green or red by chance, and a replacement also changes the colour of the next word, because the colour depends on the previous word.
- The grey band is the range that ordinary, unwatermarked text almost always stays in. With few words, chance can push the share far from 50%, so the band is wide; with many words, chance evens out and the band narrows. A watermarked text drifts above the band once there is enough of it.
Part 3: Decide what needs a label in a course folder
Here the agent reads a small folder of made-up course materials and proposes labels. You judge.
- Start the agent in
~/agentic-course/content-labelling/course-materials/. It needs to create one file; in Codex, if it is read-only, use/permissionsto allow edits in the folder (not full access). - Type this prompt:
This folder holds made-up materials a teacher plans to publish for a
university course in the EU, and ai-use-log.md, which says how AI was
used for each item. Read every file. Then make labelling-plan.md with
one row per item in the log and these columns:
- item
- what the AI did (from the log)
- AI Act Article 50: does it apply? Answer "deepfake (50(4))",
"public-interest text (50(4))", "chatbot (50(1))" or "no", with a
one-line reason. Remember: text that a person reviewed and takes
editorial responsibility for is exempt; schematic or cartoon images
that could not pass as real are not deepfakes.
- other disclosure: what a university or journal would usually still expect
- proposed label: the exact wording, and where it goes
- other problems you notice (accuracy, consent, privacy, misleading wording)
Do not change the other files. Mark anything you are unsure about as
"unsure" rather than guessing. This is not legal advice; say so at the top.
- Read
labelling-plan.md.
Check the result
Compare the agent’s plan with the answer key below after you have read it yourself. Check row by row: did the agent get the Article 50 column right, and did it spot the “other problems”?
| Item | Article 50? | Label and other action |
|---|---|---|
course-page.md (text drafted by an agent, rewritten by the teacher) |
No. Reviewed and edited by the teacher; a course description is not news on a matter of public interest | Follow your university’s rules. A footer line such as “Parts of this page were drafted with AI assistance and checked by the course leader” is good practice. |
fig-cell-overview.png (AI cartoon of a cell) |
No. A cartoon cannot pass as a real photograph | Caption: “Illustration generated with an AI tool and checked by the teacher.” Good that two wrong labels were caught and fixed: keep checking AI figures. |
fig-growth-curves.png (plot drawn by an R script the agent wrote) |
No. The plot was drawn by R from the lab’s own data | Not AI-generated content. Disclose the method where relevant (“analysis script written with Claude Code, checked by …”) in a report or paper. |
press-release.md (AI-drafted news item, not yet reviewed) |
Possibly: text to inform the public. Exempt only if the communications office reviews it and takes editorial responsibility | Tell the communications office it was AI-drafted; let them review it. The quote from the course leader was written by the AI: check that the course leader actually said it, or remove it. |
photo-lab-opening.jpg (person removed, two students added by generative fill) |
Yes: deepfake. A real event, real people, manipulated so it looks authentic | If published, label it clearly (“image edited with AI: people added and removed”). Better: do not publish a photo of an event that did not look like that. Use the original with the colleague’s consent, or another photo. |
intro-video.mp4 (synthetic copy of the teacher’s own voice) |
Yes: deepfake (audio resembling an existing person) | A visible label at the start: “Voice-over generated with AI from the course leader’s voice.” Students should not have to guess. |
faq-bot (chat box answering course questions) |
Yes: chatbot (50(1)). Users must be told they are talking to an AI | Rename the heading (not “Ask the course team”); first message: “I am an AI assistant; my answers can be wrong; the course page is the official source.” Also a privacy question: students’ questions go to the API provider, so check your university’s rules. |
The agent may disagree on the press release (“is a course announcement a matter of public interest?”). That is a fair question to mark as unsure; the safe course is review by the communications office either way.
Also check:
- Did the agent change other files? Open the folder in your file browser: only
labelling-plan.mdshould be new. If you made the folder a git repository, ask the agent to show the changes. - Is every label specific? “Made with AI” is weaker than saying what the AI did.
- Did it invent rules? If the plan cites an article number or a requirement you did not see in the lecture, look it up before you believe it (How LLMs and agents work).
On your own project
Privacy reminder. The agent reads only your project’s README and the files you choose to include. Do not include images of people, student work or other personal data in this step; describe them in words instead.
- Think about what your project will publish: a course page, figures, slides, a report, a data set’s documentation, a demo or app. Which of these involve AI-generated text, images, audio or video, or a chatbot?
- Start the agent in your project folder and type:
Read README.md, including the "Log of AI use". List every item this
project has produced or will produce that will be published or shared
outside my group, and for each say how AI was or will be involved.
Then add a section "## AI-generated content and labels" to README.md
with a table: item, AI involvement, AI Act Article 50 applies? (deepfake /
public-interest text / chatbot / no), other disclosure required (journal,
funder, university, course rules), exact label wording, where the label goes.
Mark anything you cannot decide as "to check" and say who I should ask.
Add one line to "Log of AI use": today's date, the tool, and "drafted
labelling plan". Do not change any other part of README.md.
- Check: open the README. Is every published item there? Is the Article 50 column right according to the lecture table? Are the labels specific and placed where people will see them first? Add your university’s AI disclosure rules (from Privacy, ethics and safety) if the agent did not. If the project is under git, commit the change.
- If your project includes a chatbot or realistic images or audio of people, decide now how you will label them, or whether to drop them.
What you should have now
- In
~/agentic-course/content-labelling/:ai-image.pngand its screenshot, your notes on what the checkers showed,watermark-notes.mdwith your answers from the demo, andcourse-materials/labelling-plan.mdchecked against the answer key. - A working sense of when EU law asks you to label (deepfakes, unreviewed public-interest text, chatbots) and when only your venue does.
- In your project’s
README.md: an “AI-generated content and labels” section with the exact label for each published item, and a new line in the AI-use log.