Open-source contributions
Make four contributions across two repositories, worth 30 marks in total. In each repository, start with a small onboarding fix, then make a substantive change. Move to the second repository after contribution 2. You practise entering unfamiliar codebases, verifying changes, and following their contribution rules (LO4, LO5, LO7, LO9).
| Contribution | Due | Repository | Scope | Marks |
|---|---|---|---|---|
| 1 | Week 4 | First | Small, complete onboarding fix | 5 |
| 2 | Week 8 | First | Substantive change | 10 |
| 3 | Week 9 | Second | Small, complete onboarding fix | 5 |
| 4 | Week 12 | Second | Substantive change | 10 |
Deadlines are Sunday at 23:59 in the due week. A small fix might repair a defect, test or documentation example. A substantive change solves a larger problem. Its scope is bounded, and it has acceptance cases that you can verify. Read the repository's rules before proposing work.
Find a repository and submit your preferences
In week 2, rank your repository preferences on the preference form. The teaching team assigns your first repository. After contribution 2, it moves you to a different repository. At most five students work on a repository at one time.
The list puts public open-source projects that partners maintain or use first. Other active projects are added after them. Every listed repository needs an OSI-approved licence, contribution guidelines and an AI-use policy that permits the planned work. It must not require a CLA (contributor licence agreement) that assigns copyright. You may propose another repository for approval against these conditions. Do not start counted work there before approval.
The teaching team checks these conditions. It records whether each repository has a partner maintainer contact, and it publishes the list and the allocation instructions. No contact is invented: the list names only people who have actually agreed to act as contacts.
| Where to find or send things | Publication or action |
|---|---|
| Approved repositories and contribution-guide links | The teaching team publishes the approved public repository list before Week 2. |
| Partner maintainer contact for each repository, or no contact | The teaching team confirms each partner maintainer contact, or records that there is none, before Week 2. |
| Week 2 repository preferences | The teaching team publishes the preference form and allocation channel before Week 2 preferences are due. |
| A repository or issue you propose; a scope change | The teaching team publishes the approval channel before students propose a repository, issue or scope change. |
| Four submissions and requests for TA acceptance review | The teaching team publishes the submission channel and TA review-request route before the first contribution deadline. |
| Pseudonymous account or course-hosted equivalent | The teaching team publishes the private identity and equivalent-route channel before the first contribution is submitted. |
Do not make a marked contribution to a repository owned by your own residency employer. If an allocation would break this rule, tell the teaching team privately. It will assign a different repository.
Make and verify each change
- Read and discuss. Read the licence, contribution guide, AI rules and relevant issue. Agree the scope through the project's own process before you start. This way you do not do work that the project does not want.
- Reproduce. Record the starting revision. Also record a check that fails because of the issue you intend to fix. For documentation, use an executable example or a repeatable check of the documented behaviour. If necessary, agree a suitable check with a TA.
- Generate and inspect. Use the permitted assistance to make a small change. Inspect the diff and the affected callers yourself. Do not submit generated output that you have not examined.
- Verify. Run the check again, and run the relevant existing tests. Keep the result that fails before the change and passes after it, with the revisions and commands.
- Scan (contributions 2 and 4). Run the course's scanners that fit your change over the files you changed: Semgrep on changed source code (tools/semgrep; as_of: 2026-09-05; Source 1; Source 2; Source 3), gitleaks on the changed files and your branch's commits (tools/gitleaks; as_of: 2026-09-05; Source 1), and pip-audit when the change adds or updates Python dependencies (tools/pip-audit; as_of: 2026-09-05; Source 1). Run them in the environment that the setup page describes. Record the revision, the command and the scanner version. Give every finding one of three dispositions (fixed, false positive, out of scope). A disposition is your decision about the finding, and each one needs evidence. For a fixed finding, show the rerun that no longer reports it. For a false positive, give the reason it cannot happen. For an out-of-scope finding, give the reason. For example, the problem was already present at your starting revision in lines you did not change. If no scanner fits the change, name the ones you considered and say why none applies. A scan that did not run is recorded as not run, never as clean. The Week 8 activities teach this scan-and-triage method.
- Submit and respond. Follow the upstream project's process for PRs, sign-off and disclosure. Respond to review and verify each revision. Record what you changed, or record why the evidence supports keeping a decision.
Record a redacted summary, never the scanner's output. A secret-scan finding can contain a real credential. Record each finding only as a redacted summary: the scanner, the rule, the file path, the line and the disposition. Never copy the matched text or the raw scanner output into your record. Read the raw scanner output in your terminal; do not save it to a file or submit it. If a scan shows a real credential, it must be revoked with its provider at once, and you must tell the teaching team. If the credential is your own, revoke it yourself. Deleting the line does not make it safe, because the value stays in history and may already have been copied. A credential that belongs to the project is a vulnerability in the project. Report it privately, as the next paragraph describes, so that its owners can revoke it.
A real vulnerability in the project is reported privately. If a scan or your own reading shows a real security problem in the upstream project, follow the project's security policy. Report the problem only through the private security channel that the policy names. Do not describe, reproduce or patch it in public. This means no issue, pull request, commit message or discussion about it. Keep its details out of your course record as well, including your scan summary. There, its entry names no rule, file or line. It says only "out of scope: reported privately" and the date. Tell the teaching team privately that you made a report. If the project names no private channel, ask the teaching team privately before you do anything else. The project's security rules come before this guide.
For each contribution, submit the issue and PR links, the submitted revision, the before and after verification results (for contributions 2 and 4, with the scan disposition), and a brief explanation answering these four questions:
- What changed?
- Why was that change needed?
- Which inputs or conditions could break it?
- What did you personally verify?
These items are the work record for the contribution. Add one AI-use note to it, or state that no AI was used. You may reuse an earlier AI-use note by its ID. Submit the project's required artifacts and these evidence links through the course submission channel. You do not need to submit a general conversation export or a separate disclosure file.
Completion and quality
For a repository with a partner contact, a merged PR satisfies the completion condition. In three cases, a TA reviews the PR instead, against that project's contribution guidelines. This is called an acceptance review. The three cases are: the repository has no contact, the maintainer has not replied within seven days, or the maintainer declines the contribution as out of scope. To request the review, send the PR, its contribution-guide link, and the dated request or discussion. That record shows that the maintainer did not reply, or shows the maintainer's decision. Respond to the TA's findings as you would to upstream review. Your mark does not depend on the maintainer replying.
Completion does not remove the quality requirement. If the maintainer or TA judges your work to be low-quality AI-generated output, it earns zero marks. Each contribution needs the failing and passing verification pair, with the scan disposition for contributions 2 and 4. It also needs your own answers to the four questions above. Neither a merge alone nor a polished explanation replaces that evidence. If the issue becomes infeasible or its rules change, tell the teaching team before you continue, and agree a new scope.
Boundaries and rights
- Public upstream only: external contributions go only to public repositories. Code from your residency, your employer or a partner's internal systems never enters the course or a model.
- Follow the project's AI rules: disclose assistance as the project requires. If the project does not allow your planned use, change your workflow or your repository. Do not conceal AI use.
- Identity: use a pseudonym where the project permits it. The teaching team keeps the account-to-student mapping privately. Before you sign a sign-off or an agreement, check which names and email addresses it would expose.
- Copyright: you are never required to sign a CLA that assigns copyright. A CLA that grants a non-exclusive licence is your choice. Read it before you decide.
- Equivalent route: you may choose the course-hosted equivalent without giving a reason. This is for students who do not want to publish publicly or to sign a CLA or DCO (developer certificate of origin). Tell the teaching team before publishing or signing. The teaching team supplies non-public practice repositories for the same four contributions: a small fix and then a substantive change in each of two repositories. A TA makes the acceptance review, and the rubric and maximum marks are the same.
- Keep private material private: do not send participant material, credentials, teacher files or another student's unpublished work to a model or upstream. Report a security problem in the project only through its private channel, as described above. Course attack payloads and seeded defects never go upstream.
These contributions are separate from the term project. The syllabus defines their marks and rules.