source-control
Skill2.7k starsChanged 8 days agoApache-2.0View on GitHub
Manage Git commits, commit messages, delegated-worker quarantine, branches, stacked pull requests, bottom-up prefix locking, and upward rebasing in Anneal. Not permission to rewrite history, push, publish, or merge. Use when structuring commits, formatting messages, integrating worker commits, or managing PR stacks. Do not use for review orchestration (`change-review`) or TCB checklists (`trust-review`).
- Commits and pushes
2 other projects use a version of this.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Most recently taken up by
- dracocephalum/dc-agenticstheir own version, first seen Nov 23, 2026
- maroffo/claude-forgetheir own version, first seen Oct 25, 2026
Who's talking about google/zerocopy
- rust-lang/rust“Tracking Issue for `f16` and `f128` float types”GitHub · Oct 18, 2023 · 132 reactions
- rust-lang/rust“Expose the `Freeze` trait again (unstably) and forbid implementing it manually”GitHub · Feb 23, 2024 · 11 reactions
- rust-random/rand“Tracker: rand 0.9”GitHub · Aug 24, 2021 · 8 reactions
- rust-lang/rust“Expose the Freeze trait again (unstably) and forbid implementing it manually”GitHub · Mar 1, 2024 · 6 reactions
- @rusttrending.bsky.social“google / zerocopy: Zerocopy makes zero-cost memory manipulation effortless. We write `unsafe` so you don’t …”Bluesky · Jul 4, 2026 · 2 likes
The biggest 5 of 53 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 53
Talked about on GitHub, Bluesky and Hacker News (53 times).
On GitHub · 50
- Oct 18, 2023Tracking Issue for `f16` and `f128` float types — rust-lang/rust132 reactions · 47 comments
- Feb 23, 2024Expose the `Freeze` trait again (unstably) and forbid implementing it manually — rust-lang/rust11 reactions · 20 comments
- Aug 24, 2021Tracker: rand 0.9 — rust-random/rand8 reactions · 47 comments
- Mar 1, 2024Expose the Freeze trait again (unstably) and forbid implementing it manually — rust-lang/rust6 reactions · 5 comments
- Jan 12, 2026Allow derives to `allow(non_ascii_idents)` at the non-crate level — rust-lang/rust2 reactions · 5 comments
45 more on GitHub
- Oct 11, 2024Add support for zerocopy trait impls — tokio-rs/bytes2 reactions · 13 comments
- Oct 14, 2026chore(deps): bump the cargo group with 13 updates — oxidezap/whatsapp-rust1 reaction · 3 comments
- Oct 3, 2026chore(deps): bump the cargo group across 1 directory with 3 updates — splotlabs/splot1 reaction
- Sep 28, 2026chore(deps): bump the cargo group across 1 directory with 10 updates — oxidezap/whatsapp-rust1 reaction · 3 comments
- Sep 19, 2026chore(deps): bump the cargo group across 1 directory with 2 updates — splotlabs/splot1 reaction
- Sep 14, 2026chore(deps): bump the cargo group with 8 updates — oxidezap/whatsapp-rust1 reaction · 3 comments
- Aug 11, 2026build(deps): bump zerocopy from 0.8.55 to 0.8.56 — oxidezap/whatsapp-rust1 reaction · 1 comment
- Aug 7, 2026chore(deps): bump zerocopy from 0.7.35 to 0.8.55 — duketopceo/kurultai1 reaction · 2 comments
- Aug 1, 2026build(deps): bump the cargo group with 4 updates — splotlabs/splot1 reaction
- Jul 21, 2026chore(deps): bump zerocopy from 0.8.54 to 0.8.55 — oxidezap/whatsapp-rust1 reaction · 2 comments
- Jul 18, 2026build(deps): bump the cargo group with 2 updates — splotlabs/splot1 reaction
- Jun 20, 2026build(deps): bump zerocopy from 0.8.50 to 0.8.52 in the cargo group — splotlabs/splot1 reaction
- Jun 13, 2026build(deps): bump the rust-dependencies group across 1 directory with 3 updates — ness-e/Vantadb1 reaction · 1 comment
- Jun 6, 2026chore(deps): bump the patches group across 1 directory with 16 updates — vectordotdev/vrl1 reaction
- Jun 1, 2026chore(deps): bump the patches group with 11 updates — vectordotdev/vrl1 reaction · 1 comment
- Mar 12, 2026Feature request: Publish pre-builts on GitHub — AeneasVerif/aeneas1 reaction · 5 comments
- Nov 5, 2025`undocumented_unsafe_blocks` false positive despite `accept-comment-above-attributes = true` — rust-lang/rust-clippy1 reaction · 2 comments
- Mar 6, 2025Derive zerocopy traits via macro, remove custom derive dependency — cryptocorrosion/cryptocorrosion1 reaction · 4 comments
- Feb 13, 2025added fat16/32 superblock detection — aerynOS/disks-rs1 reaction · 1 comment
- Oct 20, 2024Derive macros are unsound — Lokathor/bytemuck1 reaction · 9 comments
- May 6, 2024`unexpected_cfgs` lint doesn't recognize some standard `cfg`s — rust-lang/rust1 reaction · 2 comments
- Mar 3, 2024Clarify atomic bit validity — rust-lang/rust1 reaction · 3 comments
- Nov 23, 2026build(deps): bump zerocopy from 0.8.53 to 0.8.63 in /verthys-tauri/verthys-worker — K1Super/Verthys0 reactions · 1 comment
- Nov 18, 2026Remove the uncommon_codepoints allow in udp-protocol once zerocopy is fixed — torrust/torrust-tracker0 reactions
- Nov 11, 2026build(deps): bump zerocopy from 0.8.25 to 0.8.63 in /userspace/ksud — sg-scale/KernelSU--v3.0.00 reactions
- Nov 9, 2026Bump zerocopy from 0.8.48 to 0.8.63 in /src-tauri — aj-seven/ai-hub0 reactions · 1 comment
- Oct 26, 2026chore(deps): bump zerocopy from 0.8.57 to 0.8.63 — ArthurHeymans/rem1000 reactions · 1 comment
- Oct 24, 2026Bump zerocopy from 0.7.14 to 0.7.35 — t-k/qiskit0 reactions
- Oct 22, 2026build(deps): bump zerocopy from 0.8.62 to 0.8.63 — boluomi2001/ctrllingo0 reactions
- Oct 20, 2026build(deps): bump zerocopy from 0.8.59 to 0.8.63 — AdallomRoy/rnginx0 reactions
- Oct 19, 2026build(deps): bump zerocopy from 0.8.59 to 0.8.63 — WhiteCloud-OuO/CloudInputMethodEditor0 reactions
- Oct 18, 2026build(deps): bump zerocopy from 0.8.56 to 0.8.63 — Artemides/hadris-winusb0 reactions
- Oct 17, 2026Bump zerocopy from 0.8.57 to 0.8.63 — openheartlibre/yiyan0 reactions
- Oct 14, 2026build(deps): bump zerocopy from 0.8.59 to 0.8.62 — zhangenrui123666/-0 reactions
- Oct 13, 2026build(deps): bump zerocopy from 0.8.57 to 0.8.62 — shellinea/qingjian-android0 reactions
- Sep 23, 2026`unsafe_rust_review_experimental`: Requires citation of un-citable facts? — google/rust-skills0 reactions · 1 comment
- Aug 27, 2026Updating an interior PR can fail to trigger pull_request workflows — joshlf/gherrit0 reactions
- Jun 13, 2026Use dataful enums for deserialization of all messages — rosenpass/rosenpass0 reactions · 2 comments
- Jun 3, 2026`zerocopy` wanted features & bugfixes — Rust-for-Linux/linux0 reactions
- Apr 6, 2026[Project]: Zerocopy — yncyrydybyl/ex-od-us0 reactions
- Feb 4, 2026Support passing attributes on the command line — rust-lang/rust-bindgen0 reactions
- Dec 23, 2025Compress patch comparison table over a certain size — joshlf/gherrit0 reactions · 1 comment
- Sep 27, 2024Apparent race condition in "waiting for" recently-published package to be available — rust-lang/cargo0 reactions · 10 comments
- Sep 19, 2024`#[diagnostic::on_unimplemented]` fails to trigger when certain impls are present — rust-lang/rust0 reactions · 2 comments
- Feb 21, 2024`cargo vendor` should offer the ability to omit the `tests/` directory — rust-lang/cargo0 reactions · 6 comments
On Bluesky · 2
- Jul 4, 2026google / zerocopy: Zerocopy makes zero-cost memory manipulation effortless. We write `unsafe` so you don’t have to. ★2472… — @rusttrending.bsky.social2 likes and reposts
- Sep 30, 2024google / zerocopy: ★1288 https://github.com/google/zerocopy — @rusttrending.bsky.social1 likes and repost
On Hacker News · 1
- Oct 9, 2024Zerocopy 0.81 point · 1 comment
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- maroffo/claude-forge★ 15same name
- dracocephalum/dc-agentics★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository32 other files it gives its agents.
- AGENTS.mdAGENTS.md
- anneal/AGENTS.mdAGENTS.md
- zerocopy/AGENTS.mdAGENTS.md
- anneal/CLAUDE.mdCLAUDE.md
- change-reviewSkill
- proof-scalingSkill
- spec-authoringSkill
- trust-reviewSkill
- proof-scalingSkill
- spec-authoringSkill
- cargo-annealSkill
- unsafe-rustSkill
- unsafe-rustSkill
- unsafe-rustSkill
- unsafe-rustSkill
- unsafe-rustSkill
- unsafe-rustSkill
- architectural-designSkill
- authorship-disclosureSkill
- clear-writingSkill
- comment-guidelinesSkill
- commit-messageSkill
- model-refinementSkill
- reader-oriented-explanationSkill
- research-wheelSkill
- robust-codeSkill
- skill-authorshipSkill
- swarm-model-refinementSkill
- tech-leadSkill
- unsafe-rustSkill
- zerocopy-developmentSkill
- zerocopy-reviewSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 5 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 34
Cohesive PR sizing: Keep each PR focused on one reviewable unit.
- Distinctive: line 38
Self-contained commits: Every commit builds, passes applicable tests, and keeps tracked derived artifacts synchronized with its tree.
- Very specific: line 46
Follow commit-message and these Anneal rules.
- Very specific: line 53
Subsystem prefix: When a commit affects a specific subsystem, prefix the subject with [subsystem] in square brackets, omitting any anneal …
- Distinctive: line 69
Prohibited references and task markers: Commit messages must never reference:
- Very specific: line 78
Never include TODO markers or their disable/enable directives in commit messages (./ci/check_todo.sh rejects un-disabled TODO markers …
- Very specific: line 89
Post-amend accuracy: After any amend or rebase, re-verify the commit message against git diff <parent>..HEAD so counts, file lists, and …
- Distinctive: line 116
Pure object-store inspection before checkout: Never check out, merge, cherry-pick, or run builds or Lean elaboration on worker commits …
- Very specific: line 122
Run this exact sequence as a standalone bash script (never source it inside a shell conditional such as if, &&, or ||, which disables set …
- Very specific: line 328
Only after every check passes may the coordinator integrate the commits (via fast-forward when linear history permits, or git -c …
- Very specific: line 370
Non-interactive stacked publication with prepared bodies: Do not use bare gh stack submit (prompts interactively and can hang under a PTY) …
- Distinctive: line 430
Mandatory post-rebase checks: After every rebase, run:
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Source control
Compose this skill with
commit-message,
authorship-disclosure,
reader-oriented-explanation,
and clear-writing. This skill
grants no authority to rewrite published history, push branches, open, update,
merge, or close pull requests, or waive merge gates; act only when authorized.
Structure and size commits for review
Inspect the current branch before changing history (whether to work on it or create a separate branch is a case-by-case decision), preserve prior review history, and size commits so each unit is coherent and independently reviewable:
- One logical change per commit: Separate refactoring, mechanical renames,
formatting adjustments, semantic changes, and policy edits into distinct
commits (and keep policy edits in dedicated policy-only PRs where possible
so Gate 2 reviewers do not evaluate product code under unreviewed modified
rules). Never fold an unrelated cleanup into a
trusted/soundness fix. - Cohesive PR sizing: Keep each PR focused on one reviewable unit; split large multi-subsystem work into a stack when independent layers review more clearly bottom-up, without fragmenting so finely that reviewers must hold many commits in mind at once.
- Self-contained commits: Every commit builds, passes applicable tests, and keeps tracked derived artifacts synchronized with its tree.
- Bottom-up stack self-containment: Earlier commits and their docs must stand on their own without hardcoding unsettled upper-stack counts, line numbers, or unmerged implementation details.
Format commit messages to repository conventions
Follow commit-message and these
Anneal rules. Commit messages must be concise and self-contained: explain
rationale and necessary context in the commit message itself rather than relying
on an issue link (Git history is more durable than issue-tracker history), and
avoid superfluous details or session narrative.
- Subject line and body layout:
- Subsystem prefix: When a commit affects a specific subsystem, prefix
the subject with
[subsystem]in square brackets, omitting anyannealprefix (for example[ci],[audit],[capture],[agents],[docs],[theory],[trusted]). - Imperative, capitalized subject: Imperative mood, capitalize the first
word after any
[subsystem]prefix, no trailing period, <=50 characters when practical (<=72 hard limit). - Blank line and 72-column body: Separate the body with one blank line; omit the body when the subject is genuinely self-explanatory (such as a typo fix). Wrap body prose at 72 columns (except long URLs, code spans, or trailers), explaining what changed, why, and any intentional rule relaxation or tightening.
- Subsystem prefix: When a commit affects a specific subsystem, prefix
the subject with
- Issue references: Include GitHub issue references (
#123) on their own line in the body or footer:Closes #123,Fixes #123, orResolves #123when completely resolving an issue;Makes progress on #123when advancing without resolving. - Prohibited references and task markers: Commit messages must never
reference:
- Relative moments in time ("currently", "today", "recently", "soon");
- Individuals by name or handle outside standard Git attribution trailers;
- Hosted code reviews or pull request URLs (cite commits in this repo by SHA-1 hash, and commits in other repos by public commit URL);
- Other ephemeral entities that may not make sense to future readers.
<!-- TODO-check-disable -->Never includeTODOmarkers or their disable/enable directives in commit messages (./ci/check_todo.shrejects un-disabledTODOmarkers acrossorigin/main..HEAD; verify the absence of disable/enable directives manually).<!-- TODO-check-enable --> - Authorship disclosure and privacy: Include the
Agent-authored-by:trailer perauthorship-disclosurewhenever an agent contributed (literalAI agent acting on <user>'s behalf, never a vendor or model name), and follow the privacy rule inAGENTS.md. - Post-amend accuracy: After any amend or rebase, re-verify the commit
message against
git diff <parent>..HEADso counts, file lists, and claims stay accurate.
Integrate delegated worker commits
This section is the sole canonical procedure for integrating commits from isolated worker agents or bundles.
Isolation boundary
- Untrusted workers require host-enforced filesystem and write isolation:
Under the same OS account or shared filesystem, a separate clone alone does
not isolate writes—an untrusted worker can modify the coordinator worktree,
its
.gitdirectory, or global Git configuration before returning a bundle, bypassing commit-only quarantine. Run untrusted workers inside host-enforced filesystem/write isolation (such as an OS sandbox, container, VM, or separate OS user that cannot write coordinator state or global Git config) with a separate clone inside that boundary, and return commits viagit bundle create <file> HEAD(preferred, so the bundle containsHEAD) or a read-only separate repository path. - Cooperative parallel workers still require separate clones (not shared
.gitworktrees): Localgit worktreecheckouts share.git/config, hooks, and object storage, so even cooperative parallel workers must use separate clones to prevent accidental or faulty.gitwrites from affecting the coordinator; never treat a clone-only setup without host-enforced write isolation as a security boundary for untrusted workers. - Pure object-store inspection before checkout: Never check out, merge, cherry-pick, or run builds or Lean elaboration on worker commits until every object-store quarantine check below passes.
Mandatory fail-closed quarantine sequence
Run this exact sequence as a standalone bash script (never source it
inside a shell conditional such as if, &&, or ||, which disables set -e
across the entire script) from the coordinator repository (replace variables
with the task values; set ALLOWED_PREFIXES to the worker's explicit non-root
assigned path prefix allowlist—never .; pass any authorized per-run
exceptions only via --allow-exec <path> or --allow-policy <path> flags):
set -euo pipefail
: "${task:?}" "${base:?}" "${expected_worker_sha:?}" "${bundle:?}"
: "${ALLOWED_PREFIXES:?}"
# Always reset inherited allowlists so prior runs cannot leak privileges; pass
# per-run exceptions only via --allow-exec / --allow-policy flags.
ALLOW_EXEC_PATHS=""
ALLOW_POLICY_PATHS=""
while [ "$#" -gt 0 ]; do
case "$1" in
--allow-exec)
[ "$#" -ge 2 ] && [ -n "$2" ] && [[ "$2" != *:* ]] \
|| { echo "quarantine failed: invalid arg for $1" >&2; exit 1; }
ALLOW_EXEC_PATHS="${ALLOW_EXEC_PATHS:+$ALLOW_EXEC_PATHS:}$2"; shift 2 ;;
--allow-policy)
[ "$#" -ge 2 ] && [ -n "$2" ] && [[ "$2" != *:* ]] \
|| { echo "quarantine failed: invalid arg for $1" >&2; exit 1; }
ALLOW_POLICY_PATHS="${ALLOW_POLICY_PATHS:+$ALLOW_POLICY_PATHS:}$2"; shift 2 ;;
*) echo "quarantine failed: unknown argument: $1" >&2; exit 1 ;;
esac
done
export ALLOWED_PREFIXES ALLOW_EXEC_PATHS ALLOW_POLICY_PATHS
qgit() {
git -c core.hooksPath=/dev/null \
-c core.fsmonitor=false \
-c transfer.fsckObjects=true \
-c fetch.fsckObjects=true "$@"
}
quarantine_keep=0
cleanup_quarantine() {
if [ "$quarantine_keep" -ne 1 ]; then
qgit update-ref -d "refs/quarantine/$task" >/dev/null 2>&1 || true
fi
}
trap cleanup_quarantine EXIT
fail() { echo "quarantine failed: $*" >&2; exit 1; }
base="$(qgit rev-parse --verify "${base}^{commit}")" \
|| fail "invalid base commit"
# 1. Import into a quarantine ref without touching the working tree.
# Preferred transport: git bundle created with `git bundle create <file> HEAD`.
qgit bundle verify "$bundle" >/dev/null || fail "bundle verify failed"
qgit fetch --no-tags --no-write-fetch-head --no-recurse-submodules "$bundle" \
"+HEAD:refs/quarantine/$task" || fail "quarantine fetch failed"
# Fallback transport (separate local clone; neutralize target repo config):
# qgit fetch --no-tags --no-write-fetch-head --no-recurse-submodules \
# --upload-pack='git -c core.hooksPath=/dev/null -c core.fsmonitor=false '\
# 'upload-pack' \
# "$worker_repo" "+$worker_ref:refs/quarantine/$task" \
# || fail "quarantine fetch failed"
head="$(qgit rev-parse --verify "refs/quarantine/$task^{commit}")" \
|| fail "missing quarantine commit"
if [ "$head" != "$expected_worker_sha" ]; then fail "unexpected SHA"; fi
if ! qgit merge-base --is-ancestor "$base" "$head"; then
fail "worker head does not descend from base"
fi
if [ "$base" = "$head" ]; then fail "worker produced no new commits"; fi
merges="$(qgit rev-list --count --min-parents=2 "$base..$head")" \
|| fail "merge-commit count failed"
if [ "$merges" -ne 0 ]; then fail "merge commit in worker range"; fi
# Mechanically audit EVERY commit in base..head (catches add-then-delete,
# forbidden modes, out-of-scope, hidden dot-directories/dotfiles, policy/config
# paths, non-ASCII/homoglyph/bidi/control characters) plus full-tree path and
# directory-prefix casefold/NFC collisions.
# Env vars: ALLOWED_PREFIXES (required, colon-separated, never '.'); per-run
# --allow-exec / --allow-policy flags populate ALLOW_EXEC_PATHS / ALLOW_POLICY_PATHS.
qgit rev-list --reverse "$base..$head" | qgit diff-tree --stdin -r -z \
--no-commit-id --no-renames -m --root | python3 -B -c '
import os, pathlib, sys, unicodedata
allowed = [p.rstrip("/") for p in os.environ.get("ALLOWED_PREFIXES", "").split(":") if p]
if not allowed or any(a in ("", ".", "..") or a.startswith("/") for a in allowed):
sys.exit("ALLOWED_PREFIXES must list explicit non-root prefixes")
allow_exec = {p for p in os.environ.get("ALLOW_EXEC_PATHS", "").split(":") if p}
allow_pol = {p for p in os.environ.get("ALLOW_POLICY_PATHS", "").split(":") if p}
forbid_names = {
"agent.md", "agents.md", "agents.override.md", "claude.md", "gemini.md",
"skill.md", "meta_principles.md", "principles.md", "threat_model.md",
"build.rs", "makefile", "gnumakefile", "justfile", "cargo.toml",
"cargo.lock", "flake.nix", "flake.lock", "lean-toolchain",
"lake-manifest.json", "foundation-lock.json", "root-manifest.sha256",
}
forbid_paths = {
"docs/codex-review.md", "docs/review-policy-design.md",
"docs/rustc-workarounds.md", "docs/trust-model.md",
}
forbid_top_dirs = {"ci", "skills", "trusted"}
forbid_build_exts = (
".olean", ".olean.server", ".olean.private", ".ilean", ".ir", ".ir.sig",
)
forbid_exts = forbid_build_exts + (".nix", ".sh", ".bash", ".zsh", ".py")
bad_cats = {"Cc", "Cf", "Zl", "Zp"}
def decode_utf8(raw):
try:
return raw.decode("utf-8")
except UnicodeDecodeError:
sys.exit(f"non-UTF-8 path: {raw!r}")
def in_scope(path):
return any(path == a or path.startswith(a + "/") for a in allowed)
toks = sys.stdin.buffer.read().split(b"\0")
i = 0
while i < len(toks):
if not toks[i]:
i += 1; continue
meta = decode_utf8(toks[i])
parts = meta[1:].split() if meta.startswith(":") else []
if len(parts) < 5 or i + 1 >= len(toks):
sys.exit(f"unexpected diff-tree token: {meta!r}")
new_mode, path = parts[1], decode_utf8(toks[i + 1])
i += 2
if new_mode not in ("000000", "100644"):
if not (new_mode == "100755" and path in allow_exec):
sys.exit(f"forbidden mode {new_mode}: {path!r}")
if (not path.isascii()
or any(ord(c) < 0x20 or ord(c) >= 0x7f for c in path)
or any(unicodedata.category(c) in bad_cats for c in path)):
sys.exit(f"non-ASCII/control/bidi char in path: {path!r}")
raw_segs = path.split("/")
if not path or path.startswith("/") or any(s in ("", ".", "..") for s in raw_segs):
sys.exit(f"invalid path segment: {path!r}")
rel = path.removeprefix("anneal/")
if not in_scope(path):
sys.exit(f"out of allowed scope: {path!r}")
path_l = path.lower().removeprefix("anneal/")
segs_l = path_l.split("/")
base_l = segs_l[-1]
if (base_l == "agents.override.md"
or any(s in (".git", ".cargo", ".lake", "target") for s in segs_l)
or segs_l[0].startswith("result")
or base_l.startswith((".git", "rust-toolchain"))
or base_l == ".envrc"
or (base_l == "lean-toolchain" and rel != "trusted/lean/lean-toolchain")
or base_l.endswith(forbid_build_exts)):
sys.exit(f"unconditionally forbidden path: {path!r}")
if path in allow_pol:
continue
if (any(s.startswith(".") for s in segs_l)
or base_l in forbid_names
or path_l in forbid_paths
or base_l.startswith("lakefile")
or segs_l[0] in forbid_top_dirs
or base_l.endswith(forbid_exts)
or (base_l.endswith(".lean") and rel.split("/")[0] != "theory")):
sys.exit(f"forbidden path: {path!r}")
' || fail "per-commit path/mode audit failed"
commits="$(qgit rev-list --reverse "$base..$head")" \
|| fail "failed to enumerate worker commits"
for commit in $commits; do
qgit ls-tree -r -z --full-tree --name-only "$commit" | python3 -B -c '
import pathlib, sys, unicodedata
bad_cats = {"Cc", "Cf", "Zl", "Zp"}
seen = {}
for raw in sys.stdin.buffer.read().split(b"\0"):
if not raw:
continue
try:
p = raw.decode("utf-8")
except UnicodeDecodeError:
sys.exit(f"non-UTF-8 tree path: {raw!r}")
if any(unicodedata.category(c) in bad_cats for c in p):
sys.exit(f"control/bidi char in tree: {p!r}")
raw_segs = p.split("/")
if not p or p.startswith("/") or any(s in ("", ".", "..") for s in raw_segs):
sys.exit(f"invalid tree path segment: {p!r}")
cur = ""
for seg in pathlib.PurePosixPath(p).parts:
cur = f"{cur}/{seg}" if cur else seg
k = unicodedata.normalize("NFC", cur).casefold()
if k in seen and seen[k] != cur:
sys.exit(f"case/NFC collision: {seen[k]!r} vs {cur!r}")
seen[k] = cur
' || fail "tree collision/encoding audit failed on $commit"
done
quarantine_keep=1On any failure (including unset variables), the EXIT trap removes
refs/quarantine/$task automatically and rejects the worker result. The script
always clears any inherited ALLOW_EXEC_PATHS and ALLOW_POLICY_PATHS
environment variables; only when a worker's assigned scope explicitly
authorizes an executable script (100755) or a TCB, CI, governing-doc,
dot-prefixed, or policy path may the coordinator pass that exact path per run
via --allow-exec <path> or --allow-policy <path> (note that an executable
script inside a forbidden directory or extension—such as a .sh or .py file
under ci/ or trusted/—must be passed to both --allow-exec and
--allow-policy; neither ever bypasses mode, ASCII, scope, .git / .git*,
.cargo, rust-toolchain*, .envrc, non-TCB lean-toolchain,
AGENTS.override.md, or build-artifact (target, .lake, /result*,
.olean/.ilean/.ir*) checks)—and must then route the integrated result to
trust-review (converging local Pass 2 or Pass 1
trust review across main..<head> before any push per
change-review).
Only after every check passes may the coordinator integrate the commits (via
fast-forward when linear history permits, or git -c core.hooksPath=/dev/null
-c core.fsmonitor=false -c core.symlinks=false cherry-pick "$base..$head",
passing -c user.name=... -c user.email=... if your committer identity is not
configured locally in the coordinator repo), delete refs/quarantine/$task,
run non-elaborating syntactic audits before any OS-sandboxed build or Lean
elaboration on untrusted worker code, and route the integrated result into
trust-review.
Publish branches and stacked pull requests
Push branches (git push, passing --set-upstream origin <branch> when no
upstream is configured) or open, update, merge, or close pull requests (gh pr
or gh stack; see gh pr --help and gh stack --help) only when
authorized.
- Stack organization: For multi-part changes on same-repository branches,
consider organizing pull requests as a stack with
gh stack(see thegh-stackskill) when it aids review, or use a single pull request when simpler—leave the choice to the developer. - PR descriptions: Reuse commit prose verbatim rather than authoring a
second summary or review report:
- Single-commit PRs: Use the commit subject as the PR title and copy the
commit body verbatim as the PR description, mechanically unwrapping
72-column hard line breaks for GitHub Flavored Markdown (while preserving
blank lines, code blocks, lists, blockquotes, tables, explicit hard breaks,
and issue-reference lines) and converting the trailing
Agent-authored-by:trailer into the prose notice perauthorship-disclosure. - Multi-commit PRs: Draft a squash-style commit message describing the net change against the target base under Format commit messages to repository conventions and use its subject and unwrapped body verbatim as the PR title and description.
- No extra PR sections: Never add
## Summary,## Motivation,## Verification, before/after tables, per-file catalogs, orHuman review surfaceblocks to the PR description; putHuman review surface,Gate 2 finding dispositions(legacyCodex finding dispositions), and receipts in the Review Receipt comment perchange-review.
- Single-commit PRs: Use the commit subject as the PR title and copy the
commit body verbatim as the PR description, mechanically unwrapping
72-column hard line breaks for GitHub Flavored Markdown (while preserving
blank lines, code blocks, lists, blockquotes, tables, explicit hard breaks,
and issue-reference lines) and converting the trailing
- Non-interactive stacked publication with prepared bodies: Do not use bare
gh stack submit(prompts interactively and can hang under a PTY) orgh stack submit --auto(publishes PRs with auto-generated titles before prepared commit-derived PR descriptions withauthorship-disclosureare attached). Instead, push only branches whose cumulativemain..<head>diff satisfies the pre-push CI-executed-surface gate inchange-review(usegit push --set-upstream origin <branch>for converged lower prefixes, and rungh stack pushonly when every branch in the stack clears that cumulative gate), create each PR with its explicit head branch, title, and body (gh pr create --draft --base <previous-branch> --head <branch> --title "<title>" --body-file <file>), and link the stack bottom-to-top using only non-mutating metadata linkage (gh stack link --base main <branch-or-pr>...—always pass--base mainor the explicit trunk branch because omitting--baseresolves againstorigin/HEAD, which can retarget and permanently auto-close the bottom PR whenorigin/HEADpoints elsewhere; do not rungh stack syncafter freezing heads or receipts, because it can fetch, cascade-rebase, and push branches without re-running affected pre-push gates—if a stack needs syncing, do so before freezing and re-run every affected gate on the new SHAs). Ifgit pushsucceeds butgh pr createorgh pr editfails or times out, inspect live GitHub PR state (gh pr list --head <branch>) before retrying to avoid duplicate PRs, preserve the prepared receipt, and report the already-published branch/SHA without claiming the PR write succeeded. - Draft-PR pipelining and readiness: Complete static Pass 1 hygiene and
deterministic preflight before any push—and satisfy the cumulative
main..<head>CI-executed-surface gate inchange-reviewbefore pushing any branch. When authorized to push early for parallel CI and Gate 2 review, push the frozen candidate to a draft PR, verify the remote head matches it, and mark the PR ready for human review (gh pr ready) only after Gate 1 (local review) converges and the Review Receipt PR comment (including its completeHuman review surfaceblock) is posted (unless the user explicitly requests a visibly incomplete handoff). - Stack merge guard: Land stacked PRs bottom-up and never run
gh stack mergeunless every PR it would merge satisfies the merge gates indocs/codex-review.md.
Lock and rebase a stack
- Bottom-up prefix locking: Once a lower PR prefix converges, treat it as locked against cosmetic or convenience churn from upper PRs. Reopen a locked lower PR only for a blocking soundness, trust, interface, or Gate 1 (local review) defect.
- Upward rebase cascade: Whenever a lower PR changes or merges, rebase
every upper PR locally onto the updated lower head (or onto
origin/mainviagit rebase --onto <new-base> <old-lower-head>when the lower PR was squash-merged intomain) somerge_base == target_base; do not rungh stack syncbefore post-rebase checks and pre-push gates pass, becausegh stack syncalso pushes rebased branches. When authorized to push rebased branches, use--force-with-lease(never bare--force). Rebasing a one-commit PR onto its lower PR's squash commit, whose tree equals the lower PR's reviewed head tree, leaves the upper PR's identity—and its review evidence—unchanged permain); only its preflight and CI rerun. To avoid O(n²) Gate 2 re-reviews during a stack landing cascade when identities do change, defer pushing rebased upper branches until each reaches the bottom of the stack (or its base settles onmain). - Mandatory post-rebase checks: After every rebase, run:
git range-diff <old-base>..<old-head> <new-base>..<new-head>to verify whether patch diffs or upstream interfaces changed;- An audit for stale parent-dependent counts, docstrings, or commit-message
claims against
git diff <new-base>..HEAD; - Scoped or full re-verification per
change-review(deterministic preflight, fresh Gate 2 review on an identity change absent an evaluator carry-forward, and CI before merge on the newhead).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

