Repository navigation
Stability Audit
Scope: Active architecture, C++23/Qt6 modernization, plugin v2.0 hardening, and release quality-gate checklist for GridLock v0.14.0.
Archived Baseline: All v0.10.0 stability, security, protocol, lifecycle, and UI hardening items (62 Completed | 1 Deferred) are archived in docs/audits/Stability-Audit-v0.10.0.md.
Reconciliation Status (v0.14.0): 26 Completed ([x]) | 4 Open ([ ]) actionable items across Section 1 (1 completed, 0 open), Section 2 (6 completed, 0 open), Section 3 (0 completed, 3 open), Section 4 (13 completed, 1 open), and Section 5 (v0.12.0–v0.14.0 Hardening & Delivery: 6 completed, 0 open). All C/C++ source and header files under src/, include/, plugins/, and tests/ remain strictly under the 800-line agent.md ceiling (0 files >= 800 lines), with 63/63 headless Meson test suites and tests/scripts/ Python tests passing.
| Section | Focus Area | Completed ([x]) |
Open ([ ]) |
Priority |
|---|---|---|---|---|
| 1. Directory & Module Layout | Deferred v0.10.0 src/ui/ & src/backend/ domain partitioning |
1 | 0 | Medium |
| 2. C++23 & Qt6 Modernization | Deferred qt-cpp-review type-safety, container, and API naming cleanups |
6 | 0 | Low-Medium |
| 3. Scheduled Release Quality Gates | Visual/DPI/contrast review, extended ASan/TSan soak, and file-size headroom | 0 | 3 | High |
4. qt-ui-design UX & WCAG 2.2 Audit |
4 Critical + 6 Warning + 3 Opportunity (completed), and 1 Opportunity UI/UX finding |
13 | 1 | Critical |
5. v0.12.0–v0.14.0 Hardening & Delivery |
DEBUG Source+Assembly split, floating popup chrome/geometry, async GDB/MI extraction, canvas input & 63/63 headless tests |
6 | 0 | High |
| Total | v0.14.0 Actionable Audit Plan | 26 | 4 |
- Partition dense
src/ui/views/andsrc/ui/widgets/by feature domain and fold single-purpose sibling directories (src/ui/tutorial/,src/backend/) (8296b16):-
Target Paths:
meson.build,src/ui/views/{editor,disassembly,memory,mpi}/,src/ui/widgets/{mpi,console,explorer}/,src/ui/dialogs/tutorial/,src/automation/. -
Resolution: Partitioned
src/ui/views/andsrc/ui/widgets/by feature domain, movedGdbConsoleWidget.{hpp,cpp}tosrc/ui/widgets/console/, movedTutorialDialog.{hpp,cpp}tosrc/ui/dialogs/tutorial/, renamedsrc/backend/tosrc/automation/, updated all moduleREADME.mdindexes, and refreshedgraphify(15,954nodes).
-
Target Paths:
-
Convert stringly-typed state, theme, perspective, gutter, and view-mode vocabularies to scoped
enum classtypes (80f16af):-
Target Paths:
src/RankState.hpp,src/core/managers/ThemeManager.{hpp,cpp},src/ui/mainwindow/MainWindowPerspectives.cpp,src/ui/views/editor/SourceCodeTypes.hpp,src/ui/widgets/console/HpcConsoleWidget.{hpp,cpp},src/ui/widgets/mpi/MpiDiagnosticsWidget.{hpp,cpp}. -
Goal: Replace repeated string comparisons (
"stopped","running","Debug","Binary","Table","List","Raw") with strongly typedenum classvalues and explicit serialization helpers at persistence/UI boundaries.
-
Target Paths:
-
Add
const-correct child-widget and sub-model accessor overloads (497d02f):-
Target Paths:
src/ui/mainwindow/MainWindow.hpp,src/ui/EditorTabManager.hpp,src/ui/dialogs/preferences/PreferencesDialog.hpp,src/ui/views/disassembly/DisassemblyView.hpp,src/ui/widgets/explorer/ProjectExplorerWidget.hpp. -
Goal: Ensure read-only queries and
constmember functions do not rely onconst_castor non-const widget pointers when inspecting child state.
-
Target Paths:
-
Standardize timestamp generation on
QDateTime::currentDateTimeUtc()(687b2d3):-
Target Paths:
src/core/hpc/gdb/GdbMiTranscriptRecorder.hpp,src/core/hpc/gdb/GdbRankCoordinator.hpp,src/core/managers/SessionManager.cpp,src/core/plugins/PluginManifest.cpp,src/core/hpc/system/LocalSlurmBackend.cpp,src/core/hpc/memory/MemoryExporter.cpp. -
Goal: Replace remaining local-time
QDateTime::currentDateTime()calls in logs, lockfiles, and exported artifacts with UTC ISO-8601 timestamps (Qt::ISODateWithMs) so multi-node cluster logs compare cleanly across timezones and DST boundaries.
-
Target Paths:
-
Replace unordered
QMaplookups withQHashon hot paths (c4d5623):-
Target Paths:
src/core/hpc/gdb/GdbRankCoordinator.{hpp,cpp},src/core/hpc/dap/DapCoordinator.{hpp,cpp},src/ui/views/mpi/ServerRackView.{hpp,cpp},src/ui/views/memory/RegisterView.{hpp,cpp},src/ui/dialogs/graph/PointerGraphEvaluator.cpp. -
Goal: Keep
QMaponly where sorted key iteration orlowerBound/upperBoundrange queries (such as address-to-line tables) are required; switch pure key-lookup caches toQHash.
-
Target Paths:
-
Apply C++23
std::pair/std::clamp/ structured-binding cleanups (3d373fb):-
Target Paths:
src/ui/views/disassembly/Disassembly*.cpp,src/ui/dialogs/plotter/ArrayPlot*.cpp,src/ui/views/editor/SourceCodeView*.cpp,src/core/binary/ElfBinaryInspector.cpp. -
Goal: Replace legacy
qBound/qMin/qMaxand verboseQPairboilerplate with standard C++23std::clamp,std::min/std::max, and structured bindings where types match directly.
-
Target Paths:
-
Align getter naming conventions (
API-5) across Core and UI headers (2c91936):-
Target Paths:
src/core/managers/ConfigManager.hpp,src/core/hpc/IBackendCoordinator.hpp,src/core/Version.hpp,src/ui/dialogs/project/ProjectWizard.hpp. -
Goal: Standardize Qt-idiomatic getter names (dropping redundant
get*prefixes on new or internal C++ accessors while keeping frozen C99 ABI headers underinclude/gridlock/plugin_api.huntouched).
-
Target Paths:
-
Run a comprehensive
qt-ui-designvisual, HiDPI, and contrast review pass:-
Target Paths:
src/core/managers/ThemePalettes.cpp,src/ui/dialogs/,src/ui/views/,src/ui/widgets/,docs/screenshots/. -
Goal: Audit all 8 curated dark and light themes at 1x and 2x DPI scaling for >= 4.5:1 text contrast, zero clipped headers or buttons (including
MpiDiagnosticsWidgetcolumn headers andVariablesDockWidgettoolbar spacing in light themes), and regeneratedocs/screenshots/via./scripts/capture_ui.sh --docs.
-
Target Paths:
-
Execute an extended multi-hour ASan/UBSan + TSan soak verification run:
-
Target Paths:
scripts/stress_soak.sh,tests/stress/stress_soak.cpp,tests/stress/mpi_chaos_target.cpp,scripts/lsan_qt.supp,scripts/tsan_qt.supp. -
Goal: Run
./scripts/stress_soak.sh --mode all --ranks 8 --duration 3600(and overnight soak) prior to taggingv0.11.0, verifying zero ASan/UBSan/TSan diagnostics, zero deadlocks, and boundedVmHWMpeak RSS inbuilddir-soak-logs/.
-
Target Paths:
-
Decompose caution-tier files sitting at
790to799lines to restore headroom below the800-line ceiling:-
Target Paths:
src/ui/widgets/console/GdbConsoleWidget.cpp(799),src/ui/dialogs/preferences/PluginSettingsPage.cpp(799),src/core/plugins/PluginInstaller.cpp(799),src/ui/mainwindow/MainWindowPlugins.cpp(797),src/core/plugins/PluginHostBridge.cpp(797),tests/ui/test_ui_aux.cpp(799),tests/hpc/test_mi_parser.cpp(798). -
Goal: Extract focused helper units where natural so future
v0.11.0feature work does not collide with the800-line file cap.
-
Target Paths:
Target Profile & Evidence: Linux Desktop (Qt 6.11 Widgets + Qt-Advanced-Stylesheets, 1600x960 workstation + native dialogs), 8 curated dark/light themes (ThemeManager / ThemePalettes), 11 live renders in docs/screenshots/, and static scan of 84 src/ui/**/*.cpp files.
-
Light-theme inline variable ghost contrast (
< 4.5:1WCAG AA):-
Target Paths:
src/ui/views/editor/SourceCodeViewInteraction.cpp,src/ui/views/editor/SourceCodeView.cpp,src/ui/views/editor/SourceCodeView.hpp. -
Evidence:
docs/screenshots/theme_daylight_light.png,docs/screenshots/theme_catppuccin_latte.png. -
Remediation: Added
SourceCodeView::inlineGhostTextColor()backed byThemeManager::paletteForTheme()(#4b5563on light canvases,#8b949eon dark canvases,>= 4.5:1WCAG AA contrast) and viewport repaint onreloadStyle().
-
Target Paths:
-
MpiDiagnosticsWidgetinvisible rows 1-3 & clipped headers in Light Themes:-
Target Paths:
src/ui/widgets/mpi/MpiDiagnosticsWidget.cpp,src/core/managers/ThemePalettes.cpp,src/core/managers/ThemeManager.cpp. -
Evidence:
docs/screenshots/theme_daylight_light.png,docs/screenshots/theme_catppuccin_latte.png. -
Remediation: Separated
QHeaderViewfromQHeaderView::sectioningetHighContrastLightQssOverlay()so hidden vertical headers are no longer clamped tomax-height: 24px(fixing row 1-3 paint clipping across all light themes), added explicit lightQTableView::itempadding/color, recomputed per-cell colors inMpiDiagnosticsWidget::reloadStyle(), and sizedPEER / TARGETandCOMMUNICATORcolumns fromQFontMetrics+ padding.
-
Target Paths:
-
ArrayPlotDialogRow 3 horizontal control clipping at1040x600:-
Target Paths:
src/ui/dialogs/plotter/ArrayPlotDialog.hpp,src/ui/dialogs/plotter/ArrayPlotDialog.cpp,src/ui/dialogs/plotter/ArrayPlotExport.cpp. -
Evidence:
docs/screenshots/v087_array_plotter_1d_2d.png. -
Remediation: Grouped secondary/export actions (
Clear History,Undo Clear,Export CSV...,Save PNG...,Open in gnuplot) into a compactActions / Exportmenu button (arrayPlotActionsExportBtn) while retaining hidden legacy buttons for test compatibility, sized Row 3 buttons withQSizePolicy::MinimumandfontMetrics(), and tightened the hover readout width.
-
Target Paths:
-
VariablesDockWidgetScope:combo box blank/unreadable selected text:-
Target Paths:
src/ui/docks/VariablesDockWidget.hpp,src/ui/docks/VariablesDockWidget.cpp,src/ui/mainwindow/MainWindowPerspectives.cpp. -
Evidence:
docs/screenshots/workspace_overview.png,docs/screenshots/theme_daylight_light.png,docs/screenshots/theme_catppuccin_latte.png. -
Remediation: Retained the default
Rank 0 (Master)item wheneveronProcessCountChanged()receivescount <= 0, addedVariablesDockWidget::reloadStyle()wired toThemeManager::themeModeChangedandpropagateThemeToAllWidgets(), and applied explicit theme palette colors andAdjustToContentssizing.
-
Target Paths:
-
PROJECT / SYMBOLdock title truncation in Light Themes:-
Target Paths:
src/ui/mainwindow/MainWindowDocks.cpp,src/ui/widgets/explorer/ProjectExplorerWidget.cpp. -
Evidence:
docs/screenshots/theme_daylight_light.png,docs/screenshots/theme_catppuccin_latte.png. -
Remediation: Tighten dock title-bar spacing or use a concise
PROJECTlabel /fontMetrics()minimum width.
-
Target Paths:
-
Hardcoded pixel font sizes (
136font-size: *pxvs7pt) &797raw#hexliterals acrosssrc/ui/:-
Target Paths:
src/ui/**/*.{hpp,cpp},src/core/managers/ThemeManager.{hpp,cpp},src/core/managers/ThemePalettes.cpp. -
Remediation: Migrated all inline QSS and workstation stylesheet overlay font sizes across
src/ui/andThemePalettes.cppfrompxto OS-scalableptunits (0remainingfont-size: *pxrules insrc/ui/), extendedThemeManager::ThemePalettewith semantic surface/status/contrast tokens, and routed all inline widget QSS#hexcolors acrosssrc/ui/throughThemeManager::paletteForTheme().
-
Target Paths:
-
CFG minimap overlap on bottom-right basic block in
DisassemblyView:-
Target Paths:
src/ui/views/disassembly/DisassemblyAnalysis.cpp,src/ui/views/disassembly/DisassemblyView.{hpp,cpp},src/ui/views/disassembly/DisassemblyViewActions.cpp,tests/ui/test_ui_debugger.cpp. -
Evidence:
docs/screenshots/cfg_decompiler_split.png. -
Remediation: Expanded CFG
QGraphicsScenebottom-rightsceneRectpadding by144px(120 + 24) horizontally and114px(90 + 24) vertically to clear the minimap footprint, and added a checkable Minimap (#cutterMinimapToggleBtn) toggle button in the Disassembly header bar.
-
Target Paths:
-
CommandPaletteDialogSymbolstab descender clipping:-
Target Paths:
src/ui/dialogs/search/CommandPaletteDialog.{hpp,cpp},tests/ui/test_ui_docks_dialogs.cpp. -
Evidence:
docs/screenshots/v088_search_everywhere.png. -
Remediation: Replaced the fixed
22pxmax-height clamp on scope tabs withstd::max(28, fontMetrics().height() + 10)updated viaupdateScopeTabHeights()onreloadStyle(),QEvent::FontChange, andQEvent::StyleChange, with headless regression coverage intests/ui/test_ui_docks_dialogs.cpp.
-
Target Paths:
-
PreferencesDialogscroll boundary lacks visual separation aboveOK / Cancel / Applyfooter:-
Target Paths:
src/ui/dialogs/preferences/PreferencesDialog.cpp,src/ui/dialogs/preferences/PreferencesDialogChrome.cpp,tests/ui/test_ui_docks_dialogs.cpp. -
Evidence:
docs/screenshots/preferences_slurm_autodetect.png. -
Remediation: Styled
QDialogButtonBox#preferencesFooterwith a theme-aware1px solidtop border (pal.borderHex) and balanced padding, added clean verticalQScrollAreamargins (4pxtop,8pxbottom), and added headless regression coverage intests/ui/test_ui_docks_dialogs.cpp.
-
Target Paths:
-
Keyboard focus traversal gaps (
7Qt::NoFocususages acrosssrc/ui/):-
Target Paths:
src/ui/dialogs/search/CommandPaletteDialog.cpp,src/ui/dialogs/preferences/ShortcutItemDelegate.cpp,src/ui/widgets/console/GdbConsoleWidget.cpp,src/core/managers/ThemePalettes.cpp,tests/ui/test_ui_docks_dialogs.cpp. -
Remediation: Restored
Qt::TabFocuson interactiveCommandPaletteDialogheader buttons andKeySequenceRecorderWidget's clear button, documented non-focus-stealingQt::NoFocuson read-only preview/autocomplete popups, and added theme-aware:focusindicator borders across light and dark overlays.
-
Target Paths:
-
New Project onboarding, template scaffolding, &
Ctrl+Shift+Nsplit-pane UX:-
Target Paths:
src/core/project/ProjectScaffolder*.{hpp,cpp},src/ui/dialogs/project/ProjectWizard*.{hpp,cpp},src/ui/mainwindow/MainWindowWorkspace.cpp,src/core/managers/ShortcutManager.cpp. -
Remediation: Replaced the blank two-page
QWizardand unusedNewProjectDialogduplicate with a single-screen split-paneProjectWizardbacked byProjectScaffolder(MPI C++23,MPI C17,MPI + OpenMP Hybrid,Fortran MPI,Import Existing,Existing Binary / Slurm), added live<BaseLocation>/<ProjectName>synthesis, inline validation, collapsible MPI topology options,Ctrl+Shift+N(file.new_project), and clean post-create editor/explorer onboarding without premature GDB launch aborts.
-
Target Paths:
-
Progressive disclosure (Hick's Law) in
ArrayPlotDialogandPointerGraphDialog:-
Target Paths:
src/ui/dialogs/plotter/ArrayPlotDialog.cpp,src/ui/dialogs/graph/PointerGraphDialog.cpp. - Remediation: Move infrequent export/layout actions into overflow menus.
-
Target Paths:
-
Reduced-motion preference (
appearance/reduced_motion):-
Target Paths:
src/ui/dialogs/preferences/AppearanceSettingsPage.{hpp,cpp},src/ui/dialogs/preferences/PreferencesDialog.cpp,src/ui/mainwindow/MainWindowPerspectives.cpp,src/core/managers/ConfigManager.{hpp,cpp}. -
Remediation: Added
ConfigManager::reducedMotion()/setReducedMotion(bool)persisted underappearance/reduced_motion, exposed Reduce motion (disable smooth scrolling and fade transitions) in Preferences -> Appearance, and wiredMainWindow::propagateThemeToAllWidgets()to disable dock animations, tree animations, and Qt UI fade effects when enabled.
-
Target Paths:
-
Localization & text expansion readiness:
-
Target Paths:
src/ui/**/*.cpp. -
Remediation: Replaced hardcoded
setFixedWidth()/setFixedSize()caps on text-labeled buttons, labels, and combo boxes withsetMinimumWidth()+sizeHint()padding and wrapped372user-visibleQStringLiterallabels across48UI files intr()/QObject::tr().
-
Target Paths:
- Motion: No excessive (
> 400 ms) animations; reduced-motion toggle (appearance/reduced_motion) implemented in Preferences -> Appearance. - Typography: Migrated all inline QSS and workstation overlay font sizes across
src/ui/andThemePalettes.cppfrom hardcodedpxrules to OS-scalableptunits (0pxQSS font rules remaining insrc/ui/). - Keyboard: Interactive controls support
Tabtraversal (Qt::TabFocus/Qt::StrongFocus), Search Everywhere / Esc work consistently, and theme-aware:focusrings are styled globally across light and dark overlays. - Colour: Critical light-theme inline ghost,
MpiDiagnosticsWidgetcontrast/clipping, and all inline widget QSS#hexliterals acrosssrc/ui/are resolved viaThemeManager::paletteForTheme(); customQPaintercanvas and syntax-highlighterQColorliterals remain to be reviewed in Section 3. - Localisation:
ArrayPlotDialogRow 3 clipping is resolved, text-labeled button fixed widths are replaced withsetMinimumWidth()+sizeHint(), and user-visibleQStringLiteralUI labels acrosssrc/ui/are wrapped intr()/QObject::tr(). - AI features: N/A (GridLock has no in-app generative AI UI).
-
DEBUGperspective automatic Source + Assembly split & PC synchronization:-
Target Paths:
src/ui/mainwindow/MainWindowPerspectives.cpp,src/ui/views/disassembly/DisassemblyView.cpp. -
Resolution: Switching to
DEBUG (Alt+2)opens side-by-side Source and Disassembly panels synchronized to the focused rank's current PC without manual dock rearrangement.
-
Target Paths:
- Floating
"popup"plugin dialog window chrome, draggable header bar & close button geometry:-
Target Paths:
src/ui/mainwindow/MainWindowPluginSurfaces.cpp,tests/ui/test_ui_plugin_playground.cpp. -
Resolution: Styled every floating
Qt::Toolplugin popup with a theme-aware draggable#floatingPanelHeaderBar(10, 4, 10, 4margins,8 pxspacing), expanding#floatingPanelTitleLabel, and fixed24x24#floatingPanelCloseButtonwith zero right-edge glyph clipping across Wayland and X11.
-
Target Paths:
- GDB/MI async token stripping & structured register/memory payload extraction:
-
Target Paths:
src/core/plugins/debugger/DebuggerExtensionRegistry.cpp,plugins/gridlock_lua/LuaBindingsDbgUi.cpp,tests/core/test_lua_plugin_host.cpp. -
Resolution: Stripped leading numeric MI tokens (
<token>^done,...) before deliveringsend_mi_asynccallbacks, added unescapedres.value,res.begin,res.contents, andres.memorytable extraction for-data-evaluate-expressionand-data-read-memory-bytes, and exposedgl.dbg.read_registerandgl.dbg.read_memory.
-
Target Paths:
- 2D Canvas click/keyboard dispatch &
gl.api.defer_fntimer lifecycle:-
Target Paths:
src/core/plugins/ui_surfaces/PluginCanvasWidget.cpp,plugins/gridlock_lua/LuaBindingsCanvas.cpp,plugins/gridlock_lua/LuaBindingsCore.cpp. -
Resolution: Dispatched stationary left-clicks (
< 4 px) as Lua{ x, y, row, col, button, panel_id }tables, addedQt::StrongFocus+canvas_set_key_handler/gl.ui.canvas_on_keywith auto-focus on floating popup open, and wiredgl.api.defer_fn/gl.core.defer_fnwith watchdog protection and automatic owner-scoped cancellation on plugin/playground unload.
-
Target Paths:
- x86/x86-64 & ARMv8/AArch64 assembly syntax highlighting &
.deb/ MkDocs release pipelines:-
Target Paths:
src/services/editor/TreeSitterService.{hpp,cpp},scripts/build_deb.sh,scripts/prepare_mkdocs_from_wiki.py,tests/scripts/. -
Resolution: Added theme-aware Intel/AT&T x86 and ARMv8/AArch64 assembly highlighting (
syntax_highlighting_tests+TreeSitterService), Debian.debpackaging withdpkg-shlibdeps+.sha256verification, and zero-warning strict MkDocs Pages publishing.
-
Target Paths:
-
59/59Headless Meson test coverage + Pythontests/scripts/suite:-
Resolution: Expanded the automated headless verification suite to
59/59Meson test suites (QT_QPA_PLATFORM=offscreen meson test -C builddir --print-errorlogs) pluspython3 -m unittest discover -s tests/scripts -vwith zero compiler warnings and zero failures.
-
Resolution: Expanded the automated headless verification suite to
GridLock Repository | Releases | Report an Issue | Roadmap | Accessibility | License (MIT)
Documentation mirrored from docs/ on master.
Getting Started & Tutorials
Debugging Workflows
- UI & Debugging Manual
- View Modes & Layout
- Build & Find in Files
- Server Rack View
- MPI Diagnostics & HPC
- OpenMP OMPD Inspector
- Memory, RE & Profiling
- Struct Layout & Cache Lines
- Reference Manual & Packages
Customization & Reference
- Configuration & Themes
- Vim Modal Editing
- Keyboard Shortcuts
- GDB Reference & Cheat Sheet
- Screenshot Gallery
- Engineering Roadmap
Extending & Architecture