$ node ../r12-first-account/node_modules/typescript/bin/tsc --noEmit -p tsconfig.json --typeRoots ../r12-first-account/node_modules/@types


exit_code=0

$ node --test test/instrumentation.test.mjs
✔ FIFO, one consumer, callback handoff, and all three clock positions (5.431992ms)
✔ capacity includes active work; overflow stops decisions and rejects later offers (1.136391ms)
✔ a rejected save is handled, not counted as saved, and prevents queued work (0.894788ms)
✔ a synchronous handler throw is contained by the same stop path (0.769649ms)
✔ a source close before the deferred consumer starts prevents processing (0.906646ms)
ℹ tests 5
ℹ suites 0
ℹ pass 5
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 154.339839


exit_code=0

$ node src/demo.ts
{
  "exampleOnly": true,
  "storage": "in-memory stand-in; not durable",
  "localSaveAcknowledgements": [
    "A",
    "B"
  ],
  "decisionStopRequired": false,
  "retained": 0,
  "discardedPending": 0,
  "firstStop": null,
  "timings": {
    "savedCount": 2,
    "meanWaitMs": 0.4007985000000005,
    "meanWorkMs": 0.11991049999999603,
    "maxAppDurationMs": 0.5471239999999966,
    "last": {
      "traceId": "local-demo:2",
      "t_receive": 126.923154,
      "t_start": 127.388705,
      "t_saved": 127.417448
    }
  }
}


exit_code=0
