en2026-11-14

AI in Coding Assignments: Permission, Proof, and Documentation

Keep a clear record of what your course permits, how AI influenced your code and which tests you actually ran. This guide explains a proportionate evidence trail, with a worked hypothetical example, a comparison table and questions to send your lecturer.

AI in Coding Assignments: Permission, Proof, and Documentation

Use AI on a coding assignment only within the permission given for that assessment, and keep three connected records: the permission, your reasoning about the code, and the tests you actually ran. A working program alone does not establish that the assistance was permitted or that you understand the solution. Equally, a long chat transcript does not demonstrate either point.

For international students, the difficulty may be interpreting unfamiliar academic language while debugging under pressure. A lecturer might permit explanations but prohibit generated solutions; an editor might offer AI suggestions automatically. The practical goal is a small, honest evidence trail that connects the rules to your decisions—not a dossier designed to guarantee protection from an academic-integrity concern.

Use this sequence to separate permission, understanding and testing before deciding what assistance can enter your submission.

1. Establish permission for this assignment, not AI in general

Start with the assessment brief, its marking criteria, the course handbook and the institution’s academic-conduct guidance. Save dated copies or permitted downloads of the relevant instructions, including later announcements. Record which assignment each document covers. A policy for another module, another university or an earlier assessment is not permission for your current task.

As an institutional example, Oxford’s 2026–27 student handbook sits alongside departmental and college handbooks, directs students to assessment and conduct rules, and prohibits unauthorized AI use in assessed work. This is an Oxford example, not a rule for every university or country. Your own assessment instructions remain essential: Oxford University Student Handbook 2026/27.

If the wording is unclear, ask the module leader or designated assessment contact in writing. Specify the proposed activity: explaining an error message, suggesting edge cases, generating a function, translating your comments or completing code inside an editor. Do not assume that permission for one activity covers the others, or that silence means approval.

For Assignment 2, may I use an AI assistant to explain error messages and suggest test cases without generating implementation code? Does this include AI autocomplete in my editor? What disclosure and records should I submit or retain?

If documents conflict, quote the conflicting passages and request clarification rather than choosing the more permissive interpretation. While waiting, continue independently where possible. Keep the reply with the assignment records; a general workshop comment may not resolve an assessment-specific restriction.

2. Separate understanding support from solution production

Describe assistance by what it did, not by the tool’s name. Asking for an explanation of recursion differs from supplying your assignment and requesting a complete recursive solution. Debugging can also cross that boundary: an assistant that rewrites the algorithm has contributed more than an explanation of a syntax error.

Before accepting a suggestion, explain the affected code without looking at the response. Identify its inputs, outputs, assumptions and failure conditions. For an algorithm, trace a small example and explain why the loop terminates. If you cannot do this, treat the suggestion as unverified learning material, not submission-ready work.

Keep brief reasoning notes at meaningful decisions. For example: “Rejected the suggested dictionary approach because repeated entries must remain separate; retained a list and tested duplicate inputs.” This records judgment more usefully than “checked AI output.” It also helps you prepare for any explanation of your work required by the course.

3. Build a proportionate evidence pack

Create a private assignment folder before using permitted AI assistance. A practical structure separates permission records, AI interactions, development history, test evidence and the final disclosure. Follow course requirements first; the table below is a suggested working system, not a universal submission requirement.

Record | Useful contents | What it helps establish | Limit | Permission snapshot | Dated brief, relevant policy passage and lecturer clarification | The instructions you relied on | Permission for one activity does not authorize every use | AI interaction log | Date, tool/model if shown, prompt, response and affected task | What assistance you received | A transcript alone does not prove understanding | Decision notes | Accepted and rejected suggestions with technical reasons | How you evaluated the assistance | Notes should match the actual code history | Development history | Meaningful commits, diffs and links to test runs | How the solution changed | Commit timestamps do not independently prove authorship | Test record | Code version, environment, inputs, expected and observed results | What you actually checked | Passing tests do not establish policy compliance | Disclosure | Allowed assistance used, scope and incorporated contributions | A clear account for the assessor | Disclosure does not make prohibited assistance acceptable |

Prefer native conversation exports where available and permitted; screenshots can supplement them when context would otherwise be lost. If you make a summary, label it as a summary and retain the original when required. Do not reconstruct missing conversations as though they were contemporaneous records.

Keep evidence proportionate. Save substantive interactions and whatever the course expressly requires rather than collecting unrelated account activity. Use institution-approved storage where specified, and do not publish the evidence pack simply to make it accessible.

4. Record tests that someone else could reproduce

A useful test record links a result to a particular code version. Include the commit identifier or file version, language/runtime version, relevant dependencies, test command, input, expected result and observed result. Record whether the test passed, failed or was not run. An AI assistant saying that code “should pass” is not an executed test.

Choose cases from the assignment specification, not just from generated suggestions. Cover ordinary behaviour, boundaries and relevant invalid inputs. For a function accepting a non-empty list, an empty-list test should check the specified rejection behaviour rather than invent a new requirement. Distinguish required behaviour from optional robustness improvements.

Preserve useful failures. A failing test followed by a documented correction shows the technical sequence more clearly than a final green screenshot. Avoid claims such as “fully tested” when you tested only a few cases. State the scope: “Checked duplicate values, single-element input and the published examples; performance on large inputs was not assessed.”

5. Hypothetical example: AI suggests tests but cannot write code

Consider a hypothetical student, Mina, completing a Python assignment to merge overlapping time intervals. In this fictional course, written instructions permit AI explanations and test suggestions, prohibit generated implementation code, and require a short disclosure. These permissions belong only to this example.

Mina saves the instructions and asks whether test suggestions may use synthetic examples. After receiving written confirmation, she asks an approved assistant for boundary cases without uploading the assignment text or her implementation. It suggests unsorted intervals, nesting, duplicates and intervals whose endpoints touch. She saves that exchange.

She then checks the brief: touching intervals must merge. Her own implementation produces two intervals for inputs [1, 3] and [3, 5], but the expected result is [1, 5]. Her test record names code version A, the runtime, the command and both results. She diagnoses a strict comparison where equality must also be included, changes it herself and records the correction as version B.

Mina reruns the touching-endpoint test and her existing tests for nesting and duplicates. She explains in her notes why the equality change matches the specification. She also rejects a suggested test containing a reversed interval because the brief guarantees valid endpoints; that case would test an unspecified extension rather than a required feature.

Her disclosure states that AI suggested boundary-case categories, that she checked them against the brief, and that no generated implementation was incorporated. She retains the original exchange and actual test outputs. If she had accidentally requested a full solution, she would need to record that event and seek guidance—not omit it to make the history look compliant.

6. Make disclosure precise without oversharing

Use the required declaration form if one exists. Otherwise, ask where and how to disclose assistance. A useful account identifies the tool, the purpose, the scope of assistance and what entered the submitted work. Include a model/version when available; do not invent one when the interface does not show it.

For the hypothetical example above, a suitable draft would be: “I used an AI assistant to suggest boundary-case categories. I selected applicable cases using the assignment specification and wrote the implementation myself. The retained interaction log identifies the tool and date.” This wording would be inappropriate if the assistant also rewrote functions or generated incorporated tests.

Do not upload classmates’ work, access tokens, personal records or restricted teaching materials merely to obtain help or document it. Check institutional data rules and tool permissions first. Synthetic examples can reduce disclosure of sensitive material, but they do not override a prohibition on AI use.

7. Handle missing records and questions honestly

If a conversation was not saved, record what is missing and make a clearly dated retrospective note of what you remember. Preserve remaining files and history without altering them to create a cleaner narrative. Ask the assessment contact whether additional explanation is needed; do not claim that incomplete records are complete.

If your work is questioned, request the specific concern and follow the institution’s published process. Organize relevant permission records, interactions, code changes and tests into a readable chronology. Explain what each item supports and its limits. A student adviser or students’ union may help you understand the process, but an evidence pack cannot guarantee an outcome.

HEPI’s 2026 survey of full-time UK undergraduates describes varied experiences of AI-supported learning and recommends clearer assessment-specific guidance. That UK research provides context, not permission for any individual assignment or evidence about every country: Student Generative Artificial Intelligence Survey 2026.

8. Focused FAQs

Does AI autocomplete count if I did not type a prompt?

It may fall within your course’s AI rules. Check whether generated completions, editor chat and automated rewrites are covered. If permission is unresolved, disable AI features for assessed work and ask specifically about them; do not assume ordinary editor use authorizes generated code.

Must I submit every chat and failed test?

Follow the assessment’s retention and submission instructions. Keeping supporting records privately is different from submitting them. Ask whether the assessor wants a declaration, selected extracts or a complete log, and use the designated submission channel rather than adding unrequested sensitive material.

Can explaining generated code make prohibited use acceptable?

No. Understanding and permission are separate questions. If you have already crossed a stated boundary, stop that use, preserve the records and ask the responsible course contact how to proceed. Do not disguise generated code through cosmetic rewriting.

Your next step before opening the assistant

Find the current brief and create a short permission note: what assistance is allowed, what is prohibited, what needs disclosure and what remains unclear. Send the unresolved questions to the assessment contact. Then create one test-log entry for your existing code. These materials give you a practical starting point without letting recordkeeping replace learning.

Sources

  • Oxford University Student Handbook 2026/27 — institution-specific assessment and academic-conduct context.
  • HEPI: Student Generative Artificial Intelligence Survey 2026 — UK undergraduate research and recommendations on AI guidance.

Sources checked 14 November 2026

Related reading

  • Unclear AI Rules? How to Clarify What Is Allowed or Prohibited
  • When Paper Authorship Is Questioned: Organizing Research Evidence