@principles/core 1.262.0 → 1.264.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.
Files changed (93) hide show
  1. package/dist/runtime-v2/__tests__/architecture-regression.test.js +8 -2
  2. package/dist/runtime-v2/__tests__/architecture-regression.test.js.map +1 -1
  3. package/dist/runtime-v2/activation/__tests__/openclaw-promotion-checks.test.d.ts +2 -0
  4. package/dist/runtime-v2/activation/__tests__/openclaw-promotion-checks.test.d.ts.map +1 -0
  5. package/dist/runtime-v2/activation/__tests__/openclaw-promotion-checks.test.js +91 -0
  6. package/dist/runtime-v2/activation/__tests__/openclaw-promotion-checks.test.js.map +1 -0
  7. package/dist/runtime-v2/activation/__tests__/promotion-readiness-evaluator.test.d.ts +2 -0
  8. package/dist/runtime-v2/activation/__tests__/promotion-readiness-evaluator.test.d.ts.map +1 -0
  9. package/dist/runtime-v2/activation/__tests__/promotion-readiness-evaluator.test.js +83 -0
  10. package/dist/runtime-v2/activation/__tests__/promotion-readiness-evaluator.test.js.map +1 -0
  11. package/dist/runtime-v2/activation/__tests__/promotion-readiness-reader.test.d.ts +2 -0
  12. package/dist/runtime-v2/activation/__tests__/promotion-readiness-reader.test.d.ts.map +1 -0
  13. package/dist/runtime-v2/activation/__tests__/promotion-readiness-reader.test.js +48 -0
  14. package/dist/runtime-v2/activation/__tests__/promotion-readiness-reader.test.js.map +1 -0
  15. package/dist/runtime-v2/activation/__tests__/rulecode-owner-decision-service.test.d.ts +2 -0
  16. package/dist/runtime-v2/activation/__tests__/rulecode-owner-decision-service.test.d.ts.map +1 -0
  17. package/dist/runtime-v2/activation/__tests__/rulecode-owner-decision-service.test.js +141 -0
  18. package/dist/runtime-v2/activation/__tests__/rulecode-owner-decision-service.test.js.map +1 -0
  19. package/dist/runtime-v2/activation/__tests__/rulecode-safety-circuit-breaker.test.d.ts +2 -0
  20. package/dist/runtime-v2/activation/__tests__/rulecode-safety-circuit-breaker.test.d.ts.map +1 -0
  21. package/dist/runtime-v2/activation/__tests__/rulecode-safety-circuit-breaker.test.js +31 -0
  22. package/dist/runtime-v2/activation/__tests__/rulecode-safety-circuit-breaker.test.js.map +1 -0
  23. package/dist/runtime-v2/activation/__tests__/sqlite-activation-safety-store.test.d.ts +2 -0
  24. package/dist/runtime-v2/activation/__tests__/sqlite-activation-safety-store.test.d.ts.map +1 -0
  25. package/dist/runtime-v2/activation/__tests__/sqlite-activation-safety-store.test.js +311 -0
  26. package/dist/runtime-v2/activation/__tests__/sqlite-activation-safety-store.test.js.map +1 -0
  27. package/dist/runtime-v2/activation/activation-control-types.d.ts +61 -0
  28. package/dist/runtime-v2/activation/activation-control-types.d.ts.map +1 -0
  29. package/dist/runtime-v2/activation/activation-control-types.js +2 -0
  30. package/dist/runtime-v2/activation/activation-control-types.js.map +1 -0
  31. package/dist/runtime-v2/activation/index.d.ts +14 -0
  32. package/dist/runtime-v2/activation/index.d.ts.map +1 -1
  33. package/dist/runtime-v2/activation/index.js +7 -0
  34. package/dist/runtime-v2/activation/index.js.map +1 -1
  35. package/dist/runtime-v2/activation/openclaw-promotion-checks.d.ts +30 -0
  36. package/dist/runtime-v2/activation/openclaw-promotion-checks.d.ts.map +1 -0
  37. package/dist/runtime-v2/activation/openclaw-promotion-checks.js +124 -0
  38. package/dist/runtime-v2/activation/openclaw-promotion-checks.js.map +1 -0
  39. package/dist/runtime-v2/activation/promotion-readiness-evaluator.d.ts +17 -0
  40. package/dist/runtime-v2/activation/promotion-readiness-evaluator.d.ts.map +1 -0
  41. package/dist/runtime-v2/activation/promotion-readiness-evaluator.js +55 -0
  42. package/dist/runtime-v2/activation/promotion-readiness-evaluator.js.map +1 -0
  43. package/dist/runtime-v2/activation/promotion-readiness-reader.d.ts +21 -0
  44. package/dist/runtime-v2/activation/promotion-readiness-reader.d.ts.map +1 -0
  45. package/dist/runtime-v2/activation/promotion-readiness-reader.js +44 -0
  46. package/dist/runtime-v2/activation/promotion-readiness-reader.js.map +1 -0
  47. package/dist/runtime-v2/activation/rulecode-owner-decision-service.d.ts +104 -0
  48. package/dist/runtime-v2/activation/rulecode-owner-decision-service.d.ts.map +1 -0
  49. package/dist/runtime-v2/activation/rulecode-owner-decision-service.js +86 -0
  50. package/dist/runtime-v2/activation/rulecode-owner-decision-service.js.map +1 -0
  51. package/dist/runtime-v2/activation/rulecode-safety-circuit-breaker.d.ts +25 -0
  52. package/dist/runtime-v2/activation/rulecode-safety-circuit-breaker.d.ts.map +1 -0
  53. package/dist/runtime-v2/activation/rulecode-safety-circuit-breaker.js +23 -0
  54. package/dist/runtime-v2/activation/rulecode-safety-circuit-breaker.js.map +1 -0
  55. package/dist/runtime-v2/activation/rulecode-shadow-summary.d.ts +14 -0
  56. package/dist/runtime-v2/activation/rulecode-shadow-summary.d.ts.map +1 -0
  57. package/dist/runtime-v2/activation/rulecode-shadow-summary.js +57 -0
  58. package/dist/runtime-v2/activation/rulecode-shadow-summary.js.map +1 -0
  59. package/dist/runtime-v2/activation/sqlite-activation-safety-store.d.ts +40 -0
  60. package/dist/runtime-v2/activation/sqlite-activation-safety-store.d.ts.map +1 -0
  61. package/dist/runtime-v2/activation/sqlite-activation-safety-store.js +461 -0
  62. package/dist/runtime-v2/activation/sqlite-activation-safety-store.js.map +1 -0
  63. package/dist/runtime-v2/activation/sqlite-activation-state-store.d.ts.map +1 -1
  64. package/dist/runtime-v2/activation/sqlite-activation-state-store.js +24 -6
  65. package/dist/runtime-v2/activation/sqlite-activation-state-store.js.map +1 -1
  66. package/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.js +19 -4
  67. package/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.js.map +1 -1
  68. package/dist/runtime-v2/activation/writers/rule-host-writer.d.ts.map +1 -1
  69. package/dist/runtime-v2/activation/writers/rule-host-writer.js +10 -0
  70. package/dist/runtime-v2/activation/writers/rule-host-writer.js.map +1 -1
  71. package/dist/runtime-v2/config/__tests__/pd-config-contract.test.js +13 -0
  72. package/dist/runtime-v2/config/__tests__/pd-config-contract.test.js.map +1 -1
  73. package/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.js +15 -2
  74. package/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.js.map +1 -1
  75. package/dist/runtime-v2/feature-flags/feature-flag-contract.d.ts.map +1 -1
  76. package/dist/runtime-v2/feature-flags/feature-flag-contract.js +2 -0
  77. package/dist/runtime-v2/feature-flags/feature-flag-contract.js.map +1 -1
  78. package/dist/runtime-v2/index.d.ts +2 -2
  79. package/dist/runtime-v2/index.d.ts.map +1 -1
  80. package/dist/runtime-v2/index.js +1 -1
  81. package/dist/runtime-v2/index.js.map +1 -1
  82. package/dist/runtime-v2/internalization/__tests__/legacy-rule-contract-scanner.test.js +20 -1
  83. package/dist/runtime-v2/internalization/__tests__/legacy-rule-contract-scanner.test.js.map +1 -1
  84. package/dist/runtime-v2/internalization/legacy-rule-contract-scanner.d.ts +4 -4
  85. package/dist/runtime-v2/internalization/legacy-rule-contract-scanner.d.ts.map +1 -1
  86. package/dist/runtime-v2/internalization/legacy-rule-contract-scanner.js +92 -5
  87. package/dist/runtime-v2/internalization/legacy-rule-contract-scanner.js.map +1 -1
  88. package/dist/runtime-v2/store/sqlite-connection-schema-version.test.js +11 -11
  89. package/dist/runtime-v2/store/sqlite-connection-schema-version.test.js.map +1 -1
  90. package/dist/runtime-v2/store/sqlite-connection.d.ts.map +1 -1
  91. package/dist/runtime-v2/store/sqlite-connection.js +111 -0
  92. package/dist/runtime-v2/store/sqlite-connection.js.map +1 -1
  93. package/package.json +1 -1
@@ -363,6 +363,10 @@ const KNOWN_PLUGIN_CORE_FILES = new Set([
363
363
  // mapping from safeReadIntentDoc result to the core-owned IntentDocReadResult.
364
364
  // No new I/O; delegates to intent-doc-reader.ts above.
365
365
  'intent-doc-reader-adapter.ts',
366
+ // RuleCode safety containment I/O boundary — reads approved artifact scope and
367
+ // persists circuit-breaker isolation through the core-owned SQLite safety store.
368
+ // Pure threshold policy remains in principles-core.
369
+ 'rulecode-safety-circuit.ts',
366
370
  // ── Test Files ──────────────────────────────────────────────────────────
367
371
  '__tests__/focus-history.test.ts',
368
372
  'principle-compiler/__tests__/compiler-replay-gate.test.ts',
@@ -404,7 +408,7 @@ describe('PRI-212 plugin core anti-growth guard', () => {
404
408
  expect.fail(msg);
405
409
  }
406
410
  });
407
- it('known baseline count is self-consistent (96 files)', async () => {
411
+ it('known baseline count is self-consistent (97 files)', async () => {
408
412
  // Sanity check: if the baseline grows, update this number.
409
413
  // Prevents accidental baseline bloat from going unnoticed.
410
414
  // See docs/archive/reviews/plugin-core-inventory-2026-05.md §7
@@ -450,7 +454,9 @@ describe('PRI-212 plugin core anti-growth guard', () => {
450
454
  // MVP core-loop closure (P0-B/P0-D): Added signal-keyword-store.ts +
451
455
  // auto-consumer-governance-wiring.ts (94 → 96) — live correction-cue store
452
456
  // projection + auto-consumer governance dispatcher/repair wiring (I/O boundary).
453
- expect(KNOWN_PLUGIN_CORE_FILES.size).toBe(96);
457
+ // RuleCode Owner Live Decision: Added rulecode-safety-circuit.ts (96 → 97)
458
+ // as the plugin I/O shell for scope reads and durable safety isolation.
459
+ expect(KNOWN_PLUGIN_CORE_FILES.size).toBe(97);
454
460
  });
455
461
  });
456
462
  const REQUIRED_TEST_FILES = [