Files
ukmesh/docs/quality.md
T
hermes-gadgetandhermes 9e0b01b5f4 chore(quality): land the fleet quality floor (hcheck + verify.toml + quality.sh) (#252)
* chore(quality): add fleet pattern checks (hcheck)

Commit-time check for failure modes the existing CI lint/type/test jobs do
not cover. Legacy violations, where present, are recorded in
.hcheck-baseline.json; new ones fail.

* chore(quality): refresh hcheck baseline after rule refinements

Rules now exempt bounded retries, steady-state pollers and loops with an exit
path, and report a joined shell command at the line it starts.

* chore(quality): staged floor with a real test check (F7)

No verify.toml meant no completion evidence at all. Required: the
no-infrastructure test subset (Mosquitto reloader + CI retry helper, 12 tests).
lint and hcheck run advisory: this repo has no ruff config (364 findings on
defaults) and no hcheck baseline, so requiring them would certify nothing.
The excluded GDAL/Postgres/Redis suites are named in scripts/test.sh.

* chore(quality): declare the default task and refresh the floor script

* chore(quality): refresh the floor script (quoting, vacuous-scope, hcheck)

* chore(quality): incremental lint says when it has nothing to check

---------

Co-authored-by: hermes <hermes@local>
2026-11-18 01:26:50 +00:00

861 B

Fleet pattern checks

hcheck runs at commit time. It covers the failure modes this fleet keeps repeating that ruff, eslint and tsc do not: swallowed exceptions, unbounded sleep polling, shell=True with interpolation, os.system/pkill -f, TODO without a ticket, network calls without a timeout, and unsafe shell patterns (curl | sh, docker volume rm).

The repo's CI already runs its own lint, type and test jobs; this is the extra layer for those failure modes.

Allow a rule only with a reason and an expiry, on the line above the code:

# hcheck: allow H002 reason="daemon poll interval, no event source" until=2027-01-01

An annotation without a reason, or past its expiry, is itself a violation (H900).

.hcheck-baseline.json records violations that predate the gate; new violations fail and the baseline may only shrink.