Skip to content

Commit 0200707

Browse files
Alan Shurafaclaude
authored andcommitted
fix: scenario H fixture hunk pins the old lib/co-evolution.sh head
The hand-crafted metacharacter diff in code-proposer-simulation.sh carries verbatim context from the top of lib/co-evolution.sh; the patsub_replacement guard added 7 lines there, so git apply --check rejected the hunk on all three CI platforms. Context updated to the current head (with a comment warning that hand-crafted hunks pin file content). Process note: the regression escaped local checking because only the --quick suite ran before push (it skips this slow sim). Full suite (20/20) now verified before this push. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 0e949f4 commit 0200707

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tests/code-proposer-simulation.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -690,11 +690,15 @@ TOTAL=$((TOTAL + 1))
690690
# Hand-craft the stub diff with shell metacharacters on + lines. Use a
691691
# single-quoted heredoc (<<'EOF') so nothing in the body is expanded by
692692
# THIS test script — the bytes land verbatim in the stub file.
693+
# Context lines mirror the CURRENT head of lib/co-evolution.sh (incl. the
694+
# patsub_replacement guard added in v1.3) — hand-crafted hunks pin file
695+
# content and must be updated when the target's head changes.
693696
cat > "$stub_file" <<'METACHARS_EOF'
694697
--- a/lib/co-evolution.sh
695698
+++ b/lib/co-evolution.sh
696-
@@ -1,5 +1,8 @@
697-
#!/usr/bin/env bash
699+
@@ -7,6 +7,9 @@
700+
# older bash, hence the guard.)
701+
shopt -u patsub_replacement 2>/dev/null || true
698702
699703
+# shell-meta audit: $PATH expansion boundary
700704
+# heredoc marker in comment: <<'EOF' globs: *.sh

0 commit comments

Comments
 (0)