create-principles-disciple 1.142.4 → 1.142.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -371,6 +371,10 @@ const KNOWN_PLUGIN_CORE_FILES = new Set([
371
371
  // persists circuit-breaker isolation through the core-owned SQLite safety store.
372
372
  // Pure threshold policy remains in principles-core.
373
373
  'rulecode-safety-circuit.ts',
374
+ // PRI-788 G4: Plugin I/O boundary — atomically maintains
375
+ // <workspace>/.state/signal-health.json (mkdir + atomicWriteFileSync +
376
+ // SystemLogger) so `pd config doctor` can surface detection-chain health.
377
+ 'signal-health.ts',
374
378
  // ── Test Files ──────────────────────────────────────────────────────────
375
379
  '__tests__/focus-history.test.ts',
376
380
  'principle-compiler/__tests__/compiler-replay-gate.test.ts',
@@ -462,7 +466,10 @@ describe('PRI-212 plugin core anti-growth guard', () => {
462
466
  // as the plugin I/O shell for scope reads and durable safety isolation.
463
467
  // PRI-737: Removed evolution-logger.ts + evolution-engine.ts (98 → 96) —
464
468
  // legacy evolution worker retirement (trace-id util moved to src/utils/).
465
- expect(KNOWN_PLUGIN_CORE_FILES.size).toBe(96);
469
+ // PRI-788 G4: Added signal-health.ts (96 → 97) — plugin I/O boundary for
470
+ // <workspace>/.state/signal-health.json (atomic write + mkdir + SYSTEM log),
471
+ // consumed by `pd config doctor` for detection-chain health visibility.
472
+ expect(KNOWN_PLUGIN_CORE_FILES.size).toBe(97);
466
473
  });
467
474
  });
468
475
  const REQUIRED_TEST_FILES = [