Skip to content

The Daily Fleet Loop

The daily fleet loop (fleet-pulse.yml): gather every signal, rank the failing and expensive workflows into one queue, and let the doctor open the fixes.

The dash's continuous analysis → remediation cycle. Once a day it measures the whole fleet, records what it found as durable data in the monorepo, and dispatches a Claude Code agent to fix the workflows that are broken or burning time — opening the fix as a draft PR in whichever repo owns it.

One workflow does all of it: fleet-pulse.yml.

The loop

              ┌───────────────────── daily 05:37 UTC · fleet-pulse.yml ─────────────────────┐
              │                                                                              │
              │   job: pulse                                    job: doctor  (needs: pulse)  │
              │  ┌────────────────────────────────┐            ┌────────────────────────┐   │
 registry ──▶ │  │ 1. GATHER                      │            │ 3. FIX                 │   │
 _data/       │  │   dash-gen actions   (cost)    │            │  Opus Claude Code      │   │
 projects.yml │  │   dash-gen ai-usage  (spend)   │            │  · reads each run's    │   │
              │  │   dash-gen ledger    (actuals) │            │    failing log         │   │
              │  │   dash-gen daily     (digest)  │            │  · finds root cause    │   │
              │  │   dash-gen triage    (open)    │            │  · opens a DRAFT PR    │   │
              │  └───────────────┬────────────────┘            │    with the fix — in   │   │
              │                  ▼                             │    the hub OR in the   │   │
              │  ┌────────────────────────────────┐            │    submodule that      │   │
              │  │ 2. PUBLISH + TRIAGE            │            │    owns the workflow   │   │
              │  │   publish-data → one commit    │            │  · falls back to a hub │   │
              │  │     (direct push, else a PR)   │            │    issue when it can't │   │
              │  │   dash-gen remediate → queue   │──────────▶ │                        │   │
              │  └────────────────────────────────┘            └───────────┬────────────┘   │
              │                                                            │                │
              └────────────────────────────────────────────────────────────┼────────────────┘
                                                                           ▼
                       tomorrow's run sees the open PR/issue and does NOT re-file it

1. Gather

Five generators run off one checkout and one Python setup. Each is independently fault-tolerant (continue-on-error) and its outcome is reported in the run summary — one degraded API call costs that signal, not the whole day's data.

Generator Writes Signal
dash-gen actions _data/actions_usage.yml per-workflow cost / effectiveness / waste, with slow/flaky/high-cost-low-value flags
dash-gen ai-usage _data/ai_usage.yml fleet Claude Code touchpoints (runs, commits, PRs)
dash-gen ledger --no-local _data/engagements.yml engagement actuals accrued from that evidence
dash-gen daily _reports/daily/<date>.md prior-day commits / PRs / issues / releases / CI failures
dash-gen triage _data/fleet_triage.yml open state: every open issue, open PR (with CI status), and each workflow's latest conclusion, plus per-repo attention scores and each failing workflow's fix PRs — the /triage/ portal

External mirrors (e.g. microsoft/skills) appear in the digests but are excluded from totals, scores, and anything actionable — their failures are not ours.

2. Publish + triage

All five outputs land in one commit through utilities/publish-data, which pushes straight to main when branch protection allows it and otherwise opens a stable-branch pull request (chore/fleet-pulse, updated in place, auto-merge requested). See Why publishing is indirect.

Then dash-gen remediate (remediation.py) merges the two actionable signals into one ranked queue:

  • failing — from fleet_triage.yml: every workflow whose latest completed run is red. This is standing state, so a workflow broken for three weeks stays on the queue until it's fixed — the class of failure a prior-day-only scan misses.
    Tracked branch only. See Which runs count as failing.
  • expensive — from actions_usage.yml: slow, flaky, cancel-heavy, cron-heavy, or high-cost-low-value.

Candidates are keyed on owner/repo:workflow-path, so a workflow that is both red and slow is one entry with both signals — not two tickets, which is how the previous split loops turned a queue into noise. Each is then classified hub (fixable in this checkout) or submodule (needs a cross-repo PR), ranked by severity then wasted minutes, de-duplicated against open issues and open PRs in both the hub and the target repo, and capped.

Which runs count as failing

A behavioural contract of the triage snapshot, and not obvious from the data: fleet_triage.py reads each workflow's latest completed conclusion from the repo's tracked branch only, and drops pull-request runs entirely rather than keeping them as a weaker signal.

The tracked branch is the registry's declared branch, falling back to GitHub's default_branch — never a hard-coded main, because this fleet deliberately tracks non-default branches, which is the same reason check-drift.sh treats branch divergence as advisory rather than gating.

Both filters are needed, and the second is not redundant:

  • The branch filter is applied server-side (get_workflow_runs(branch=…)), which is also what stops PR runs from consuming the 80-run scan budget before a busy repo's main runs are reached.
  • GitHub's branch= matches a run's head branch, so a pull request opened from a fork's main produces a run with head_branch: main that passes the branch filter. Pull-request events are therefore excluded by event as well.

The rationale is that a pull_request run failing on an unmerged topic branch is the gate working — feedback to that PR's author, not fleet breakage. Reported as failing it entered this queue at the top severity weight there is (100), spending a capped Opus doctor slot to hand an agent a work order saying "fix the root cause… do not paper over it" about a workflow that is green on the tracked branch. Acting on that literally means weakening a working gate: the exact failure the "never make a red workflow look green" rule exists to prevent, arriving through the front door. Fixed at the layer that produces the signal rather than with a second downstream filter in remediation.py, per HARNESS.md's ratchet rule (bamr87/bamr87#205).

The filters fail open: a run missing head_branch or event is kept. Dropping every run would report the fleet permanently green, which is strictly worse than the bug being fixed — test_fleet_triage.py asserts that converse directly.

Note that actions_usage.yml deliberately keeps its unfiltered view: it measures cost, and PR runs spend real minutes. Its correctness-flavoured flag (flaky) is guarded downstream instead, by supersede_on_success below.

A failing workflow and the PR that fixes it

The triage snapshot also links each failing workflow to the open pull requests that fix it (FF-0036). On 2026-11-02 bashcrawl's CI was red on main at priority 90 and three PRs sat at 70 failing the same Lint job, while #133, the green, clean fix, appeared nowhere: a green PR idle for 14 days or less never entered the inbox, and the fleet doctor dedupes only PRs carrying its own marker.

For each repo with a failing tracked-branch workflow, fleet_triage.py grades up to --fix-pr-cap (default 5) open, non-draft PRs with passing head checks, reading CI state past --pr-ci-cap when it has to. Each PR gets the strongest evidence it shows for each failing workflow:

Evidence What it takes
verified A run of the failing workflow on the PR's head SHA, newer than the branch's latest failure, in which every job that failed on the branch ran and passed. A job skipped by an if: (a push-only deploy) or missing from the run does not count, which keeps any green docs PR from passing as a fix.
doctor The PR body carries the fleet doctor's marker for that workflow (remediation.marker_key).
weak The PR touches the workflow file, its title starts fix(ci): or ci:, or its branch starts fix/ci. A scoped ci(claude): change on a ci/… branch is not a claim to fix CI: the fleet-wide harness PRs carry exactly that and matched every red in the first live run.

The failing workflow records its failed_jobs, the tracked branch and its fix_prs (strongest evidence, then oldest, each with its mergeable_state and the PRs it clears). A PR clears another open PR when every check that PR fails is a job that failed on the branch, so it turns green once the fix merges and its branch is updated. A PR that also fails a check of its own is left out. A verified or doctor fix PR's own item in prs.items carries clears (the workflow, then those PRs), fix_evidence, mergeable_state and merge_ready. mergeable_state comes from the single-PR GET, because the list endpoint omits it. GitHub computes it lazily, so a null or unknown first read is retried once and then reported as unknown, never looped.

A verified or doctor fix that is green and clean becomes one inbox item of kind merge at priority 95, above every failing workflow: "Merge #133: clears CI on main and #127, #134, #137 once their branches are updated". Its clears lists the workflow and the PRs. Each failing workflow picks one subject PR (strongest evidence, then oldest) and names any other ready fix as also ready, so the inbox never shows two merge items for the same red. A PR that fixes two reds is one item, and its own idle row gives way to the merge item. The items a merge covers keep their rank and gain fix: #133. A verified or doctor fix that is not clean (dirty, blocked, behind, unstable or still unknown) makes no merge item, and the annotation shows its state, as in fix: #133 (dirty). Weak evidence only adds possible fix: #N to the failing workflow and changes no priority.

The extra calls are GET requests only, made only for repos with a failing workflow and capped per repo. The snapshot's fix_links block and the run's summary line count them. The merge stays a human's call (constitution § 12). fleetcore's repo_items mirrors merge_plan for a repo's drill-down (tools/test_fleetcore.py holds the two equal), the console Inbox and the TUI render the kind, and the fleet_inbox MCP tool returns clears. The Work board puts the fix PR first (WORK-BOARD.md), and remediation.py counts a red with a verified fix PR as already tracked (see the guardrails below).

Five guards on the queue

The failing signal reads each workflow's latest conclusion, so it is already point-in-time. The expensive signal is an average over the 14-day window, which knows neither the order of runs nor who started them nor what the minutes bought — and each blind spot manufactures candidates. A fourth is shared by both signals: each records what the latest verdict was and neither asks when it was reached. A fifth asks how much: the two cost flags that measure waste are shares over a 4-job-minute floor, so one bad burst on a cheap workflow raises them. Each guard is a switch in _data/fleet.yml → remediation::

guard key what it does why
superseded by success supersede_on_success (default true) drops failing, flaky A workflow whose latest non-skipped run was green is not broken now. Three runs five and nine minutes apart — fail, fail, success — average to 33% and read as failing, but that is the signature of a bug being fixed, not a standing one.
interactive dispatch interactive_dispatch_pct (default 60) drops high-cost-low-value, slow, cancel-heavy, and the min_priority fallback Runs a human triggered by hand are expected to fail and to burn minutes — that is what building something looks like. Averaging them in beside scheduled and PR runs makes any repo under active development read as sick. The event breakdown is already in the analytics record, so the discount costs no extra API calls.
productive schedule productive_schedule_pct (default 90, >100 disables) drops high-cost-low-value, slow, cancel-heavy, cron-heavy (true by construction at ≥ 90% scheduled), and the min_priority fallback slow ranks on duration alone, so it cannot tell "long because wasteful" from "long because it is bounded, gated work deliberately moved off the PR path". A cron workflow that is 100% green with zero recorded waste is long because it is working — its runtime is the unit price of its output. And since nothing about a healthy workflow is ever going to change, it re-takes a slot every single cycle. Under that scheduled share, a workflow that is as green and as free of waste still loses cron-heavy alone: the flag fires from 60% scheduled, and one green pull-request run had put a daily canary at 6 of 7 scheduled and into the queue (bamr87/bamr87#762). Its cost signals keep the 90% bar, because below it a duration may belong to the pull-request runs.
stale red stale_after_days (default 7, 0 disables) de-prioritises — never drops A workflow triggered rarely (issues: opened, workflow_dispatch, a weekly cron) cannot clear its own red: the only thing that would is a fresh green run nothing is going to produce, so a resolved incident holds one of four slots forever. Applies to both signals. The timestamp was already on each of them and carried for display only, so this costs no extra API call.
waste floor min_cost_waste_min (default 15, 0 disables) drops high-cost-low-value, cancel-heavy, and the min_priority fallback they would leave behind; never slow, cron-heavy, failing or flaky Both flags are shares (of minutes ending in non-success, of runs cancelled) over a 4-job-minute floor in actions_analytics, and a doctor slot costs ~46 Opus turns. A workflow that wasted fewer job-minutes than this in the window is not worth one on cost. slow is latency (a green workflow can be slow and waste nothing) and cron-heavy is the scheduled share, so the floor does not reach them. A record without waste_min is never floored.
fallback floor fallback_max_waste_pct (default 5, 0 keeps only the absolute floor) drops the min_priority fallback for an unflagged workflow whose waste, less its cancelled (superseded) minutes, is under min_cost_waste_min or under this share of its job-minutes The fallback ranks on volume, and volume is not a defect: it queued the hub's markdown-oneline on 12.4 wasted job-minutes (#920), drift-check on minutes its own cancel-in-progress superseded (#831), and githubai and bashcrawl CI on reds that were all pull requests' (#886). Real waste that is a real share of the minutes still queues.
Why the fourth guard down-ranks instead of dropping

The asymmetry is deliberate, and it is the rule the other four follow:

Suppress a signal only on positive evidence of health. Down-rank it on absence of evidence.

supersede_on_success may suppress outright because a later green run proves the workflow works, productive_schedule_pct may because 100% success beside zero recorded waste is positive evidence of health, and min_cost_waste_min may because a recorded waste_min measures exactly what its two flags are about. Staleness proves nothing — a workflow_dispatch-only deploy that has been broken for three weeks is stale and genuinely broken, and suppressing it would silently delete real coverage. So a stale candidate stays in the queue, is annotated with its age (latest run 2026-08-21 (8d ago, no run since)), and merely sorts below every live candidate of the same severity, where max_candidates pushes it off today's run without losing it. It resurfaces the moment nothing more urgent is queued.

Freshness is its own component of the sort key rather than a penalty subtracted from the score, because the score's spend term is unbounded — a large enough waste_min would otherwise buy a stale candidate its rank back.

The two signals timestamp runs in different formats (actions_usage.yml writes ISO-8601 with an offset, fleet_triage.yml writes "%Y-%m-%d %H:%M UTC", and PyYAML resolves an unquoted stamp to a datetime), so parse_run_time() reads all three. A missing or unparseable timestamp is treated as fresh: a guard that cannot read a clock must never invent staleness.

No guard weakens a real signal. A green workflow that is genuinely expensive keeps its cost flags — including a scheduled one, because recorded waste is exactly the evidence productive_schedule_pct requires to be absent; a red one keeps failing however it is triggered; a standing failure coming from the triage side is never suppressed; a stale one is ranked down, not removed; and one under the waste floor keeps every signal except the two that measure waste. Snapshots written before the supporting fields (last_conclusion, dispatch_pct, sched_pct, success_rate_pct, last_run_at) existed simply behave as they did before.

A note on where the slow flag is suppressed. usage_candidates() removes the analytics module's flags and then re-adds slow from the fleet's own absolute bar (slow_avg_min / slow_p95_min), so "long-running" means the same thing to the queue as it does to a human reading the dash. That re-add has to be gated on the guards too — suppressing a flag and restoring it one line later is a no-op. interactive_dispatch_pct and productive_schedule_pct are therefore applied in three places: the flag removal, the absolute-bar re-add, and the early continue that skips the min_priority fallback.

actions_analytics also reports success_rate_pct / effectiveness_pct as null for a workflow with no verdicts at all — every run skipped by an if: gate. pct(0, 0) == 0.0 published "0.0% success" next to "0 failures", rendering a no data state through the has data path: on /actions/ it was indistinguishable from a workflow that failed every run. Null renders as —, and such workflows are omitted from the cost-vs-effectiveness quadrant rather than plotted at zero.

The first two came out of #92, where a healthy, switched-off workflow in bamr87/irony-works — green since fifteen minutes after the failures that flagged it — took one of the four remediation slots, and one of only three cross-repo ones. The third came out of #258 and #259, filed on the same morning and both consisting entirely of "the detector is wrong": bamr87/zer0-mistakes's nightly-extended.yml (13m of Playwright smoke behind a skip gate that demonstrably works — 9s on an idle night) and bamr87/it-journey's quest-fix-loop.yml (~4–5m of agent time per fix PR delivered). Two of four slots, spent re-deriving "no change needed" — and they would have come back every cycle. The fourth came out of #200: bamr87/gitorio's Factory: Gitorio Factory 1, red from a model-side outage that lifted on 2026-08-25 and never re-triggered because it fires on issues: opened. It was ranked 3rd of 49 — inside the cap — every morning. Adding the guard moved it to 15th and surfaced three more stale reds behind it, idle for 11, 38, and 43 days. The fifth came out of #823: bamr87/recon-engine's CI was queued on cancel-heavy for 4.0 wasted job-minutes in 14 days, every one from a single 5-commit burst that a working cancel-in-progress guard cut short, and the doctor's own write-up found nothing to change in the workflow and proposed the floor. It would equally have kept out bamr87/zer0-mistakes's issue-autopilot.yml, flagged high-cost-low-value on 6.6 wasted job-minutes from one failed run (#797).

3. Fix

doctor is a needs: pulse job — not a separate workflow_run workflow — so it runs off the same checkout and cannot be skipped by an upstream publish problem.

For each candidate the Opus agent reads the failing run's log and the workflow definition, forms a specific root cause, and then:

  • hub (bamr87/bamr87) → branches in the checkout, makes the minimal fix, opens a draft PR here;
  • submodule → clones that repo to a scratch dir (never into projects/), fixes it there, opens a draft PR in that repo. Requires FLEET_TOKEN;
  • can't fix safely → files ONE tracking issue in the hub.

The agent proposes; humans dispose. Draft PRs flow through the normal review + CI gate.

Guardrails

  • Code decides what's actionable, not the AI. Selection, merging, dedupe, ranking, and caps all run in remediation.py. The AI only investigates and authors on a pre-vetted, capped list — it cannot spam the fleet.
  • Caps come from _data/fleet.yml → remediation.max_candidates (default 4) and max_cross_repo (default 3). The cross-repo sub-cap stops a burst of submodule failures from starving hub fixes that could land the same day.
  • The cap is paid for out of a turn budget. doctor runs the agent with --max-turns 160, and one candidate costs ~40 turns: 2 reads to diagnose it (run log + workflow definition) and 7 to author the fix (clone, branch, read, edit, commit, push, gh pr create), plus margin for a wrong first guess. The cap and the budget are therefore one number, stated in two files — the workflow's --limit fallback shadows the registry value, so both move together or neither does. .github/scripts/dash-gen/test_fleet_pulse_doctor.py fails if they drift, or if the budget stops covering the cap. Set at 6 with a 120-turn budget, the agent exhausted its turns mid-queue and the run produced nothing — an unfinishable queue delivers fewer fixes than a shorter one.
  • The agent's allowlist has to cover its own prompt. The prompt tells it to read gh run view --log-failed; a pipeline is permission-matched per segment, so Bash(gh:*) does not cover the filter on the right of the |. The log-triage filters (grep, head, tail, wc, jq, …) are in --allowedTools for that reason, and the same test asserts it — a prompt that instructs a command nobody granted turns the budget into denials, silently.
  • Dedupe is marker-based. Every PR/issue body starts with <!-- fleet-doctor key="owner/repo:path" -->. Markers from the two retired loops (actions-review, daily-analysis) are honoured too, so open tickets from before the migration are not re-filed.
  • A verified fix PR counts as tracked. A failing workflow whose triage entry lists a verified fix PR (its own run passed every job that failed on the branch) is not queued, because a human-authored fix carries no marker. The work order names it under Already fixed by an open pull request, with its mergeable_state, and a plan-mode run skips it with the PR named. It is read from the snapshot, so it costs no call and applies offline too. --no-dedupe turns it off with the marker scan. doctor evidence is the marker the dedupe already reads, and weak evidence proves nothing, so neither counts.
  • Draft PRs only — never merges, never pushes to a default branch, never force-pushes, never touches submodule working trees under projects/, and never edits generated surfaces (_site/, _reports/, _data/*_usage.yml, _data/fleet_triage.yml, the README AUTO span, projects/SCHEMA.md).
  • Retired workflows are dropped. GitHub keeps a deleted workflow's run history forever, so one deleted while red stays "currently failing" in the triage data permanently. Each candidate's file is verified to still exist on its default branch before it is queued — checked at selection time, so the API cost is bounded by the cap. Ambiguity resolves toward keeping the candidate: an unreachable private repo 404s exactly like a deleted file, and dropping real work silently is worse than carrying one stale entry.
  • Token validity is probed, not assumed. A secret can be set and still be expired. pulse probes the write token against the API and reports the degraded capability, rather than inferring health from the secret's presence.
  • No green-washing. The agent is explicitly forbidden from adding continue-on-error or blanket retries to make a red workflow look healthy.
  • Degrades, never blocks. Without Claude auth the fixer is skipped and the data still lands. Without FLEET_TOKEN cross-repo fixes downgrade to hub issues. Both are reported in the run summary.

Why publishing is indirect

The three data-refresh workflows this loop replaces each ended in a bare git push to main. A ruleset was then added to bamr87/bamr87 — "Changes must be made through a pull request" and "Commits must have verified signatures" — and every one of them began failing on that final step, every day. Because actions-review.yml triggered on actions-usage.yml succeeding, it stopped running as collateral.

Every generator still worked perfectly. The data simply stopped being saved, and nothing said so; _data/actions_usage.yml sat three weeks stale while the daily runs went red in a tab nobody was watching.

Two structural lessons are baked into the replacement:

  1. The publish route is a property of the repository, not the workflow, and it can change without warning. So it is resolved at runtime by publish-data, which falls back to a PR rather than failing.
  2. workflow_run chaining is fragile — it couples workflows by display-name string and silently skips the downstream when the upstream fails for any reason. needs: within one workflow does not have that failure mode.

Running it

# Locally — any single signal (needs gh auth or GH_TOKEN):
tools/dash actions                  # cost/effectiveness analytics
tools/dash daily                    # prior-day digest + failure work order
tools/dash triage                   # open-state snapshot → _data/fleet_triage.yml

# The merged remediation queue:
tools/dash remediate                        # respects _data/fleet.yml caps
tools/dash remediate --limit 3              # override the cap
tools/dash remediate --no-dedupe            # skip the open-issue/PR check (offline)

# In CI — scheduled daily 05:37 UTC, or on demand:
#   Actions ▸ 🩺 Fleet Pulse ▸ Run workflow
#   inputs: days, max_candidates, dry_run (data only, no fixer), skip_publish

Run it locally

The doctor's agent step runs on a workstation through the JEV loop runner (JEV.md; epic #484, #488) from the same spec CI's prompt is held to — tools/jev/steps/fleet-pulse/doctor.yml + doctor.prompt.txt; python3 -m tools.jev steps check keeps the workflow's inline prompt, caps and allowlist equal to it. Three things differ from CI, by design: the queue is worked one candidate per attempt (dash-gen remediate --plan-dir splits it and writes one work order per candidate), the attempt's shell has no network and no credential (the planner fetches what Step 2 of the prompt would read with gh — the filtered --log-failed log, the workflow definition, a slow run's step timings — into each work order under an Evidence heading, and the agent reads it there), and the agent files nothing: its edits to the hub clone come out as a patch, the gh pr create or gh issue create it asked for (refused by the permission layer) comes out as the title and body, MARKER line first, and dash-gen doctor-file writes the dry-run preview for review. A submodule candidate cannot be cloned offline, so the agent falls back to Step 3c and the preview is the hub issue it asked for.

tools/dash loop doctor fleet-pulse                       # $0 host checks for this step (and the one-time canary with --live)
tools/dash loop plan fleet-pulse                         # today's queue as items: key, where, signals, evidence status, prompt sha
tools/dash loop run fleet-pulse --rehearse               # every item up to the model call, $0 (--context off = the CI-identical run)
tools/dash loop run fleet-pulse --target bamr87/law-ai:.github/workflows/ci.yml   # one capped attempt ($40, the call-site cap): patch + filing previewed
tools/dash loop show --latest                            # items/<dir>/outputs/changes.patch, doctor.validated.json, bodies/, publish-plan.md

--apply (typed by the maintainer: tools/dash loop run fleet-pulse --target <key> --apply, or tools/dash loop publish <run_id> --item <key> --apply for a reviewed earlier preview; from the console, the loop-run op with apply behind its confirm) is the OPS remote-write path (constitution § 11.8): the engine probes the publish token with gh api user before any spend, re-checks the candidate against today's queue, holds the filing to the reviewed bytes, and dash-gen doctor-file --apply --reviewed-bodies then does what CI's doctor would — the fleet-doctor and automation labels created first (a label that cannot be created files nothing), a scratch clone of the target (never this checkout or a submodule tree) checked out at the target's registry branch (the validated document's base, which the PR is opened against; never an assumed default), the fix/fleet-doctor-* branch — refused when it already exists on the remote with a commit that is not this run's, reused without a push when it carries this run's commit — the reviewed patch committed as fleet-doctor, ONE push of HEAD:refs/heads/<branch> with git's receive-pack pinned and the credential read from gh, and a draft PR with those labels; for a submodule candidate, the hub issue. Each carries the MARKER line tomorrow's CI run dedupes on. A rejected token, an unreadable open-marker list or a body that is not the reviewed one files nothing (exit 3, or the item withheld). Never with --scheduled. One $40 attempt needs budget.loops to afford it, which is why the ceiling is $50 (_data/fleet.yml). The CI behaviour is unchanged: the same prompt bytes, --model claude-opus-5-5 (the exact id opus resolved to), the same turn and dollar caps, the same allowlist.

Tokens & secrets

Declared centrally in _data/fleet.yml; audit what is actually set with tools/dash secrets.

Secret Needed for Fallback
GITHUB_TOKEN read public activity, publish data, open hub PRs/issues — (built-in)
FLEET_TOKEN read private repos' runs/issues, and push fix branches + open PRs in submodules GITHUB_TOKEN (unprobed last resort: hub + public repos only)
CLAUDE_CODE_OAUTH_TOKEN the fixer job ANTHROPIC_API_KEY

FLEET_TOKEN superseded the three legacy per-loop PATs; the last fallbacks to them were removed on 2026-10-19 (the secrets no longer exist on the hub). It is probed with GET /user by the shared resolve-fleet-token action before any gather step runs.

Without a Claude token the loop degrades to gather + publish — the data still lands every day.

Files

Path Role
.github/workflows/fleet-pulse.yml the daily loop (gather → publish → triage → fix)
.github/actions/utilities/publish-data/action.yml protection-proof publish (direct push, else stable-branch PR)
.github/scripts/dash-gen/remediation.py merges failing + expensive signals into the ranked fix queue
.github/scripts/dash-gen/daily_report.py prior-day gather + digest generator
.github/scripts/dash-gen/fleet_triage.py open-state (issues/PRs/CI) snapshot generator
.github/scripts/dash-gen/test_fleet_triage.py guards the tracked-branch rule above — and its converse — and the fix-PR link, end to end on the bashcrawl 2026-11-02 fixture
.github/scripts/dash-gen/actions_analytics.py Actions cost / effectiveness / waste analytics
_data/fleet.yml central config: caps, cadences, toolchain, token contract
_reports/daily/<date>.md committed daily digests
_data/fleet_triage.yml committed open-state snapshot rendered at /triage/
tools/console/web/src/pages/Inbox.tsx the Inbox page (/inbox, formerly /triage/)
remediation-workorder.md ephemeral agent brief (gitignored; also a run artifact)