Skip to content

v6.5.0

@itechdom itechdom tagged this 12 May 05:27
Phase 6.c — closes the gate. Every `console.log` / `console.warn` /
`console.error` in the source tree is now routed through createLogger
so setLogLevel('WARN') actually silences the runtime.

Migrated ~80 raw console calls across:
- OrbitalServerRuntime.ts (46 calls — register/persist/cross-orbital
  using existing busLog/effectLog/xOrbitalLog + new persistLog,
  registerLog, dynamicLog namespaces)
- EffectExecutor.ts (9 calls — reused effectLog; notify operator now
  emits via effectLog.info with category metadata)
- createOsHandlers.ts, ClientEffectHandlers.ts, ServerEffectHandlers.ts,
  StateMachineCore.ts, ServerBridge.ts, MockPersistenceAdapter.ts,
  PayloadValidator.ts, EventBus.ts, loader/almadar-studio-config.ts

Strict LogMeta typing throughout — no `as any`, no `as unknown as`,
no eslint-disable. EventPayload (which includes Date and arrays) is
stringified into a lazy thunk where needed since LogMeta forbids
those primitives. Hot-path emit/dispatch/process call sites pass
data via `() => ({ ... })` thunks so production WARN-only mode skips
all serialization.

No behavior change; same logs, same intent, now properly gated.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Assets 2
Loading