diff --git a/README.md b/README.md new file mode 100644 index 00000000..d8b66c42 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +The X-man, Wolverine, was Hugh Jackman diff --git a/sources/project-rules.md b/sources/project-rules.md new file mode 100644 index 00000000..469a6804 --- /dev/null +++ b/sources/project-rules.md @@ -0,0 +1,453 @@ +# project-rules + + +**Update (10/26): New repo, Excalidraw** +**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.project.tech/workers/tasks/edd9c9ad-200f-4621-b77e-73e036921933?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=11670ecd-750b-4262-85f7-2d2a11a8dec0&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 [Checking the Work in the Sandbox](https://app.project.tech/workers/tasks/edd9c9ad-200f-4621-b77e-73e036921933?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=11670ecd-750b-4262-85f7-2d2a11a8dec0&jumpTo=bookmark%3Ainspect_ref)[.](https://app.project.tech/workers/tasks/edd9c9ad-200f-4621-b77e-73e036921933?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=11670ecd-750b-4262-85f7-2d2a11a8dec0&jumpTo=bookmark%3Ainspect_ref) + +# **Update (10/07): Flagging, completion checks, and evidence** + +**Environment limits are not flags.** Check a failed install yourself before you flag it. See [When to Flag](https://app.project.tech/workers/tasks/edd9c9ad-200f-4621-b77e-73e036921933?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=11670ecd-750b-4262-85f7-2d2a11a8dec0&jumpTo=bookmark%3Aflag_ref). + +**Use the listed categories before Other.** See [the categories](https://app.project.tech/workers/tasks/edd9c9ad-200f-4621-b77e-73e036921933?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=11670ecd-750b-4262-85f7-2d2a11a8dec0&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.project.tech/workers/tasks/edd9c9ad-200f-4621-b77e-73e036921933?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=11670ecd-750b-4262-85f7-2d2a11a8dec0&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](https://app.project.tech/workers/tasks/edd9c9ad-200f-4621-b77e-73e036921933?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=11670ecd-750b-4262-85f7-2d2a11a8dec0&jumpTo=bookmark%3Afinish_ref) + +[LiveCompare](https://app.project.tech/workers/tasks/edd9c9ad-200f-4621-b77e-73e036921933?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=11670ecd-750b-4262-85f7-2d2a11a8dec0&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. + +# **Update (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! + +# **Update (9/29): 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. + +**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 From](https://app.project.tech/workers/tasks/edd9c9ad-200f-4621-b77e-73e036921933?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=11670ecd-750b-4262-85f7-2d2a11a8dec0&jumpTo=bookmark%3Araccoon_ref) + +[Raccoon](https://app.project.tech/workers/tasks/edd9c9ad-200f-4621-b77e-73e036921933?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=11670ecd-750b-4262-85f7-2d2a11a8dec0&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. +**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.project.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.project.tech/workers/tasks/edd9c9ad-200f-4621-b77e-73e036921933?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=11670ecd-750b-4262-85f7-2d2a11a8dec0&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. + + + +### **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.project.tech/publish/s/ab706b8f-24eb-4251-aa50-b4e4f763dd52.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. + +### **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.project.tech/workers/tasks/edd9c9ad-200f-4621-b77e-73e036921933?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=11670ecd-750b-4262-85f7-2d2a11a8dec0&jumpTo=bookmark%3Astep_2) question at right. + +| **Repo** | **Language** | **File source URL** | **Setup notes** | +| --- | --- | --- | --- | +| [NearBeach](https://app.project.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](https://app.project.tech/workers/tasks/edd9c9ad-200f-4621-b77e-73e036921933?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=11670ecd-750b-4262-85f7-2d2a11a8dec0&jumpTo=bookmark%3Amount_ref) [Mounting Your Code](https://app.project.tech/workers/tasks/edd9c9ad-200f-4621-b77e-73e036921933?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=11670ecd-750b-4262-85f7-2d2a11a8dec0&jumpTo=bookmark%3Amount_ref). | +| [erd-editor](https://app.project.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](https://app.project.tech/workers/tasks/edd9c9ad-200f-4621-b77e-73e036921933?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=11670ecd-750b-4262-85f7-2d2a11a8dec0&jumpTo=bookmark%3Amount_ref) [Mounting Your Code](https://app.project.tech/workers/tasks/edd9c9ad-200f-4621-b77e-73e036921933?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=11670ecd-750b-4262-85f7-2d2a11a8dec0&jumpTo=bookmark%3Amount_ref). | + + + +[Excalidraw](https://app.project.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](https://app.project.tech/workers/tasks/edd9c9ad-200f-4621-b77e-73e036921933?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=11670ecd-750b-4262-85f7-2d2a11a8dec0&jumpTo=bookmark%3Amount_ref) [Mounting Your Code](https://app.project.tech/workers/tasks/edd9c9ad-200f-4621-b77e-73e036921933?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=11670ecd-750b-4262-85f7-2d2a11a8dec0&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 and many turns with the model. 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. + +Download the repo's zip from the [Approved repos](https://app.project.tech/workers/tasks/edd9c9ad-200f-4621-b77e-73e036921933?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=11670ecd-750b-4262-85f7-2d2a11a8dec0&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 explain the task to the model again in your first message. **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 already in | In the repo folder, run  `python3 sync_photos.py` `test_photos/ /tmp/backup/`. The first run should print "412 copied, 0 skipped". Run the same | This repo is a small backup tool I run every night | + +the destination with the same size and time. +command again. The second run should print "0 copied, 412 skipped" and finish in under 5 seconds. Then run  `touch` to copy photos from my laptop to a home server. Right now each + +`test_photos/IMG_0001.jpg`  and run it a third time. It should print "1 copied, 411 skipped".  `python3 -m` `pytest tests/test_sync.py`  should report 6 passed (it was 2 before). +run re-copies 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 opening each | Run the NearBeach start commands from Checking the Work in the Sandbox and log in as admin / password. Open a project and create two | NearBeach is an open-source | +| --- | --- | --- | --- | +| [Illustrative example | task. Show the due date as a column in a project's task list, and | tasks: one due next week and one due yesterday, then save. Both dates should appear in the task | project management tool, written in Django | +| only: issue may or may | highlight dates that have already passed. | list, and only yesterday's date should be highlighted.  `python3 manage.py`  test should report 0 failures. | and Vue, that small teams use to track projects, | + +not exist in repo] +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 almost | Run the erd-editor start commands and open  `http://localhost:5173`. Create two tables, | erd-editor is an open-source browser tool for | +| --- | --- | --- | --- | +| [Illustrative example | disappears in dark theme. Make the line color follow the active | add a column to each, and link them with a relationship. The line should be clearly visible. Switch to dark theme: the line should still be | drawing database diagrams (tables | +| only: issue may or may not exist in | theme. | clearly visible. Switch back to light to confirm. The unit tests should go from 140 passed to 142 passed. | and the relationships between them). | + +repo] +Many 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 rotation | Run the Excalidraw start commands from [**Checking the Work in the Sandbox**](https://app.project.tech/workers/tasks/edd9c9ad-200f-4621-b77e-73e036921933?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=11670ecd-750b-4262-85f7-2d2a11a8dec0&jumpTo=bookmark%3Ainspect_ref) and open  `http://localhost:3001`. Draw a rectangle | Excalidraw is an open-source | +| --- | --- | --- | --- | +| [Illustrative example | handle, which makes it hard to line things up exactly. Add keyboard | and select it. Press the new clockwise shortcut once: the rectangle should turn by 15 degrees. | whiteboard for hand-drawn-style diagrams. People | +| only: issue may or may not exist in | shortcuts that rotate the selected shapes | Press it three more times: it should now be at 60 degrees. Press the counterclockwise shortcut four | use it to sketch architecture diagrams and | +| repo] | by 15 degrees clockwise and counterclockwise. | times: it should be back to 0 degrees. Press undo (Ctrl+Z / Cmd+Z): the last turn should be reversed. The unit tests ( `npx --yes yarn@1.22.22` | flowcharts, and they often need shapes lined up at | + +`test:app --watch=false` ) should report 0 failures, with the new tests passing. +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. + +**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.project.tech/workers/tasks/edd9c9ad-200f-4621-b77e-73e036921933?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=11670ecd-750b-4262-85f7-2d2a11a8dec0&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 **see the instruction** . 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. + +## **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 below for tips for your repo). + + + +It is a copy. Nothing you do there is saved or seen by the model. + +**It is a different machine from the model's.** The Sandbox has internet and admin rights. The model's machine has neither. + +When comparing, check both tabs, **Original (A)** and **New response (B)**. Do not assume B is better because it came second. + +**Hide** is safe. **Restart** throws your copy away and restores a fresh one. The sandbox ends after about 30 minutes without use. + +**NearBeach** +You can start NearBeach in the sandbox by running the following commands in the terminal: + +`cd /workspace/nearbeach` + +`python3 -m pip install --user --break-system-packages -r requirements.txt` + +`python3 manage.py migrate` + +`DJANGO_SUPERUSER_USERNAME=admin DJANGO_SUPERUSER_EMAIL=admin@example.com` + +`DJANGO_SUPERUSER_PASSWORD=password python3 manage.py createsuperuser --noinput` + +`python3 manage.py runserver 0.0.0.0:8000` + +Then, open Chrome and navigate to  `http://localhost:8000`  to view the application, and log in with  `admin`  as the username, and  `password`  as the password. + +**erd-editor** +erd-editor can be started in the sandbox by running the following commands in the terminal: + +`cd /workspace/erd-editor` + +`echo "manage-package-manager-versions=false" >> ~/.npmrc` + +`pnpm install --frozen-lockfile` + +`cd packages/app && pnpm dev` + +Then, open Chrome and navigate to  `http://localhost:5173`  to view the application. + +To run the browser-based tests in your Sandbox, first run: + +`pnpm --filter @dineug/erd-editor exec playwright install chromium` + +**Excalidraw** +You can start Excalidraw in the sandbox by running the following commands in the terminal: + +`cd /workspace/excalidraw` + +`npx --yes yarn@1.22.22 install` + +`BROWSER=none npx --yes yarn@1.22.22 start` + + + +Then, open Chrome and navigate to  `http://localhost:3001`  to view the application. The first install takes a few minutes. + +To run the unit tests, open a second terminal and run: + +`cd /workspace/excalidraw && npx --yes yarn@1.22.22 test:app --watch=false` + +## **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 Can Do](https://app.project.tech/workers/tasks/edd9c9ad-200f-4621-b77e-73e036921933?project_id=ab9c0b3b-497c-4b28-b7a6-553e45fd2bd9&task_response_id=11670ecd-750b-4262-85f7-2d2a11a8dec0&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 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. +