Files
Adaptive_Resource_Monitor/IMPLEMENTATION_REPORT.md

281 lines
20 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Adaptive Resource Monitor implementation report
## v0.4.1.1_alpha — Independent tray machine
The Minor counter advanced from 0 to 1. The existing Major, Feature and
Bugfix counters and alpha classification carry forward from v0.4.0.1_alpha.
The hover monitor, expanded window and Monitor Machine menu offer Local
Machine, individual configured remotes and All Systems. All Systems shows
six independent resource charts for each enabled machine, including separate
network IN and OUT traces. The primary icon reads one source chosen under
Settings → Tray Icon → Tray icon machine. Local Machine is the default.
Optional individual icons honor each remote's tray setting. Overlay, Stacked
and Composite use resources from the icon's machine. The branded Application
Icon is still available in Settings and during initialization.
Saved legacy Aggregate - Peak monitor selections load as All Systems. Legacy
explicit tray remotes and the separate-icon preference carry forward. If the
legacy consolidated setting supplied the implicit monitor scope, the monitor
opens in All Systems and the tray icon uses Local Machine. The next settings
save writes the current fields. The migration leaves the telemetry and history
formats intact.
### Acceptance checks
- All 18 automated model and provider tests passed, including legacy settings,
persisted monitor and tray selections, archived history, directional network
rates and independent collectors.
- Native application checks passed on private Windows desktops at 100% and 150%
Qt scaling. The local computer and two loopback SSH targets each had six
independent All Systems charts. Both remote network charts drew IN and OUT
from their own samples. The test switched the monitor among All Systems,
Local Machine and a different remote while the primary icon continued to
draw from the same configured remote. Separate icons drew from all three
individual sources. New and legacy settings restored the monitor and tray
selections on fresh application instances.
- Verified the portable ZIP CRC and both release-file hashes, x64 executable
headers, embedded icons and brand metadata. The portable executable opened
and shut down twice on a private Windows desktop.
- Tested the installer recipe with the release payload and a disposable AppId.
Installation of v0.4.0.1_alpha, upgrade to v0.4.1.1_alpha and uninstall
each returned 0. The native wizard displayed the release version. All 292
installed files matched the release payload. The upgraded executable opened
and shut down twice. The test settings, credential reference, trust file and
history fixture survived. The existing installation, startup value, settings
and SSH trust matched their pre-test values.
- Actual Explorer notification-area hover and an in-place production upgrade
remain unverified for this version. The private desktops supplied no Explorer
tray rectangle. Remote validation for this revision used loopback SSH targets.
### Windows x64 release
| File | Bytes | SHA-256 |
| --- | ---: | --- |
| [Installer](release/v0.4.1.1_alpha/AdaptiveResourceMonitor-v0.4.1.1_alpha-windows-x64-setup.exe) | 44,507,774 | 5f82d702cb44318c72a2e4bd7053b42f7387785d2978f9ed5ee6915b6b554900 |
| [Portable ZIP](release/v0.4.1.1_alpha/AdaptiveResourceMonitor-v0.4.1.1_alpha-windows-x64-portable.zip) | 58,360,489 | 841b67a14d593f26369983e78f271b550f4a221de7de695adefb0f7567532b95 |
The [checksum manifest](release/v0.4.1.1_alpha/SHA256SUMS.txt) accompanies both
files. Removed the test installation, staged dependencies and compiler, test
installers and extracted payloads, build intermediates, isolated profiles,
test data and diagnostics. Build and QA staging accounted for **847,063,485
bytes** of removed files by logical size. Retained the two release packages
and their manifest as deliverables. Earlier releases and historical evidence
remain available.
## v0.4.0.1_alpha — Simultaneous monitoring
The Feature counter advanced twice for simultaneous monitoring and
bidirectional network visualization. The Bugfix counter advanced once
for hover selection persistence. The existing collector architecture,
About tab and branding remain in use.
The production feedback for v0.2.0.0_alpha established native installation,
Explorer hover activation, popup pinning, local telemetry and remote
connections to Linux target A, Linux target B and Linux target C. The checks below cover the new
behavior on a private native Windows desktop.
| Requirement | Implementation and verification |
| --- | --- |
| Independent simultaneous views | All Systems renders one row of six resource plots per enabled machine in the hover and expanded monitors. Expanded rows have a Measurements control. The private desktop showed Local Machine, Linux target A, Linux target B and Linux target C together, and a smaller popup viewport exercised both scrollbars. |
| Tray modes | Overlay, Stacked, Composite and Application Icon passed native regression checks. |
| Persistent hover selections | The shared machine selection and hover history range write immediately. Native tests covered dismiss and reopen, pin and unpin, opening and closing the expanded window, minimize and restore, an SSH disconnect and reconnect, and a fresh application process restoring All Systems and the five-minute interval. |
| Independent sampling | The collectors already own separate workers and intervals. An automated stalled-SSH test verified a second worker continued collecting. Live checks observed three distinct SSH workers and separate per-machine histories, with a one-second local interval and two-second remote intervals. |
| Network directions | IN is green and OUT is red by default. Both colors are configurable. A network chart uses one throughput scale across both directions, including the individual interface and archived-data views. Tests covered shared auto and fixed spans, Windows interface replacement, Linux interface replacement, reset and reboot, and legacy combined records. Linux target C produced 20 nonzero live samples in each direction during the run. |
| Existing data | Native monitoring used temporary copies of the existing settings and known-hosts files with the existing credential references. Original files passed before-and-after verification. The existing selected local interfaces reported zero traffic during this run. Linux target C showed unavailable GPU and VRAM values. |
### Resource use with four connected machines
| View | Sample time | CPU, whole workstation | CPU, one logical processor | Working set |
| --- | ---: | ---: | ---: | ---: |
| Tray | 12 s | 0.269% | 4.297% | 152.11 MiB |
| All Systems hover | 12 s | 0.358% | 5.729% | 159.46 MiB |
| All Systems expanded | 12 s | 0.260% | 4.167% | 162.32 MiB |
### Release verification and cleanup
All 17 automated tests passed. Native tray and About regression checks also
passed at 150% Qt scaling. The final portable executable opened and shut
down twice on the private desktop. The final setup and executable passed
x64 and embedded icon checks.
The disposable upgrade used the v0.2.0.0_alpha and v0.4.0.1_alpha frozen
payloads with the release installer recipe and a separate test AppId.
Installation, upgrade and uninstall returned 0. The upgraded installed
executable opened and shut down twice. The settings and original
credential references remained byte-for-byte intact. The copied database
retained its legacy combined reading and received new IN and OUT records.
The production installation and its profile and trust files passed
before-and-after verification. The in-place upgrade and new live Explorer
hover on the active desktop remain production acceptance checks.
| Final release file | Bytes | SHA-256 |
| --- | ---: | --- |
| Windows x64 installer | 44,510,942 | 14df73209ad422e5a7075a75a03cebbedbc41d5a3f72a26a17382734ccccf571 |
| Windows x64 portable ZIP | 58,362,591 | 753ee08ba4c8b452c56cbc560efd3c19e6cef5e583564f165e8d3269ab28f4a6 |
Cleanup removed build staging, the compiler and dependencies, test profile
copies, portable extractions, disposable installs and installers, and
interim screenshots. Measured files reclaimed totaled 1,215,378,958 bytes
(1.13 GiB), excluding short-lived unit-test scratch files. The six requested
screenshots, current release and checksum manifest remain. The previous
release packages were retained because v0.2.0.0_alpha is still the
production installation.
## v0.2.0.0_alpha — Design Creations branding
The Feature counter advanced from 1 to 2 for the new About tab and selectable
tray display. The About tab and tray menu use the same authoritative version
source as the executable and installer.
The About design follows the inspected Ink & Iron Workshop About screen and
installed UI components, including the application and company graphics
flanking a centered serif title, compact information group, View Details
control and inline changelog. Patch Studio and Adaptive Maintenance source
provided additional read-only references for document navigation, attribution
and Windows application identity. Adaptive File Transfer corroborated the
attribution. The Workshop source checkout was unavailable locally. The
inspected Workshop UI and peer references did not expose a tray menu to mirror,
so ARM applies their palette and menu spacing to the requested commands.
ARM uses the supplied 1040 × 1069 application image, transparent emblem,
Design Creations logo and nine-size ICO as its canonical runtime assets.
The original compact icon variants remain source artwork. The Windows
executable, installer and shortcut definitions share the branded icon and
application identity. About includes the bundled Project Guide and a verified
public contact link. The configured Git origin's web view returned HTTP 404
to an anonymous request. ARM has no declared software license or update
channel. Dependency notices remain available. [Design Creations](https://www.designcreations.us/) · [Contact & Support](https://www.designcreations.us/contact/index.php)
### Branding validation
All 13 automated tests passed. Native Qt runs on a private Windows desktop
passed at 100% and 150% scale. They checked the About tab, its document and
details controls, website and support URL routing, tray menu navigation,
monitor pinning, local and remote target selection, and all four tray
displays. The runs observed live local telemetry and loopback SSH telemetry.
The normal graph replaced the branded startup fallback when data arrived.
All nine ICO frames had transparent and opaque pixels, with effectively
transparent corners. The visible artwork and installer wizard were reviewed
from private-desktop captures.
Both x64 packages passed their SHA-256 checks. The embedded icon groups
contained all nine sizes. The portable app and installed app opened with
the branded native window icon and shut down cleanly. A disposable
v0.1.0.0_alpha installation was upgraded to v0.2.0.0_alpha, reinstalled
and uninstalled. The checks verified the company name, support and website
entries in the installed application registry and preserved sample
settings, a machine profile with its credential reference, and history.
Shortcut definitions share the executable icon and AppUserModelID.
Visual verification in the active Explorer notification area, taskbar,
Task Manager and desktop shortcut was outside the isolated test.
| Final release file | Bytes | SHA-256 |
| --- | ---: | --- |
| Windows x64 installer | 44,498,649 | `804f6c3d594a71a01d7b44137758095e42f65f5ec2e062695db48a2f1e2b59e2` |
| Windows x64 portable ZIP | 58,353,462 | `3e441381516a223516b778a306ee1e881deed4b9b343197d04d769b7364a76ea` |
Cleanup removed the temporary installer and dependency staging, four build
staging directories, disposable Windows installs, temporary profiles and
SSH fixtures, private-desktop captures and superseded packages. Measured
file sizes reclaimed totaled 1,979,949,758 bytes (1.84 GiB), excluding
short-lived unit-test scratch files. The project retains the current
installer, portable ZIP and checksum manifest as release deliverables,
along with the source, supplied artwork, documentation and maintained tests.
## v0.1.0.0_alpha — Initial implementation
## Implementation matrix
| Requirement | Implementation | Automated evidence | Native or live evidence and limits |
| --- | --- | --- | --- |
| Dynamic Windows tray and Overlay, Stacked, Composite | Implemented using QSystemTrayIcon and QPainter | Resource normalization and per-machine Composite tests | Native Qt builds distinct icon images for all three modes. Explorer registration and recovery need a live taskbar. |
| Custom popup, sizing, dismissal and pinning | Implemented with Windows cursor position and Qt's native notification-area rectangle | Hover state, dismissal, placement and negative-coordinate tests | Popup, six graphs and pinning exercised on a private desktop. Actual pointer movement over an Explorer icon, desktop sleep/resume, and physical mixed-DPI taskbars remain open. |
| Expanded monitor, ranges and multiple machines | Implemented with resource charts, per-device detail, current and history statistics, connection state and timestamps | History and independent machine tests | Expanded window, live values and device selection exercised. Archived statistics use retained plot observations for long selections. |
| Windows CPU and memory | Implemented using timed CPU deltas, physical and logical topology, memory, commit and pagefile | First-sample and native provider tests | Verified workstation telemetry. Windows CPU temperature and power are unsupported in this alpha. |
| AMD, Intel, NVIDIA and dedicated VRAM | Implemented with DXGI PCI identity, native WDDM engine and memory counters and NVIDIA NVML sensors | Engine aggregation, valid zero, matched capacity and sampled provider tests | AMD Radeon 780M and NVIDIA RTX 5050 Laptop GPU detected with native readings. No Intel GPU was available. AMD and Intel use WDDM counters on Windows and expose only the features supplied by those counters. Vendor clock, thermal, fan and power readings for these two vendors on Windows are deferred. |
| Storage and network | Implemented with whole physical disk counters, mode selection, directional network data and default physical-adapter inclusion | Counter reset and network-selection fixtures | Two physical drives and active network throughput verified. No live 10 GbE, VPN or storage pool validation. |
| SSH Linux and connection management | Implemented with one persistent channel per target, password and key authentication, host verification, reconnect and status | Loopback password and encrypted private-key tests, unknown and changed keys, reconnect after loss, and Linux counter fixtures | Windows loopback sessions exercised. Live Linux validation on Linux target A and Linux target B requires authorized connection details. Their hosts and credentials were neither inferred nor accessed. |
| Credentials and settings | Implemented with Windows Credential Manager references and atomic per-user settings | Credential round trip, namespace validation and settings persistence | Settings and target operations exercised on the isolated Windows desktop. |
| Independent collection and optional history | Implemented with collector and SQLite workers, in-memory rings, gap detection, batching, retention and clear | Worker stop, ring, SQLite flush/read/clear tests | Tested locally and with the loopback targets. Maximum database size is enforced periodically. SQLite working files can temporarily exceed the target. |
| Startup and shutdown | Implemented with a per-user startup toggle, clean exit and independent monitor window | Worker shutdown and SQLite drain tests | Native startup and shutdown exercised. Windows sign-in autostart remains a live acceptance check. |
| Windows x64 distribution | Implemented with a PyInstaller payload, Inno Setup installer and portable ZIP | Build verifies archive integrity and artifact hashes | See package validation below. Windows 10 and ARM64 were outside workstation validation. |
| Remote Windows and optional agent | Provider interface and profile status implemented. Transport and agent deferred. | Unsupported status surfaced by the UI | No remote Windows telemetry claim or deployment. |
## Workstation evidence
Native validation uses a private Windows desktop without switching the author’s
desktop or sending it input. The workstation is Windows 11 x64 build 26300.
The application registered Qt tray objects. The private desktop has no Explorer
notification area and returned no icon rectangle. Qt’s Windows backend calls
Shell_NotifyIconGetRect and handles the shell's TaskbarCreated message. These
source paths do not constitute a live shell-restart result. [Qt Windows tray backend](https://github.com/qt/qtbase/blob/v6.11.2/src/plugins/platforms/windows/qwindowssystemtrayicon.cpp)
The automated suite passed 13 tests on November 26, 2026. A Windows Bash
protocol check produced two delimited responses from one process. Live
procfs, sysfs and hardware validation is represented separately in the matrix.
The native Windows GUI suite passed at 100% scale and its smoke run passed at
150% scale. The full run produced distinct Overlay, Stacked and Composite
icon images and exercised single and separate tray objects, popup
pinning, expanded graphs, settings and target management. The two concurrent
SSH fixtures delivered 13 and 7 readings. The AMD Radeon 780M and NVIDIA
GeForce RTX 5050 Laptop GPU both supplied dedicated memory readings. The
full run also observed AMD engine activity and NVIDIA temperature and power.
## Resource consumption
Measurements use process CPU time and resident memory in the native private
desktop. Total-machine CPU is normalized by 16 logical processors. Loopback
targets use an authenticated test server on the same workstation and supply
fixture frames. These results cover the application and same-process loopback
fixture threads in the remote scenarios.
| Scenario | CPU, entire workstation | CPU, one logical processor | Working set |
| --- | ---: | ---: | ---: |
| Local tray only | 0.106% | 1.693% | 138.53 MiB |
| Pinned popup | 0.220% | 3.516% | 140.16 MiB |
| Expanded window | 0.342% | 5.469% | 143.12 MiB |
| One SSH loopback target | 0.155% | 2.474% | 146.64 MiB |
| Two SSH loopback targets | 0.146% | 2.344% | 147.08 MiB |
| Two manually disconnected targets | 0.098% | 1.562% | 148.02 MiB |
Each row is a 12-second observation. Local tray-only collection ran at one
second and measured below 1% of total workstation CPU capacity. Explorer's
work and long-duration memory growth require separate measurement.
## Distribution and cleanup
The original release contained the x64 installer, the portable ZIP and their
SHA-256 manifest. The alpha artifacts were unsigned. Signing, live Explorer
validation, real remote Linux validation and extended-duration performance
characterization are outstanding production acceptance items.
PyInstaller 6.22.3 froze the application with its Python and Qt runtime.
Inno Setup 7.1.1 compiled the installer. Both PE headers identify x64.
The portable archive passed its CRC check and contains the Qt Windows plugin
and Linux telemetry program. The supplied ARM icon is in the application
and installer resources.
The final portable and installed builds each opened twice on an isolated
Windows desktop. Closing the monitor window left the tray process running.
Both processes exited cleanly when their private message loops were told to
quit. A silent installation, same-version reinstall and uninstall each
returned code 0. Their temporary profile, settings and history test files
were preserved through reinstall and uninstall. Launching on a
Python-free Windows system and a version-to-version upgrade remain untested.
| Final release file | Bytes | SHA-256 |
| --- | ---: | --- |
| Windows x64 installer | 40,558,009 | `b6d0a56975311b8c26eb1a67542dbb88cb6f566232bdef5bbbd669b8a9e8c239` |
| Windows x64 portable ZIP | 56,159,793 | `6b39ccac9db4f4dfb46f8904723967724b0405b986db6d508d9b6fc2249da41f` |
Cleanup removed the disposable installation and uninstall registration,
portable extractions, private-desktop test profiles and logs, SQLite fixtures,
SSH fixtures and test credentials, compiler and dependency staging, failed
and successful build intermediates, and superseded packages. Measured file
sizes reclaimed total 1,142,127,048 bytes (1.06 GiB). This excludes short-lived
unit-test fixtures and the automatically deleted build attempt whose size
was unmeasured. That milestone retained the verified installer, portable
ZIP and SHA-256 manifest until the branding release superseded them.