Pipeline hygiene
The contract is recruiting-loop.
Steps
-
application.listfor every active application of the mapped roles, into a file. Reduce it in code to: key, role, stage, owner, days in stage, days since the last message from the team, newest loop marker. -
Classify each application, in this order, first match wins:
Class Rule Action retentionpast retention_days(contract §8)contract §8 waitinga Review decisionitem open for more than 3 daysa line in the digest no-ownerno owner in an active stage a hygiene · no-ownernotestuckin one stage for caps.stuck_daysor morea hygiene · stucknoteno-updateno message from the team for caps.no_update_daysa statusdraft (recruiting-candidate-updates), undercaps.drafts_per_dayOne note per application per week: skip it when a
hygienenote with the same class is younger than 7 days. -
The digest. One Review output (
--kind batch), and one message tonotify.digestwhen set: counts per role and stage, then the lines per class by key suffix and record link. No names, no emails. -
Rubric check. Per role, count the screened applications by tier and by the person's decision. A tier where more than 90 % of decisions differ from the recommendation: one line in the digest that asks a person to review the rubric. Never count by a protected attribute.
Run line
recruiting-pipeline-hygiene: open=<n> stuck=<n> no_update=<n> no_owner=<n> waiting=<n> retention=<n> drafted=<n> errors=<none|code>


