Repository navigation
Expand file tree
/
Copy pathworkflow.example.toml
More file actions
86 lines (74 loc) · 4.36 KB
/
Copy pathworkflow.example.toml
File metadata and controls
86 lines (74 loc) · 4.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# loop-zero configuration. Copy to workflow.toml at the repository root.
# Every key below is read by `loopzero`; there are no other config files.
[repo]
# GitHub repository in owner/name form. Used for every `gh` call.
name = "owner/name"
# Branch that `loopzero start` branches from and `loopzero merge` merges into.
base = "main"
[checks]
# Shell commands run in order by `loopzero check`, each inside the sandbox
# (read-only worktree, no Git write, isolated HOME). The first nonzero exit
# fails the run and prints the failing tails; the full report is written to
# .loopzero/checks.json. These uv commands need Ruff and pytest in the dev
# dependency group, a committed uv.lock, and actual host paths in the settings
# below with a warmed uv cache for offline execution.
commands = ["uv run --group dev ruff check .", "uv run --group dev pytest -q"]
# Worktree-relative paths that get a fresh writable scratch mount per run.
# This is the default list; checks cannot write anywhere else in the tree.
# Entries are pre-created as empty directories in the worktree (git-invisible).
# uv projects need a committed uv.lock, since uv cannot write one in there.
scratch = [".venv", ".ruff_cache", ".pytest_cache", "node_modules/.cache"]
# Environment variables set inside the sandbox. Entries win over sandbox
# defaults and host variables; PATH and HOME cannot be overridden.
env = { UV_CACHE_DIR = "/home/<you>/.cache/uv", UV_PYTHON_INSTALL_DIR = "/home/<you>/.local/share/uv/python" }
# Host paths mounted writable. A shared tool cache must be listed here or the
# first check in a fresh worktree fails without network. This is a trust
# decision: a check can write to these paths.
writable = ["/home/<you>/.cache/uv"]
# Exact names of GitHub check runs that must be green on the PR head before
# `loopzero ready` and `loopzero merge` proceed. Match your branch protection.
# Require always-run aggregate gates when test jobs are path-conditional.
# A skipped required check does not satisfy readiness.
required_ci = ["checks"]
# Host paths mounted read-only into the sandbox. The sandbox does not expose
# /home, so any toolchain under your home directory (uv, cargo, nvm, ...) must
# be listed. /, /run, /var/run, /proc, /dev, /sys and /root are refused.
ro_paths = ["/home/<you>/.local/bin", "/home/<you>/.local/share/uv"]
# Allow network inside the sandbox. Needed for the first check in a fresh
# worktree unless a warm uv cache is in `writable`. PYTHONDONTWRITEBYTECODE,
# RUFF_CACHE_DIR, UV_CACHE_DIR and PYTEST_ADDOPTS are preset for you.
network = false
[delivery]
# Merge strategy: "squash", "merge", "rebase", GitHub "queue", or "mergify".
merge = "squash"
# Required with merge = "mergify"; the exact Mergify queue rule name.
# mergify_queue = "main"
# Reviewer preference, in order. `loopzero review` picks the first family
# that is installed and differs from the author's family when that is known.
# Hosted eligibility requires explicit GitHub publisher logins from trusted base config.
# review_publishers = ["your-github-login"]
reviewers = ["claude", "codex"]
# Optional absolute paths for reviewer binaries and runtimes, pinned from the
# remote PR base at native launch unless --config is explicitly supplied.
# A non-empty list replaces the default and must include the selected runtime.
# When omitted, loop-zero mounts the selected binary's resolved directory;
# inside native state roots, only the executable file is mounted instead.
# Explicit paths must not overlap native auth/state or private reviewer state.
# Claude installations may need their npm or bun prefix listed here.
# reviewer_ro_paths = ["/home/<you>/.local/share/npm", "/home/<you>/.bun"]
# Optional per-family defaults. `--model` and `--effort` override these for one run;
# a nonempty `allowed_efforts` rejects any configured or overridden effort not in it.
# [delivery.review.claude]
# model = "claude-opus-5-5"
# effort = "medium"
# allowed_efforts = ["medium", "high"]
# [delivery.review.codex]
# model = "gpt-6-luna"
# effort = "medium"
# allowed_efforts = ["low", "medium", "high", "xhigh", "max"]
# Optional local passing-result reuse. Declare every input, including shared tooling.
# Unlisted commands reuse only when "*" includes "." (the whole tree).
# A partial "*" adds shared tooling only to listed commands. CI/merge-queue runs fresh.
# [checks.inputs]
# "uv run pytest -q" = ["src/**", "tests/**"]
# "*" = ["uv.lock", "pyproject.toml"]