Skip to content

fix(automation): bind flow triggers on cold boot, not just after HMR reload #7758

fix(automation): bind flow triggers on cold boot, not just after HMR reload

fix(automation): bind flow triggers on cold boot, not just after HMR reload #7758

Triggered via pull request July 4, 2026 03:31
Status Failure
Total duration 3m 34s
Artifacts 1

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

12 errors
Test Core
Process completed with exit code 1.
Test Core
@objectstack/trigger-record-change#test: command (/home/runner/work/framework/framework/packages/triggers/trigger-record-change) /opt/hostedtoolcache/node/20.20.2/x64/bin/pnpm run test exited (1)
src/record-change-integration.test.ts > record-change trigger — end-to-end (#1491) > fires a flow PULLED FROM THE REGISTRY at automation.start(), bound when the trigger registers on kernel:ready (production ordering): packages/triggers/trigger-record-change/src/record-change-integration.test.ts#L183
AssertionError: expected [] to deep equally contain { flowName: 'stamp_flow2', …(1) } - Expected: { "flowName": "stamp_flow2", "triggerType": "record_change", } + Received: [] ❯ src/record-change-integration.test.ts:183:60
Dogfood Regression Gate
Process completed with exit code 1.
test/flow-runas.dogfood.test.ts > objectstack verify FLOW: runAs identity enforcement (#flow-runas) > runAs:'system' READS a record the member cannot; runAs:'user' cannot: packages/dogfood/test/flow-runas.dogfood.test.ts#L118
AssertionError: system flow could not read the record it should see (elevation broken): expected undefined to be truthy - Expected: true + Received: undefined ❯ test/flow-runas.dogfood.test.ts:118:105
test/flow-runas.dogfood.test.ts > objectstack verify FLOW: runAs identity enforcement (#flow-runas) > runAs:'system' ELEVATES — member-triggered system flow WRITES a record the member cannot: packages/dogfood/test/flow-runas.dogfood.test.ts#L94
AssertionError: system flow run not successful: {"success":false,"error":"Flow 'runas_system_touch' not found"}: expected false to be true // Object.is equality - Expected + Received - true + false ❯ test/flow-runas.dogfood.test.ts:94:89
test/flow-runas.dogfood.test.ts > objectstack verify FLOW: runAs identity enforcement (#flow-runas) > precondition: the automation service is wired and a flow is registered: packages/dogfood/test/flow-runas.dogfood.test.ts#L71
AssertionError: automation service not wired: 404: expected 404 to be 200 // Object.is equality - Expected + Received - 200 + 404 ❯ test/flow-runas.dogfood.test.ts:71:71
test/flow-runas-schedule.dogfood.test.ts > objectstack verify FLOW: schedule/user-less runAs fail-open (#flow-runas-schedule) > EXPLICIT FIX: a user-less runAs:'system' run elevates explicitly — same access, NO warning: packages/dogfood/test/flow-runas-schedule.dogfood.test.ts#L143
AssertionError: system read not successful: {"success":false,"error":"Flow 'runas_system_read' not found"}: expected false to be true // Object.is equality - Expected + Received - true + false ❯ test/flow-runas-schedule.dogfood.test.ts:143:83
test/flow-runas-schedule.dogfood.test.ts > objectstack verify FLOW: schedule/user-less runAs fail-open (#flow-runas-schedule) > FAIL-OPEN (pinned): a user-less runAs:'user' run executes UNSCOPED — reads + writes the admin note, audibly: packages/dogfood/test/flow-runas-schedule.dogfood.test.ts#L116
AssertionError: read run not successful: {"success":false,"error":"Flow 'runas_user_read' not found"}: expected false to be true // Object.is equality - Expected + Received - true + false ❯ test/flow-runas-schedule.dogfood.test.ts:116:80
test/flow-node.dogfood.test.ts > objectstack verify FLOW: node execution + variable wiring (#flow-node) > runs the update_record node and wires the input variable into the filter: packages/dogfood/test/flow-node.dogfood.test.ts#L71
AssertionError: flow run not successful: {"success":false,"error":"Flow 'flow_touch' not found"}: expected false to be true // Object.is equality - Expected + Received - true + false ❯ test/flow-node.dogfood.test.ts:71:89
test/flow-node.dogfood.test.ts > objectstack verify FLOW: node execution + variable wiring (#flow-node) > precondition: the automation service is wired and the flow is registered: packages/dogfood/test/flow-node.dogfood.test.ts#L56
AssertionError: automation service not wired: 404: expected 404 to be 200 // Object.is equality - Expected + Received - 200 + 404 ❯ test/flow-node.dogfood.test.ts:56:71
Dogfood Regression Gate
@objectstack/dogfood#test: command (/home/runner/work/framework/framework/packages/dogfood) /opt/hostedtoolcache/node/20.20.2/x64/bin/pnpm run test exited (1)

Artifacts

Produced during runtime
Name Size Digest
build-output
10.4 MB
sha256:0f3376a908de5bd888dbe3ecb09800094cd9f9611f1a89061287c76fbbfdda4c