ci(spec): run the full gate or the individual checks, never both

Merged
DE
6d ago
+14-0

What

A nightly-agent-device dispatch now runs pnpm check or the eleven named steps, never both. Pushes and pull requests keep the named steps, so a failure still points at one check.

Why

pnpm check is a superset of the steps below it, and .github/workflows/spec.yml:45-47 ran it on a compatibility dispatch while the eleven steps at :48-69 ran unconditionally. One 4-vCPU runner inside a 15-minute budget did the whole gate twice, which is the budget the job's timeout exists to protect. Fixes #2203.

How it works

  1. Each of the eleven steps from Lint to MCP Registry entry matches the runner gains if: ${{ inputs.agent-device-version == '' }}.
  2. The Full nightly check step keeps its inverse condition, so exactly one arm runs.
  3. A comment above the pair states the split: a dispatch runs the gate in one step, a push or pull request runs the same checks as separate steps so CI names the one that failed.
  4. Two steps stay unguarded because they are not part of pnpm check: MCP Registry accepts the entry, which needs the publisher action, and Agent skill scripts. The browser install and the testbed below them also keep running on both arms.

Issue

Fixes #2203

Verified

Ran it locally: no - this is a workflow change, and no local runner executes GitHub Actions. What was run is a parse and structure check of the edited file with the yaml parser already in the workspace:

parsed OK; jobs: check, test, bun, install, gate
check job steps: 23
nightly arm (!= ''): 1 -> Full nightly check
pull-request arm (== ''): 11
unguarded: actions/checkout | pnpm/action-setup | actions/setup-node | ./.github/actions/workspace-install | ./.github/actions/mcp-publisher | MCP Registry accepts the entry | Agent skill scripts | Install browsers | Testbed | Testbed, scroll_to
gate needs: check, test, bun, install
jobs missing from gate.needs: none

That output is the assertion the change needs: one nightly step, eleven guarded steps, every setup and publisher step unguarded, and the gate still covering all four jobs. The first real dispatch of nightly-agent-device is the end-to-end check, and its check job should show the eleven steps skipped and pnpm check run.

Checklist

  • Changeset added (pnpm changeset) for any change to a published package, or the change is testbed, docs, or CI only.
  • Breaking change: title carries !, the changeset body names what breaks and what replaces it, and the deprecation warning landed a window earlier (stability policy in CONTRIBUTING.md).
  • Docs updated in the same PR: the docs/**/*.mdx page for the behavior, and skills/e2e/ if the skill describes it.
  • Contract change: emitted .d.ts reviewed, tests/types/sdk-types.ts updated; wire change edits the schema and both fixtures.
  • Engine contract change (e2e/engine): changesets for e2e, @e2e-dev/web, and @e2e-dev/mobile.