Skip to content

Commit 684e9fd

Browse files
committed
Pin neutral Weird-Git actor identity
1 parent 8119692 commit 684e9fd

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

cells/weird-git-setup/fixture/setup-megarepo.sh

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,8 @@ set -euo pipefail
88
SB="${CATALOG:?CATALOG must be set — st2 eval provides it to run steps}"
99
cd "$SB"
1010
SEED="$SB/.seed"
11-
AUTHOR_NAME="$(git config --get user.name)"
12-
AUTHOR_EMAIL="$(git config --get user.email)"
13-
[ -n "$AUTHOR_NAME" ] && [ -n "$AUTHOR_EMAIL" ] || {
14-
echo "FAIL: the invoking Git identity must be configured before materializing the eval" >&2
15-
exit 1
16-
}
11+
WORKTREE_ACTOR_NAME="Eval Worktree Actor"
12+
WORKTREE_ACTOR_EMAIL="worktree-actor@eval.invalid"
1713

1814
echo "== seed clampkit (a tiny Node lib with a PLANTED above-range bug + a RED test) =="
1915
mkdir -p "$SEED/src" "$SEED/test"
@@ -76,10 +72,12 @@ git -C "$SB/canonical.git" config extensions.worktreeConfig true
7672
# refuse commit ("must be run in a work tree"). Override core.bare=false per-worktree so the checkouts work.
7773
git -C "$SB/wt/feature" config --worktree core.bare false
7874
git -C "$SB/wt/main" config --worktree core.bare false
79-
git -C "$SB/wt/feature" config --worktree user.name "$AUTHOR_NAME"
80-
git -C "$SB/wt/feature" config --worktree user.email "$AUTHOR_EMAIL"
81-
git -C "$SB/wt/main" config --worktree user.name "$AUTHOR_NAME"
82-
git -C "$SB/wt/main" config --worktree user.email "$AUTHOR_EMAIL"
75+
# This fixture owns the declared actor policy for ordinary agent-authored product commits. It is intentionally
76+
# distinct from the deterministic plumbing identity used above to construct immutable seed history.
77+
git -C "$SB/wt/feature" config --worktree user.name "$WORKTREE_ACTOR_NAME"
78+
git -C "$SB/wt/feature" config --worktree user.email "$WORKTREE_ACTOR_EMAIL"
79+
git -C "$SB/wt/main" config --worktree user.name "$WORKTREE_ACTOR_NAME"
80+
git -C "$SB/wt/main" config --worktree user.email "$WORKTREE_ACTOR_EMAIL"
8381

8482
echo "== drop the worker persona into wt/feature (git-excluded so it never shows in the agent's status) =="
8583
cp "$SB/persona/CLAUDE.md" "$SB/persona/PERSONA.md" "$SB/wt/feature/"

0 commit comments

Comments
 (0)