Ritual: The Inspection
Trigger
Every weekday at 9:00 AM local time.
Status
Runs on its declared schedule in .github/workflows/rituals.yml. Run it manually with:
What It Does
Scans the codebase for code health signals: TODOs and FIXMEs, files exceeding size limits, wildcard dependency versions, and any patterns the Doorman considers hygiene violations.
Steps
- Search for
TODOandFIXMEcomments — record file:line for each - Find files exceeding 500 lines — list them with line count
- Parse
package.json(and equivalents) for wildcard versions - Check test file ratio — flag source files with no corresponding test file
- Check for files modified in the last 7 days with no corresponding test changes
- Produce the health report
Report Format
Notes
- File size limit: 500 lines (matches
.github/scripts/filesize-check.sh); configurable thresholds are planned - TODO age threshold: flag TODOs older than 30 days
- Does not modify any files — report only
- The report's findings can be checked against
.agenthood/provenance/— past inspection runs are tamper-evident (ADR-015)