8000 docs(reference): correct loadouts.md (loadout_mode, absolute XDG rule, loadout list failures) by agent-137 · Pull Request #3891 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

docs(reference): correct loadouts.md (loadout_mode, absolute XDG rule, loadout list failures) - #3891

Merged
mitodrummer merged 2 commits into
mainfrom
docs/reference-loadouts
Nov 30, 2026
Merged

mitodrummer merged 2 commits into
mainfrom
docs/reference-loadouts

Conversation

@agent-137
Copy link
Copy Markdown
Member

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

  • Which boxes take loadouts (lines 14-16). Whether a box takes loadouts depends on its loadout_mode, not on whether it is a session or a task.
    • Sessions are open by default and tasks are sealed (crates/mfile/src/box_types.rs:72-75).
    • A task entry with loadout_mode = "open" takes the default loadouts (mfile/src/expand.rs:748-788).
    • --no-loadouts works on the run verbs (crates/minimal/src/cli.rs:1442-1448, task.rs:2384-2399), and --loadout on a sealed box is refused (expand.rs:786-797).
    • The page said tasks never use loadouts.
  • Config directory (lines 29-31). $XDG_CONFIG_HOME counts 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 list failures (line 609).
    • A loadout that fails to load stays out of the table, its error goes to stderr, and the command exits non-zero, counting a name defined in both layouts (crates/minimal/src/loadouts.rs:919-933, :966-973). The page said malformed entries are listed with their error.
    • The default_loadouts warning is kept and now says it prints on stderr (loadouts.rs:897-912).
  • Built-in default row. A user default in either layout hides it, not only default.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/specs and the BEP docs issues alone.

🤖 Generated with Claude Code

https://claude.ai/code/session_016CYvTye6pQuxGcVPkx1r2g

…, loadout list failures)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016CYvTye6pQuxGcVPkx1r2g
@agent-137
agent-137 requested a review from a team as a code owner November 30, 2026 03:12
@agent-137
Copy link
Copy Markdown
Member Author

/arch-review

@coderabbitai
coderabbitai Bot commented Nov 30, 2026 •
Copy link
Copy Markdown
Contributor

Warning

Review limit reached

  • Run on-demand review

This review includes 1 billable file and costs up to $0.25.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 711ac607-9d8d-4be6-90a5-7231869d2257
Commits

Reviewing files that changed from the base of the PR and between f0ccb30 and cf6e5db.

Files selected for processing: 1

  • docs/reference/loadouts.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@minimal-foundry
minimal-foundry Bot commented Nov 30, 2026 •
Copy link
Copy Markdown
Contributor

Reviewed: no findings; approval withheld, 2 threads unresolved at cf6e5dbea4f1.

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.

@minimal-arch minimal-arch Bot left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@minimal-foundry minimal-foundry Bot left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minimal-review — approved

Verdict APPROVE — No findings.

Panel: 3 of 3 personas ran (correctness, security, supply-chain).

@minimal-foundry minimal-foundry Bot added the review:approved minimal-review approved the current head label Nov 30, 2026
@norrietaylor norrietaylor left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@agent-137
Copy link
Copy Markdown
Member Author

/arch-review

@minimal-arch minimal-arch Bot left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@minimal-foundry minimal-foundry Bot left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

@minimal-foundry minimal-foundry Bot removed the review:approved minimal-review approved the current head label Nov 30, 2026
@mitodrummer mitodrummer left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved.

@mitodrummer
mitodrummer added this pull request to the merge queue Nov 30, 2026
Merged via the queue into main with commit 257c9e1 Nov 30, 2026
40 checks passed
@mitodrummer
mitodrummer deleted the docs/reference-loadouts branch November 30, 2026 18:59
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.

3 participants

0