Fix ops sentinel runtime guard import
All checks were successful
deploy / deploy (push) Successful in 32s
All checks were successful
deploy / deploy (push) Successful in 32s
Proof: ops-sentinel runtime evaluation no longer throws ReferenceError while checking disabled executor containment; covered by a regression test and full npm test. Assumptions: Runtime containment remains intentionally disabled by shouldContainExecutorForAlerts returning false; this change only restores the symbol needed for evaluation to complete. Still fake: Alert surfaces remain suppressed per the current safety/alert simplification; venue-native terminal fill events and realized per-trade PnL are still unavailable.
This commit is contained in:
parent
61ba8f9208
commit
fa7e8c885f
2 changed files with 14 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ import {
|
||||||
buildRuntimeAlert,
|
buildRuntimeAlert,
|
||||||
createRuntimeHealthThresholds,
|
createRuntimeHealthThresholds,
|
||||||
evaluateRuntimeHealth,
|
evaluateRuntimeHealth,
|
||||||
|
shouldContainExecutorForAlerts,
|
||||||
shouldRaiseIngestPublishStale,
|
shouldRaiseIngestPublishStale,
|
||||||
} from '../core/runtime-health.mjs';
|
} from '../core/runtime-health.mjs';
|
||||||
import {
|
import {
|
||||||
|
|
|
||||||
13
test/ops-sentinel-static.test.mjs
Normal file
13
test/ops-sentinel-static.test.mjs
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
import test from 'node:test';
|
||||||
|
import assert from 'node:assert/strict';
|
||||||
|
import { readFileSync } from 'node:fs';
|
||||||
|
|
||||||
|
const source = readFileSync(new URL('../src/apps/ops-sentinel.mjs', import.meta.url), 'utf8');
|
||||||
|
|
||||||
|
test('ops sentinel imports executor containment guard used by runtime evaluation', () => {
|
||||||
|
assert.match(source, /shouldContainExecutorForAlerts\(alerts\)/);
|
||||||
|
assert.match(
|
||||||
|
source,
|
||||||
|
/import\s*\{[\s\S]*shouldContainExecutorForAlerts[\s\S]*\}\s*from\s*'\.\.\/core\/runtime-health\.mjs';/,
|
||||||
|
);
|
||||||
|
});
|
||||||
Loading…
Add table
Reference in a new issue