From 20ca736e2944362877e194ceb0c707487468e272 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 22 Sep 2026 03:17:10 +0200 Subject: [PATCH] Forbid amend and force-push on shared branches A Ghostlight Hands agent amended and force-pushed a kernel commit while Self pushed map commits to the same branch. The briefs and the scars list now forbid it. Co-Authored-By: Claude Opus 5 --- SKILL.md | 5 +++++ references/briefs.md | 30 ++++++++++++++++++++++++++++++ references/changelog.md | 10 ++++++++++ 3 files changed, 45 insertions(+) diff --git a/SKILL.md b/SKILL.md index 8013b20..5493ef0 100644 --- a/SKILL.md +++ b/SKILL.md @@ -384,6 +384,11 @@ and reconciles the target doc with the Body. - **Stage explicit paths. Never `git add -A`.** It swept an untracked local settings file into history. +- **Never amend or force-push a shared branch.** In the Ghostlight play-agent + pass, a Hands agent amended its pushed kernel commit and force-pushed it + while Self was pushing map commits to the same branch. Nothing was lost, + only because Hands had rebased on those commits. Fix a commit with a new + commit. - **Never `git archive` to export source for a byte comparison.** It applies text conversion. An export used for a reproducibility check carried 1,459 inserted carriage returns against the worktree, which poisons every byte diff --git a/references/briefs.md b/references/briefs.md index 6721ba5..422b897 100644 --- a/references/briefs.md +++ b/references/briefs.md @@ -122,12 +122,37 @@ it reported was fiction. When a cut deletes, list every rule that had a test before and has none after. A rule that still exists in code with its only test deleted is the failure mode of subtraction; either the rule goes too, or it gets a test in the same cut. +Context is a budget, and a worker that fills it gets careless before it gets +stuck. Aetheria's stats and shield cuts ran Hands past 400k tokens and the late +work in those runs is where the sloppy claims appeared: a mutation reported +against code that had moved, a failure called environmental without a check, a +table printing numbers the old code never produced. So Self sizes a cut to fit +one worker's head, and the brief says how: + +- **Verify once, at the end.** Not after every edit. A full mutation sweep and + a batchmode compile per edit is most of a long run's spend and proves nothing + the final sweep will not. +- **Carry the cut inline.** Quote the cut's own section in the brief instead of + pointing at a long map; a worker that reads 900 lines to find 60 has spent + its budget before it starts. +- **Keep expensive scaffolding alive across cuts** (a pinned dependency + worktree, a warm build) rather than creating and removing it per pass. +- **Hand back rather than push through.** A worker that finds itself far past + the work it was briefed for commits what is verified, reports the remainder + honestly, and stops. A partial with clean evidence is worth more than a + complete report written from a full head. + Long jobs: wait for them and finish. Never end the turn with a to-do list in place of a report. "Wait" means a foreground poll you run yourself: a shell loop that sleeps and checks the job's status file or log tail, in chunks short enough for the tool timeout, repeated until the job exits. Do not start a detached job and then end the turn expecting to be woken; nothing wakes you, and the tree stays mutated until Self notices. +Announcing the wait and then yielding is the violation, not a softer form of +it: "I'll wait for the suite and then report" ends the turn exactly as a +to-do list does. Aetheria's shield Cut 3 burned two round trips this way, the +second one after being told. If a run is going, block on it in this turn or +read its finished output; do not yield to say what you are about to do. Mutations: restore with a reverse edit or run against committed code; `git checkout` also reverts uncommitted fix code and silently invalidates the run. The suite is a committed script under `tools/`, and its first entry is a @@ -152,6 +177,9 @@ the gap is. Commits: - Small and pushed. - Stage explicit paths only; never `git add -A`. +- Never amend a commit or force-push. Self and other agents commit on the + same branch while you work. Fix a commit with a new commit. On a rejected + push, `git pull --rebase`, then push. - Write each message with the Write tool to /-.txt, then run `git commit -F`. - End each message with the attribution trailer. @@ -196,6 +224,8 @@ Report findings only. "waiting for cargo" delivers no findings and has to be resumed by hand. Polling is a foreground shell loop you run, in chunks under the tool timeout, until the job exits; nothing wakes you if you stop. + Yielding to announce the wait is the same violation: block in-turn or read + the finished output, never end the turn to say you are waiting. Scope: , commits (base ). Spec:
. diff --git a/references/changelog.md b/references/changelog.md index 6589f26..b3c323b 100644 --- a/references/changelog.md +++ b/references/changelog.md @@ -448,3 +448,13 @@ evidence is `postmortem-cultcache.md` and the Aetheria repo's head: verify once at the end, quote the cut inline instead of pointing at the whole map, keep expensive scaffolding alive across cuts, and hand back a clean partial rather than push through. + +- 2026-09-22: never amend or force-push a shared branch. In the Ghostlight + play-agent pass, a Sonnet Hands agent on Cut 3 amended its pushed kernel + commit and force-pushed it (`9fbdde8` -> `4c4973b`). Self was pushing + cut-map commits to the same branch at the time. Nothing was lost, only + because Hands had rebased on those commits first. `briefs.md` now forbids + amend and force-push and says to fix with a new commit, and SKILL.md's + scars list carries the rule. That run also reached ~400k tokens against a + brief that pointed at the whole map, which is the 2026-09-18 context-budget + rule showing up again.