feat: implement issue #2277 — Fleet Monitor aborts every run: legacy_attr_file used before it is created (unbound variable at fleet_monitor.sh:221)
Problem
Fleet Monitor aborts every run: legacy_attr_file used before it is created (unbound variable at fleet_monitor.sh:221)
From the issue: The scheduled Actions Fleet Monitor has failed on every recent run (2026-10-09, 10-10 and 10-11; latest https://github.com/petry-projects/.github-private/actions/runs/38141887715). It aborts in the first per-repo loop:
Risk
Medium — changes GitHub Actions workflow behavior, which is exercised only post-merge; verify via the affected workflow runs.
Test plan
Tests added/updated: tests/fleet_monitor_tempfile_order.bats. Verification: bash scripts/dev-lead-lint.sh (shellcheck --severity=warning) ran pre-commit; the bats suite runs in CI.
Rollback
Revert this PR. No non-revertible side effects (no tags, migrations, or external state).
Monitoring
Watch the affected workflow run(s) in the Actions tab and this PR's Lint check for regressions.
Closes #2277