@principles/core 1.202.0 → 1.203.0

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.
@@ -329,7 +329,6 @@ const KNOWN_PLUGIN_CORE_FILES = new Set([
329
329
  // ── Runtime V2 ──────────────────────────────────────────────────────────
330
330
  'runtime-v2-prompt-activation-reader.ts',
331
331
  'workspace-guidance-migrator.ts',
332
- 'surface-guard.ts',
333
332
  // PRI-307: Plugin I/O boundary — reads .pd/config.yaml, delegates validation to core
334
333
  'pd-config-loader.ts',
335
334
  // PRI-346: Pure function for checking conversation access config (extracted for circular import avoidance)
@@ -382,7 +381,7 @@ describe('PRI-212 plugin core anti-growth guard', () => {
382
381
  expect.fail(msg);
383
382
  }
384
383
  });
385
- it('known baseline count is self-consistent (93 files)', async () => {
384
+ it('known baseline count is self-consistent (92 files)', async () => {
386
385
  // Sanity check: if the baseline grows, update this number.
387
386
  // Prevents accidental baseline bloat from going unnoticed.
388
387
  // See docs/reviews/plugin-core-inventory-2026-05.md §7
@@ -407,7 +406,9 @@ describe('PRI-212 plugin core anti-growth guard', () => {
407
406
  // Stage-3: Removed risk-calculator.ts (94 → 93) — pure logic sunk to
408
407
  // core runtime-v2/risk/, dead code (assessRiskLevel/getTargetFileLineCount/
409
408
  // calculatePercentageThreshold) removed.
410
- expect(KNOWN_PLUGIN_CORE_FILES.size).toBe(93);
409
+ // Stage-3 sink: Removed surface-guard.ts (93 → 92) — pure guard logic
410
+ // migrated to @principles/core/runtime-v2/feature-flags/surface-guard-policy.
411
+ expect(KNOWN_PLUGIN_CORE_FILES.size).toBe(92);
411
412
  });
412
413
  });
413
414
  const REQUIRED_TEST_FILES = [