Repository navigation
A refused shim lists the options: the tool on PATH and the layers that carry it (REQ-SHIMFALLBACK-001) - #292
Merged
Merged
Conversation
…t carry it (REQ-SHIMFALLBACK-001) Refuse, but list: a shim for a tool the pinned layer lacks still exits 1 and runs nothing. The refusal now names the executable on PATH (shim dir excluded) with the direct command, and every installed layer carrying the tool with the varve.toml lines that would select it, or says nothing else provides it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019TNtfRjLNhEz82G2ggeeNu
…space pastes as one word Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019TNtfRjLNhEz82G2ggeeNu
…fore MCP Decided by the maintainer on 2026-10-28. The benefit is orientation: an agent told "check in here" learns what the pin holds and where to look without running every tool. That is the two-step shape agents already use with Context7, answered locally from verified material. - REQ-AGENTDOCS-001: `varve-serve context`. Per-tool summary and docs-command come from new signed layer.toml fields. Where a tool declares neither, the pinned verified binary is harvested, cached by manifest digest, and the entry is marked harvested. Metadata and topic names only, within a size budget. - REQ-AGENTDOCS-002: `varve-serve ask <id> "<question>"` returns pointers into verified docs and built-in topics, and the command that reads each one. - REQ-AGENTDOCS-003 (MCP) moves to the backlog. It is a thin wrapper over those two calls, built when a client needs it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019TNtfRjLNhEz82G2ggeeNu
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019TNtfRjLNhEz82G2ggeeNu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements REQ-SHIMFALLBACK-001 (#273), which the maintainer decided as "refuse, but list the options". Also carries the v0.44.0 agent-docs plan update, which is rivet only.
Behaviour. A shim, or
varve run, asked for a tool the pinned layer does not carry still refuses and still exits 1. No ambient binary ever runs through varve. The existing refusal now ends with what the person can do instead:With neither, it says so: "Nothing else provides 'ghost': no executable of that name is on PATH (outside the shim directory) and no installed layer carries it."
Design
varve-core/src/shimfallback.rs:on_pathwalksPATHin order and skips the shim directory, however it is spelled, after canonicalizing. It checks the executable bit and lists each match once.carrierscovers realm partitions as well as the top-level store. It excludes the pinned layer and sorts its results.varve-core (shim-fallback).cmd-shim.mddescribes the refusal.Evidence
Tests failed first: all 4 CLI tests went red before the change. They cover:
There are 9 unit tests, including the quoting case, which also failed first.
Locally on e062327:
-D warningsare clean;cargo test --workspace -j 2exits 0, with 36 suites ok;Mutants, unfiltered,
-j 2 --timeout 60:shimfallback.rs: 24 tested, 23 caught, 1 unviable;shadow.rsadded, which this PR only makespub(crate): 46 tested, 3 missed. All 3 are inshadow.rs, which CI does not gate yet (not-yetin mutation-scope.toml). Two are thecfg(not(unix))branch, which macOS never compiles. The third,is_shadowed → true, was already there.The implementation was delegated to a subagent and reviewed. The quoting fix came out of the review.
🤖 Generated with Claude Code
https://claude.ai/code/session_019TNtfRjLNhEz82G2ggeeNu