$ RELAYFLOWD_BIN=/Users/khaliqgant/.relayflows-toolchain/target/3497393500/debug/relayflowd node --test --test-name-pattern="over 30 seconds|rejected worker completion" scripts/run-local-workflow.test.mjs
✖ an agent followed by work over 30 seconds reaches report and exports its journal (32577.867625ms)
✖ a rejected worker completion preserves the protocol error and cannot report success (253.653417ms)
ℹ tests 2
ℹ suites 0
ℹ pass 0
ℹ fail 2
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 32870.324667

✖ failing tests:

test at scripts/run-local-workflow.test.mjs:97:1
✖ an agent followed by work over 30 seconds reaches report and exports its journal (32577.867625ms)
  AssertionError [ERR_ASSERTION]: {"severity":"warning","kind":"unprovable_effects","stepId":"verify","message":"Step \"verify\" command \"sleep\" resolves, but its effects cannot be proven before execution."}
  {"severity":"warning","kind":"unprovable_effects","stepId":"report","message":"Step \"report\" command \"printf\" resolves, but its effects cannot be proven before execution."}
  journal client: run.get timed out after 30000ms
  
  
  1 !== 0
  
      at TestContext.<anonymous> (file:///Users/khaliqgant/fl-jc/scripts/run-local-workflow.test.mjs:106:10)
      at Test.runInAsyncScope (node:async_hooks:226:14)
      at Test.run (node:internal/test_runner/test:1397:25)
      at Test.start (node:internal/test_runner/test:1257:17)
      at startSubtestAfterBootstrap (node:internal/test_runner/harness:387:17) {
    generatedMessage: false,
    code: 'ERR_ASSERTION',
    actual: 1,
    expected: 0,
    operator: 'strictEqual',
    diff: 'simple'
  }

test at scripts/run-local-workflow.test.mjs:118:1
✖ a rejected worker completion preserves the protocol error and cannot report success (253.653417ms)
  AssertionError [ERR_ASSERTION]: The input did not match the regular expression /completion does not match its active lease/. Input:
  
  'journal client: not connected (run.get)\n'
  
      at TestContext.<anonymous> (file:///Users/khaliqgant/fl-jc/scripts/run-local-workflow.test.mjs:133:10)
      at Test.runInAsyncScope (node:async_hooks:226:14)
      at Test.run (node:internal/test_runner/test:1397:25)
      at Test.processPendingSubtests (node:internal/test_runner/test:969:18)
      at Test.postRun (node:internal/test_runner/test:1537:19)
      at Test.run (node:internal/test_runner/test:1462:12)
      at async startSubtestAfterBootstrap (node:internal/test_runner/harness:387:3) {
    generatedMessage: true,
    code: 'ERR_ASSERTION',
    actual: 'journal client: not connected (run.get)\n',
    expected: /completion does not match its active lease/,
    operator: 'match',
    diff: 'simple'
  }
EXIT_CODE=1
