Skip to content

Advertise dead-code-v1.1 as the current pin - #5

Merged
jonnyspicer merged 1 commit into
mainfrom
chore/advertise-dead-code-v1.1
Aug 12, 2026
Merged

jonnyspicer merged 1 commit into
mainfrom
chore/advertise-dead-code-v1.1

Conversation

@jonnyspicer

Copy link
Copy Markdown
Contributor

Prep for tagging dead-code-v1.1, which carries the cd guard merged in #4.

Bumping the README before tagging so the README shipped inside v1.1 names v1.1. Tagging first and correcting afterwards is the self-reference loop that produced three tags for v1.0 — see #2 and #3.

What v1.1 adds over v1.0

One line in check-dead-code.sh:

cd "$TARGET" || { echo "check-dead-code: cannot enter target: $TARGET" >&2; exit 2; }

A bare cd fails under set -e with exit 1 — the same code the gate uses for "dead code found". So a typo'd args: [backedn] surfaced in CI as a "Dead code" step failing with exit 1, indistinguishable from a real finding. Now exits 2, the gate's existing "bad usage" code, with a script-branded message.

Only Tower-Finder passes a positional target (args: [backend]), so it is the only consumer that can hit this. The other five stay on v1.0 until they have a reason to move.

🤖 Generated with Claude Code

https://claude.ai/code/session_013ZcazeseXVpu8XrYA2tE1V

Bumped before tagging, so the README shipped inside the v1.1 tag names v1.1
rather than its predecessor. Tagging first and correcting after is the loop
that produced three tags for v1.0.

v1.1 adds the cd guard: a target that cannot be entered now exits 2 (bad
usage) with a named message, instead of exiting 1 via set -e and colliding
with "dead code found".

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013ZcazeseXVpu8XrYA2tE1V
@jonnyspicer
jonnyspicer merged commit 64682f3 into main Aug 12, 2026
3 checks passed
@jonnyspicer
jonnyspicer deleted the chore/advertise-dead-code-v1.1 branch August 12, 2026 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant