Repository navigation
docs: match the XDG config rule in cli-min.md and the host/provider terms in architecture.md - #3892
Conversation
…erms in architecture.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016CYvTye6pQuxGcVPkx1r2g
|
/arch-review |
|
Warning Review limit reached
This review includes 2 billable files and costs up to $0.50.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 58 minutes for your next included review. View limit details
|
|
Approved: no findings at Nothing to do. Clobber: none seen. |
There was a problem hiding this comment.
arch-review: PASS · the full ruling
Both changes conform to the design. The glossary (architecture.md lines 31, 49 and 53) names minimald the host and local / local-minvmd the providers, as the new §1 text does. The --config-dir row matches xdg_config_home() and default_dir in crates/paths/src/lib.rs. One note: #3887, #3891 and #3878 are not in this base, so sessions.md, loadouts.md and user-policy.md still use the old text. Merge those PRs with this one, so that the docs use one name for one thing.
Ruled at cd4cbc5 against gominimal/arch@d3d472929d81 by claude-opus-5-5.
There was a problem hiding this comment.
Every sentence this PR changes checks out against the code. Approving. The points below are follow-ups, and none makes the merged docs false.
Should fix
-
min --helpstill states the old rule.crates/minimal/src/cli.rs:1590-1594says--config-dirdefaults to$XDG_CONFIG_HOMEon Linux and that macOS uses$HOME/.config.xdg_config_home()atcrates/paths/src/lib.rs:543-547honours an absoluteXDG_CONFIG_HOMEon every platform, which is what the corrected row now says. After this PR the reference and--helpdisagree. A follow-up is fine because this PR is docs-only. Suggested help text: "Defaults to$XDG_CONFIG_HOMEwhen it is an absolute path, else$HOME/.config. Linux and macOS use the same rule." -
The provider list omits
local-box.docs/architecture.mdnow reads "its provider:localorlocal-minvmd", which reads as a closed list.crates/minimal/src/cmd/hosts.rs:8defines three providers:local,local-minvmdandlocal-box. Suggested: "Howminreaches a host is its provider, such aslocalorlocal-minvmd.min provider list --alllists the providers on this machine." -
"Host daemon" now names two things in one section. The new line says
min"starts a host daemon when none is running". The same file callsminvmd"the microVM host daemon". A reader cannot tell which daemon is meant. Suggested: "and it starts the host when none is running". #3887 uses the same phrase insessions.md, so change both or neither. -
Sibling pages contradict this one until four open PRs merge. #3891, #3878 and #3888 fix the same XDG rule on other pages, and #3887 fixes the provider term. Merge them together so the tree does not contradict itself in between.
-
docs/internal/session-domain-diag.mdstill defines "provider" the old way, as the thing that creates and hosts sessions. No open PR touches it. This needs an issue.
Nits
- The adjacent
--minimal-dirrow atdocs/reference/cli-min.md:38has the same error forXDG_STATE_HOME.crates/paths/src/lib.rs:151-155honours an absolute value on every platform. The help text atcli.rs:1583-1586matches the stale row. architecture.mdno longer says thatmindiscovers host sockets. That is fine for an overview, but #3887 keeps the fact, so the two pages differ slightly.
Docs only. These are two sibling-page fixes that Norrie's review asked for, in pages that were already merged (AGENTS.md: change a repeated sentence everywhere or nowhere).
Corrected
docs/reference/cli-min.md--config-dirrow (from docs(reference): correct loadouts.md (loadout_mode, absolute XDG rule, loadout list failures) #3891, thread onloadouts.md:33).$XDG_CONFIG_HOMEcounts only when it is an absolute path, else$HOME/.config, and Linux and macOS use the same rule (crates/paths/src/lib.rs:481-483,:575-585). The row said$XDG_CONFIG_HOMEon Linux, and that macOS uses$HOME/.config. It now matchesloadouts.md(docs(reference): correct loadouts.md (loadout_mode, absolute XDG rule, loadout list failures) #3891) anduser-policy.md(docs(reference): correct user-policy.md (--no-input, mip reads [patches], config dir) #3878). Its semicolon became a full stop for Vale.docs/architecture.md§1 (from docs(concepts): correct sessions.md (provider choice, shell exit, git fetch, hooks, composition) #3887, thread onsessions.md:49). It called the daemon a "provider", whichdocs/concepts/sessions.md(docs(concepts): correct sessions.md (provider choice, shell exit, git fetch, hooks, composition) #3887) now calls the host, as inmin host listandmin host stop. The provider is howminreaches a host:localorlocal-minvmd(crates/minimal/src/cmd/hosts.rs:156-213). Both pages now define the words the same way. "auto-spawns a provider" now reads "starts a host daemon when none is running".Note
Open PRs #3851 and #2484 also touch
cli-min.md, at lines 1010 and 659. Neither overlaps line 39.Vale is clean on changed lines. Leaves
docs/specsand the BEP docs issues alone.🤖 Generated with Claude Code
https://claude.ai/code/session_016CYvTye6pQuxGcVPkx1r2g