Files
fleet/scripts
CatoandClaude Opus 5 eea5382065 fix(ci): a workflow younger than its cadence has not 'never run' (#110)
The first real scheduled run of audit-health reported two problems. One
was genuine (email-canary). The other was entity-drift.yml, added by #108
at 07:22 that morning on a '41 6 * * *' cron — the day's tick had already
passed — and this rule charged it seven hours later for failing to do
something the calendar made impossible.

A new rule's first finding deserves more suspicion than its hundredth, and
this is the third time in this file's short life that a rule encoded the
example it was written from rather than the property that example
illustrated: ivy-portal, aoz-begleitung, now this.

A workflow whose FILE is younger than its own cadence is therefore not
counted; it prints 'too new to have run' so the reason is visible rather
than silently skipped. The add date comes from git log --diff-filter=A,
the same file the threshold is already derived from.

Two exceptions keep it from becoming a blanket excuse, both pinned:

  - an OLD workflow that has never run is still a finding;
  - a REFUSED file — the one GitHub lists by PATH — gets no grace at any
    age, because that is a defect and not a calendar.

Verified against the live fleet: 2 problems -> 1, and the one that remains
is the real one.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-17 07:58:04 -07:00
..