feat(module): add btop/bmon/iftop/iotop/nmon/powertop monitoring modules - #381
Merged
Conversation
Six apt-archetype `optional` monitoring modules for the small-tools modularization program, each installing its like-named apt package via module_use_apt_archetype with module-defined detect()/is_recommended() and a real doctor() that verifies the tool actually runs: - btop — resource monitor; doctor: btop --version - bmon — bandwidth monitor; doctor: bmon -V - iftop — network bandwidth by host; doctor: command -v iftop - iotop — I/O monitor; doctor: command -v iotop - nmon — performance monitor; doctor: command -v nmon - powertop — power consumption monitor; doctor: command -v powertop iftop/iotop/nmon/powertop ship no clean version flag, so their doctor probe verifies the binary resolves on PATH. Each declares en + zh-TW DESCRIPTION, SUPPORTED_UBUNTU 22.04/24.04/26.04, and a TEST_VERIFY_CMD matching its doctor probe. All satisfy the 10-function module contract (ADR-0002, #305 conformance) and are both standalone- and engine-invocable. Each module ships a unit spec (metadata sanity, is_installed false on a clean container, dry-run no-ops, idempotency, sidecar lifecycle, standalone CLI, verify/doctor incl. a real-binary probe). doc/module/INDEX.md regenerated (54 modules); [Unreleased] CHANGELOG entry added. Gates green in Docker: test-unit (incl. contract_conformance), test-integration, lint. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NX5H2vuMTv4mBmjpPYoS3s
# Conflicts: # doc/module/INDEX.md
ycpss91255
enabled auto-merge (squash)
July 11, 2026 11:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds six apt-archetype
optionalmonitoring modules for the small-toolsmodularization program. Each installs its like-named apt package via
module_use_apt_archetype, keepsdetect()/is_recommended()module-defined, and overrides
doctor()with a real health probe thatverifies the tool actually runs.
btopbtopbtop --versionbmonbmonbmon -Viftopiftopcommand -v iftopiotopiotopcommand -v iotopnmonnmoncommand -v nmonpowertoppowertopcommand -v powertopiftop/iotop/nmon/powertopship no clean version flag, so theirdoctor probe verifies the binary resolves on
PATH.Details
optional, tagmonitoring,SUPPORTED_UBUNTU=("22.04" "24.04" "26.04"),RISK_LEVEL=low,VERSION_PROVIDED=apt-managed.DESCRIPTIONand aTEST_VERIFY_CMDmatchingits doctor probe.
test/unit/module/contract_conformance_spec.bats(test(module): module-iterating contract conformance meta-test #305), and are bothstandalone- and engine-invocable.
doc/module/INDEX.mdregenerated via./script/gen-module-index.sh(54 modules).
[Unreleased]CHANGELOG entry added.Files
module/{btop,bmon,iftop,iotop,nmon,powertop}.module.shtest/unit/module/{btop,bmon,iftop,iotop,nmon,powertop}_spec.batsdoc/module/INDEX.md,doc/changelog/CHANGELOG.mdTest plan
Ran all gates blocking-foreground in Docker via
justfile.ci:just -f justfile.ci test-unit— green (4214+ tests, incl.contract_conformance5/5)just -f justfile.ci test-integration— green (24 tests)just -f justfile.ci lint— green (ShellCheck / fish syntax / Hadolint)Each new module spec covers: metadata sanity,
is_installedfalse on a cleancontainer, dry-run no-ops, idempotency, sidecar lifecycle (ADR-0001),
standalone CLI, and
verify/doctorincluding a real-binary probe.