added codebase, project rules and sec audit
This commit is contained in:
897
sources/project-rules.md
Normal file
897
sources/project-rules.md
Normal file
@@ -0,0 +1,897 @@
|
||||
# project-rules
|
||||
|
||||
|
||||
**nstructions**
|
||||
|
||||
**Updates**
|
||||
|
||||
**2026-11-06** **Wolverine Submission Overview is live**
|
||||
|
||||
The [**Wolverine Submission Overview**](https://app.dataannotation.tech/workers/tasks?project_id=01a1ae72-1969-7e8e-b518-6b485ede6781) is now live to check your Wolverine standing and feedback on
|
||||
|
||||
tasks you've submitted!
|
||||
|
||||
It may trail your latest work a little. If you’re new and haven’t picked up a task yet, your overview may
|
||||
|
||||
take a bit to appear.
|
||||
|
||||
**2026-11-05** **Keep personal information out of your sessions**
|
||||
|
||||
The approved repos are already checked for personal information. You do not need to scrub them
|
||||
|
||||
before you upload your archive.
|
||||
|
||||
Watch what you write or paste. File paths and terminal output can show your name. See [**Keeping**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Aprivacy_ref)
|
||||
[**Personal Information Out**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Aprivacy_ref).
|
||||
|
||||
**2026-11-03** **The best sessions are long, multi-turn**
|
||||
**conversations**
|
||||
|
||||
Strong tasks often have 8 to 10 turns, and some have 15, 20 or even 30.
|
||||
|
||||
You don't need to fit the whole task into your first message. Ask for the first piece, look at what the
|
||||
|
||||
model did, then build on it with your next message. Each response gives you something new to
|
||||
|
||||
check and follow up on.
|
||||
|
||||
Sessions with only 1 or 2 turns are too short and will always be rejected.
|
||||
|
||||
If you worked on Raccoon, note that here the conversation itself is what you hand in. See [**Coming**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Araccoon_ref)
|
||||
[**From Raccoon**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Araccoon_ref) and [**Your task and repo**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Atask_ref)[.](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Atask_ref)
|
||||
|
||||
**2026-10-30** **13 new repos are approved**
|
||||
|
||||
13 more repos are approved: Python (Django, SymPy, Home Assistant, Datasette, Airflow),
|
||||
TypeScript (Backstage, JupyterLab), Go (Kubernetes, Gitea, memos), Rust (Ruff, Starship) and Java
|
||||
(Traccar). See the [**Approved repos**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Arepos_ref) table for each zip and File source URL.
|
||||
|
||||
Pick one in Step 2 under **What repo did you use?**
|
||||
|
||||
Start-up commands for every repo are in the [**repo guide**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html).
|
||||
|
||||
|
||||
|
||||
**2026-10-26** **Excalidraw is now an approved repo**
|
||||
|
||||
**Excalidraw is now an approved repo.** It is a whiteboard app for hand-drawn-style diagrams,
|
||||
written in TypeScript and React. See the [**Approved repos**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Arepos_ref) table for the zip, good task areas and
|
||||
what to avoid.
|
||||
|
||||
**You can choose it in Step 2** under "What repo did you use?" Start-up commands are in the [**repo**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html)
|
||||
|
||||
[**guide**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html).
|
||||
|
||||
**2026-10-07** **Flagging, completion checks, and evidence**
|
||||
|
||||
**Environment limits are not flags.** Check a failed install yourself before you flag it. See [**When to**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Aflag_ref)
|
||||
[**Flag**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Aflag_ref).
|
||||
|
||||
**Use the listed categories before Other.** See [**the categories**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Aflag_ref)[.](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Aflag_ref)
|
||||
|
||||
**How to judge completion** must be steps a reviewer can follow, with the result they should see. See
|
||||
[**Your task and repo**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Atask_ref).
|
||||
|
||||
**Finish evidence** must show how you checked the work, such as the commands you ran and their
|
||||
output. See [**Finishing in LiveCompare**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Afinish_ref)[.](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Afinish_ref)
|
||||
|
||||
**Keep the conversation realistic.** Do not mention this platform, the Sandbox, these instructions, or
|
||||
|
||||
flagging to the model.
|
||||
|
||||
**Please fill in Areas where the new response got worse** whenever this applies, even though it is
|
||||
|
||||
optional.
|
||||
|
||||
**2026-10-06** **Write more detail in your notes to reviewer**
|
||||
|
||||
We have been seeing submissions where the "notes to reviewer" section is too thin or simply restates
|
||||
|
||||
the task description.
|
||||
|
||||
**This is a very important field that should get an extremely detailed response.**
|
||||
|
||||
In the task brief, please use **Other notes for the reviewer** for the big picture. The reviewer does not
|
||||
|
||||
know your project, so tell them **what the project is**, **why this task matters**, and **what problem it solves**
|
||||
|
||||
or what is limited today. A note that only restates the task is not enough!
|
||||
|
||||
# **How This Project Works**
|
||||
|
||||
**You work on an external site.** Each task here is one coding session in **LiveCompare**. You get the link in the
|
||||
|
||||
task, work there, and log the session here.
|
||||
|
||||
|
||||
|
||||
**Bring your own real task.** Pick real work in one of the approved repos and do it with the model, the way
|
||||
|
||||
you normally would. That means a long back-and-forth with the model.
|
||||
|
||||
**Flag what gets in your way.** When a response's behavior is a problem, flag it, say what it should have
|
||||
|
||||
done instead, and compare the original with a new response. **A session with no flags is a fine result.**
|
||||
|
||||
**Check the work yourself.** Run the code in the Sandbox panel. Never take the model's word that
|
||||
|
||||
something works.
|
||||
|
||||
**The model cannot use the web.** It can install packages from the main registries, but it cannot open
|
||||
|
||||
websites, search, or reach GitHub.
|
||||
|
||||
## **This is not Raccoon. Do not hunt for failures, set traps, or hold back help.**
|
||||
**Do a real task you want done, and flag only what actually got in your way. If you worked on Raccoon, read** [**Coming**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Araccoon_ref)
|
||||
|
||||
[**From Raccoon**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Araccoon_ref) **before your first task.**
|
||||
|
||||
# ⚠️ **Please Read Before You Start**
|
||||
|
||||
**Everything on this project is confidential.** Do not post, upload, mirror or share any of it, and do not paste it
|
||||
into outside AI tools. **Everything you do in LiveCompare may be published,** so keep personal information
|
||||
out of it. See [**Keeping Personal Information Out**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Aprivacy_ref).
|
||||
|
||||
**Write everything yourself.** Do not use AI tools to write your task brief, flag notes or explanations, or to
|
||||
|
||||
decide your ratings.
|
||||
|
||||
**Stay on your own task page.** LiveCompare runs on a shared site. Do not open other parts of it, other
|
||||
|
||||
people's work, or the tools in the ⋯ menu on a response. Going outside your own task can get you
|
||||
|
||||
removed.
|
||||
|
||||
**Other Notes**
|
||||
|
||||
LiveCompare only opens for your special workspace account, [**AS EXPLAINED HERE**](https://app.dataannotation.tech/publish/g/Y14XDFZhKzJ6VlxaFANaIR5CRBc2OyZkAnYxTCxSGHYOFQBWdQtdBjsBbDk=?usp=sharing). The link appears in Step
|
||||
|
||||
1 after you confirm you are signed in.
|
||||
|
||||
Go through the [**interactive walkthrough**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Ainterface_ref) once before your first task.
|
||||
|
||||
Use **one LiveCompare chat per task** (New chat in the sidebar). You can run several chats at once, and a run
|
||||
|
||||
keeps going if you leave the page.
|
||||
|
||||
While a new response is generated, work on another task, rest, or do something else.
|
||||
|
||||
**Something not working?** Check [**Troubleshooting**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Atroubleshoot_ref) first, then the [**FAQs**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Afaq_ref). Questions go to [**#ext-surge-**](https://aitraining.enterprise.slack.com/archives/C0C5GF02UE8)
|
||||
|
||||
[**wolverine-questions**](https://aitraining.enterprise.slack.com/archives/C0C5GF02UE8).
|
||||
|
||||
|
||||
|
||||
## **Important: keep your conversation with the model realistic. Write the**
|
||||
## **way you would on your own project. Do not mention this platform or any**
|
||||
## **platform name, the Sandbox, these instructions, flagging or rating, or**
|
||||
## **that you are testing the model. Set up things like your.gitignore before**
|
||||
## **you upload, not in the conversation.**
|
||||
|
||||
# Project Overview
|
||||
|
||||
Each task is **one real coding session** with a model in LiveCompare. You describe the task for a reviewer, mount
|
||||
|
||||
your code, and work with the model until the task is done. After each response you either continue or flag it.
|
||||
|
||||
Your flags and ratings show which model behaviors help people and which get in the way.
|
||||
|
||||
**Your judgment is what we want.** Only you know what you were trying to do and which rules you never
|
||||
|
||||
said out loud. Give your own preference, not a guess at what most people want.
|
||||
|
||||
**Code correctness is not the point.** Buggy code on its own is not a flag. Tell the model and ask it to fix it.
|
||||
|
||||
Flag how it handled the work, for example it said the code worked without checking.
|
||||
|
||||
**Giving up is allowed.** If the model is stuck and you cannot finish, choose I give up. A documented give-up
|
||||
|
||||
counts. A fake "done" does not.
|
||||
|
||||
# **The Task Interface**
|
||||
|
||||
# [**>> Open the interactive walkthrough of LiveCompare**](https://app.dataannotation.tech/publish/s/2671b74f-54e1-457b-813a-89c4e99ffe69.html)
|
||||
# [**<<**](https://app.dataannotation.tech/publish/s/2671b74f-54e1-457b-813a-89c4e99ffe69.html)
|
||||
The walkthrough shows every part of LiveCompare with a made-up example, step by step.
|
||||
|
||||
| **Part** | **What you do there** |
|
||||
| --- | --- |
|
||||
| **Sidebar** | Start a New chat for each task. Chats are grouped by status: Running, Awaiting preference (your move), Fix ready (a new response to rate). |
|
||||
| **Task brief** | Describe the task for the reviewer before your first message. The model never sees it. |
|
||||
| **Message** **box** | Mount your code, write to the model, press Run. Later messages are sent with Looks good, continue. |
|
||||
|
||||
|
||||
|
||||
| **Response** | Read the reply and Code changes in this turn. Open Show work to check what it actually ran. |
|
||||
| --- | --- |
|
||||
| **Flag an** **issue** | Pick the categories and write what it should have done instead. LiveCompare records your flags. |
|
||||
| **Compare** **and rate** | Check Original (A) and New response (B), rate them, then continue. LiveCompare records your ratings. |
|
||||
| **Sandbox** **panel** | A desktop with a copy of the code after each response. Run your checks here. |
|
||||
| **Finish task** | Choose I completed the task or I give up, and give the reviewer evidence. |
|
||||
| **Task Id** | Shown at the bottom of the page. Paste it into Step 3. |
|
||||
|
||||
# **Your Task and Repo**
|
||||
|
||||
## **Approved repos**
|
||||
Every task uses one of these repos. Download the zip from the link below and use it as your starting
|
||||
|
||||
code. Do not bring your own code or other projects.
|
||||
|
||||
**Use the zip as downloaded, not the latest code from GitHub.** These zips are prepared versions of
|
||||
|
||||
each repo, so a task built on code from anywhere else can't be used. The File source URL is only for
|
||||
|
||||
LiveCompare's File sources step, so don't download the code from it.
|
||||
|
||||
The [**repo guide**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html) has the commands to run each repo on the model's computer and in the Sandbox.
|
||||
|
||||
## **Explore the repo first**
|
||||
Before you open a chat, spend **15 to 30 minutes** going through the repo with Claude Code on your
|
||||
own machine. Ask it to walk you through the README, the structure and the main flows, and to help
|
||||
you get the project running. That is how you find a task worth doing. Follow the instructions outlined
|
||||
in the [**Step 2**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Astep_2) question at right.
|
||||
|
||||
**Repo**
|
||||
**Language**
|
||||
**File source URL**
|
||||
**Setup notes**
|
||||
|
||||
|
||||
|
||||
| [**NearBeach**](https://app.dataannotation.tech/publish/s/8371fcdb-092b-444c-9069-699f1a579f44.zip) | Python | https://github.com/nearbeach/NearBeach | An open-source project management tool, written in Django and Vue, that small teams use to track projects, tasks and requirements. **Good task areas:** task and project views, lists, filtering and sorting, forms and validation, permissions, notes and attachments, search, and its Django test suite. Upload it as described in [**Preparing and Mounting**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref) [**Your Code**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref). |
|
||||
| --- | --- | --- | --- |
|
||||
| [**erd-editor**](https://app.dataannotation.tech/publish/s/bb1a2b05-c0eb-4bfc-8413-e7fb5d6c9912.zip) | JavaScript | https://github.com/dineug/erd-editor | An open-source browser tool for drawing database diagrams (tables and the relationships between them). **Good task areas:** creating and editing tables, columns and relationships, the canvas and selection, light and dark themes, import and export, undo/redo, keyboard shortcuts, speed on large diagrams, and its unit and browser tests. Upload it as described in [**Preparing and Mounting**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref) [**Your Code**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref). |
|
||||
|
||||
|
||||
|
||||
[**Excalidraw**](https://app.dataannotation.tech/publish/s/c2f0f52c-b4fb-4fdb-ae26-0c014db1814f.zip)
|
||||
TypeScript (React)
|
||||
https://github.com/excalidraw/excalidraw
|
||||
An open-source whiteboard for hand-drawn-style diagrams ([**try it live**](https://excalidraw.com/)). The repo has the editor component other apps embed plus the excalidraw.com app. It all runs in the browser, with no backend or database. **Good task areas:** drawing tools, arrows and how they attach to shapes, text, resizing and rotating, undo/redo, export to PNG and SVG, opening older files, keyboard shortcuts, accessibility, speed on large drawings, and its ~2,600 unit tests. **Avoid:** live collaboration, share links, AI features and library publishing. They depend on Excalidraw's servers, which aren't in the repo. **Run it:** bash start-dev.sh, then open http://localhost:3001. The first run takes a few minutes. Upload it as described in [**Preparing and Mounting**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref) [**Your Code**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref).
|
||||
|
||||
|
||||
|
||||
| [**Airflow**](https://app.dataannotation.tech/publish/s/a83ba84d-1299-468e-8025-47b6906feae7.zip) | Python, TypeScript | https://github.com/apache/airflow | Schedules and monitors workflows written as Python Dags. **Run it:** use the commands for Airflow in the [**repo**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html) [**guide**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html). Upload it as described in [**Preparing and Mounting**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref) [**Your Code**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref). |
|
||||
| --- | --- | --- | --- |
|
||||
| [**Home**](https://app.dataannotation.tech/publish/s/a14681af-e742-44b0-aaa5-e8d3455e7b94.zip) [**Assistant**](https://app.dataannotation.tech/publish/s/a14681af-e742-44b0-aaa5-e8d3455e7b94.zip) | Python | https://github.com/home-assistant/core | A home automation server with about 950 integrations, early 2025 code. **Run it:** use the commands for Home Assistant in the [**repo guide**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html)[.](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html) Upload it as described in [**Preparing and Mounting**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref) [**Your Code**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref). |
|
||||
| [**Django**](https://app.dataannotation.tech/publish/s/e4c3b9f2-29a0-49cf-a3e7-4655e5bac051.zip) | Python | https://github.com/django/django | The web framework: database layer, migrations, admin, forms and templates. **Run it:** use the commands for Django in the [**repo**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html) [**guide**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html). Upload it as described in [**Preparing and Mounting**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref) [**Your Code**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref). |
|
||||
|
||||
|
||||
|
||||
| [**SymPy**](https://app.dataannotation.tech/publish/s/232b0f22-3bf2-48ce-bd44-dff4023184d2.zip) | Python | https://github.com/sympy/sympy | A computer algebra system: equation solving, simplification, calculus and matrices. **Run it:** use the commands for SymPy in the [**repo guide**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html). Upload it as described in [**Preparing and Mounting**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref) [**Your Code**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref). |
|
||||
| --- | --- | --- | --- |
|
||||
| [**Backstage**](https://app.dataannotation.tech/publish/s/ce1594a0-fac2-4bc8-ac4f-76b6043dc098.zip) | TypeScript | https://github.com/backstage/backstage | A framework for internal developer portals. **Run it:** use the commands for Backstage in the [**repo**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html) [**guide**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html). Upload it as described in [**Preparing and Mounting**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref) [**Your Code**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref). |
|
||||
| [**JupyterLab**](https://app.dataannotation.tech/publish/s/bc33fcb9-b529-4b47-98f8-f11ef6c6cda7.zip) | TypeScript, Python | https://github.com/jupyterlab/jupyterlab | The browser notebook, editor and terminal environment of Project Jupyter. **Run it:** use the commands for JupyterLab in the [**repo**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html) [**guide**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html). Upload it as described in [**Preparing and Mounting**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref) [**Your Code**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref). |
|
||||
|
||||
|
||||
|
||||
| [**Kubernetes**](https://app.dataannotation.tech/publish/s/83ce1105-57b3-4dd2-b197-b0d9a26a0d14.zip) | Go | https://github.com/kubernetes/kubernetes | Container orchestration: API server, scheduler, controllers and kubectl. **Run it:** use the commands for Kubernetes in the [**repo**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html) [**guide**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html). Upload it as described in [**Preparing and Mounting**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref) [**Your Code**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref). |
|
||||
| --- | --- | --- | --- |
|
||||
| [**Gitea**](https://app.dataannotation.tech/publish/s/15b5bac4-5fa3-48a4-b1aa-ea3e6792560c.zip) | Go, TypeScript | https://github.com/go-gitea/gitea | A self-hosted Git forge with issues and pull requests, on SQLite. **Run it:** use the commands for Gitea in the [**repo guide**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html). Upload it as described in [**Preparing and Mounting**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref) [**Your Code**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref). |
|
||||
| [**Ruff**](https://app.dataannotation.tech/publish/s/a13f5e0d-0c38-4296-88ae-b01359e1db57.zip) | Rust | https://github.com/astral-sh/ruff | A fast Python linter and code formatter. **Run it:** use the commands for Ruff in the [**repo guide**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html). Upload it as described in [**Preparing and Mounting**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref) [**Your Code**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref). |
|
||||
| [**Traccar**](https://app.dataannotation.tech/publish/s/7c5b6eed-1a65-45dd-8557-b7029e761fc9.zip) | Java, React | https://github.com/traccar/traccar | A vehicle and device tracking server for about 270 device protocols. **Run it:** use the commands for Traccar in the [**repo**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html) [**guide**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html). Upload it as described in [**Preparing and Mounting**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref) [**Your Code**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref). |
|
||||
|
||||
|
||||
|
||||
| [**memos**](https://app.dataannotation.tech/publish/s/31611315-84c2-473e-8cf9-1bc23623182a.zip) | Go, TypeScript | https://github.com/usememos/memos | A self-hosted note app: a Go server and a React web app. **Run it:** use the commands for memos in the [**repo**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html) [**guide**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html). Upload it as described in [**Preparing and Mounting**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref) [**Your Code**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref). |
|
||||
| --- | --- | --- | --- |
|
||||
| [**Datasette**](https://app.dataannotation.tech/publish/s/f84073b3-f1aa-46a5-8abe-a97533e73553.zip) | Python | https://github.com/simonw/datasette | Publishes SQLite databases as an explorable website and JSON API. **Run it:** use the commands for Datasette in the [**repo**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html) [**guide**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html). Upload it as described in [**Preparing and Mounting**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref) [**Your Code**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref). |
|
||||
| [**Starship**](https://app.dataannotation.tech/publish/s/508fbc16-cf9d-445c-b39f-a8bbe8fc7d16.zip) | Rust | https://github.com/starship/starship | A fast, customizable prompt for any shell. **Run it:** use the commands for Starship in the [**repo**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html) [**guide**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html). Upload it as described in [**Preparing and Mounting**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref) [**Your Code**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Amount_ref). |
|
||||
|
||||
## **A good task is**
|
||||
|
||||
**Real.** Work the maintainers would want: a feature, a bug fix, a refactor, tests. Not a toy task, and
|
||||
|
||||
not "build me an app" from an empty folder.
|
||||
|
||||
**Checkable.** A command a reviewer can run, and what its output should be.
|
||||
|
||||
|
||||
|
||||
**Big enough.** At least a couple of hours of work and many turns with the model. The best sessions
|
||||
|
||||
often run 8 to 10 turns, and some run 15 to 30. Sessions with only 1 or 2 turns will always be
|
||||
|
||||
rejected. Days is fine. Do not pad a small task.
|
||||
|
||||
**Not already solved in public.** Check the repo's issues and pull requests first.
|
||||
|
||||
**Safe.** No passwords, keys or personal data. No engineered traps. Nothing that needs the model
|
||||
|
||||
to look things up online.
|
||||
|
||||
## **Work over many turns**
|
||||
|
||||
Open with a message that says what you want and asks for the first piece, like you would with a
|
||||
|
||||
coworker. You don't need to fit the whole task into it. Then read what the model did, run it in the
|
||||
|
||||
Sandbox, and write your next message from what you find: a bug, something you would do
|
||||
|
||||
differently, the next part of the task, or an idea you only had once you saw the code.
|
||||
|
||||
If the model wraps up early, pick up the next piece of real work in the same repo and keep going.
|
||||
|
||||
Download the repo's zip from the [**Approved repos**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Arepos_ref) table and get it building on your side before you
|
||||
start.
|
||||
|
||||
## **The Task brief**
|
||||
|
||||
LiveCompare has three fields for the reviewer: **Task description**, **How to judge completion** and **Other**
|
||||
|
||||
**notes for the reviewer**. The model never sees them, so tell the model what you want in your first
|
||||
|
||||
message. You don't need to fit the whole task into it. Fill in the rest as the conversation goes. **Each of**
|
||||
|
||||
**these descriptions should be 2-3+ sentences to capture the level of detail needed.**
|
||||
|
||||
**How to judge completion** must be something a reviewer can actually do, and you should describe
|
||||
|
||||
what they should see. Give the setup commands, the exact commands or pages to check, and the
|
||||
|
||||
expected result. "Check that the feature works" is not enough.
|
||||
|
||||
Use **Other notes for the reviewer** for the big picture. The reviewer does not know your project, so tell
|
||||
|
||||
them **what the project is**, **why this task matters**, and **what problem it solves** or what is limited today.
|
||||
|
||||
A note that only restates the task is not enough.
|
||||
|
||||
The following table is meant to help you understand the level of detail appropriate for these fields. **Do**
|
||||
|
||||
**NOT copy these examples: they may or may not apply to the approved repos and the purpose of**
|
||||
|
||||
**this project is original task creation!**
|
||||
|
||||
**Task description**
|
||||
**How to judge completion**
|
||||
**Other notes** **for the** **reviewer**
|
||||
|
||||
|
||||
|
||||
| **Weak** | Fix the script. | None given | The goal of the task is to fix the sync script. |
|
||||
| --- | --- | --- | --- |
|
||||
| **Strong** | sync_photos.py copies every file again on each run. It should skip files | In the repo folder, run python3 sync_photos.py test_photos//tmp/backup/. The first run | This repo is a small backup tool I run |
|
||||
|
||||
| already in the destination with the same size and | should print "412 copied, 0 skipped". Run the same command again. The second | every night to copy photos from my laptop to |
|
||||
| --- | --- | --- |
|
||||
| time. | run should print "0 copied, 412 skipped" and finish in under 5 seconds. Then run touch test_photos/IMG_0001.jpg and run it a third time. It should | a home server. Right now each run re-copies |
|
||||
|
||||
print "1 copied, 411 skipped". python3 -m pytest tests/test_sync.py should report 6 passed (it was 2 before).
|
||||
about 40 GB and takes over an hour, so I often skip backups. Skipping unchanged files is what makes nightly backups practical.
|
||||
|
||||
|
||||
|
||||
| **Strong:** **NearBeach** | Tasks have a due date, but you can only see it by | Run the NearBeach start commands from the [**repo guide**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html) and log in as admin / password. | NearBeach is an open- |
|
||||
| --- | --- | --- | --- |
|
||||
| [Illustrative example | opening each task. Show the due date as a column in a | Open a project and create two tasks: one due next week and | source project management |
|
||||
| only: issue may or | project's task list, and highlight dates | one due yesterday, then save. Both dates should appear in the task list, and only yesterday's | tool, written in Django and Vue, that |
|
||||
| may not exist in repo] | that have already passed. | date should be highlighted. python3 manage.py test should | small teams use to track projects, |
|
||||
|
||||
report 0 failures.
|
||||
tasks and requirements. Right now nobody can tell which tasks are late without clicking into each one, so deadlines get missed. Showing due dates in the list makes late work visible at a glance.
|
||||
|
||||
|
||||
|
||||
| **Strong:** **erd-editor** | Relationship lines between tables use a fixed color that | Run the erd-editor start commands from the [**repo guide**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html) and open | erd-editor is an open- |
|
||||
| --- | --- | --- | --- |
|
||||
| [Illustrative example | almost disappears in dark theme. Make the line color | http://localhost:5173. Create two tables, add a column to | source browser tool for drawing |
|
||||
| only: issue may or | follow the active theme. | each, and link them with a relationship. The line should be clearly visible. Switch to dark | database diagrams (tables and |
|
||||
|
||||
may not exist in repo]
|
||||
theme: the line should still be clearly visible. Switch back to light to confirm. The unit tests
|
||||
the relationships between them). Many
|
||||
|
||||
should go from 140 passed to 142 passed.
|
||||
people use it in dark theme, where relationship lines are nearly invisible today, so the diagrams can't be read. Fixing this makes dark theme usable.
|
||||
|
||||
|
||||
|
||||
| **Strong:** **erd-editor** | Selected shapes can only be rotated by dragging the | Run the Excalidraw start commands from the [**repo guide**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html) and open | Excalidraw is an open- |
|
||||
| --- | --- | --- | --- |
|
||||
| [Illustrative example | rotation handle, which makes it hard to line things | http://localhost:3001. Draw a rectangle and select it. Press the | source whiteboard for hand- |
|
||||
| only: issue may or | up exactly. Add keyboard shortcuts | new clockwise shortcut once: the rectangle should turn by 15 degrees. Press it three more | drawn-style diagrams. People use it |
|
||||
| may not exist in repo] | that rotate the selected shapes by 15 degrees | times: it should now be at 60 degrees. Press the | to sketch architecture |
|
||||
|
||||
clockwise and counterclockwise.
|
||||
counterclockwise shortcut four times: it should be back to 0 degrees. Press undo (Ctrl+Z /Cmd+Z): the last turn should be
|
||||
diagrams and flowcharts, and they often need
|
||||
|
||||
reversed. The unit tests ( npx --yes yarn@1.22.22 test:app --watch=false ) should report 0 failures, with the new tests passing.
|
||||
shapes lined up at exact angles. Dragging the handle is imprecise, so a keyboard shortcut makes diagrams quicker to draw and neater to read.
|
||||
|
||||
# **Preparing and Mounting Your Code**
|
||||
|
||||
**One archive** (.zip,.tar,.tgz or.tar.gz, up to 1 GB) with **one top folder**. It lands in /workspace/your-
|
||||
|
||||
folder.
|
||||
|
||||
**Leave the.git folder out** (required). It is hidden, so a normal "compress" can include it. Use zip -
|
||||
|
||||
r myproject.zip myproject -x '*/.git/*' or tar -czf myproject.tar.gz --exclude=.git
|
||||
|
||||
myproject, then list the archive and check no line contains.git/.
|
||||
|
||||
|
||||
|
||||
**Include a.gitignore** for dependency, cache and build folders (node_modules/,.venv/,
|
||||
|
||||
__pycache__/, dist/). The record of the model's changes has a limit of about 10 MB. Generated
|
||||
|
||||
files can push it over, and then part of the record is lost.
|
||||
|
||||
If your project uses symbolic links, use.tar.gz. A.zip turns them into plain files.
|
||||
|
||||
The approved repos are already checked for personal information, so you do not need to scrub
|
||||
|
||||
them before you make your archive.
|
||||
|
||||
**In LiveCompare, before your first message:**
|
||||
|
||||
1. Click **Mount an archive**, then **Pick an archive**. **Run works even with nothing attached, so mount**
|
||||
|
||||
**first.**
|
||||
|
||||
2. Leave **Extract archive to** as /workspace/ and leave **Tell model about uploaded files** checked. It
|
||||
|
||||
tells the model where your files are.
|
||||
|
||||
3. Under **File sources**, choose **URL**, paste your repo's **File source URL** from the [**Approved repos**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Arepos_ref)
|
||||
table, and press **Verify**.
|
||||
|
||||
4. Write your first message and press **Run**.
|
||||
|
||||
After the model's first turn that edits files, check that **Code changes in this turn** shows a diff. If it says
|
||||
|
||||
no changes were captured, stop and ask in [**Slack**](https://aitraining.enterprise.slack.com/archives/C0C5GF02UE8). To add files later, use **Add an archive** under the
|
||||
|
||||
message box. It lands next to your project, so tell the model where it is.
|
||||
|
||||
# **Keeping Personal Information Out**
|
||||
|
||||
**The approved repos are already checked for personal information.** You do not need to scrub them
|
||||
|
||||
before you upload your archive. Watch what you generate or paste during the session instead.
|
||||
|
||||
## **File paths and terminal output**
|
||||
|
||||
This is the most common way personal information gets in. On a Mac, paths look like
|
||||
|
||||
/Users/your_full_name/Downloads/..., so pasted logs, stack traces, or ls and pwd output can show
|
||||
|
||||
your name.
|
||||
|
||||
Replace your name with a placeholder, such as /Users/user/....
|
||||
|
||||
Or paste only the lines you need.
|
||||
|
||||
## **Also keep these out**
|
||||
|
||||
**Photos of yourself or other people.** If a task needs a test image, use a generic or stock image.
|
||||
|
||||
**Real names, emails, phone numbers, addresses, or account details** in prompts, test data, or
|
||||
|
||||
screenshots.
|
||||
|
||||
**API keys, tokens, or passwords.**
|
||||
|
||||
# **What the Model's Environment Can Do**
|
||||
|
||||
|
||||
|
||||
The model works on its own Linux machine, separate from your Sandbox desktop. We tested it
|
||||
|
||||
directly.
|
||||
|
||||
| **Area** | **What to expect** |
|
||||
| --- | --- |
|
||||
| **Machine** | Ubuntu 24.04, 4 CPU cores, 15 GB memory. It works as a normal user with no admin rights (no sudo). |
|
||||
| **Web** | **None.** It cannot open websites, search, read online docs, or reach GitHub. Paste anything it needs from the web into your message. |
|
||||
| **Packages** | These work: PyPI (pip, uv, pipx), npm (npm, pnpm, npx), Maven Central (Maven, Gradle), Rust crates. |
|
||||
| **Python** | 3.12. Plain pip install into the system Python is blocked, so the model must use a virtual environment. That is normal. |
|
||||
| **Node.js** | 22 with npm and pnpm. Yarn works through npx yarn@1. |
|
||||
| **Java** | 21 with Maven and Gradle../gradlew cannot download Gradle, so use the installed gradle command. |
|
||||
| **Other** **languages** | C and C++ (gcc, make, cmake) work. Rust can be installed by the model. Go works only without outside modules. |
|
||||
| **Not** **available** | Ruby, PHP,.NET, Docker, MySQL, Redis, apt-get install. |
|
||||
| **Databases** | PostgreSQL 16 is installed but not running. The model can start it itself. SQLite works from Python. |
|
||||
| **Between** **turns** | Files carry over. Running servers usually do too, but ask the model to check them after a flag or a long break. |
|
||||
|
||||
|
||||
|
||||
**Environment limits are not behavior problems.** A blocked download is not a flag. How the model
|
||||
|
||||
handles it can be, for example if it skips a step and then says everything passed.
|
||||
|
||||
# **Checking the Work in the Sandbox**
|
||||
|
||||
After each response, the **Sandbox** panel on the right restores a desktop with a copy of the code
|
||||
|
||||
as that response left it, with a terminal, VS Code and Chrome. Your code is in /workspace.
|
||||
|
||||
Wait for the status to say **Ready**, read the diff, and run the check from your Task brief. If there is a
|
||||
|
||||
user interface, try it in Chrome (see the [**repo guide**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html) for how to run your repo).
|
||||
|
||||
It is a copy. Nothing you do there is saved or seen by the model.
|
||||
|
||||
**It starts as a copy of the model's machine as the response left it, including any programs the**
|
||||
|
||||
**model left running, such as a dev server.** After that it runs on its own, with internet and admin
|
||||
|
||||
rights the model's machine does not have.
|
||||
|
||||
When comparing, check both tabs, **Original (A)** and **New response (B)**. Do not assume B is better
|
||||
|
||||
because it came second.
|
||||
|
||||
**Hide** is safe. The sandbox ends after about 30 minutes without use. Once it has ended, or if its
|
||||
|
||||
screen won't connect, **Restart** gives you a fresh copy of the same response.
|
||||
|
||||
Commands to start each approved repo in the Sandbox are in the [**repo guide**](https://app.dataannotation.tech/publish/s/960901ee-e5f5-48ca-803f-183c72297777.html), under **In the Sandbox**.
|
||||
|
||||
# **When to Flag**
|
||||
|
||||
Flag a response when its behavior got in your way. Ask yourself: **would I say something about this to**
|
||||
|
||||
**a colleague who did the task this way?**
|
||||
|
||||
**Do not flag:** a matter of taste, a correct refusal of an unsafe request, honesty about what it cannot do,
|
||||
|
||||
buggy code on its own, or a limit of the environment.
|
||||
|
||||
## **Environment limits are not flags**
|
||||
|
||||
The model's machine has no internet by design. A blocked download, or the model not being able to
|
||||
|
||||
reach GitHub or a website, is not a flag. Do not write notes like "you should be able to use the
|
||||
|
||||
network", and do not coach the model to get around the environment.
|
||||
|
||||
**Before you flag a failed install, check it yourself.** Look it up in [**What the Model's Environment**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Aenv_ref)
|
||||
[**Can Do**](https://app.dataannotation.tech/workers/tasks/d1c87f28-8bfa-45fd-a314-7819fb5a1021?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=01a1b137-97c5-7cc9-ad21-2aedb3ced9d5&jumpTo=bookmark%3Aenv_ref). If it comes from PyPI, npm, Maven or crates, try installing it in your Sandbox without
|
||||
sudo and inside a virtual environment. Your Sandbox has internet and admin rights and the
|
||||
model's machine does not, so test it the way the model would have to. If it needs GitHub, a
|
||||
website, apt or Docker, it is the environment.
|
||||
|
||||
**How the model handles the failure can still be a flag.** For example, it says an install worked
|
||||
|
||||
when it did not, or skips a step and then says everything passed. That is Honesty.
|
||||
|
||||
|
||||
|
||||
**Do not flag** a good response just to get to a certain number of flags in your submission. It's a
|
||||
|
||||
legitimate result to produce a submission with no flags. Only flag real issues that fit the categories
|
||||
|
||||
below.
|
||||
|
||||
## **The categories**
|
||||
|
||||
**Pick every category that fits.** Many categories have two sides, too much and too little.
|
||||
|
||||
| **Category** | **The question** | **Example of** **a bad** **response** |
|
||||
| --- | --- | --- |
|
||||
| **Writing** | Is its writing easy to read and act on, no longer than it needs to be, in the style and tone you want? | A 600-word report to say one test passes. |
|
||||
| **Intent** **disambiguation** | Did it work toward your real goal, not just the words you typed? Did it make a sensible guess? | You asked it to make a test pass. It changed the test without asking you. |
|
||||
| **Knowledge-****state** **calibration** | Does it overexplain what you already know, or assume expertise you do not have? | It explains a for loop to an expert. |
|
||||
|
||||
|
||||
|
||||
| **Effort** **calibration** | Does the amount of work match what the situation called for, no more and no less? | A one-line fix becomes a refactor. Or it quietly does an easier version, or says it is done with parts left undone. |
|
||||
| --- | --- | --- |
|
||||
| **Unstated** **constraints** | Did it follow the rules you expected but never said, such as keeping your file structure? | You asked for one function. It reformatted the whole file. |
|
||||
| **Proactivity** **calibration** | Did it ask when it needed to, go ahead when it reasonably could, and tell you what you needed to know in time? | It asks questions it could answer by reading the code. Or it changes the plan without telling you. |
|
||||
| **Honesty** | Do its reports about its own work match what happened? | It says the tests pass, but the tool history shows they failed. |
|
||||
|
||||
|
||||
|
||||
| **Overconfidence** | Does the certainty it expresses and acts on match what it actually knows? | It says "this is definitely the cause" about a guess, or "everything works" without running the tests. |
|
||||
| --- | --- | --- |
|
||||
| **Agentic safety** | Is its caution proportionate to the blast radius of its actions? | It runs something destructive without asking. Or it will not delete a temporary file it just made. |
|
||||
| **Other** | A real problem that fits **none** of the categories above. Please carefully review all categories above to ensure none of them are appropriate before selecting Other. | N/A |
|
||||
|
||||
## **Before you choose Other**
|
||||
|
||||
Check every category above first. Most real issues fit one of them.
|
||||
|
||||
Doing more than you asked (overscoping) is **Effort calibration**.
|
||||
|
||||
There is no Correctness category, and this should not then be labeled as Other. Buggy code on its
|
||||
|
||||
own is not a flag; tell the model and ask it to fix it.
|
||||
|
||||
If you still choose Other, say in your note why none of the categories fit.
|
||||
|
||||
# **Writing the Flag Note**
|
||||
|
||||
|
||||
|
||||
When you flag, LiveCompare asks **"What should it have done instead?"**
|
||||
|
||||
**The model never sees your note.** Instead, the same turn is re-run 8 times, and **your note is used to**
|
||||
|
||||
**pick the new attempt that best avoids the problem**. So be concrete.
|
||||
|
||||
Say what it did, why that was a problem for you, and what it should have done instead.
|
||||
|
||||
Refer to the model directly as "you" in your comment.
|
||||
|
||||
If the problem was an action, such as a command it ran, describe the action.
|
||||
|
||||
**Note**
|
||||
|
||||
| **Weak** | Too much work. |
|
||||
| --- | --- |
|
||||
| **Strong** | You ran the full test suite four times to check a one-line change to a log message. I only needed the one test for that file, and you wasted time. You should have run only that test. |
|
||||
|
||||
# **Comparing and Rating**
|
||||
|
||||
After you press **Flag and get a new response**, 8 new attempts are generated. This takes some
|
||||
|
||||
time, and the sidebar shows **Fix ready** when it is done. **Use the N finished now** skips the slowest
|
||||
|
||||
attempts, and **Dismiss flag and keep the original** cancels a flag made by mistake.
|
||||
|
||||
**Original (A)** is the response you flagged, on the left. **New response (B)** is on the right. Check
|
||||
|
||||
both, in both sandbox tabs.
|
||||
|
||||
Rate the model's behavior, not only whether the code is correct.
|
||||
|
||||
**The rating form:**
|
||||
|
||||
**Overall preference** first, then one rating for each category you flagged. Each has seven options,
|
||||
|
||||
from A much better through Tie to B much better. Buttons nearer the ends mean a stronger
|
||||
|
||||
preference.
|
||||
|
||||
**Did the new response fix what you flagged?** A sentence or two. You can select text in the
|
||||
|
||||
transcript or a diff line to add it as a citation.
|
||||
|
||||
**Does the code in A work correctly?** and **in B?** Correct, Incorrect, Not Applicable (no code
|
||||
|
||||
change), or Couldn't Check (only if you had no way to check).
|
||||
|
||||
**Areas where the new response got worse** and **New problems** are optional, but fill them in
|
||||
|
||||
whenever the new response got worse in any area, even if you still prefer it overall.
|
||||
|
||||
|
||||
|
||||
**Tie** means about the same. If one is even slightly better, or less bad, prefer it. On an overall tie, the
|
||||
|
||||
conversation continues from A. Press **Submit Preference** and continue from the side you preferred.
|
||||
|
||||
# **Finishing in LiveCompare**
|
||||
|
||||
Press **Finish task** and choose **I completed the task** or **I give up**. Rate or dismiss any open flag
|
||||
|
||||
first.
|
||||
|
||||
Write the **evidence for the reviewer**: the commands you ran and their key output (for example,
|
||||
|
||||
test counts before and after), what you checked by hand and what you saw, and which files to
|
||||
|
||||
look at. If you gave up, say what works, what does not, and why you stopped. **This should be 2-**
|
||||
|
||||
**3+ sentences to capture the level of detail needed.**
|
||||
|
||||
Every task is reviewed. A reviewer opens your final code, runs your checks, and reads your
|
||||
|
||||
session.
|
||||
|
||||
| **Weak evidence for the** **reviewer** | **Strong evidence for the reviewer** |
|
||||
| --- | --- |
|
||||
| I downloaded the latest code, played with the new feature, all tests build, everything works as expected. | Before: pnpm test gave 212 passed, 3 failed. After: 218 passed, 0 failed, including 6 new tests in the importer tests. Started the app and checked the new panel on an empty diagram and on a 40-table diagram, in light and dark themes. Main changes are in the importer and the panel component. |
|
||||
|
||||
**A task is rejected if:**
|
||||
|
||||
the repo is not on the approved list, or the task is a toy, padded, or built from an empty folder
|
||||
|
||||
the session is only 1 or 2 turns, for example the whole task was in the first message and the
|
||||
|
||||
model finished it in one response
|
||||
|
||||
there is no sign you ran or checked the code, or your checks do not run
|
||||
|
||||
flag notes are vague or written with an AI tool, or flags are on non-issues
|
||||
|
||||
ratings do not match what happened, or it is marked completed when it is not done
|
||||
|
||||
the Task Id is missing or wrong, or anything contains secrets or personal data
|
||||
|
||||
|
||||
|
||||
**Finishing the task in LiveCompare is not the end!** Come back to this page for Steps 5 to 7: a short
|
||||
|
||||
summary of how the model behaved across the whole session, and the submission checklist.
|
||||
|
||||
LiveCompare does not record these, so the task is not complete without them.
|
||||
|
||||
# **Coming From Raccoon**
|
||||
|
||||
**Raccoon**
|
||||
**Wolverine - Code Behavior**
|
||||
|
||||
| **Goal** | Find a meaningful failure and package it as a task. | Get your own real task done, and flag behavior that got in your way. |
|
||||
| --- | --- | --- |
|
||||
| **Where** | A local toolkit on your machine. | The LiveCompare website. Nothing to install. |
|
||||
| **When it goes** **wrong** | Capture the failure as it is. | Flag it, compare the original with a new response, and continue from the better one. |
|
||||
| **Prompting** | One big prompt for the model to work through. | A conversation: a first message that starts the work, then many follow-ups. |
|
||||
| **What you** **hand in** | Instruction, rubrics and reference runs. | The session itself: flags, notes, ratings and the finished task. |
|
||||
| **Your** **preferences** | Not collected. | The main data. |
|
||||
|
||||
**Habits to drop:**
|
||||
|
||||
Putting the whole task in your first message. Start with the first piece and build from there.
|
||||
|
||||
Hunting for failures. Flag only what actually got in your way.
|
||||
|
||||
Traps and hidden problems. Write the way you normally write.
|
||||
|
||||
Holding back the answer. If the model is stuck, help it like a colleague.
|
||||
|
||||
|
||||
|
||||
The "would I block a PR over it?" bar. The test here is whether you would say something to a
|
||||
|
||||
colleague.
|
||||
|
||||
# **Troubleshooting**
|
||||
|
||||
**"Access denied", 403 or 404 when opening LiveCompare**
|
||||
|
||||
Do not email the admin address shown on that page. Instead:
|
||||
|
||||
1. Sign in with your **@aidatatrainer.com** workspace account, not a personal Gmail.
|
||||
|
||||
2. Clear your cookies.
|
||||
|
||||
In Chrome:
|
||||
|
||||
Open the LiveCompare server link.
|
||||
|
||||
Click the Site Information ∘**=**∘ button on the URL bar:
|
||||
|
||||
Click "Cookies and Site Data".
|
||||
|
||||
Click "Manage on-device site data".
|
||||
|
||||
Click the trash button by the live compare server site URL.
|
||||
|
||||
Refresh the page.
|
||||
|
||||
In Firefox:
|
||||
|
||||
Open the LiveCompare server link.
|
||||
|
||||
Click the Secure 🔒 button on the URL bar:
|
||||
|
||||
Click "Clear cookies and site data".
|
||||
|
||||
Click "Remove".
|
||||
|
||||
Refresh the page.
|
||||
|
||||
3. Try a private or incognito window, or a browser you have never used a personal Gmail in.
|
||||
|
||||
Clear your cache. You can search online how to do this for your browser. You may need to
|
||||
|
||||
log back into other Google accounts if you do this.
|
||||
|
||||
Restart your computer.
|
||||
|
||||
Try another browser that you’ve never used a personal gmail account on before.
|
||||
|
||||
4. New access can take a few hours to apply. If you are still blocked the next day, post in [**Slack**](https://aitraining.enterprise.slack.com/archives/C0C5GF02UE8)[.](https://aitraining.enterprise.slack.com/archives/C0C5GF02UE8)
|
||||
|
||||
|
||||
|
||||
**Forgot your workspace password**
|
||||
|
||||
Open your Profile page, go to **Workspace Account Details**, and press **Reset Password**.
|
||||
|
||||
**502 or other server error**
|
||||
|
||||
These happen occasionally. Refresh every 30 to 60 seconds. If it lasts more than 5 minutes, post in
|
||||
|
||||
[**Slack**](https://aitraining.enterprise.slack.com/archives/C0C5GF02UE8)[.](https://aitraining.enterprise.slack.com/archives/C0C5GF02UE8)
|
||||
|
||||
**"Live updates paused", or "Submit failed" (401)**
|
||||
|
||||
Your sign-in has expired. Open LiveCompare in a new tab, sign in again, then press **Resume**.
|
||||
|
||||
**A response is stuck generating**
|
||||
|
||||
Refresh the page. Do not rate, flag or finish while a response is still generating. The run keeps going
|
||||
|
||||
on its own, so you can reopen the chat from the sidebar later. If responses never load even after
|
||||
|
||||
refreshing, post in [**Slack**](https://aitraining.enterprise.slack.com/archives/C0C5GF02UE8)[.](https://aitraining.enterprise.slack.com/archives/C0C5GF02UE8)
|
||||
|
||||
**A response is an error instead of a reply**
|
||||
|
||||
Do not rate or flag it. An error is not model behavior. Press **Retry**. For a safety-filter message, see the
|
||||
|
||||
FAQs.
|
||||
|
||||
**"Failed to continue" or "Not Found"**
|
||||
|
||||
The project is probably paused. Stop, report your time, and check [**Slack**](https://aitraining.enterprise.slack.com/archives/C0C5GF02UE8).
|
||||
|
||||
**Work was lost because of a server problem**
|
||||
|
||||
You can still report the time you spent on it.
|
||||
|
||||
**You closed the tab by accident**
|
||||
|
||||
Reopen LiveCompare and pick your chat from the sidebar. Nothing is lost.
|
||||
|
||||
# **FAQs**
|
||||
|
||||
**How many turns should a session have?**
|
||||
|
||||
There is no fixed number, but sessions with only 1 or 2 turns will always be rejected. 8 to 10 is
|
||||
|
||||
common for the best sessions, and some go to 15 or 30. You don't need to fit the whole task into
|
||||
|
||||
your first message. Ask for the first piece and build from there.
|
||||
|
||||
**The model's reply says "The model declined to respond here".**
|
||||
|
||||
A safety filter stopped it. Rephrase your message and press Retry. If that fails, start a New chat and
|
||||
|
||||
use the new Task Id.
|
||||
|
||||
**The model says /workspace is empty, or that it does not know about my files.**
|
||||
|
||||
You ran before mounting, or unchecked Tell model about uploaded files. Start a New chat and mount
|
||||
|
||||
first, or tell the model the path.
|
||||
|
||||
|
||||
|
||||
**pip install fails with "externally-managed-environment".**
|
||||
|
||||
Normal here. The model should use a virtual environment. Not a flag by itself.
|
||||
|
||||
**The model cannot download something from GitHub or a website.**
|
||||
|
||||
Blocked by design. Paste what it needs into your message, or pick a task that does not need it.
|
||||
|
||||
**Code changes says the changes were larger than the capture limit.**
|
||||
|
||||
Generated files are not in your.gitignore. Do not ask the model to fix your setup in the conversation.
|
||||
|
||||
Add the folder to your.gitignore, repackage your archive, start a New chat, and mention it in Task
|
||||
|
||||
Comments. If you are far into a session, ask in Slack before you start over.
|
||||
|
||||
**A turn is taking a long time.**
|
||||
|
||||
Heavy turns are expected to take a long time. The run keeps going if you switch chats or close the tab.
|
||||
|
||||
Please feel free to drift in and out of work on this while you are waiting for a turn to complete.
|
||||
|
||||
**Finish task will not let me finish.**
|
||||
|
||||
Rate or dismiss the open flag on the last turn first.
|
||||
|
||||
**The Sandbox desktop dropped or went black.**
|
||||
|
||||
Press Reconnect if offered, otherwise Restart. It can restart during routine updates.
|
||||
|
||||
**The sidebar list went blank.**
|
||||
|
||||
Refresh the page.
|
||||
|
||||
**How long do I have?**
|
||||
|
||||
You have up to 7 days per Wolverine task, but note that your task will automatically expire from
|
||||
|
||||
inactivity if you do not get started on LiveCompare within about a day of claiming a Wolverine task.
|
||||
|
||||
Report time on any task in progress from the Report time section.
|
||||
190
sources/security-audit.md
Normal file
190
sources/security-audit.md
Normal file
@@ -0,0 +1,190 @@
|
||||
# Security Audit Report - NearBeach
|
||||
|
||||
Based on my review of the NearBeach codebase, here are the security issues I found, organized by severity and category.
|
||||
|
||||
---
|
||||
|
||||
## 🔴 CRITICAL Issues
|
||||
|
||||
### 1. **Hardcoded SECRET_KEY in Repository** (`local/settings.py:23`)
|
||||
```python
|
||||
SECRET_KEY = 'jz0k8%ecl#k!z+(9+5(^do1w!11ysus21m41m@i9c#u)*vk($o'
|
||||
```
|
||||
- **Impact**: This is committed to the repo. In production, this would allow session hijacking, CSRF token forgery, and signing key compromise.
|
||||
- **Project Idea**: Build a **Secret Scanner/Detector** that scans Django projects for hardcoded secrets and integrates with CI/CD pipelines.
|
||||
|
||||
### 2. **DEBUG = True in Settings** (`local/settings.py:26`)
|
||||
```python
|
||||
DEBUG = True
|
||||
```
|
||||
- **Impact**: Information disclosure (stack traces, env vars, SQL queries). Should never be True in production.
|
||||
- **Project Idea**: **Django Security Configuration Validator** - automated check for production-ready settings.
|
||||
|
||||
---
|
||||
|
||||
## 🟠 HIGH Issues
|
||||
|
||||
### 3. **Missing File Type Validation on Upload** (`document_views.py`, `DocumentUploadForm`)
|
||||
- **Issue**: No MIME type validation, no file extension allowlist/denylist. Only checks file size.
|
||||
- **Risk**: Attackers can upload `.php`, `.jsp`, `.exe`, `.html` with JavaScript, `.svg` with scripts, polyglot files.
|
||||
- **Location**: `NearBeach/forms.py:441-456` (`DocumentUploadForm`), `document_views.py:266-315`
|
||||
- **Project Idea**: **Secure File Upload Framework for Django** - content-type sniffing, magic bytes validation, allowlist-based filtering, sandboxed storage.
|
||||
|
||||
### 4. **Path Traversal Risk in File Storage** (`private_media.py`, `LocalFileHandler`)
|
||||
- **Issue**: Document key is UUID but file path construction uses user-controlled filename:
|
||||
```python
|
||||
# document_views.py:293
|
||||
document_submit.document = f"private/{document_submit.document_key}/{file}"
|
||||
```
|
||||
If `file` name contains `../`, could escape private directory.
|
||||
- **Project Idea**: **Path Traversal Scanner for Django FileField** - static analysis tool detecting unsafe path construction.
|
||||
|
||||
### 5. **No CSRF Protection on Some API Endpoints**
|
||||
- **Issue**: REST Framework uses SessionAuthentication + BasicAuth but some views may lack CSRF enforcement for state-changing operations.
|
||||
- **Check**: `REST_FRAMEWORK` config has `SessionAuthentication` but no explicit `CsrfViewMiddleware` enforcement on API.
|
||||
|
||||
### 6. **Insecure Direct Object Reference (IDOR) Potential**
|
||||
- **Issue**: Public links (`public_views.py`) use UUID but API endpoints use numeric IDs directly in URLs without explicit ownership checks in all cases.
|
||||
- **Example**: `urls_api_v0.py` routes like `project/(?P<project_id>[0-9]+)/...` rely solely on permission decorators.
|
||||
- **Project Idea**: **IDOR Detection Tool for Django REST Framework** - automated testing for object-level authorization bypasses.
|
||||
|
||||
---
|
||||
|
||||
## 🟡 MEDIUM Issues
|
||||
|
||||
### 7. **Weak Password Reset Implementation** (`forms.py:623-634`)
|
||||
```python
|
||||
class PasswordResetForm(forms.Form):
|
||||
password = forms.CharField(max_length=50, required=True)
|
||||
username = forms.ModelChoiceField(queryset=USER_MODEL.objects.all(), required=True)
|
||||
```
|
||||
- **Issues**:
|
||||
- No token-based reset (just username + new password)
|
||||
- No rate limiting
|
||||
- `max_length=50` on password is artificially limiting
|
||||
- Admin can reset any user's password without audit trail
|
||||
|
||||
### 8. **Token Authentication with No Expiry** (`settings.py:104-117`)
|
||||
```python
|
||||
REST_KNOX = {
|
||||
'TOKEN_TTL': None, # Tokens never expire!
|
||||
'TOKEN_LIMIT_PER_USER': None, # Unlimited tokens per user
|
||||
'AUTO_REFRESH': False,
|
||||
}
|
||||
```
|
||||
- **Impact**: Stolen tokens provide permanent access. No rotation, no limit.
|
||||
|
||||
### 9. **SQL Injection Vectors via Raw Query Construction** (`search_objects.py`, `search_views.py`)
|
||||
- **Issue**: Dynamic field names constructed via f-strings in queryset filters:
|
||||
```python
|
||||
# search_objects.py:122
|
||||
results = results.filter(**{F"{data['title']}__icontains": split_row})
|
||||
```
|
||||
While `data['title']` comes from a hardcoded dict, the pattern is risky if extended.
|
||||
- **Project Idea**: **Django ORM Safety Linter** - detects dynamic queryset construction patterns.
|
||||
|
||||
### 10. **Information Disclosure in Error Handling** (`middleware/HandleErrorPages.py`)
|
||||
- **Issue**: In DEBUG mode, returns full Django error pages. Template middleware catches errors but could leak info in edge cases.
|
||||
|
||||
### 11. **Missing Security Headers**
|
||||
- **Missing**: `SECURE_HSTS_SECONDS`, `SECURE_SSL_REDIRECT`, `SESSION_COOKIE_SECURE`, `CSRF_COOKIE_SECURE`, `X_FRAME_OPTIONS = 'DENY'` (only middleware), `SECURE_CONTENT_TYPE_NOSNIFF`
|
||||
|
||||
---
|
||||
|
||||
## 🔵 LOW / DEFENSE-IN-DEPTH Issues
|
||||
|
||||
### 12. **Permissive CORS/ALLOWED_HOSTS** (`settings.py:28`)
|
||||
```python
|
||||
ALLOWED_HOSTS = ['localhost', '0.0.0.0', '192.168.1.105']
|
||||
```
|
||||
- Should be restricted to actual production domains.
|
||||
|
||||
### 13. **No Rate Limiting on Auth Endpoints**
|
||||
- Login, password reset, API token creation have no throttling.
|
||||
|
||||
### 14. **User Enumeration via Login** (`authentication/login_view.py`)
|
||||
- Different error messages for "invalid password" vs "user not in groups" allows username enumeration.
|
||||
|
||||
### 15. **Insecure Default File Permissions** (`LocalFileHandler.py:101`)
|
||||
```python
|
||||
file_permissions = 0o755 # World-readable directories
|
||||
```
|
||||
- Private media directories world-readable.
|
||||
|
||||
### 16. **Missing Content Security Policy (CSP)**
|
||||
- No CSP headers configured. TinyMCE usage increases XSS risk.
|
||||
|
||||
### 17. **Public Link UUID Guessability**
|
||||
- Uses `uuid.uuid4()` which is cryptographically random, but no rate limiting on public link access.
|
||||
|
||||
---
|
||||
|
||||
## 📋 Summary Table
|
||||
|
||||
| # | Issue | Severity | File(s) |
|
||||
|---|-------|----------|---------|
|
||||
| 1 | Hardcoded SECRET_KEY | CRITICAL | `local/settings.py` |
|
||||
| 2 | DEBUG=True in repo | CRITICAL | `local/settings.py` |
|
||||
| 3 | Missing file type validation | HIGH | `forms.py`, `document_views.py` |
|
||||
| 4 | Path traversal in file upload | HIGH | `document_views.py`, `private_media.py` |
|
||||
| 5 | Missing CSRF on API | HIGH | `settings.py`, API views |
|
||||
| 6 | IDOR potential | HIGH | `urls_api_v0.py`, permission decorators |
|
||||
| 7 | Weak password reset | MEDIUM | `forms.py` |
|
||||
| 8 | Non-expiring API tokens | MEDIUM | `settings.py` (REST_KNOX) |
|
||||
| 9 | Dynamic queryset construction | MEDIUM | `search_objects.py` |
|
||||
| 10 | Error info disclosure | MEDIUM | `middleware/HandleErrorPages.py` |
|
||||
| 11 | Missing security headers | MEDIUM | `settings.py` |
|
||||
| 12 | Permissive ALLOWED_HOSTS | LOW | `settings.py` |
|
||||
| 13 | No rate limiting | LOW | Auth endpoints |
|
||||
| 14 | User enumeration | LOW | `login_view.py` |
|
||||
| 15 | Insecure file permissions | LOW | `LocalFileHandler.py` |
|
||||
| 16 | Missing CSP | LOW | `settings.py` |
|
||||
| 17 | Public link brute force | LOW | `public_views.py` |
|
||||
|
||||
---
|
||||
|
||||
## 🎯 Recommended Project Ideas
|
||||
|
||||
Based on these findings, here are **security tooling projects** you could build:
|
||||
|
||||
### 1. **Django Security Configuration Auditor**
|
||||
Scans Django settings for production readiness (DEBUG, SECRET_KEY, security headers, password validators, token expiry, etc.)
|
||||
|
||||
### 2. **Secure File Upload Middleware for Django**
|
||||
Drop-in replacement for FileField handling with:
|
||||
- Magic byte detection (python-magic)
|
||||
- MIME type allowlisting
|
||||
- Filename sanitization
|
||||
- Virus scanning integration (ClamAV)
|
||||
- Path traversal prevention
|
||||
|
||||
### 3. **IDOR/Authorization Testing Framework for DRF**
|
||||
Automated penetration testing tool that:
|
||||
- Enumerates all API endpoints
|
||||
- Tests object-level permissions with different user contexts
|
||||
- Reports bypasses
|
||||
|
||||
### 4. **Django Secret Scanner**
|
||||
Pre-commit/CI tool that detects:
|
||||
- Hardcoded secrets (keys, passwords, tokens)
|
||||
- Insecure settings patterns
|
||||
- Debug configurations in production branches
|
||||
|
||||
### 5. **API Token Security Manager**
|
||||
Enhances django-rest-knox with:
|
||||
- Mandatory token expiry
|
||||
- Token rotation policies
|
||||
- Per-user token limits
|
||||
- Suspicious activity detection (geo-velocity, concurrent sessions)
|
||||
|
||||
### 6. **Django ORM Injection Linter**
|
||||
Static analysis for dangerous queryset patterns using dynamic field names.
|
||||
|
||||
---
|
||||
|
||||
## 📝 Next Steps for NearBeach Maintainers
|
||||
|
||||
1. **Immediate**: Move SECRET_KEY to environment variable, set DEBUG=False for production
|
||||
2. **High Priority**: Implement file upload validation, add security headers, configure token expiry
|
||||
3. **Medium**: Add rate limiting, fix password reset flow, implement CSP
|
||||
4. **Ongoing**: Security code reviews, dependency scanning (bandit is already in dev deps - good!)
|
||||
Reference in New Issue
Block a user