docs: deletable files go to garbage/ inside the work folder

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Pavlo Ratushnyi
2026-10-29 17:29:06 +01:00
co-authored by Claude Sonnet 5.5
parent 1df52575f3
commit e92513b722
+1 -1
View File
@@ -47,7 +47,7 @@ One folder per machine (owner rule, 2026-10-29). Outside it, read only: no creat
- Laptop: `C:\Users\pavel\work\leleka` (worktrees, build output and run directories under `.git/wt`). Never create, list or clean sibling folders of the repository, and keep WSL builds inside it too (`CARGO_TARGET_DIR` inside the worktree).
- 5090 server (`rnr5090`): `~/work/leleka/` only, the same name as on the laptop. It is a symlink to `/data/leleka-e2e/` because the root disk is small; the data lives on `/data`. Do not add anything to `~/work` itself or to any other folder. Known exception until the holder is re-homed: the GPU queue (`~/work/gpu-runs/holder2/jobs/` stubs and `PRIORITY`) is written there, nothing else.
- Name each path after its task (`<task-id>` or `<task-id>-<purpose>`); one directory per task, not one per attempt.
- Clean up your own paths at the end of the task. Do not hard-delete: move stale paths to `/data/leleka-e2e/_relocated/<name>` (server) or `.git/_to-delete` (laptop) and append a line to the matching log. The owner deletes from there.
- Clean up your own paths at the end of the task. Do not hard-delete: anything deletable goes into the `garbage/` folder inside the work folder (laptop `leleka/garbage`, server `~/work/leleka/garbage`) with a line in `garbage/LOG.txt`. The owner empties it.
- Evidence cited in a task record keeps its path until the cited change is merged; after a move, update the record with the new path.
- An agent's final report lists every path it created, and any path outside the places above is moved in before the task is closed.
- Measurement inputs are not scratch: a corpus, expert profile, prompt set, binary or helper script that a measurement depends on lives in one named directory (server: `/data/leleka-e2e/decode/` or the task's own directory), is frozen read-only, and is recorded with its sha256 in a manifest and in the run metadata. A run refuses to start when an input is missing or its digest differs. Never read an input from `~/work`, a home directory or a sibling folder that nobody owns. The 2026-10-29 incident: the 245k corpus lived in an unowned folder, a cleanup removed it, and the "256k" session silently became ~300 tokens.