From 534eec5e0d1d09e73119e015e52b99cbdb97e192 Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Sun, 4 Oct 2026 16:10:04 -0700 Subject: [PATCH 1/5] Exclude host-setup/agent-safety Fixes From the Unattended Picker The unattended-handoff picker's auto-resolvable criteria now skip any issue whose fix edits the hub's host-setup/agent-safety/ tree, the agent's own guard, which is worked only in an attended session so a human approves every change to it, as decided on #2210. Co-Authored-By: Claude Opus 5.5 --- .agents/skills/unattended-handoff/SKILL.md | 2 ++ .claude-plugin/fleet-skills/.source-digests/unattended-handoff | 2 +- .claude-plugin/fleet-skills/skills/unattended-handoff/SKILL.md | 2 ++ .github/skills/unattended-handoff/SKILL.md | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.agents/skills/unattended-handoff/SKILL.md b/.agents/skills/unattended-handoff/SKILL.md index 63ea4f609..a0bdb0356 100644 --- a/.agents/skills/unattended-handoff/SKILL.md +++ b/.agents/skills/unattended-handoff/SKILL.md @@ -148,6 +148,8 @@ does not qualify, since skipping one costs nothing and a guess costs a revert an - **The fix stays inside this repository's tree.** It changes no repository setting, ruleset, visibility, secret, or release condition, and needs no credential, account, or host the session lacks. +- **The fix edits nothing under the hub's `host-setup/agent-safety/`.** That tree is the agent's + own guard, and it is worked only in an attended session, so a human approves every change to it. - **It reverses no settled decision** recorded in an issue, a handoff, or the rule text. - **Nothing has worked it or is working it.** The track `auto-` has no link, open or closed, which `handoff.py chain --repo "/" --track "auto-" --limit 1` answers with its diff --git a/.claude-plugin/fleet-skills/.source-digests/unattended-handoff b/.claude-plugin/fleet-skills/.source-digests/unattended-handoff index 9a513e9f8..5c249bfbf 100644 --- a/.claude-plugin/fleet-skills/.source-digests/unattended-handoff +++ b/.claude-plugin/fleet-skills/.source-digests/unattended-handoff @@ -1 +1 @@ -0429cd90c8d7ea9a +f564543ac1a47ad2 diff --git a/.claude-plugin/fleet-skills/skills/unattended-handoff/SKILL.md b/.claude-plugin/fleet-skills/skills/unattended-handoff/SKILL.md index 63ea4f609..a0bdb0356 100644 --- a/.claude-plugin/fleet-skills/skills/unattended-handoff/SKILL.md +++ b/.claude-plugin/fleet-skills/skills/unattended-handoff/SKILL.md @@ -148,6 +148,8 @@ does not qualify, since skipping one costs nothing and a guess costs a revert an - **The fix stays inside this repository's tree.** It changes no repository setting, ruleset, visibility, secret, or release condition, and needs no credential, account, or host the session lacks. +- **The fix edits nothing under the hub's `host-setup/agent-safety/`.** That tree is the agent's + own guard, and it is worked only in an attended session, so a human approves every change to it. - **It reverses no settled decision** recorded in an issue, a handoff, or the rule text. - **Nothing has worked it or is working it.** The track `auto-` has no link, open or closed, which `handoff.py chain --repo "/" --track "auto-" --limit 1` answers with its diff --git a/.github/skills/unattended-handoff/SKILL.md b/.github/skills/unattended-handoff/SKILL.md index 63ea4f609..a0bdb0356 100644 --- a/.github/skills/unattended-handoff/SKILL.md +++ b/.github/skills/unattended-handoff/SKILL.md @@ -148,6 +148,8 @@ does not qualify, since skipping one costs nothing and a guess costs a revert an - **The fix stays inside this repository's tree.** It changes no repository setting, ruleset, visibility, secret, or release condition, and needs no credential, account, or host the session lacks. +- **The fix edits nothing under the hub's `host-setup/agent-safety/`.** That tree is the agent's + own guard, and it is worked only in an attended session, so a human approves every change to it. - **It reverses no settled decision** recorded in an issue, a handoff, or the rule text. - **Nothing has worked it or is working it.** The track `auto-` has no link, open or closed, which `handoff.py chain --repo "/" --track "auto-" --limit 1` answers with its From 378ba5fbb182039e768894af94bb3cbeb09968ac Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Sun, 4 Oct 2026 16:20:02 -0700 Subject: [PATCH 2/5] Park a Worker Whose Fix Reaches host-setup/agent-safety The picker predicts the fix, so a misjudged pick or a resumed auto-* lane could still reach the guard. Worker step 5 now parks before such an edit, keeping every guard change in an attended session per #2210. Co-Authored-By: Claude Opus 5.5 --- .agents/skills/unattended-handoff/SKILL.md | 4 +++- .../fleet-skills/.source-digests/unattended-handoff | 2 +- .../fleet-skills/skills/unattended-handoff/SKILL.md | 4 +++- .github/skills/unattended-handoff/SKILL.md | 4 +++- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.agents/skills/unattended-handoff/SKILL.md b/.agents/skills/unattended-handoff/SKILL.md index a0bdb0356..d35aaf45f 100644 --- a/.agents/skills/unattended-handoff/SKILL.md +++ b/.agents/skills/unattended-handoff/SKILL.md @@ -217,7 +217,9 @@ does not qualify, since skipping one costs nothing and a guess costs a revert an monitor or a background task never wakes it. 5. **Park at the first decision**, per "Parking" below, filing any lesson per step 6 before the parking comment so the comment can name it. That includes a merge the harness refuses after one - retry, which is parked as ready to merge rather than routed around. + retry, which is parked as ready to merge rather than routed around. It also includes a fix that + turns out to need an edit under the hub's `host-setup/agent-safety/`. "Auto-Resolvable" keeps + that tree out of an unattended run, so the worker parks before making the edit. 6. **File any lesson for the maintainer.** A lesson a future agent must honor is rule text, which is the maintainer's to judge and no one is present to judge it, so file it as an issue carrying `decision`, stating the proposed rule and where it would go, with the choices as its options in diff --git a/.claude-plugin/fleet-skills/.source-digests/unattended-handoff b/.claude-plugin/fleet-skills/.source-digests/unattended-handoff index 5c249bfbf..168ce001e 100644 --- a/.claude-plugin/fleet-skills/.source-digests/unattended-handoff +++ b/.claude-plugin/fleet-skills/.source-digests/unattended-handoff @@ -1 +1 @@ -f564543ac1a47ad2 +99427299e753cc27 diff --git a/.claude-plugin/fleet-skills/skills/unattended-handoff/SKILL.md b/.claude-plugin/fleet-skills/skills/unattended-handoff/SKILL.md index a0bdb0356..d35aaf45f 100644 --- a/.claude-plugin/fleet-skills/skills/unattended-handoff/SKILL.md +++ b/.claude-plugin/fleet-skills/skills/unattended-handoff/SKILL.md @@ -217,7 +217,9 @@ does not qualify, since skipping one costs nothing and a guess costs a revert an monitor or a background task never wakes it. 5. **Park at the first decision**, per "Parking" below, filing any lesson per step 6 before the parking comment so the comment can name it. That includes a merge the harness refuses after one - retry, which is parked as ready to merge rather than routed around. + retry, which is parked as ready to merge rather than routed around. It also includes a fix that + turns out to need an edit under the hub's `host-setup/agent-safety/`. "Auto-Resolvable" keeps + that tree out of an unattended run, so the worker parks before making the edit. 6. **File any lesson for the maintainer.** A lesson a future agent must honor is rule text, which is the maintainer's to judge and no one is present to judge it, so file it as an issue carrying `decision`, stating the proposed rule and where it would go, with the choices as its options in diff --git a/.github/skills/unattended-handoff/SKILL.md b/.github/skills/unattended-handoff/SKILL.md index a0bdb0356..d35aaf45f 100644 --- a/.github/skills/unattended-handoff/SKILL.md +++ b/.github/skills/unattended-handoff/SKILL.md @@ -217,7 +217,9 @@ does not qualify, since skipping one costs nothing and a guess costs a revert an monitor or a background task never wakes it. 5. **Park at the first decision**, per "Parking" below, filing any lesson per step 6 before the parking comment so the comment can name it. That includes a merge the harness refuses after one - retry, which is parked as ready to merge rather than routed around. + retry, which is parked as ready to merge rather than routed around. It also includes a fix that + turns out to need an edit under the hub's `host-setup/agent-safety/`. "Auto-Resolvable" keeps + that tree out of an unattended run, so the worker parks before making the edit. 6. **File any lesson for the maintainer.** A lesson a future agent must honor is rule text, which is the maintainer's to judge and no one is present to judge it, so file it as an issue carrying `decision`, stating the proposed rule and where it would go, with the choices as its options in From e1df7caeb56c8179bed4beb8658741bdeecf78dd Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Sun, 4 Oct 2026 16:22:06 -0700 Subject: [PATCH 3/5] Keep a Recorded Answer From Authorizing an Unattended Guard Edit A guard lane handed back after its decision is answered would otherwise leave worker step 1 (follow the answer) and step 5 (park before the edit) in conflict. Step 5 now wins, so the edit lands only in an attended session. Co-Authored-By: Claude Opus 5.5 --- .agents/skills/unattended-handoff/SKILL.md | 4 +++- .../fleet-skills/.source-digests/unattended-handoff | 2 +- .../fleet-skills/skills/unattended-handoff/SKILL.md | 4 +++- .github/skills/unattended-handoff/SKILL.md | 4 +++- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.agents/skills/unattended-handoff/SKILL.md b/.agents/skills/unattended-handoff/SKILL.md index d35aaf45f..404b33798 100644 --- a/.agents/skills/unattended-handoff/SKILL.md +++ b/.agents/skills/unattended-handoff/SKILL.md @@ -219,7 +219,9 @@ does not qualify, since skipping one costs nothing and a guess costs a revert an parking comment so the comment can name it. That includes a merge the harness refuses after one retry, which is parked as ready to merge rather than routed around. It also includes a fix that turns out to need an edit under the hub's `host-setup/agent-safety/`. "Auto-Resolvable" keeps - that tree out of an unattended run, so the worker parks before making the edit. + that tree out of an unattended run, so the worker parks before making the edit. No answer + recorded on the decision issue authorizes a later worker to make it. This step wins over + step 1, so the edit lands only in an attended session. 6. **File any lesson for the maintainer.** A lesson a future agent must honor is rule text, which is the maintainer's to judge and no one is present to judge it, so file it as an issue carrying `decision`, stating the proposed rule and where it would go, with the choices as its options in diff --git a/.claude-plugin/fleet-skills/.source-digests/unattended-handoff b/.claude-plugin/fleet-skills/.source-digests/unattended-handoff index 168ce001e..f8c7fce1d 100644 --- a/.claude-plugin/fleet-skills/.source-digests/unattended-handoff +++ b/.claude-plugin/fleet-skills/.source-digests/unattended-handoff @@ -1 +1 @@ -99427299e753cc27 +c575f6b148a69188 diff --git a/.claude-plugin/fleet-skills/skills/unattended-handoff/SKILL.md b/.claude-plugin/fleet-skills/skills/unattended-handoff/SKILL.md index d35aaf45f..404b33798 100644 --- a/.claude-plugin/fleet-skills/skills/unattended-handoff/SKILL.md +++ b/.claude-plugin/fleet-skills/skills/unattended-handoff/SKILL.md @@ -219,7 +219,9 @@ does not qualify, since skipping one costs nothing and a guess costs a revert an parking comment so the comment can name it. That includes a merge the harness refuses after one retry, which is parked as ready to merge rather than routed around. It also includes a fix that turns out to need an edit under the hub's `host-setup/agent-safety/`. "Auto-Resolvable" keeps - that tree out of an unattended run, so the worker parks before making the edit. + that tree out of an unattended run, so the worker parks before making the edit. No answer + recorded on the decision issue authorizes a later worker to make it. This step wins over + step 1, so the edit lands only in an attended session. 6. **File any lesson for the maintainer.** A lesson a future agent must honor is rule text, which is the maintainer's to judge and no one is present to judge it, so file it as an issue carrying `decision`, stating the proposed rule and where it would go, with the choices as its options in diff --git a/.github/skills/unattended-handoff/SKILL.md b/.github/skills/unattended-handoff/SKILL.md index d35aaf45f..404b33798 100644 --- a/.github/skills/unattended-handoff/SKILL.md +++ b/.github/skills/unattended-handoff/SKILL.md @@ -219,7 +219,9 @@ does not qualify, since skipping one costs nothing and a guess costs a revert an parking comment so the comment can name it. That includes a merge the harness refuses after one retry, which is parked as ready to merge rather than routed around. It also includes a fix that turns out to need an edit under the hub's `host-setup/agent-safety/`. "Auto-Resolvable" keeps - that tree out of an unattended run, so the worker parks before making the edit. + that tree out of an unattended run, so the worker parks before making the edit. No answer + recorded on the decision issue authorizes a later worker to make it. This step wins over + step 1, so the edit lands only in an attended session. 6. **File any lesson for the maintainer.** A lesson a future agent must honor is rule text, which is the maintainer's to judge and no one is present to judge it, so file it as an issue carrying `decision`, stating the proposed rule and where it would go, with the choices as its options in From c5ccfb5755c627b51da39387af7fe6710abf8f1f Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Mon, 5 Oct 2026 19:47:21 -0700 Subject: [PATCH 4/5] Revert "Keep a Recorded Answer From Authorizing an Unattended Guard Edit" This reverts commit e1df7caeb56c8179bed4beb8658741bdeecf78dd. --- .agents/skills/unattended-handoff/SKILL.md | 4 +--- .../fleet-skills/.source-digests/unattended-handoff | 2 +- .../fleet-skills/skills/unattended-handoff/SKILL.md | 4 +--- .github/skills/unattended-handoff/SKILL.md | 4 +--- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.agents/skills/unattended-handoff/SKILL.md b/.agents/skills/unattended-handoff/SKILL.md index 404b33798..d35aaf45f 100644 --- a/.agents/skills/unattended-handoff/SKILL.md +++ b/.agents/skills/unattended-handoff/SKILL.md @@ -219,9 +219,7 @@ does not qualify, since skipping one costs nothing and a guess costs a revert an parking comment so the comment can name it. That includes a merge the harness refuses after one retry, which is parked as ready to merge rather than routed around. It also includes a fix that turns out to need an edit under the hub's `host-setup/agent-safety/`. "Auto-Resolvable" keeps - that tree out of an unattended run, so the worker parks before making the edit. No answer - recorded on the decision issue authorizes a later worker to make it. This step wins over - step 1, so the edit lands only in an attended session. + that tree out of an unattended run, so the worker parks before making the edit. 6. **File any lesson for the maintainer.** A lesson a future agent must honor is rule text, which is the maintainer's to judge and no one is present to judge it, so file it as an issue carrying `decision`, stating the proposed rule and where it would go, with the choices as its options in diff --git a/.claude-plugin/fleet-skills/.source-digests/unattended-handoff b/.claude-plugin/fleet-skills/.source-digests/unattended-handoff index f8c7fce1d..168ce001e 100644 --- a/.claude-plugin/fleet-skills/.source-digests/unattended-handoff +++ b/.claude-plugin/fleet-skills/.source-digests/unattended-handoff @@ -1 +1 @@ -c575f6b148a69188 +99427299e753cc27 diff --git a/.claude-plugin/fleet-skills/skills/unattended-handoff/SKILL.md b/.claude-plugin/fleet-skills/skills/unattended-handoff/SKILL.md index 404b33798..d35aaf45f 100644 --- a/.claude-plugin/fleet-skills/skills/unattended-handoff/SKILL.md +++ b/.claude-plugin/fleet-skills/skills/unattended-handoff/SKILL.md @@ -219,9 +219,7 @@ does not qualify, since skipping one costs nothing and a guess costs a revert an parking comment so the comment can name it. That includes a merge the harness refuses after one retry, which is parked as ready to merge rather than routed around. It also includes a fix that turns out to need an edit under the hub's `host-setup/agent-safety/`. "Auto-Resolvable" keeps - that tree out of an unattended run, so the worker parks before making the edit. No answer - recorded on the decision issue authorizes a later worker to make it. This step wins over - step 1, so the edit lands only in an attended session. + that tree out of an unattended run, so the worker parks before making the edit. 6. **File any lesson for the maintainer.** A lesson a future agent must honor is rule text, which is the maintainer's to judge and no one is present to judge it, so file it as an issue carrying `decision`, stating the proposed rule and where it would go, with the choices as its options in diff --git a/.github/skills/unattended-handoff/SKILL.md b/.github/skills/unattended-handoff/SKILL.md index 404b33798..d35aaf45f 100644 --- a/.github/skills/unattended-handoff/SKILL.md +++ b/.github/skills/unattended-handoff/SKILL.md @@ -219,9 +219,7 @@ does not qualify, since skipping one costs nothing and a guess costs a revert an parking comment so the comment can name it. That includes a merge the harness refuses after one retry, which is parked as ready to merge rather than routed around. It also includes a fix that turns out to need an edit under the hub's `host-setup/agent-safety/`. "Auto-Resolvable" keeps - that tree out of an unattended run, so the worker parks before making the edit. No answer - recorded on the decision issue authorizes a later worker to make it. This step wins over - step 1, so the edit lands only in an attended session. + that tree out of an unattended run, so the worker parks before making the edit. 6. **File any lesson for the maintainer.** A lesson a future agent must honor is rule text, which is the maintainer's to judge and no one is present to judge it, so file it as an issue carrying `decision`, stating the proposed rule and where it would go, with the choices as its options in From ba78953de10ce0b6eb9ca01dad4f027aa118390f Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Mon, 5 Oct 2026 19:47:21 -0700 Subject: [PATCH 5/5] Revert "Park a Worker Whose Fix Reaches host-setup/agent-safety" This reverts commit 378ba5fbb182039e768894af94bb3cbeb09968ac. --- .agents/skills/unattended-handoff/SKILL.md | 4 +--- .../fleet-skills/.source-digests/unattended-handoff | 2 +- .../fleet-skills/skills/unattended-handoff/SKILL.md | 4 +--- .github/skills/unattended-handoff/SKILL.md | 4 +--- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.agents/skills/unattended-handoff/SKILL.md b/.agents/skills/unattended-handoff/SKILL.md index d35aaf45f..a0bdb0356 100644 --- a/.agents/skills/unattended-handoff/SKILL.md +++ b/.agents/skills/unattended-handoff/SKILL.md @@ -217,9 +217,7 @@ does not qualify, since skipping one costs nothing and a guess costs a revert an monitor or a background task never wakes it. 5. **Park at the first decision**, per "Parking" below, filing any lesson per step 6 before the parking comment so the comment can name it. That includes a merge the harness refuses after one - retry, which is parked as ready to merge rather than routed around. It also includes a fix that - turns out to need an edit under the hub's `host-setup/agent-safety/`. "Auto-Resolvable" keeps - that tree out of an unattended run, so the worker parks before making the edit. + retry, which is parked as ready to merge rather than routed around. 6. **File any lesson for the maintainer.** A lesson a future agent must honor is rule text, which is the maintainer's to judge and no one is present to judge it, so file it as an issue carrying `decision`, stating the proposed rule and where it would go, with the choices as its options in diff --git a/.claude-plugin/fleet-skills/.source-digests/unattended-handoff b/.claude-plugin/fleet-skills/.source-digests/unattended-handoff index 168ce001e..5c249bfbf 100644 --- a/.claude-plugin/fleet-skills/.source-digests/unattended-handoff +++ b/.claude-plugin/fleet-skills/.source-digests/unattended-handoff @@ -1 +1 @@ -99427299e753cc27 +f564543ac1a47ad2 diff --git a/.claude-plugin/fleet-skills/skills/unattended-handoff/SKILL.md b/.claude-plugin/fleet-skills/skills/unattended-handoff/SKILL.md index d35aaf45f..a0bdb0356 100644 --- a/.claude-plugin/fleet-skills/skills/unattended-handoff/SKILL.md +++ b/.claude-plugin/fleet-skills/skills/unattended-handoff/SKILL.md @@ -217,9 +217,7 @@ does not qualify, since skipping one costs nothing and a guess costs a revert an monitor or a background task never wakes it. 5. **Park at the first decision**, per "Parking" below, filing any lesson per step 6 before the parking comment so the comment can name it. That includes a merge the harness refuses after one - retry, which is parked as ready to merge rather than routed around. It also includes a fix that - turns out to need an edit under the hub's `host-setup/agent-safety/`. "Auto-Resolvable" keeps - that tree out of an unattended run, so the worker parks before making the edit. + retry, which is parked as ready to merge rather than routed around. 6. **File any lesson for the maintainer.** A lesson a future agent must honor is rule text, which is the maintainer's to judge and no one is present to judge it, so file it as an issue carrying `decision`, stating the proposed rule and where it would go, with the choices as its options in diff --git a/.github/skills/unattended-handoff/SKILL.md b/.github/skills/unattended-handoff/SKILL.md index d35aaf45f..a0bdb0356 100644 --- a/.github/skills/unattended-handoff/SKILL.md +++ b/.github/skills/unattended-handoff/SKILL.md @@ -217,9 +217,7 @@ does not qualify, since skipping one costs nothing and a guess costs a revert an monitor or a background task never wakes it. 5. **Park at the first decision**, per "Parking" below, filing any lesson per step 6 before the parking comment so the comment can name it. That includes a merge the harness refuses after one - retry, which is parked as ready to merge rather than routed around. It also includes a fix that - turns out to need an edit under the hub's `host-setup/agent-safety/`. "Auto-Resolvable" keeps - that tree out of an unattended run, so the worker parks before making the edit. + retry, which is parked as ready to merge rather than routed around. 6. **File any lesson for the maintainer.** A lesson a future agent must honor is rule text, which is the maintainer's to judge and no one is present to judge it, so file it as an issue carrying `decision`, stating the proposed rule and where it would go, with the choices as its options in