Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript
1.1 KB
Raw Blame
export const CRON_EXEC_PROBE_INSTRUCTION = [
  'You are validating whether SCHEDULED (cron) tasks actually execute on this',
  'mcp-host. Use the available tools and do these steps IN ORDER.',
  '',
  '1. CREATE — use the cron scheduling tool (cron_manage) to create a recurring job',
  '   named "e2e-cron-exec" with schedule "*/1 * * * *". The job\'s task content MUST be',
  '   EXACTLY this sentence (copy it verbatim):',
  '   Use the shell tool to run this command: echo CRON_EXEC_OK > /tmp/cron-exec-proof.txt',
  '',
  '2. FIRE — use cron_manage to TRIGGER the "e2e-cron-exec" job immediately so it runs now.',
  '',
  '3. WAIT + VERIFY — the triggered task runs asynchronously in the background, so you',
  '   must poll. Use the shell tool to run:',
  '     sleep 8 ; cat /tmp/cron-exec-proof.txt',
  '   If the file is missing or empty, repeat the same shell command (sleep 8 ; cat ...)',
  '   up to 4 attempts total.',
  '',
  '4. REPORT — the FINAL line of your answer MUST be exactly one of:',
  '   - if the file contains CRON_EXEC_OK   ->   CRON_EXEC_VERIFIED',
  '   - if after all 4 attempts it is empty ->   CRON_EXEC_FAILED',
].join('\n')