Skip to content

install: refuse an access route without its own helper - #162

Merged
henrikklee merged 1 commit into
mainfrom
access-no-fallback
Dec 4, 2026
Merged

henrikklee merged 1 commit into
mainfrom
access-no-fallback

Conversation

@henrikklee

Copy link
Copy Markdown
Contributor

What changes for people

Nothing they can see today. A typed access route now always runs as itself, or is refused with "this version does not run the X access route". It can never quietly run as palera1n.

Why

orchard install --access mapped every name other than dopamine and checkra1n to palera1n. Today only the three names in its argument list can reach that mapping:

  • released tools reject install --access amethyst when the command line is read;
  • resize refuses names it doesn't run.

So nobody has run the wrong route. But a name added to the list without its helper would have gone to palera1n without a word. That came up while adding the amethyst route (#160).

Change

  • ACCESS_ROUTES is one constant that feeds both the argument list and access_helper, which maps each name to its own helper.
  • flow_options returns an error for a name without a helper, and install stops with it.
  • A test checks two things: every listed route maps to its own distinct helper, and amethyst (which install doesn't run) is refused, both by the argument parser and by flow_options.

Testing

cargo test --workspace: all pass.

Assisted-by: LLM

`install --access` mapped every route other than dopamine and checkra1n
to palera1n. Only the three names its argument list holds can reach that
mapping today, so nothing runs the wrong route yet, but a name added to
the list without its helper would have run as palera1n.

The list is now one constant, each name maps to its own helper, and a
name without one is refused ("this version does not run the X access
route"). A test checks every listed route runs as itself and that
amethyst, which install does not run, is refused.

Assisted-by: LLM
@henrikklee
henrikklee merged commit d4c7031 into main Dec 4, 2026
11 checks passed
@henrikklee
henrikklee deleted the access-no-fallback branch December 4, 2026 08:11
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