RFC 0047 — mise backends coverage
| Field | Value |
|---|---|
| Status | Implemented — phase 1 built 2026-11-14 (#360), phases 2–4 the same day (#361); every delta is in §16 |
| Short | mise backends coverage |
| Settles | Which mise backends reach BatleHub, how the CLI tells a covered backend from one that is not, and how the gaps close: aqua's http packages, the http: backend, the vfox plugins mise embeds, dotnet:, packslip: and conda channels other than conda-forge |
| Author | Max Batleforc maxleriche.60@gmail.com |
| Co-author | Claude Opus 5.5 noreply@anthropic.com |
| Created | 2026-11-11 |
| Supersedes | — (amends RFC 0045 §6.1: conda joins the upstream-derived kinds, §6.4) |
| Touches | cli (api/suggest.rs, api/client_setup.rs, api/mise_plan.rs, cli/mise.rs), crates/core (services/mise_wire.rs once RFC 0045 phase 1 lands), crates/adapters (registry/path_proxy.rs: generic globs with require_literal_separator, §15 Q7), tests/heavy (closed_world.sh, airgap.sh), .github/workflows/test.yaml and mise-scan.yaml (the pinned mise), docs (use/mise.md, registries/generic.md, registries/conda.md, registries/nuget.md) |
| Risk | medium — §7 (the CLI writes the client rules that decide which host a tool's bytes come from) |
1. Summary
mise installs a tool through one of fourteen backends. BatleHub covers a backend in one of two ways: a url_replacements rule catches the URL mise fetches (GitHub, Forgejo, GitLab, npm, cargo, conda), or a client-env block points the ecosystem tool mise shells out to at the proxy (pipx:, go:, gem:). Whether a backend is covered is decided in one table of the CLI, BACKEND_REGISTRIES (cli/src/api/suggest.rs:310), and one function, unsupported_backend_reason (cli/src/api/suggest.rs:287).
Measured against the registry of mise 2026.11.3 (1 074 tools), that table is wrong in both directions. It calls every aqua package GitHub, although 48 of the 704 aqua tools download from HashiCorp, Apache, Kubernetes, Google Cloud Storage and a dozen other vendor hosts. It calls every vfox plugin unsupported ("git-fetched"), although 40 of the 41 vfox tools in the registry are plugins mise compiles in, never clones, and whose downloads already go through url_replacements. It does not know dotnet: at all, although the nuget kind exists. And the 17 http: tools (dart, flutter, julia, nim, oc…) have no preset, so each locked version gets a generic mirror narrowed to that one file.
This RFC corrects the table, adds generic presets for the hosts that carry the most measured defaults (§2, per-tool table in §2.7 — it does not cover every tool), maps dotnet: and packslip: onto the kinds that already serve them, derives the conda rule from the registry's upstream channel, and states what stays out (asdf:, s3:, spm: source builds, the one non-embedded vfox plugin) with the reason. Every rule it adds lands in RFC 0045's wire table, so the auto-wire mode picks them up without a second list. The core:* toolchains (java, ruby, zig, deno, …) are RFC 0048's.
Before / after
# today — `batlehub-cli mise plan` on a mise.toml with kubectl, ant,
# dotnet:dotnet-outdated-tool, conda:ffmpeg (no lock yet)
4 tool(s) · 0 download(s) · 2 registries · 0 host(s) with no mirror configured
unsupported: vfox:jdx/vfox-ant: a git-fetched plugin backend; mise clones it, …
unsupported: dotnet:dotnet-outdated-tool: no registry kind fronts this backend, …
# and `registry suggest --mise` proposes a `github` registry for kubectl,
# which downloads from dl.k8s.io
# with this RFC, still no lock
4 tool(s) · 0 download(s) · 3 registries · 0 host(s) with no mirror configured
note: aqua: packages of type `http` download from their vendor's host, not GitHub; run `mise lock` to see which
note: vfox:jdx/vfox-ant: built into mise, downloads over HTTP; run `mise lock` so the plan knows the URL
# with this RFC, after `mise lock` — the URLs decide
4 tool(s) · 4 download(s) · 4 registries · 0 host(s) with no mirror configured
# registry suggest: k8s-dl (generic, dl.k8s.io), apache-archive (generic),
# nuget (dotnet.registry_url + NuGet.config), conda (rule from its upstream)The diagram shows the two requests that leave the estate today with nothing on the wire to say so; with the RFC both are rewritten onto a registry, and in an air gap the catch-all rule (cli/src/api/suggest.rs:1439) sinks the ones still unwired instead of letting them time out.
2. Motivation
The inventory is mise registry of mise 2026.11.3, the backend each tool uses by default (the first one listed): aqua 704, github 188, vfox 41, npm 41, pypi 23, conda 20, http 17, packslip 16, core 14, go 4, gem 3, spm 1, gitlab 1, cargo 1. The aqua figures come from the aqua registry vendored in the same crate (vendor/aqua-registry/registry.yml, aquaproj/aqua-registry at 017ef00e).
48 aqua tools are labelled GitHub and download from somewhere else.
BACKEND_REGISTRIESmapsaqua:togithubwith the comment "aqua and ubi both resolve to GitHub release assets" (cli/src/api/suggest.rs:320-322). Of the 704 aqua defaults, 648 aregithub_release, 4github_archive, 4github_content— those are GitHub, and the six GitHub rules cover them. The other 48 are aqua typehttp:releases.hashicorp.com(8: terraform's siblings boundary, consul, nomad, packer, waypoint…),storage.googleapis.com(6 tool rows: cloud-sql-proxy, skaffold, spin, claude, claude-code, nelm),archive.apache.org(3: maven, spark, tomcat),awscli.amazonaws.com(3),dl.k8s.io(2: kubectl, kubectl-convert),binaries.sonarsource.com(2),releases.crossplane.io(2) and one each on download.docker.com, downloads.haskell.org, get.helm.sh, download.racket-lang.org, download.oracle.com, pkgs.tailscale.com and others. Without a lock,registry suggest --miseproposes agithubregistry forkubectl, and kubectl then downloads fromdl.k8s.iodirectly. With a lock the URL is read and the right generic mirror is proposed (registry_for_url,cli/src/api/suggest.rs:963), so the bug is the lock-less path and the plan's wording, not the lock path.40 of the 41 vfox tools are declared unsupported and are not.
unsupported_backend_reasonreturns "a git-fetched plugin backend; mise clones it, and there is no HTTP path through BatleHub" for everyvfox:(cli/src/api/suggest.rs:294-297), anddocs/use/mise.md§5 repeats it. In mise 2026.11.3 the vfox crate (2026.11.3) carries 37 plugins underembedded-plugins/, and a plugin found there is never cloned (src/plugins/vfox_plugin.rs:243-245,314,334). Every HTTP call a plugin's Lua makes goes through the URL rewriter mise installs,vfox.set_url_rewriter(crate::http::apply_url_replacements)(src/plugins/vfox_plugin.rs:199), which the vfox crate applies in its Luahttpmodule (src/lua_mod/http.rs,src/plugin.rs:194-197). Onlytiny(jdx/vfox-tiny) is not embedded. The SDKs this hides behind a wrong "unsupported" are the ones a JVM, PHP or mobile estate asks for first: android-sdk, graalvm, php, scala, groovy, clojure, leiningen, ant, spring-boot, lua, yarn, poetry, pipenv, gcloud, elasticsearch, mysql.dotnet:is unsupported although thenugetkind exists. mise'sdotnet:backend runsdotnet tool install <tool> --tool-path …(src/backend/dotnet.rs:138-146), which reads NuGet.config, and lists versions fromdotnet.registry_url, defaulthttps://api.nuget.org/v3/index.json(src/backend/dotnet.rs:17-18, 175-179), through mise's own HTTP client. BatleHub serves that index (crates/web/src/lib.rs:1323,nuget_service_index) andclient_setupalready writes NuGet.config forClientId::Nuget(cli/src/api/client_setup.rs:153).BACKEND_REGISTRIEShas nodotnet:row, so the plan says "no registry kind fronts this backend".http:tools get a mirror one file wide. The 17http:defaults (dart, flutter, julia, nim, oc, openshift-install, kotlin-toolchain, neo4j, sentinel, tfc-agent, nomad-pack, cursor-agent, grok, muse, twg, android-cli) each name a URL template and often aversion_list_url(registry/flutter.toml:releases_linux.json;registry/julia.toml:versions.json). None of their hosts has a preset (generic_preset,cli/src/api/suggest.rs:137, knows five).generic_from_unknown_urltherefore writespath_allowas "the single exact path observed" (cli/src/api/suggest.rs:1001-1004): the next version is refused, and the version list mise reads first is not in the allowlist at all.packslip:is unsupported in the plan and mostly GitHub on the wire. The 16 packslip tools (hk, usage, pitchfork, helmfile, timoni…) read the repository's releases through mise's GitHub client (src/backend/packslip.rs:1761,1770), the signed list atraw.githubusercontent.com/{repo}/HEAD/.well-known/packslip.json(src/backend/packslip.rs:1649) or, for a vendor-hosted project,https://{host}/.well-known/packslip/{path}.json(src/backend/packslip.rs:358-361). With a lock the asset URL is a GitHub URL and is covered; without one the plan falls to "no registry kind fronts this backend" (cli/src/api/suggest.rs:305-307).The conda rule only knows conda-forge. The baseline fix (#318, merged as
234b095c) addsconda:toBACKEND_REGISTRIESand a rule anchored onhttps://conda.anaconda.org/conda-forge/, and refuses the rule for a registry of any other channel (foreign_upstream,cli/src/api/client_setup.rs:1200). A tool withchannel = "bioconda"— or an estate whoseconda.channelis its own channel — goes direct, with ashortcut:comment saying so.What this RFC covers, per tool group, and what it leaves. The threshold for a vendor-host preset is two or more mise default tools downloading from the host, measured on the pinned mise; below it, a lock yields a narrow generic mirror from
generic_from_unknown_url, as today.Group (defaults) Routed after this RFC Correct verdict, no route yet Gap aqua GitHub types (656) 656 ( github)— — aqua http(48)23: hashicorp 8, storage.googleapis.com 6 (bucket widening), apache 3, k8s 2, sonarsource 2 (existing preset), helm 1 (existing), docker 1 — 25: awscli 3 and crossplane 2 meet the threshold and get a preset after a probe (§15 Q6: by measurement and on request); 20 single-tool hosts http:(17)10: julia, oc, openshift-install, sentinel, tfc-agent, nomad-pack, dart, flutter, grok, … — 7: nim, kotlin-toolchain, neo4j, cursor-agent, muse, twg, android-cli vfox embedded (40) 2 by preset: ant, groovy 38: the verdict becomes a note; a lock gives a narrow generic — vfox cloned (1, tiny)— — unsupported (git) conda (20) 20 (conda-forge; other channels by upstream) — — packslip (16) the github.com/and owner/repo forms— packslip:{host}formsdotnet:listing and install through nuget(§6.2)— — npm, pypi, cargo, go, gem, github, gitlab unchanged, covered — — So the headline is narrower than "every backend": the verdicts become true for all of them, and routes are added where the volume is.
3. Goals / non-goals
Goals
- The CLI's verdict on a backend matches what mise 2026.11.3 actually fetches: no covered backend reported unsupported, no uncovered one reported covered.
- Every host that two or more mise default tools download from (§2.7) has either a typed rule or a generic preset whose allowlist survives a version bump and includes the version list mise reads.
dotnet:installs through anugetregistry;conda:through acondaregistry of whatever channel it fronts.- The rules live in one table — RFC 0045's
WIRE_RULES— soregistry suggest --mise,batlehub-cli setupand the server-side wire agree. - The proof runs the real mise binary, pinned, in the closed-world suite and in the air gap.
Non-goals
asdf:plugins. mise clones them over git and runs their shell scripts, which callcurlthemselves;url_replacementsnever sees those requests. Covering them means a git smart-HTTP proxy and a forward proxy for arbitrary scripts — a different product.- The non-embedded vfox plugin (
tiny) and any vfox plugin named by URL. Same git clone as asdf; one tool in the registry does not pay for it. s3:. The backend signs requests with the AWS SDK against the bucket's endpoint (src/backend/s3.rs:184-193,467-476); they never pass through mise's HTTP client, and BatleHub serves no S3 API.spm:source builds. Theygit clonethe package (src/backend/spm.rs:432-471). The artifact-bundle path, which reads a GitHub or GitLab release (src/backend/spm.rs:272-300,612-631), is in scope, as GitHub.- Live signature verification on the disconnected side for
packslip:, aqua's cosign/slsa and vfox attestations. RFC 0008 §5 ("What will not work") already rules it out; this RFC does not reopen it. packslip does not need it: its Sigstore check uses a trust root embedded in the mise binary and fetches no TUF root (§15 Q5), so a packslip tool installs air-gapped once the documents it verifies are held like any other artifact. - The
core:*toolchains — RFC 0048. - A dedicated kind for HashiCorp releases or dl.k8s.io. A
genericregistry with a preset caches and allowlists them; per-version blocking for generic is RFC 0045 Q8's open thread, not this one. - Shipping a copy of the aqua registry in the CLI. See §12.
4. User-facing design
4.1 Configuration
No new server option. One server behaviour changes: generic's path_allow globs match with require_literal_separator (§15 Q7), so * stops at / (migration note in §13). The operator sees new presets in what the CLI suggests:
# written by `batlehub-cli registry suggest --mise`
[[registries]]
name = "hashicorp-releases"
type = "generic"
upstreams = ["https://releases.hashicorp.com"]
# one literal product prefix each, so the allowlist names products,
# not the host
path_allow = ["terraform/**", "consul/**", "nomad/**", "packer/**",
"vault/**", "waypoint/**", "boundary/**", "sentinel/**",
"tfc-agent/**", "nomad-pack/**"]
[[registries]]
name = "conda-bio"
type = "conda"
upstreams = ["https://conda.anaconda.org/bioconda"]and on the client, in the mise block:
[settings]
dotnet.registry_url = "https://hub.example.com/proxy/nuget/nuget/v3/index.json"
[settings.url_replacements]
"regex:^https://conda\\.anaconda\\.org/bioconda/(.+)" = "https://hub.example.com/proxy/conda-bio/$1"
"regex:^https://releases\\.hashicorp\\.com/(.+)" = "https://hub.example.com/proxy/hashicorp-releases/generic/$1"- A preset's
path_allowis the narrowest glob that still matches every version of the tools that use the host, plus the listing document mise reads. Absentpath_allowon a hand-written generic registry keeps today's meaning (validated byvalidate_registry_path_allow,crates/config/src/schema/mod.rs:2600). Todayglob::Pattern::matchesruns with default options incrates/adapters/src/registry/path_proxy.rs:90, where*also crosses/(*/*/*is the whole host,go*admitsgo1.25/anything/below). Phase 2 switches the call tomatches_withandrequire_literal_separator: truefor everygenericregistry (§15 Q7), so*stays inside one segment and only**crosses/. The presets are still written as literal product prefixes, and their refusal corpus runs under the new semantics. dotnet.registry_urlis written only when anugetregistry is chosen for the mise target, together with the NuGet.config source the install needs (§6.2). Absent, mise lists from nuget.org as today.- The conda rule is derived from the registry's first upstream, so it exists only for the channel that registry fronts. An upstream with no channel segment — the server's own default, the bare
https://conda.anaconda.org(server/src/builders.rs:212) — derives no rule: it would claim every channel on the host.setupskips it with that reason, as today. No default changes on the server side. - Each rule has a minimum mise version (conda middleware, embedded vfox,
dotnet.registry_url); an older mise only warns on an unknown setting (src/config/config_file/mise_toml.rs:681) and the tool goes direct, sodocs/use/mise.mdstates the minimum per rule andsetupprints it next to the rule (§15 Q8).setupdoes not refuse a rule an older mise cannot honour: it does not runmise --version, and the floor is the operator's to check.
4.2 Behaviour rules
- Backend verdict, in order. (1) The lock has a URL for the tool: the URL decides, through
registry_for_url, whatever the backend — this is already the rule (cli/src/api/mise_plan.rs:267-316) and it is the one that is right for aqua, vfox, packslip and http. (2) No URL: the backend prefix decides, throughBACKEND_REGISTRIES. (3) No row: the reason. - aqua without a lock keeps mapping to
github— 648 of 704 are — and the suggestion carries a note: "aqua packages of typehttpdownload from their vendor's host; runmise lockto see it". A note, not a refusal (§15 Q2): refusing would break the lock-less path for the 648 GitHub packages to warn about 48. The CLI does not guess which aqua package is which (§12). - vfox without a lock is not "unsupported". The reason becomes: "vfox plugins built into mise download over HTTP through
url_replacements; runmise lockso the plan knows the URL. A plugin mise clones (one named by URL, or not built in) cannot come through." The plan cannot tell an embedded plugin from a cloned one by name alone without a list that drifts, so it tells the operator how to find out instead. - vfox plugins known to shell out —
php,poetry,pipenvtoday — get a second note, locked or not: "vfox:{plugin} runs a subprocess ({what}) whose own downloads bypassurl_replacements; connected they go direct, air-gapped they fail" (§15 Q4, T5). The list isVFOX_SUBPROCESS_PLUGINSincli/src/api/suggest.rs, keyed by the registry's short name. It is a list that drifts, accepted as such: it is re-measured on every mise pin bump (§6.5) by grepping the embedded plugins' Lua foros.execute/cmd.exec, and a plugin missing from it loses only the warning, never a route.docs/use/mise.mdkeeps the same list with what each subprocess fetches. asdf:keeps today's "unsupported" reason unchanged.dotnet:maps tonuget. mise reads only the version list itself (dotnet.registry_url,src/backend/dotnet.rs:175-179); the install is adotnet tool installsubprocess (:138-154) that reads NuGet.config and never sees the rewriter. So the mise target writesdotnet.registry_urland the NuGet.config source the NuGet target writes today; without the latter the listing would be proxied and the bytes not (§7.1 T7).packslip:maps togithubfor thegithub.com/{owner}/{repo}and{owner}/{repo}forms — a predicate (no dot in the first segment), not a prefix row; apackslip:{host}form maps to nothing and gets a reason naming the host and its.well-knownpath.spm:maps togithub, with a note that source builds clone over git; the GitLab form (mise teststool_name.contains("gitlab.com"),src/backend/spm.rs:812) maps togitlab.ubi:,github:,gitlab:,forgejo:unchanged.- conda. The rule is
^{upstream}/(.+)→{proxy}/$1, the shape the generic kind already uses (cli/src/api/suggest.rs:1348-1360), for an upstream that names a channel. A lock-lessconda:suggestion carriesupstreams = ["https://conda.anaconda.org/conda-forge"], so it keeps the rule #318 writes today, andproxy_path_forkeeps a conda-forge fallback so plans with conda entries still seed (cli/src/api/suggest.rs:219).foreign_upstream's conda branch compares the whole channel URL, as the baseline does, against the channel the rule names — so two conda registries of two channels each get their own rule, and neither can take the other's. - The uninteresting case. A project whose tools are all
github_releaseaqua packages, npm and cargo sees no change in its block.
4.3 Validation
Rejected:
| Condition | Rationale |
|---|---|
Two conda registries with the same upstream channel chosen for one mise target | Two rules on one prefix: mise applies the first and the second is dead. WireWarning::PrefixClaimed (RFC 0045 §6.1) already names this for the server side; the CLI refuses rather than emitting a dead rule. The same one-claim policy applies to every prefix, typed or generic (RFC 0048 §13 uses it for nodejs.org). Text and exit code in §4.5. |
A preset whose path_allow admits a path of another product or the host root | The preset table is code; a unit test runs each preset against a corpus of paths it must refuse (§14), so this never reaches an operator. A "no **" check is not enough: * crosses / too. |
Warnings:
| Condition | Behaviour | Surfaced in |
|---|---|---|
| aqua tool, no lock | github suggested, note printed | registry suggest --mise output, next to the registry |
| vfox tool, no lock | not unsupported; note printed | same, and mise plan's notes |
vfox tool in VFOX_SUBPROCESS_PLUGINS (php, poetry, pipenv) | planned as usual; subprocess note printed | registry suggest --mise above its registry, mise plan's notes |
| a rule needs a newer mise than some clients may run | written; the floor printed beside it | setup's detail line, docs/use/mise.md |
a locked conda: tool on a channel no registry fronts | the tool goes direct | mise plan: its host under no mirror: (the lock carries the URL) |
| a conda registry on a channel-less upstream | no rule, skipped with the reason | setup's detail line, as foreign_upstream does today |
dotnet: chosen without the NuGet source writable | listing proxied, install would go direct | setup prints "also run setup --client nuget" |
packslip:{host} | reason names the host | mise plan's unsupported |
4.4 API surface
No API changes: every change is in what the CLI writes and in the server-side wire table RFC 0045 already specifies.
4.5 Mocks
Drawn against today's renderers: render_toml (cli/src/api/suggest.rs:1602) for registry suggest, whose output is TOML with # from {src} and # {note} comments, and print_summary (cli/src/cli/mise.rs:714-735) for mise plan. The one format change is a note: line in the plan summary, from the new MisePlan.notes (§6.3).
batlehub-cli registry suggest --mise — no lock
$ batlehub-cli registry suggest --mise
# Generated by `batlehub-cli registry suggest`.
# Review before applying — names are suggestions, and RBAC below is a
# permissive starting point.
# from mise.toml: kubectl
# aqua packages of type `http` download from their vendor's host, not
# GitHub; run `mise lock` to see which.
[[registries]]
type = "github"
name = "github"
# upstreams omitted — the adapter's default upstream applies
…
# from mise.toml: dotnet:dotnet-outdated-tool
[[registries]]
type = "nuget"
name = "nuget"
…
# from mise.toml: conda:ffmpeg
[[registries]]
type = "conda"
name = "conda"
upstreams = ["https://conda.anaconda.org/conda-forge"]
…ant (vfox) yields no registry here: without a lock the CLI cannot know its host, and §12 rejects shipping a list. It decides that lock-less output guesses nothing it cannot know, and that each caveat sits above its registry.
The same, after mise lock — the URLs decide (registry_for_url):
# from mise.lock: kubectl
[[registries]]
type = "generic"
name = "k8s-dl"
upstreams = ["https://dl.k8s.io"]
path_allow = [
"v1.*/bin/**",
"release/stable.txt",
]
…
# from mise.lock: ant
[[registries]]
type = "generic"
name = "apache-archive"
upstreams = ["https://archive.apache.org/dist"]
path_allow = [
"ant/**",
…
]batlehub-cli mise plan — notes and refusal
$ batlehub-cli mise plan
3 tool(s) · 1 download(s) · 1 registry · 1 host(s) with no mirror configured
no mirror: tool.example.com
unsupported: asdf:mise-plugins/mise-postgres: a git-fetched plugin backend; mise clones it, and there is no HTTP path through BatleHub
unsupported: packslip:tool.example.com: reads https://tool.example.com/.well-known/packslip.json; no registry mirrors tool.example.com
note: vfox:jdx/vfox-ant: built into mise, downloads over HTTP; run `mise lock` so the plan knows the URL
note: vfox:php: runs a subprocess (configure, make) whose own downloads bypass url_replacements; connected they go direct, air-gapped they failExit 0: a plan with unsupported tools is still a plan (RFC 0008 §2.1). Empty case — nothing unsupported, nothing to note: the summary line alone, as today.
batlehub-cli setup --client mise — two conda channels, a nuget registry
mise ~/.config/mise/conf.d/batlehub.toml would write 2 rules, 1 setting
conda → ^https://conda\.anaconda\.org/conda-forge/(.+) (mise ≥ {floor})
conda-bio → ^https://conda\.anaconda\.org/bioconda/(.+) (mise ≥ {floor})
nuget → dotnet.registry_url = https://hub.example.com/proxy/nuget/nuget/v3/index.json (mise ≥ {floor})
also run `batlehub-cli setup --client nuget`: `dotnet tool install` reads NuGet.config, not miseSetup works per registry: both channels get their rule, nothing is skipped. Each line carries the rule's minimum mise version (§15 Q8); {floor} is the measured version phase 1 records per rule, not a placeholder the CLI prints.
Refusal — two registries on one channel
$ batlehub-cli setup --client mise
error: conda registries conda and conda-mirror both front https://conda.anaconda.org/conda-forge; mise applies the first rule only
hint: choose one with --registry, or remove the other from the selection
exit 4Exit 4 is the CLI's Refused (cli/src/exit.rs).
5. Architecture
5.1 Where the verdict is made
It proves the lock remains the source of truth: every change of this RFC is either in the lock-less branch or in the tables the lock branch already reads.
5.2 One rule table
The invariant: because a conda rule is derived from the registry's own upstream and foreign_upstream compares the whole channel URL, a registry can only ever be the target of the channel it fronts. The same holds for generic today; this RFC adds conda to the list of upstream-derived kinds that RFC 0045 §6.1 gives as "generic and forgejo".
5.3 The vfox path
It shows the one hop mise performs itself and the hop it does not: a plugin's os.execute (php's configure and make, poetry's installer script running python) is a subprocess, outside the rewriter (§7, T5).
6. Detailed design
6.1 cli/src/api/suggest.rs
BACKEND_REGISTRIESgains("dotnet:", "nuget", "nuget")and("packslip:github.com/", "github", "github"); the baseline's("conda:", "conda", "conda")stays. Two verdicts are not prefix rows and live inregistry_for_backendas predicates:packslip:{owner}/{repo}(no dot in the first segment) →github, andspm:→gitlabwhen the name containsgitlab.com(src/backend/spm.rs:812), elsegithub. The table stays astarts_withlist of three-tuples (cli/src/api/suggest.rs:310).unsupported_backend_reason:vfox:returnsNonefrom the "unsupported" branch and is reported as a note, not an unsupported tool;asdf:keeps its reason;packslip:{host}gets a reason naming the.well-knownURL.registry_for_backendreturns anoteforaqua:(thehttp-type caveat) andspm:; theSuggestedRegistry.notefield exists (cli/src/api/suggest.rs:51-52).generic_presetgains, from the measured hosts (§2.1, §2.4):Host Name Upstream path_allowTools (mise defaults) releases.hashicorp.comhashicorp-releaseshttps://releases.hashicorp.comone {product}/**per product (§4.1)8 aqua + nomad-pack, sentinel, tfc-agent api.releases.hashicorp.comhashicorp-apihttps://api.releases.hashicorp.comv1/releases/**the version_date_urlof the HashiCorphttp:tools (registry/sentinel.toml:19)dl.k8s.iok8s-dlhttps://dl.k8s.iov1.*/bin/**,release/stable.txtkubectl, kubectl-convert archive.apache.orgapache-archivehttps://archive.apache.org/distmaven/**,ant/**,groovy/**,spark/**,tomcat/**maven, spark, tomcat (aqua), ant, groovy (vfox) mirror.openshift.comopenshift-mirrorhttps://mirror.openshift.com/pub/openshift-v4/clientsocp/**oc, openshift-install julialang-s3.julialang.orgjulia-disthttps://julialang-s3.julialang.org/binversions.json,linux/**,mac/**,winnt/**julia download.docker.comdocker-dlhttps://download.docker.comlinux/static/stable/**,mac/static/stable/**docker-cli Every pattern starts with a literal product segment, and is tested under
require_literal_separator(§4.1, §15 Q7). Each preset whose host serves a mutable document (release/stable.txt,versions.json, a bucket'sversion_list_url) lists it in thegenericrevalidate list RFC 0048 phase 1b adds (§15 Q10), so "latest" does not freeze in the cache.VFOX_SUBPROCESS_PLUGINS(§4.2, §15 Q4):("php", "configure, make"),("poetry", "the installer script, run by python"),("pipenv", "pip");registry_for_backendand the plan attach its note.storage.googleapis.comis already a bucket host (cli/src/api/suggest.rs:182-186): dart (dart-archive), flutter (flutter_infra_release), grok, skaffold and claude each get a bucket-scoped generic fromgeneric_from_unknown_url, and this RFC widens that function's allowlist for a bucket to the directory of the observed path plus theversion_list_urlthe registry TOML names, instead of the single file — and checks thatversion_list_urlis on the same host and bucket before admitting it.dl.google.comcarries two registries on one host (§15 Q3, revised 2026-11-14): the typedgodistunder/go/(RFC 0048 phase 5, shipped in #338 and #339; thego-dlgeneric preset it replaced was removed in #355) and a newgenericpresetandroid-dlunder/android/(upstreamhttps://dl.google.com/android, for android-sdk, aapt2 and android-cli). Each is wired on its(host, prefix)pair, the way RFC 0045 §15 Q10 settled for the server wire. Today the host alone decides, and it decides wrong for Android.TYPED_HOSTSmaps the whole ofdl.google.comtogodist(cli/src/api/suggest.rs:120), andregistry_for_urlandregistry_kind_for_hostmatch on the host only (:945,:249). So a lock URL underdl.google.com/android/is suggested as agodistregistry, which serves Go's release document and archives and nothing else: every Android download planned through it is a 404. The fix keys both tables by host and path prefix.TYPED_HOSTSgains a prefix column (("dl.google.com", "/go/", "godist", "godist"), every other row"/"),generic_presettakes the path, andregistry_for_url,proxy_path_forandregistry_kind_for_hostpick the longest matching prefix across both. The typed half lands in phase 1 on its own: an Android URL then matches no typed row, sosuggestoffers the narrowgenericevery unknown host gets (that one file) and the plan names no kind for it, both true, until phase 2 addsandroid-dl. Itspath_allowis probed in phase 2 before the preset is written, like every preset.mise_url_replacements(cli/src/api/suggest.rs:1342-1366) derives the conda rule from the registry's upstream, next to the generic derivation, until RFC 0045 phase 1 moves the table.typed_url_replacements("conda")stays as the conda-forge fallback thatproxy_path_for(:219, no upstream argument) uses, so plans keep seeding conda entries; a plan test pins it.
6.2 cli/src/api/client_setup.rs
MISE_TYPES(cli/src/api/client_setup.rs:1536) gainsnuget.- The mise target, for a chosen
nugetregistry, writesdotnet.registry_url = "{base}/nuget/v3/index.json"(the form NuGet.config already uses,client_setup.rs:3074) through RFC 0048'smise_settings_for, the one settings function, and nourl_replacementsrule (the rewrite would also catch thedotnetCLI's NuGet.config-driven reads, which are not mise's). Because the install itself reads NuGet.config, the mise target also prints "also runsetup --client nuget" when that target is not selected (§4.5). foreign_upstream's conda branch compares against the channel the derived rule names (the registry's own upstream), so it refuses nothing for a correctly configured second channel; the check that remains is "the server names an upstream" (upstreams:read), as for every other kind.
6.3 cli/src/api/mise_plan.rs
- A
vfox:entry with no URL lands in a newnotes: Vec<String>of the plan (the struct carriesunsupported,cli/src/api/mise_plan.rs:50, andunmirrored_hosts,:52), not inunsupported.MisePlanis read back from disk (cli/src/cli/mise.rs:366,:583), bundles included, so the field is#[serde(default)]andPLAN_VERSION(mise_plan.rs:41) moves to 2; a test reads a version-1 plan.print_summaryprints each note asnote: …. RFC 0048 writes its Zig and Go advisories to the same field.
6.4 crates/core/src/services/mise_wire.rs (RFC 0045)
- When RFC 0045 phase 1 has landed, §6.1's presets and the conda derivation are added to
WIRE_RULES/WireTable::buildinstead of the CLI, and the list "of its first upstream forgenericandforgejo" becomes "forgeneric,forgejoandconda". If this RFC's phase 1 lands first, it lands in the CLI and RFC 0045 phase 1 moves it with the rest, unchanged.
6.5 tests/heavy and CI
- mise is pinned to 2026.9.5 in four places:
MISE_VERSIONin.github/workflows/test.yaml(lines 1024, 1401, 1550) andversion:in.github/workflows/mise-scan.yaml:98, whose comment requires it to equaltest.yaml's. The condaurl_replacementsmiddleware and the embedded vfox plugins this RFC relies on are verified in 2026.11.3's source; all four move to the current 2026.11.x release (2026.11.3 or later; 2026.11.7 is the newest on crates.io on 2026-11-13) inside phase 1 (§15 Q1), and phase 1 runs every existing mise phase under the new pin before it merges, so a behaviour change elsewhere is caught in the same PR. Each pin bump also re-runs the measurement script this RFC used: the §2.7 counts, the preset threshold (§15 Q6) andVFOX_SUBPROCESS_PLUGINS(§15 Q4). If the pin lands on a release later than 2026.11.3, the source facts this RFC cites are re-read at that release in the same PR. closed_world.shphase_mise(line 1082) gains the cases of §6.P;airgap.shgains the refusal cases.
6.P Proof against a real client
Suite tests/heavy/closed_world.sh mise and tests/heavy/airgap.sh, client mise at the phase-1 pin (2026.11.3 or the later 2026.11.x the pin lands on, §6.5; linux-x64, the release asset CI already downloads), the wire read with heavy_wire_re_after and never from mise's exit code alone. The tool versions below are the ones the phase will pin; they are proposals, not yet resolved against each backend.
mise install conda:ffmpeg@7.1.1against acondaregistry ofconda.anaconda.org/conda-forge— the tap showsGET /proxy/conda/linux-64/repodata_shards.msgpack.zst(orrepodata.json*) and the package GET under/proxy/conda/; no request toconda.anaconda.orgleaves the client.- Same with a second registry of
conda.anaconda.org/biocondaand"conda:samtools" = { version = "1.21", channel = "bioconda" }— the reads land on/proxy/conda-bio/, none on/proxy/conda/. mise install kubectl@1.31.0(aquahttp) with thek8s-dlpreset —GET /proxy/k8s-dl/generic/v1.31.0/bin/linux/amd64/kubectlanswered 200, 56 381 592 bytes (the sizecurl -Imeasured on 2026-11-11); no request todl.k8s.iofrom the client.mise install ant@1.10.15(embedded vfox) — the tap shows the archive GET under/proxy/apache-archive/, and no request togithub.com/jdx/vfox-ant(the plugin was not cloned).mise install dotnet:dotnet-outdated-tool@4.6.4withdotnet.registry_urland the NuGet.configsetup --client nugetwrites — the version list and the.nupkgGET both reach/proxy/nuget/; none reachesapi.nuget.org. Negative arm: with4.6.4blocked on thenugetregistry, the install fails and the tap shows no.nupkgupstream GET.- Refusal.
mise install consul(aquahttp) through ahashicorp-releasesregistry whosepath_allowis narrowed by the fixture toterraform/**— the proxy answers 403, mise exits non-zero quoting the 403, and the server log shows no upstream GET for the path: the refused bytes were never fetched. - Air gap refusal. On the disconnected instance, with the catch-all rule,
mise install sentinel@0.30.0whose asset the bundle does not hold — the client gets the catch-all's501, the host is recorded underunmirrored, and nothing leaves the instance. batlehub-cli mise planon a lock holdingasdf:mise-plugins/mise-postgresandant—asdfunderunsupportedwith the git reason;antplanned with its archive URL, not unsupported.- Credential and downgrade (T3). A fixture block whose replacement targets
http://— mise refuses to send the netrc credential over the downgrade (the request fails or goes withoutAuthorization), asserted on the rewritten request the proxy-side tap receives. The connected arm asserts that the rewritten request to the proxy carries the credential and the vendor-side tap sees none.
Deliberately untouched, so reviewers do not go looking:
crates/adapters/src/registry/generic*— the presets are CLI data. The one server change to the kind is the glob call inpath_proxy.rs:90(§15 Q7); the revalidate list and the cold-fill path are RFC 0048's (§15 Q9, Q10).crates/adapters/src/registry/conda/— the server already serves any channel it is pointed at; only the client rule was channel-blind.tests/heavy/authz.sh— no new grant shape: every route used exists and is covered by its kind's phase.
7. Security
Rating: medium — no new server surface, but the CLI writes the client rules that decide where a tool's bytes come from, and widens what generic presets allow through.
7.1 Threat model
Assets: the estate's view of which bytes are trusted, credentials sent to the proxy, availability of the cache. Actors: an upstream vendor (or whoever controls the aqua/mise registry data), an operator writing registries, a second registry on a shared host.
| # | Threat (STRIDE) | Where | Mitigation | Residual risk |
|---|---|---|---|---|
| T1 | Tampering — a registry of one conda channel answers another channel's reads | boundary 1 | rule derived from the registry's own upstream; foreign_upstream compares the whole channel URL (cli/src/api/client_setup.rs:1200) | none known; accepted by the author |
| T2 | Elevation — a preset turns BatleHub into an open fetcher for a whole vendor host | boundary 2 | presets start with a literal product segment; a unit test runs every preset against a corpus of paths it must refuse (another product, the host root) — not a "no **" check, since * crossed / in generic globs (path_proxy.rs:90) until §15 Q7 | a product directory is still wide (all of maven/**); accepted, it is one product. Operator-written * patterns stop at / from phase 2: require_literal_separator in path_proxy.rs:90 (§15 Q7), proved by generic_star_does_not_cross_a_separator |
| T3 | Info disclosure — the netrc credential for the proxy follows a rewritten URL to another host, or over http | boundary 1 | mise clears cross-host credentials and refuses a downgrade on a rewrite (src/backend/conda.rs:65-80, the same rule crate::http::Client applies); BatleHub rules always target the instance | relies on mise; regression covered by §6.P 9 (an assertion on a host egress already blocks would be vacuous) |
| T4 | Repudiation/DoS — a backend reported covered goes direct in an air gap and times out | boundary 1 | catch-all rule (cli/src/api/suggest.rs:1439) sinks every unwired host to a 501 recorded under unmirrored | none for HTTP; T5 remains |
| T5 | Info disclosure — a vfox plugin's subprocess (php's build, poetry's installer) fetches directly | boundary 4 | out of the rewriter's reach; documented per plugin in docs/use/mise.md, and the plan and suggest flag the plugins of VFOX_SUBPROCESS_PLUGINS (§4.2, §15 Q4) | accepted, highest residual: in connected mode those requests leave the estate unproxied; in an air gap they fail. The flag list drifts between pin bumps; a plugin missing from it loses the warning, not a route |
| T6 | Spoofing — upstream registry data points a template at an attacker host | boundary 3 | a rewritten URL only reaches hosts with a registry; an unwired host is direct (connected) or sunk (air gap), as today; a bucket's version_list_url is admitted only on the same host and bucket (§6.1) | unchanged from today |
| T7 | Tampering / EoP — dotnet: reported covered while its install bypasses the proxy: dotnet tool install is a subprocess reading NuGet.config (src/backend/dotnet.rs:138-154), so with only dotnet.registry_url written the listing is proxied and the .nupkg is not, skipping blocks connected and missing the catch-all air-gapped | boundary 4 | setup writes or demands the NuGet.config source (§6.2); mise plan notes dotnet: as subprocess-fetched | the install's correctness rests on NuGet.config, outside mise; §6.P 5's negative arm proves a blocked .nupkg does not install |
7.2 Authentication and authorisation
No new surface: every request lands on an existing typed or generic route, gated by the kind's existing grants; a dotnet read is a nuget read.
7.3 Input handling and injection
The CLI reads mise.lock and the registry's upstream URL; both become regex text through the existing regex_escape (cli/src/api/suggest.rs:1356). The conda derivation reuses that path, so a channel URL with regex metacharacters is escaped, not interpreted; §14 has the test.
7.4 Secrets and cryptography
No new secret. The only credential involved is the user's netrc entry for the proxy, handled by mise as T3 says.
7.5 Abuse and resource exhaustion
The presets bound what an authenticated user can make the proxy fetch to the listed product paths. Sizes: kubectl 56 MB, terraform 27 MB, maven 9 MB, the flutter release list 272 KB (all curl -I, 2026-11-11); none exceeds what generic registries already cache for node or go.
7.6 Existing defences that still hold
validate_registry_path_allow, the generic kind's allowlist enforcement, RBAC on every route, the catch-all sink of RFC 0008, and RFC 0045's PrefixClaimed warning.
8. Supply chain
No new dependency, image, action or tool in BatleHub; task audit is unchanged. The pinned mise moves from 2026.9.5 to the current 2026.11.x (2026.11.3 or later) in all four places (test.yaml lines 1024, 1401, 1550; mise-scan.yaml:98; MIT, the release asset CI already verifies by URL), in phase 1 (§15 Q1). The bump also changes mise's behaviour in every other mise phase; phase 1 runs them all under the new pin before it merges (§13).
9. Data and privacy
No new data is stored or transmitted: the presets add routes to existing caches, and the access log records the same request line it records for any generic read.
10. Operability
10.1 Observability
- Metrics: none new; a preset is a generic registry and its requests are counted by the generic kind's existing request metrics.
- Logs and audit trail: unchanged; a refused path is the generic kind's existing
403log line. - Alerts: none, because no new failure mode is server-side.
10.2 Failure modes
| Failure | Detected by | Behaviour | Recovery |
|---|---|---|---|
| A vendor host changes its URL layout (a new path outside the preset glob) | 403 on the client, generic log line | closed: refused, not fetched | widen the preset in a CLI release; the operator can widen path_allow by hand at once |
| A future mise un-embeds a vfox plugin | §6.P case 4 (the tap sees a git clone) | the tool goes direct (connected) or fails (air gap) | the plan's note already tells the operator to check |
| An aqua package changes type | the lock's URL | lock path is right by construction | none needed |
| A vendor host down or slow, cold miss | generic 502, upstream latency metric | closed: 502; a cached artifact is still served | retry once the vendor is back |
| A large cold artifact slower than mise's 30 s read timeout | mise's own timeout and retries | the fill is detached from the request and single-flighted, and bytes stream to the client as they arrive (RFC 0048 phase 1b, §15 Q9): a retry joins the running fill instead of starting another | none needed; a fill that fails upstream caches nothing |
A mutable index under a preset (release/stable.txt, */index.json, versions.json) | the revalidate list (§15 Q10) | revalidated against upstream on read; on an upstream error the cached copy is served stale | none needed; until RFC 0048 phase 1b lands, purge by hand |
| Air gap, per tool | — | only lock-driven installs work; an aqua or vfox listing request goes to the catch-all sink (501, recorded); a held artifact is served by path | carry the version in the next bundle |
10.3 Performance and capacity
The new presets cache what was fetched directly before; storage grows by the artifacts the estate installs (tens of MB per tool version, §7.5). No new CPU path.
11. Other concerns
- Accessibility: CLI text only; no colour carries meaning on its own (notes are labelled
note). - Internationalisation: the CLI is English-only today; the docs pages touched have FR siblings, updated in the same change.
- Compliance: no control touched; the change narrows unproxied egress, which helps the RFC 0036 supply-chain baseline.
- Licensing: no change; the aqua registry and mise source were read, not copied.
- Documentation:
docs/use/mise.md§5 is corrected (vfox), and gains the per-backend table;registries/generic.mdlists the presets;registries/conda.mddrops the conda-forge-only caveat the baseline added;registries/nuget.mdgains thedotnet:paragraph.
12. Alternatives considered
| Alternative | Why rejected |
|---|---|
| Ship the aqua registry (3.5 MB YAML) in the CLI to classify aqua packages without a lock | Drifts with every aqua release, and the lock path is already exact; 648 of 704 are GitHub anyway. |
| Ship the list of embedded vfox plugins in the CLI | Drifts with every mise release (37 today); the lock records the URL for vfox installs (src/backend/vfox.rs:751-764), so the note "run mise lock" is exact and cheap. |
One ** generic per vendor host | Turns the proxy into an open fetcher for the host (T2). |
A url_replacements rule for api.nuget.org instead of dotnet.registry_url | The rule would also rewrite reads the dotnet CLI makes for unrelated restores in the same shell; the setting scopes it to mise. |
| Keep conda pinned to conda-forge | An estate on its own channel (the reason to run a conda proxy at all) gets nothing. |
| Do nothing | The plan keeps telling the operator the opposite of the truth about 40 vfox tools and dotnet:. This RFC routes 23 of the 48 aqua http tools and 2 of the 40 vfox tools by preset (§2.7); the rest get a true verdict and, with a lock, a narrow generic — less than "every tool", more than nothing. |
13. Rollout and compatibility
- Default behaviour: the server is unchanged; a block regenerated with a new CLI gains rules, an old block keeps working.
- Migration: one, for
genericglobs (§15 Q7). From phase 2*no longer crosses/: a hand-writtenpath_allowthat relied on it (go*meant to admitgo1.25/sub/file,v*forv1.2/bin/x) starts refusing those paths with the kind's existing403. The fix is to write**where a separator must be crossed. The release notes anddocs/registries/generic.mdcarry the note with the before/after of one pattern; the change fails closed, so nothing is admitted that was refused. An operator who added a generic registry by hand for one of the preset hosts keeps it; the preset is a suggestion. - Operator prerequisites: none beyond the registries the CLI suggests.
- Rollback: an older CLI writes the older block; registries created from presets keep serving. Rolling back re-opens §2's gaps, nothing in §7.
- Staged rollout: the mise pin bump (all four pins, §6.5) lands inside phase 1, which runs every existing mise phase under the new pin before it merges (§15 Q1). Landing order with RFC 0048: this RFC's phase 1 (pin +
MisePlan.notes) → RFC 0048 phase 1 → RFC 0048 phase 1b (cold fill, revalidate list) → this RFC's phase 2, so each preset ships with its revalidate globs. - Old plans and bundles:
MisePlan.notesis#[serde(default)]andPLAN_VERSIONmoves to 2, so a plan written by an older CLI still reads. - Existing conda behaviour: a lock-less
conda:suggestion keeps writing the conda-forge rule (#318's test stays), and plan seeding keeps the conda-forge fallback.
14. Test plan
- Unit (
cli/src/api/suggest.rs): each newBACKEND_REGISTRIESrow;vfox:is not unsupported and carries the note;asdf:still is;packslip:hostreason names the.well-knownURL; every preset refuses a corpus of paths of another product and the host root (T2);proxy_path_foron one real URL per preset; the conda derivation escapes a channel URL with.and+, and derives nothing from a channel-less upstream; a lock-lessconda:keeps the conda-forge rule;spm:GitLab form →gitlab; the bucket-host allowlist widening and its same-bucket check;dl.google.comURLs under/go/pickgodistand, before phase 2, a URL under/android/gets the one-filegenericand no plan kind; from phase 2 it picksandroid-dl(§15 Q3); eachVFOX_SUBPROCESS_PLUGINSentry carries its note, an embedded plugin outside the list does not (§15 Q4). - Unit (
crates/adapters/src/registry/path_proxy.rs, §15 Q7):generic_star_does_not_cross_a_separator(go*refusesgo1.25/x/y, admitsgo1.25.4.linux-amd64.tar.gz),**still crosses, and every CLI preset's corpus re-run under the new semantics. - Unit (
cli/src/api/client_setup.rs):nugetwritesdotnet.registry_url, no rule; two conda registries of two channels write two rules; a conda registry with no named upstream is skipped (T1); each written rule's line carries its minimum mise version (§15 Q8). - Unit (
cli/src/api/mise_plan.rs): thenoteslist forvfox:; a version-1 plan withoutnotesstill reads; a conda entry still gets aproxy_path. - Proof: §6.P, cases 1–8.
- Security: T1 (§6.P 2 and the two-channel unit test), T2 (preset corpus test,
generic_star_does_not_cross_a_separator, §6.P 6), T3 (§6.P 9), T4 (§6.P 7), T7 (§6.P 5's negative arm). T5 has no negative test: it is the accepted residual. - Audit:
task auditunchanged. - Existing suites: every
closed_world.shmise phase andairgap.shunder the bumped pin;cargo test -p batlehub-cli.
15. Decisions and open questions
Resolved
| # | Question | Decision |
|---|---|---|
| 1 | Is conda-forge-only routing acceptable as a first step? | Yes, as the baseline shipped in #318 (234b095c). It closed the "unsupported" verdict for the 20 conda tools at once; this RFC generalises it. |
| Q1 (2026-11-13) | The mise pin: bump in phase 1, or in its own PR first? | Inside this RFC's phase 1, from 2026.9.5 to the current 2026.11.x (2026.11.3 or later), all four pins (§6.5). Against the draft's recommendation of a separate PR: the user keeps one PR, and phase 1 runs every existing mise phase under the new pin before it merges, so a regression elsewhere is still seen, in the same CI run. |
| Q2 (2026-11-13) | aqua without a lock: note or refusal? | A note (§4.2). As recommended: a refusal would break the lock-less path for 648 GitHub packages to warn about 48. |
| Q3 (2026-11-13) | dl.google.com serves Go and Android: one preset or two? | Two registries on one host, wired on (host, prefix) as RFC 0045 §15 Q10 settled, with the host tables keyed by host and path prefix (§6.1). As recommended. Revised 2026-11-14: decided as two generic presets, go-dl and android-dl; RFC 0048 phase 5 then shipped godist for /go/ (#338, #339) and #355 removed go-dl, so the pair is now the typed godist and the generic android-dl. The prefix keying stays and gains a reason: without it the host-only TYPED_HOSTS row already sends Android URLs to godist. |
| Q4 (2026-11-13) | vfox subprocesses (T5): document only, or also flag the known shell-out plugins? | Both: documented per plugin in docs/use/mise.md, and the plan and suggest flag php, poetry, pipenv from VFOX_SUBPROCESS_PLUGINS (§4.2, §6.1). Against the draft's "document only": the user wants the warning where the operator reads the plan. The list drifts; it is re-measured on each mise pin bump (§6.5), and a missing entry costs a warning, not a route. |
| Q5 (2026-11-13) | Does packslip's trusted_root(None) fetch a TUF root online? | No — it uses a root embedded at build time. mise calls packslip::sigstore::trusted_root(None) (src/backend/packslip.rs:1032, mise 2026.11.3, which locks packslip 1.11.3); packslip's trusted_root is TrustedRoot::from_json(json.unwrap_or(SIGSTORE_PRODUCTION_TRUSTED_ROOT)) (packslip-1.11.3/src/sigstore.rs:546-551), and that constant is include_str!("trusted_root.json") (sigstore-trust-root-0.15.1/src/trusted_root.rs:359). packslip's only network client, RekorClient, is used by sign (sigstore.rs:293), not on the verify path. So packslip tools install air-gapped with nothing extra for the trust root; what they need is the documents they verify, held like any artifact. Residual: the root is frozen at the mise build, so a Sigstore root rotation needs a newer mise, not a network. A research answer, not a user decision. |
| Q6 (2026-11-13) | Do presets grow by measurement only, or on request too? | Both. The §2.7 threshold is re-measured on each pin bump (§6.5), and an operator's request adds a preset after the same path-layout probe and refusal-corpus test. Against the draft's "by measurement" alone. awscli.amazonaws.com and releases.crossplane.io are probed in phase 2. |
| Q7 (2026-11-13) | generic glob semantics: switch to require_literal_separator, or document? | Switch the kind: path_proxy.rs:90 matches with require_literal_separator: true from phase 2, so * stays inside a segment. A behaviour change that fails closed; the migration note is in §13 and the test is generic_star_does_not_cross_a_separator (§14). |
| Q8 (2026-11-13) | Minimum mise version per rule: document and print, or refuse? | A floor per rule, stated in docs/use/mise.md and printed by setup beside the rule (§4.1, §4.5). As recommended: setup does not run the client's mise, so it cannot know what to refuse. |
| Q9 (2026-11-13) | Cold large downloads versus mise's 30 s timeout — blocker | A detached single-flight fill plus streaming to the client while caching. As recommended. Shared with RFC 0048 §15 Q9 and owned by RFC 0048, phase 1b: it is a change to the proxy's cache path for every kind, and RFC 0048 is the one touching crates/core. This RFC's presets rely on it; §10.2 links it. No longer a blocker here. |
| Q10 (2026-11-13) | Mutable index files under a preset | A per-glob revalidate list on generic, with stale-on-error. As recommended. Shared with RFC 0048 §15 Q12 and owned by RFC 0048, phase 1b; this RFC's phase 2 fills the list for each preset's mutable files (§6.1) and lands after it. |
Still open
None: every question was decided with the user on 2026-11-13, Q5 by reading packslip's source.
16. Implementation phases
| Phase | Content |
|---|---|
| 1 | The mise pin bump, all four pins, to the current 2026.11.x with every existing mise phase run under it (§15 Q1). Verdicts: BACKEND_REGISTRIES rows (dotnet:, packslip:) and the packslip/spm predicates, the vfox: note, VFOX_SUBPROCESS_PLUGINS and its note, the aqua: note, MisePlan.notes (serde(default), PLAN_VERSION 2), unit tests, docs/use/mise.md §5 corrected with the minimum mise versions and the subprocess plugins. The host tables keyed by (host, prefix) with dl.google.com/go/ → godist only (§6.1, §15 Q3), so an Android URL is no longer suggested as godist. Useful alone: the plan stops lying about 40 tools. Built 2026-11-14, with three deltas: mise was pinned in seven places, not four (mutants.yaml twice and the postmortem-gate action too), and all seven moved to 2026.11.3; the per-rule floor docs/use/mise.md states is the release the rules were verified against, 2026.11.3, since earlier releases were not measured; and the subprocess table names the program each plugin runs but not what it fetches, which was not read from the plugins' Lua. |
| 2 | After RFC 0048 phase 1b. require_literal_separator in path_proxy.rs with its test and migration note (§15 Q7); android-dl under /android/ beside the typed godist (§15 Q3), the awscli and crossplane probes (§15 Q6), each preset's revalidate globs, the bucket widening, with the T2 test; §6.P 3, 4, 6, 7; registries/generic.md. Built 2026-11-14, with these deltas: require_literal_separator applies to generic only — deb, rpm, pacman, jetbrains and apk share the client and keep * crossing / — and config validation checks a revalidate entry against path_allow with the same matching; hashicorp-releases also admits terraform-ls/**, the eighth aqua http tool on the host, and revalidates only nomad-pack/index.json, sentinel/index.json and tfc-agent/index.json, the version lists the three http: tools read (a revalidate entry is checked as a literal path, so */index.json would not load); hashicorp-api is upstream https://api.releases.hashicorp.com/v1/releases with path_allow the three product names, not v1/releases/**, and the generic route drops the query, so mise's ?limit=20&after= date paging reads the first page of ten and stops — older release dates are absent through the proxy; k8s-dl admits v1.*/bin/*/*/kubectl*, not v1.*/bin/**, which also served kubelet, kubeadm and the server binaries; release/stable.txt is kept although no mise path reads it (aqua lists kubectl from GitHub); openshift-mirror admits ocp/*/openshift-client-*, ocp/*/openshift-install-* and ocp/*/sha256sum.txt, not ocp/**, and revalidates nothing: oc's version_list_url is the directory ocp/, and generic refuses every path ending in / with 400 (validate_path_safe), as it does ant's listing ant/binaries/; groovy's listing dist/groovy is not admitted either, since a cache key groovy beside groovy/… collides on filesystem storage — so these tools install lock-driven (in the closed world mise listed ant through the versions host and never asked for the directory); docker-dl also admits win/static/stable/** (aqua supports windows/amd64); android-dl is cli/**, maven2/com/android/tools/build/aapt2/**, …/build/group-index.xml, repository/commandlinetools-* and repository/repository2-3.xml, read from the embedded vfox-android-sdk and vfox-aapt2 plugins and registry/android-cli.toml, revalidating the four index documents; the awscli and crossplane probes found one mise default tool each (aws-cli; crossplane, whose releases from 2.3.0 moved to cli.crossplane.io) — §2's 3 and 2 counted URL forms — so neither meets §2.7's bar and neither has a preset (julia-dist and docker-dl also serve one default tool each, and are kept as §6.1 names them); the CLI ships no mise registry TOML, so the bucket widening's version lists are BUCKET_LIST_DOCUMENTS, measured from mise 2026.11.3's registry/*.toml (claude's latest, flutter's three release JSONs), admitted only under the observed bucket's upstream and revalidated — dart's list is the GCS JSON API (/storage/v1/b/dart-archive/o) and grok's is on x.ai, so neither can be admitted; §6.P 3, 4 and 6 are a sibling phase mise-http of closed_world.sh (a CI row of its own), run green locally against mise 2026.11.3, case 6 proving the 403 is the allowlist's by its body rather than by a server log (the allowlist runs before any upstream request, disallowed_path_is_denied_before_any_upstream_request); §6.P 7 is in airgap.sh, where no registry fronts releases.hashicorp.com, and was not run locally; phase 1's preset corpus test built its MatchOptions from Default, which is case-insensitive, and now uses MatchOptions::new(). |
| 3 | dotnet.registry_url in the mise target, conda rule derived from the upstream, foreign_upstream per channel, the per-rule floor in setup's output; §6.P 1, 2, 5, 8; registries/conda.md, registries/nuget.md. Built 2026-11-14, with these deltas: RFC 0045 phase 1 was already on the branch, so the conda derivation went into mise_wire::registry_rules (conda_channel), shared by the CLI block, setup and the server wire, and §6.4's conda half of phase 4 is done; suggest's mise_url_replacements derives the same rule, a locked URL on another channel names its own registry (conda-{channel}, upstream that channel) and a lock-less conda: carries the conda-forge upstream — a channel option in mise.toml is not read, so a lock-less bioconda tool is still suggested conda-forge's registry; foreign_upstream's conda branch now refuses only an unnamed upstream or one that names no channel; the mise target takes every conda registry, as it takes every generic one, instead of resolving one per type; there is no setup --client: the CLI is setup apply --only <client>, the two-registries-one-channel refusal is the mise file's conflict (exit 6, every other client still configured) rather than exit 4, and the hint is --pick conda=<name> (there is no --registry), after which the picked registry wins and the other is named as skipped; setup prints the floors in the target's detail line, grouped (mise ≥ 2026.9.5 for conda, nuget; mise ≥ 2026.11.3 for …), not one column per rule; the floors are read from mise's source, not measured on clients: rattler's url_replacements middleware and dotnet.registry_url are both in 2026.9.5 and 2026.11.3, the only two releases read, so their floor is 2026.9.5, and every other rule keeps phase 1's 2026.11.3; the "also run setup apply --only nuget" line is printed when the nuget client is not selected or dotnet is not installed, and mise plan and suggest carry the same note for dotnet: (T7); a nuget registry in MISE_TYPES means two nuget registries leave the mise file ambiguous until --pick nuget=, as two of any typed kind do; mise lists dotnet: versions from the search answer, which names one version per hit, so mise ls-remote through BatleHub shows one version, and an exact semver version is not listed at all (resolve_exact_version); §6.P 5 found the proxy's NuGet registration upstream was {base}/v3/registration5, which nuget.org does not serve (every proxied registration read was a 404, and dotnet tool install reads it first), so the nuget.org upstream now reads registration5-semver1 — the plain-JSON hive, since this client does not decode gzip, which omits SemVer 2.0.0-only versions; §6.P is a sibling phase mise-backends of closed_world.sh (a CI row of its own) driving the block setup apply --only mise --only nuget writes; case 2 is conda:mosdepth@0.3.3 on bioconda, not samtools: mise solves against the one channel a tool names (conda.rs solve_packages), and samtools' dependencies are conda-forge's; case 1 is conda:jq@1.7.1, not ffmpeg; cases 2, 5 (both arms) and 8 ran green locally against mise 2026.11.3; case 1 was run and is red on the server, not the rule: every request landed on /proxy/conda-… and none left the client, but each package download parses conda-forge's 424 MiB linux-64/repodata.json (lookup_file_in_repodata) on the request worker, so mise's 30 s timeout and 408s ended the install — a conda cold-path defect outside this RFC. Fixed 2026-11-14: CondaRegistryClient::resolve_metadata now reads a package file's entry (sha256, timestamp) from its CEP-16 shard — the subdir's repodata_shards.msgpack.zst (~570 KB, cached per subdir for the registry's metadata_ttl, 10 min by default) maps the package name, matched against the index keys longest-prefix-first so a name with - resolves, to a shard of a few KB — decoded with rmp-serde (new dependency) on a blocking thread; a channel without a shard index falls back to repodata.json (its .zst when published), deserializing only the one entry, also off the async workers. |
| 4 | Move the presets and the conda derivation into WIRE_RULES once RFC 0045 phase 1 is on main (or nothing, if RFC 0045 phase 1 moved them). Built 2026-11-14: RFC 0045 phase 1 had moved the derivation (mise_wire::registry_rules builds the generic and per-channel conda rules from the registry), so only the CLI's duplicate in SuggestedRegistry::mise_url_replacements changed: it now goes through mise_wire::select, which also applies the wire's upstream check to a suggestion. |