Skip to content
Source
Sign inSign up
TanStack/source

Agent workflow jobs crash in the factory runtime (CHECKPOINTS binding, bundle SyntaxError, setup.node), and a scheduled CI job never starts #1069

Closedtombeckenham opened this issue 0 comments
tombeckenhamcommented

On TanStack/schemas, the scheduled agent workflow .source/agent-workflows/monitor.ts (cron 7,22,37,52 * * * *) runs its first job (check) fine. Every later job then crashes in the forge's own runtime before our step code does anything. Each crash skips the next job, so the workflow has never reached its fix job. Our repo has no binding or code named CHECKPOINTS.

1. env.CHECKPOINTS is not an R2 bucket binding

  • Run a341e315-1b49-23a3-29fc-97230e134242 (2026-11-30 19:07 UTC), job pending, step "Drop failures with an open fix".
  • Run 7ba6532a-c3bc-8433-afd4-fc3c80cdb52b (18:52) failed the same way.
The error: env.CHECKPOINTS is not an R2 bucket binding

2. The factory bundle does not parse

Run eda8305f-ba39-158e-9fff-38884d7b4312, same job and step:

file:///tmp/tanstack-source-factory.mjs:693
  validateAsync: () => valida(`.${name}() cannot be used on object schemas containing refinements`);
                                                                                                   ^
SyntaxError: Unexpected token ';'
Node.js v24.22.3

3. setup.node() leaves no node on PATH in agent workflow jobs

On the fix ticks (2026-11-27 08:07, 10:07 and 17:52 UTC), job fix: setup.node() passes, then setup.pnpm() fails with env: 'node': No such file or directory. The same two steps work in our CI workflows (.source/workflows/deploy.ts, ci.ts).

The factory issue-fix agent on this repo also failed 7 of 9 investigate runs with "The agent stopped with an error" (issues #771-#776 and #785, 2026-11-27). It may be the same runtime problem.

4. A scheduled CI job never started

CI run a4b2971d-6d0a-ee66-46a9-06e489554dcd (.source/workflows/probe.ts, schedule 17 3 * * 1, 2026-11-30 03:17 UTC): the probe job failed after 10m0.9s with no steps and an empty log, although it sets timeoutMinutes: 15. It looks like the job never got a runner and timed out in the queue.

Suggested fixes

  • Bind CHECKPOINTS in the agent-job environment, or skip checkpointing when the binding is absent instead of failing the step.
  • Fix the bundling of tanstack-source-factory.mjs around line 693. The stray ; inside an object literal looks like minifier or concatenation output.
  • Make setup.node() put node on PATH for later steps of an agent workflow job, as it does in CI jobs.
  • For a CI job that never gets a runner, report "queued, no runner" instead of an empty failure, and make the queue timeout follow the job's timeoutMinutes.

Workaround for now: issue-fix is turned off, and recurring failures are triaged by hand from a local session.

  1. tombeckenham assignedtombeckenham

Sign in to join this conversation.