Skip to content

The workflow atlas

The hub's own GitHub Actions read as one model: what each workflow and composite action does, the standards they are held to, why their runs fail, what can be retired, and a designer that writes a new workflow already inside the standards.

The 2026-10-27 overhaul (#422, WORKFLOW-OPTIMIZATION.md) kept finding the same three problems. First, facts about the workflows were copied by hand into five places, and the copies drifted: the console's dispatch allowlist refused every input of four workflows, and the workflows README had lost nine files. Second, the standards existed only as prose in .github/workflows/README.md and AGENTS.md, so two defects sat on main undetected (a cron gate that could never be true, and agent loops that turned a spent Claude window into a red run). Third, most red runs were not defects, but nothing told a spent usage window or a repo setting apart from a bug. The atlas is the one reading of .github/ that the console, the CLI and the fleet MCP server share, so none of them keeps its own copy.

Page Harness Console → Harnesses → Workflows (/workflows, /workflows/<id>, /workflows/actions/<id>); read-only on the public site, which has no run health and no designer
Module .github/scripts/dash-gen/workflow_atlas.py; the fleet model in tools/fleetcore/workflows.py, filled by .github/scripts/dash-gen/workflow_sync.py
CLI tools/dash workflows [list \| show <id> \| lint \| health \| new \| sync] · tools/dash workflows --fleet [list \| show <repo> [<id>] \| lint]
MCP fleet_workflows (the catalog, one workflow, or run health; with fleet=true the fleet model, one repository with repo) and workflow_lint (check a draft)
API GET /api/workflows · GET /api/workflows/health?days=N · POST /api/workflows/lint · POST /api/workflows/scaffold · operations workflows-lint, workflow-new
Tests python3 .github/scripts/dash-gen/test_workflow_atlas.py (holds the live tree to zero errors) · python3 tools/console/test_console.py · python3 tools/test_fleetcore_mcp.py · python3 tools/test_fleetcore_workflows.py (the fleet model and its sync)

The model

scan() parses every .github/workflows/*.yml and .github/actions/**/action.yml, offline. For each workflow it records:

  • the triggers, their paths, branches and types, and each cron with its human form, its fires per day, and its _data/fleet.yml schedule: key;
  • its dispatch inputs and call inputs, with type, default and options;
  • its top-level and per-job permissions, its concurrency group, and each job's timeout, needs, condition and runner;
  • every action and reusable workflow it uses, whether local, from the .fleet-hub checkout, remote bamr87/bamr87/...@vN or external;
  • the secrets and variables it reads, and its vars.*_ENABLED kill switch (the first it reads: a loop that also hands its script the sprint-scope vars.EXPEDITE_SPRINT_ENABLED still shows its own);
  • each Claude call site, with its model, turns, dollar cap, the cap budget.call_sites declares, continue-on-error and the paired claude-cost step's usage-limit mode;
  • the paths it publishes through utilities/publish-data.

Each composite action carries its inputs, outputs and callers. The README's tables give each workflow its group and purpose, and its ## Retired table becomes the graveyard.

The console adds two joins only it knows: which loop a workflow is, and whether it is on the dispatch allowlist. That allowlist, DISPATCH_WORKFLOWS in tools/console/core.py, is a list of names, a deliberate choice. Each workflow's inputs and their types are read from its file as the default branch holds it, because that is the file gh workflow run runs (the working tree is the fallback when git cannot say). The dispatch form and its validation follow that file: a boolean is a checkbox, a choice is a select, and a value outside the options is refused.

Workflows are read as YAML 1.2, as GitHub reads them: only true/false are booleans, so a choice option yes stays "yes". A document that expands past 50,000 nodes through YAML aliases is refused before anything walks it. A file that cannot be read is a parse-error finding, never a crash.

The rules

Each rule names the incident behind it. Where another gate already enforces a rule, the rule says so, and that gate stays the authority. Every other rule is enforced at error level by test_workflow_atlas.py, which fails if the live tree carries an error.

Rule Severity Checks Gate
parse-error error the file parses actionlint
permissions warn a top-level permissions: block, or one on every job (a called workflow is exempt: it inherits) atlas
timeout warn every job with steps sets timeout-minutes atlas
concurrency warn a workflow that writes on a schedule or dispatch has a concurrency: group, on the workflow or on every writing job atlas
sha-pin error actions ride major tags check-drift (j)
cron-declared error each cron is schedule.<stem_with_underscores> in fleet.yml (one override: token-rotation → rotate_tokens) test_schedule.py
cron-on-hour error no hub cron fires at minute 0 test_schedule.py
kill-switch error a scheduled Claude loop reads a vars.*_ENABLED switch atlas
ai-budget error each Claude site passes --max-budget-usd equal to its budget.call_sites entry (a cap taken from an input with no default is left to the gate) test_ai_budget.py
usage-limit error a scheduled site pairs continue-on-error: true with usage-limit: skip (a continue-on-error decided by an expression is not checked) test_ai_budget.py
null-input error for a dispatch input that defaults to true, no inputs.x == false, != false or !inputs.x in a workflow with other triggers, unless the expression guards on github.event_name against workflow_dispatch or schedule: on a cron run the input is null, which reads as false, so the cron and a default dispatch disagree atlas
node-alias error node-version is a number, never lts/* or latest, on setup-node and on a call to a reusable workflow: an alias has no fallback when the API quota is spent atlas
workflow-run warn no workflow_run trigger (prefer needs:), unless it watches every workflow (workflows: ["**"]), which couples to no display name atlas
pr-token warn gh pr create (through GH_TOKEN or GITHUB_TOKEN) or peter-evans/create-pull-request does not run with the job token alone (its CI would never fire; a probed token with the job token as fallback passes) atlas
bare-push warn no git push whose refspec names main or master, and none that names no branch or only HEAD (on a run that checked out the default branch, both land on it); called workflows are exempt atlas
pr-comment warn no step posts on a pull request by itself (gh pr comment or gh pr review; a gh api or curl write to a PR's comments or reviews, or to an issue's comments when the workflow runs on a PR event or the number is named for a PR; a sticky-comment action; github-script creating a review or a PR comment): § 19 routes PR comments through pr-review.yml, and findings through its fleet-findings artifact. Warn-only until each repo's fan-out PR lands (§ 19.9) atlas
undocumented warn every workflow and action has a README row, and every README row has a file atlas
action-description-expr error no ${{ in an action's description, or in any input's or output's check-drift (l)
action-unused warn every composite action has a caller atlas

Run against main before #422, the rules report what that pass found by hand: null-input on schema-vendor.yml, usage-limit on all five scheduled agent sites, pr-token on the retired unified-evolution.yml, and nine workflows missing from the README.

pr-comment landed with two warnings on the hub's own tree, fleet-verify.yml's verify sticky and jev-number.yml's ratify note; both are on the pr-review fan-out plan (templates/pr-review/). Run with --root projects/<repo> it lists the same sites in a fleet repo.

Known limits. kill-switch checks that a scheduled Claude loop reads a vars.*_ENABLED variable somewhere, not that the variable gates every agent job. A scheduled workflow that reaches Claude only through a called workflow (a job with uses: …/ai-lane.yml) is not followed into it, so neither kill-switch nor ai-budget sees that call. The lane carries its own switch and cap inputs. test_schedule.py and test_ai_budget.py remain the authority for what they cover.

Run health

lake_health() reads the hub's runs from the local lake (tools/dash lake sync), and classify_failure() sorts each failed run into a cause and a class. It reads three pools in order:

  1. the run's error annotations;
  2. the error-looking lines at the end of each job's log, each job read on its own so a later job cannot push the failing one out;
  3. the warning annotations, last, so a cache warning or another job's usage-limit skip never explains a failure.

The echo GitHub prints before each step (the script, its with: and env:) is skipped, so a step or prompt that only mentions "usage limit hit" does not count as a run that hit it, and a line about a retry is a symptom, not the cause. Causes are tried in a fixed order: a 429 run that also reports is_error:true is capacity, not an agent error, and a push a ruleset rejected says "failed" but is config, not a test. A 429 counts as capacity only when the line names Claude. When nothing matches, the evidence is the first specific error line, never "Process completed with exit code 1." if anything better exists.

The patterns were checked against every failed run in the lake (87 across 23 repos), not only the hub's.

Class Causes What it means
capacity usage-limit, budget-cap, turn-limit A shared limit was spent. It clears by itself; scheduled sites should be in skip mode
config actions-permission, push-rejected, auth, missing-ref, startup A setting or a credential, not the code
transient api-rate-limit, infra, timeout Re-run it; if it repeats, it is not transient
dependency dependabot, deps-install Upstream: override, pin a range, or wait
defect agent-error, code, test, gate, exit-code The workflow or the code it checks is wrong

Each workflow also shows:

  • 429s absorbed: green runs whose annotations record a usage-limit skip, so capacity stays visible after skip mode turns those runs green;
  • ghosts: runs whose workflow file is gone (GitHub keeps listing a workflow while it has runs);
  • skipping: a workflow whose every run was skipped, which is normal for a mention handler and a dead loop for a schedule.

The fleet model

ADR 0007 grows the atlas to the fleet. Phase S1 (#721) is the read half: one model, fleet-workflows/v1, built from every repository's workflow files by the same parse_workflow(), lint_workflow() and classify_failure() the hub's atlas runs. There is no second parser. The console and the TUI views come with S2.

The sync. tools/dash workflows sync reads the files into the local lake (.dash-lake/fleet.sqlite, the workflows table) and records each attempt in workflow_reads:

  • Targets: every repository in _data/projects.yml, plus the hub. The repositories of the bash-365, year-of-ai and ai-world-view organizations are read like the rest, because those owners are in _data/fleet.yml hub.owners. An external upstream (microsoft/skills, tt-a1i/archify) is never fetched, and it is reported as not read with that reason.
  • Conditional read: the listing is read every time, but a file's content is fetched only when its blob sha changed since the last read. At most harnesses.inventory.max_workflow_files files are read per repository, and a repository past that cap is marked truncated.
  • Checks: for each repository's Verify caller and pull-request or push gates (at most --max-checks, Verify first), the sync reads the latest completed run, its jobs and steps, and, for a failed run, its log under a byte cap. When that log carries Claude's facts (an AI check), the sync records them as lake sync does, because lake sync never downloads a stored log again: without them the run's cost would be lost and lake review would count it as $0. An archived repository's runs are not read.
  • Guardrails: it refuses before reading anything when GITHUB_ACTIONS is set or GITHUB_EVENT_NAME is a pull-request event. Its token is GH_TOKEN or gh auth token, and gh runs with every token variable removed, so GITHUB_TOKEN is never used. --budget-s bounds the wall clock, --max-repos the repositories, and the repositories it did not reach are reported as not read.
  • Output: how many repositories it read, and each one it could not read with the reason.

The model. tools/dash workflows --fleet list (or show <repo> [<workflow>], lint, --json) and the fleet_workflows MCP tool with fleet=true render the same document from tools/fleetcore/workflows.py, which opens the lake read-only. Every repository carries read, read_at (the last read that worked) and, when it was not read, a reason. A repository that was not read has no workflows in the model and shows "not read", never a pass. A later failed attempt keeps the earlier read time in its reason. A file deleted upstream leaves the model, although its row stays in the lake. The hub's workflows are linted with the hub rules, which check fleet.yml keys and README rows; every other repository's are linted with hub_rules=False.

Check states (ADR 0007 decision 4). Each workflow's latest run is read into one state:

State When
verified green, and at least one job ran
passed-empty green, but it checked nothing: every job was skipped, fleet-verify's "Report that nothing was verified" step ran or its scenario step was skipped, or the log carries the "Not verified" warning
never-ran no run on GitHub, a run held for approval, or a failure with no job
quota failed, and classify_failure() says a shared limit was spent: api-rate-limit, or the capacity class
real-failure failed for any other cause, with its cause, class, failed step and evidence
cancelled cancelled before it finished

A workflow whose runs were not read has no state, and is counted as unknown. Fleet health counts verified only, so a green check that verified nothing is not healthy. The step names are fleet-verify's own, and test_fleetcore_workflows.py fails if the reusable workflow renames them.

Retire

The Retire tab gathers four kinds of candidate: ghost workflows, scheduled workflows with no run in the window or only skipped runs, actions with no caller, and README rows for files that no longer exist. Below them is the README's retirement record. Nothing is deleted from the page: deleting runs and files stays a human decision.

Design

scaffold(kind, id) writes a workflow that passes every rule. It is linted against fleet.yml as it will be once the companion edits are made.

Kind Shape
loop schedule (first free :07 slot) + dispatch, read-only token with a write job, concurrency, timeout, publish-data with [skip ci]
agent-loop schedule (first free :37 slot from 11:00) + dispatch, default-off vars.<ID>_ENABLED switch that a dispatch bypasses, claude-auth, claude-code-action with --max-budget-usd = budget.default_usd, continue-on-error, claude-cost with usage-limit: skip
gate pull_request + push main with path filters, cancel-in-progress concurrency, timeout
reusable workflow_call with no permissions (inherited), timeout
dispatch workflow_dispatch with a dry_run input defaulting to true

Names are written as quoted YAML strings, so Audit: nightly or [wip] audit stays a name. An id whose schedule: key or budget.call_sites entry is already taken is refused, because its companion edit would overwrite another workflow's. The companion edits are printed, never applied: the schedule: key, the budget.call_sites entry, the kill-switch variable, the README row and, for a loop, the AGENTS.md loop table. The console's Config page does not invent keys fleet.yml does not already carry, and neither does the scaffold. tools/dash workflows new --write (or Write on the Design tab, the workflow-new operation) creates the file. It creates the file only if nothing is at that path (a symlink included), refuses a scaffold that does not parse, and commits nothing.

The Design tab also lints any draft you paste or edit against the same rules, and agents can do the same with the workflow_lint MCP tool.

Changing a rule

Add or change the rule in RULES and in lint_workflow() / lint_action(), add a fixture to test_workflow_atlas.py that shows it both firing and passing, and update the table above and the ## Standards list in the workflows README. A new rule must pass on the live tree before it lands, or land with the fix that makes it pass.