Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# NOW -- The routing fix missed the fresh clone, which is the case that matters (2026-08-23)

## The routing fix missed the fresh clone, which is the case that matters (Closes #2559)

- Routing 17 subcommands to the Rust tri binary does nothing on a machine where target/ is empty: the gate's remediation still prints 'unrecognized subcommand now', unchanged.
- My first emulation of a fresh clone was wrong. I hid target/debug/tri and the command still worked, because target/release/tri answered. Hiding one of two binaries proves nothing.
- The front door now says the binary exists, is not built, and how to build it, then falls through so t27c's own error still prints. It does not claim which commands the unbuilt binary has, because nothing there can know.
15 changes: 15 additions & 0 deletions scripts/tri
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,21 @@ if [[ "$cmd" =~ ^[a-z][a-z0-9-]*$ ]]; then
if [[ -n "$TRI_BIN" ]] && ! lists_cmd "$T27C" && lists_cmd "$TRI_BIN"; then
exec "$TRI_BIN" "$@"
fi
# Routing alone still leaves the case that matters most: a fresh clone, where
# nothing under target/ is built. There the gate's remediation lands on the
# same `unrecognized subcommand 'now'` it always did -- verified by moving
# BOTH binaries aside, since hiding only target/debug/tri proves nothing while
# target/release/tri answers.
#
# Nothing here can say WHICH commands the unbuilt binary has, so this does not
# claim to. It says the binary exists, is not built, and how to build it, then
# falls through so t27c's own error still prints.
if [[ -z "$TRI_BIN" ]] && ! lists_cmd "$T27C" && [[ -d "$REPO_ROOT/cli/tri" ]]; then
echo "tri: '$cmd' is not a t27c subcommand, and the Rust \`tri\` binary (cli/tri) is not built." >&2
echo "tri: seventeen subcommands live there, 'now' among them. If '$cmd' is one:" >&2
echo "tri: cargo build --release -p tri" >&2
echo "tri: t27c's own error follows." >&2
fi
fi

# `t27c suite` is the only subcommand that accepts --repo-root.
Expand Down
Loading