Repository navigation
docs(reference): correct loadouts.md (loadout_mode, absolute XDG rule, loadout list failures) - #3891
Conversation
…, loadout list failures) 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 1 billable file and costs up to $0.25.
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
|
|
Reviewed: no findings; approval withheld, 2 threads unresolved at APPROVE withheld: 2 unresolved threads — norrietaylor docs/reference/loadouts.md:614, norrietaylor docs/reference/loadouts.md:33. Resolving the last thread releases the approval on this head. Resolve the open threads. Resolving the last one releases the approval on this head; no new review is required. Clobber: none seen. |
There was a problem hiding this comment.
arch-review: PASS · the full ruling
The three corrections agree with the design. Section Loadout Mode and the box.toml loadout_mode comment say that the mode decides loadouts, whatever the Box Type. The new text says the same. The config-directory rule and the min loadout list text match the code at this head. Nothing to change.
Ruled at 40fc140 against gominimal/arch@d3d472929d81 by claude-opus-5-5.
There was a problem hiding this comment.
Scope matches the title. The diff changes three paragraphs of docs/reference/loadouts.md and nothing else. Clobber none: git log on the file shows no recent fix reverted. Correctness every changed claim agrees with the code at the head commit. I read builtin_defaults, loadout_gate, gate_selection, task_activation_inputs, xdg_config_home, cmd_loadout_list and LoadError. Two findings remain, and both are about text that the PR did not update: the sentence that opens the min loadout list section, and the same config directory sentence in two other reference pages. No build was necessary for this review. Not checked: Vale, which the PR body reports as clean.
| shadows it. | ||
| - A loadout that fails to load stays out of the table. Its error names the | ||
| file and prints on stderr, and the command exits non-zero. A name defined in | ||
| both layouts counts as a failure too. |
There was a problem hiding this comment.
low · The sentence that opens this section, at lines 589-591, still says the command "enumerates every *.toml file in the loadouts directory, one row per file". The new bullets contradict it. A loadout in the <name>/loadout.toml layout gets a row, a file that fails to load gets no row, and the built-in row has no file. Update the opening sentence in this PR, because the reader sees it first. This is the only stale sentence in the section.
There was a problem hiding this comment.
Addressed in cf6e5db: the opening sentence now says the command lists every loadout in both layouts, one row per loadout that loads, plus the built-in default row, matching the bullets (crates/minimal/src/loadouts.rs:861-967). @norrietaylor, could you re-approve when you have a moment?
| (or `$HOME/.config` when unset); macOS also uses `$HOME/.config` for | ||
| consistency with Minimal's state and cache dirs. The global | ||
| `<config>` is `$XDG_CONFIG_HOME` when `XDG_CONFIG_HOME` is an absolute path, | ||
| and `$HOME/.config` otherwise. The rule is the same on Linux and macOS. The global |
There was a problem hiding this comment.
low · The same <config> sentence appears in two other reference pages, and they keep the old text. docs/reference/user-policy.md:56-57 and the --config-dir row at docs/reference/cli-min.md:39 still say $XDG_CONFIG_HOME on Linux and that macOS uses $HOME/.config. AGENTS.md says to change a repeated sentence in all places or in none. Correct those two places here, or link an issue for them. docs/concepts/loadouts.md:53-54 has the old text too, and the PR body assigns that page to #3888.
There was a problem hiding this comment.
Addressed: docs/reference/user-policy.md:57-58 already carries the absolute-path rule in #3878 (f9dd612). The merged cli-min.md:39 --config-dir row is fixed in follow-up #3892. @norrietaylor, could you re-approve when you have a moment?
… bullets Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016CYvTye6pQuxGcVPkx1r2g
|
/arch-review |
There was a problem hiding this comment.
arch-review: PASS · the full ruling
The compare changes one sentence in the min loadout list section. The sentence now matches its bullets and cmd_loadout_list in crates/minimal/src/loadouts.rs. The design names the command and does not say how it renders, so no design line conflicts. The rest of the change keeps the PASS from 40fc1404.
Ruled at cf6e5db against gominimal/arch@d3d472929d81 by claude-opus-5-5.
There was a problem hiding this comment.
minimal-review — approval withheld
Verdict COMMENT — APPROVE withheld: 2 unresolved threads — norrietaylor docs/reference/loadouts.md:614, norrietaylor docs/reference/loadouts.md:33. No findings.
Panel: 3 of 3 personas ran (correctness, security, supply-chain).
Docs pass,
docs/reference:loadouts.md. These are three points CodeRabbit raised on #3888 (the concepts page), done here as their own small reference PR. Docs only. Every changed claim was checked against the code at main.Corrected
loadout_mode, not on whether it is a session or a task.openby default and tasks aresealed(crates/mfile/src/box_types.rs:72-75).loadout_mode = "open"takes the default loadouts (mfile/src/expand.rs:748-788).--no-loadoutsworks on the run verbs (crates/minimal/src/cli.rs:1442-1448,task.rs:2384-2399), and--loadouton a sealed box is refused (expand.rs:786-797).$XDG_CONFIG_HOMEcounts only when it is absolute, and the rule is the same on Linux and macOS (crates/paths/src/lib.rs:481-483,:575-585). The rationale "for consistency with Minimal's state and cache dirs" is cut.min loadout listfailures (line 609).crates/minimal/src/loadouts.rs:919-933,:966-973). The page said malformed entries are listed with their error.default_loadoutswarning is kept and now says it prints on stderr (loadouts.rs:897-912).defaultrow. A userdefaultin either layout hides it, not onlydefault.toml(loadouts.rs:913-915,:239-260).Verified, kept as is
The rest of the touched paragraphs: the two layouts,
--config-dir,min dirs, the*marker, and--dir.Note
Open PR #2484 (mirror) also touches this file, around line 525. Its hunk does not overlap these lines.
Vale is clean on changed lines. Leaves
docs/specsand the BEP docs issues alone.🤖 Generated with Claude Code
https://claude.ai/code/session_016CYvTye6pQuxGcVPkx1r2g