npx claudepluginhub jsagir/mindrian-os-plugin[section] [--all] [--cross-room] [--dry-run]# /mos:brain-derive Force-refresh BRAIN.md per section via the Brain derivation pipeline. This is the manual knob users reach for when the automatic triggers (hash-change queue drain, session-start staleness scan) are not enough because they want to inspect explicitly, or the room has no recent regeneration activity. ## Modes - `/mos:brain-derive <section>` -- derive one section - `/mos:brain-derive --all` -- derive every active section in the current room - `/mos:brain-derive <section> --cross-room` -- add structural cross-room contradiction scan for that one section - `/mos:brain-deriv...
Force-refresh BRAIN.md per section via the Brain derivation pipeline. This is the manual knob users reach for when the automatic triggers (hash-change queue drain, session-start staleness scan) are not enough because they want to inspect explicitly, or the room has no recent regeneration activity.
/mos:brain-derive <section> -- derive one section/mos:brain-derive --all -- derive every active section in the current room/mos:brain-derive <section> --cross-room -- add structural cross-room contradiction scan for that one section/mos:brain-derive --all --cross-room -- most expensive; cross-room scan on every section--dry-run to any mode above to preview targets + cost without firing any Brain calls or writing BRAIN.mdShape E Action Report (Canon Part 3 UI Ruling System; same structure as /mos:diagnostics from Phase 88.6 Plan 02). Five summary rows plus a PER SECTION breakdown plus a NEXT action footer:
When there are more than 3 target sections, per-section progress streams to stderr as each completes: [1/7] market-analysis: derived. The final Shape E report renders to stdout at the end.
deriveSection entry point (Plan 90-01) and the cross-room aggregator (Plan 90-06). No new derivation logic is introduced at the command layer.deriveSection which has its chokepoint (buildBrainQueryContext), the prompt-builder allow-list schema, the invariants body scan, and the cross-room sanitize + JSON.stringify audit. The dispatcher only sequences those calls and renders results.Run the dispatcher via Bash:
node ${CLAUDE_PLUGIN_ROOT}/scripts/brain-derive-command.cjs $ARGUMENTS
/mos:brain-derive market-analysis
/mos:brain-derive --all
/mos:brain-derive --all --cross-room
/mos:brain-derive market-analysis --dry-run
/mos:brain-derive --all --cross-room --dry-run
| Exit | Meaning |
|---|---|
| 0 | Success (including Brain-offline soft-fail and all partial-completion paths) |
| 1 | Invocation error: no active room, invalid section name, or missing arguments |
00_Context/ snapshot on their next session-start.No surface-specific code exists anywhere in the dispatcher.