From 8241b047a3790edba4e97b50d73e1f7af811b767 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sun, 27 Sep 2026 17:03:05 +0200 Subject: [PATCH] Record why every worktree of the checkout is trusted before an interrupt --- AGENTS.md | 1 + docs/decisions.md | 4 ++++ todo.md | 1 - 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index d904f846..61cb46b4 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -6,6 +6,7 @@ Decisions live in `docs/decisions.md`: - loop-claude: a judge decides interrupts, not the worker's self-report - loop-claude: one session per project, at a fixed id - loop-claude: the trust file is rewritten before an interrupt +- loop-claude: every worktree of the checkout is trusted before an interrupt - loop-claude: a wrong-shape trust file gets one message, naming the shape - bin/: the Python floor is README's Install prerequisite - bin/: host python, no container diff --git a/docs/decisions.md b/docs/decisions.md index 035c4014..fd2bc005 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -16,6 +16,10 @@ 2026-09-21, lilleman; the lost-write risk accepted 2026-09-24 by larv-review. Serves goal 4. A write by another claude inside `trust`'s read-modify-write window is lost. Valid while no flag skips the dialog. +## loop-claude: every worktree of the checkout is trusted before an interrupt + +2026-09-24, lilleman. Serves goal 4. `claude --resume` re-enters the worktree the worker last entered, recorded in the transcript's `worktree-state` entry, and Claude Code asks trust per path, so trusting the checkout alone still lands the human in the dialog; trusting every worktree `git worktree list` names spares reading which one from the transcript. Valid while resume re-enters a recorded worktree and trust is kept per path. + ## loop-claude: a wrong-shape trust file gets one message, naming the shape 2026-09-26, larv-review, declining a product-owner nit. Serves goal 4. `trust` says `not an object whose "projects" maps paths to objects` for every wrong shape; naming the failing path would add a branch to `trust`, and the interrupt still lands in Claude Code's own dialog, which shows the path. The 2026-09-25 panel's `trust` as the unit least wanted to modify was the first reason; the 2026-09-26 panel named `typed`, so the entry rests on the dialog. Valid while the interrupt lands in that dialog. diff --git a/todo.md b/todo.md index 5de406fd..64e12741 100644 --- a/todo.md +++ b/todo.md @@ -6,7 +6,6 @@ Ships when a four-seat scoring run puts every dimension and the overall at 7.0 o Self-sufficiency, 6.75: -- Record in `docs/decisions.md` why every worktree of the checkout is trusted before an interrupt. - Say at `judge` what `--tools ""` and `--no-session-persistence` buy, and at `archive` why the stamp is the transcript's mtime. - Give `worker` and `judge` Vocabulary entries, and the interrupt one spelling across `ask`, `needs input` and `interrupt`. - Reword `CHANGELOG.md` → `## Unreleased` so no line restates `loop-claude --help`. -- 2.52.0