Skip to content

refactor(mqlaunch): move system_check into the diagnostics lib (Step 11a)#44

Merged
MCamner merged 1 commit into
mainfrom
feat/monolith-delayer-system-check
Jul 5, 2026
Merged

refactor(mqlaunch): move system_check into the diagnostics lib (Step 11a)#44
MCamner merged 1 commit into
mainfrom
feat/monolith-delayer-system-check

Conversation

@MCamner

@MCamner MCamner commented Jul 5, 2026

Copy link
Copy Markdown
Owner

What

Follow-up to the diagnostics slice (#43). system_check was an isolated diagnostics function still in the monolith — move it verbatim into mqlaunch/lib/diagnostics.sh next to its siblings, closing the diagnostics concern.

  • The lib is already sourced, so no new source line: delete the definition from mqlaunch.sh, append it to the lib.
  • No behavior changesystem_check still uses the ambient UI helpers and is invoked only at runtime by menus/command-mode (mq-system-menu, mq-main-menu, command-mode), all of which run after the lib is sourced.
  • Launcher: 1654 → 1547 lines. Since 11a began: 2082 → 1547, ~530 lines out of the monolith.

Guard

Extended the diagnostics CONCERNS row in tests/monolith-delayer-smoke.sh — now 29 functions across 3 concern libs, all asserted defined-in-lib / sourced-by-launcher / not-redefined-in-monolith.

Verification

  • Full selftest suite green (144 shell files lint clean); shellcheck clean.
  • Resolution smoke confirms all 6 diagnostics functions resolve after sourcing.
  • markdownlint clean.

docs/AUTHORITY_MAP.md and CHANGELOG.md updated.

Part of the v2.0.0 runtime-authority track; 11a unblocks Step 12 (v1 removal).

🤖 Generated with Claude Code

…Step 11a)

Follow-up to the diagnostics slice. system_check was an isolated diagnostics
function still in the monolith; move it verbatim into mqlaunch/lib/diagnostics.sh
next to its siblings, closing the diagnostics concern. The lib is already
sourced, so this needs no new source line — just delete the definition from the
launcher and append it to the lib.

Verbatim move, no behavior change: system_check still uses the ambient UI
helpers and is invoked only at runtime by menus/command-mode, all of which run
after the lib is sourced. Launcher: 1654 → 1547 lines (~530 out since 11a
began). Smoke CONCERNS row extended (29 functions across 3 libs); AUTHORITY_MAP
and CHANGELOG updated.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@MCamner MCamner merged commit 8543631 into main Jul 5, 2026
3 checks passed
@MCamner MCamner deleted the feat/monolith-delayer-system-check branch July 5, 2026 18:24
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.

1 participant