A disclosure standard is a short written rule about what students must tell you when they use an AI assistant on a programming assignment: which tool, which files, and what part of the work it touched. It doesn't require banning anything. It doesn't require trusting a detector. It produces a record you can hold next to the submission, and that record is what most misconduct conversations actually turn on.
Most courses skip this step. The syllabus says "no AI," a detector runs at the end of the term, and an instructor is left staring at a 71% score with no artifact to compare it to. That's a bad position to be in, and it's avoidable.
Why the disclosure question comes before the detection question
Look at what an AI code detector actually produces. It tokenizes a file, scores the token sequence against a model trained to separate human-written code from generated code, and returns a probability. Some tools report per file, some report one number for the whole submission. Either way it's a likelihood estimate about text, not a finding about a person.
A disclosure is a statement about a person. It names a tool, a scope, and a prompt. Those two kinds of evidence are not interchangeable, and a process built only on the first one tends to collapse the moment a student contests it.
A detector score should open a conversation, never end one.
There's a second reason to write the rule first. If disclosing a small, sensible use of Copilot triggers an automatic penalty, students stop disclosing. You don't get less AI use. You get the same AI use plus silence, and silence is the thing you were trying to eliminate.
What a usable disclosure looks like in code
The version that works in practice is a header comment in each source file plus a short statement in the submission form. Something like this:
# AI USE DISCLOSURE
# Tool: GitHub Copilot inline suggestions
# Files touched: routing.py, tests/conftest.py
# What it produced: the sqlite fixture in conftest.py,
# plus the argparse block at the bottom of routing.py
# Prompt I gave: "pytest fixture that creates a temp sqlite db"
# What I changed after: renamed the fixture, added a rollback test
# ---------------------------------------------------------
Three properties make that useful. Scope is file-level and specific, so you can check it against the diff. The artifact is named, not described as "helped a bit." And the prompt is there, which means it's reproducible: ask the student to type it again in office hours and see what comes back.
Compare that with the disclosure you'll actually receive the first semester you try this: "I used AI for some of it." That sentence costs the student nothing to write and gives you nothing to work with. The template is what fixes it. Give students the exact comment block in the assignment handout and most of them will fill it in.
Drawing the line per assignment, not per course
A single course-wide AI policy is usually too blunt to be enforceable. The honest question is what a specific assignment is testing. In a CS2 unit on linked lists, the exercise is pointer manipulation and boundary conditions. If Copilot writes the `remove` method, the student hasn't done the exercise, and a disclosure doesn't change that.
In a capstone project, the same tool writing a Flask route skeleton or a logging decorator removes typing, not learning. Most instructors would allow it, with disclosure.
So write the tier into the assignment header, in one sentence:
- No assistance. Exams, first-pass implementations of core data structures, anything where the mechanics are the point.
- Disclosed assistance allowed. Boilerplate, test scaffolding, build files, and projects where integration is the skill being graded.
- AI expected. Assignments that ask students to evaluate generated code, find its bugs, or measure its cost.
That third tier is underused. An assignment that hands students a generated implementation and asks them to write the failing tests for it teaches more about code review than a prohibition does, and the disclosure question disappears because there's nothing to hide.
Where AI detection fits into the workflow
Detection has three legitimate jobs, and none of them is "prove cheating."
The first is verifying a claim of no assistance. A student who disclosed a small Copilot use and a student who disclosed nothing should not produce identical statistical profiles across an entire term's work. The second is triage at scale: nobody reads 200 submissions line by line, but you can rank them and spend your attention on the top of the list. The third is separating AI generation from peer copying, which matters because those are different policy violations with different responses.

A 94% peer match with a low AI score is a copying case. A high AI score with no peer match points somewhere else entirely. Running one check without the other means guessing which one you're looking at. Codequiry reports peer similarity, web similarity, and AI generation separately per submission, which is the reason we built it that way: the three numbers only mean something in combination.
At the file level, the useful output isn't the overall score. It's the breakdown. A submission where two of nine files score high and the rest look human is a very different situation from one where every file scores uniformly. The first looks like a student who got unstuck on a fixture and asked for help, which is exactly what a disclosure would have told you.

Signals that hold up in a conversation
Detector numbers rarely carry an academic integrity panel on their own. What carries is a student's inability to explain their own code, and the artifacts around the submission.
Ask why a particular guard clause exists, or what breaks if you swap two adjacent statements. A student who wrote the function usually has an answer, even a clumsy one. A student who pasted it usually reaches for a restatement of what the line does rather than why it's there.
Commit history is underrated and hard to fake retroactively. One commit, 900 lines, timestamped 40 minutes before the deadline tells you something that no detector will. So does a file that mixes list comprehensions and type hints with `while` loops and no annotations three functions later, though style discontinuity alone is weak evidence and shouldn't be presented as more than a prompt to look closer.
One more: calls to methods that don't exist. Language models invent plausible API names, and a human writing the same code hits a compiler error and fixes it. A submission that calls a library function not present in the version pinned in your `requirements.txt`, with no sign the student ever hit that error, is worth asking about.
Where detection breaks down, and what that costs
Short files are the main failure mode. A 15-line function gives a model very little to work with, and scores on short inputs swing widely. Idiomatic boilerplate is another: code that appears ten thousand times on GitHub and in every textbook will resemble whatever the model was trained on, because both learned it from the same place.
Public evaluations of AI-text detectors have repeatedly found high false positive rates on short or formulaic writing, and code detection inherits those limits rather than escaping them. Vendors, including us, don't publish enough calibration data for anyone to treat a threshold as a finding. Treat it as a filter.
The asymmetry matters here. A missed case is a missed case. A falsely accused student is a hearing, a grievance, and a class full of students who now believe the process is arbitrary. The cost of the second error is much higher than the cost of the first, and any workflow you design should reflect that.

Running the review without turning it into an accusation
Pick a review threshold, not a guilt threshold. Something like: anything above a moderate AI score and at least one qualitative signal from the list above gets a second look. A score alone, especially on a short file, doesn't clear the bar.
Then send a neutral notice. "Your submission was flagged for review. Here's the policy you agreed to, here's what the tool reported, and here's an office hours slot." That framing matters less for the student than for the record: it shows a process was followed, which is what an appeals committee reads.
In the meeting, ask for a live change. Add a feature, rename a variable through three files, explain a function the student claims to have written. Fifteen minutes of this is more informative than another detector run, and it produces notes you can attach to the case.
Decide using all three things at once: the disclosure (or its absence), the walkthrough, and the tool output. Then write the outcome down, including the cases where you decided nothing happened. A record of a review that cleared a student is worth as much as one that didn't, because it's the evidence that your threshold isn't just a rubber stamp.
A practical summary
Write the disclosure rule before the term starts, put the comment template in every assignment handout, and set the tier per assignment rather than per course. Tell students what the penalty is for an inaccurate disclosure and make it lighter than the penalty for an undisclosed one, or the incentive runs the wrong way. Run AI detection alongside peer and web checks so you know which kind of problem you're looking at, and treat every score as a reason to look rather than a conclusion. Keep the human review short, documented, and boring.
Courses that do this end up with something better than a lower AI score. They end up with a class that knows where the line is and a paper trail for the handful of cases where someone crossed it. If you're setting up that workflow now, a code plagiarism checker for teachers that reports peer, web, and AI results separately is the place to start, and a code plagiarism checker that survives renaming and refactoring will tell you more than a raw text match ever does.
Frequently Asked Questions
Can an AI detector prove a student used ChatGPT?
No. A detector estimates how machine-like a file's token statistics are. That's useful for deciding which submissions to read closely, and it's not sufficient on its own for a misconduct finding. Pair it with a disclosure record, a code walkthrough, and commit history.
Should intro courses ban AI assistants outright?
Banning is a defensible choice for assignments where the mechanics are the learning objective, as long as the ban is paired with a disclosure requirement. A ban with no disclosure path just teaches students to be quiet about it.
How do I handle AI use students disclosed that I didn't anticipate?
Grade the disclosed portion as you would any other cited assistance, and treat the accuracy of the disclosure as a separate matter from the quality of the code. Students who disclose unusual use are giving you information, and penalizing that too harshly closes the channel you built.