create-principles-disciple 1.147.18 → 1.148.1

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 (187) hide show
  1. package/_release/product-identity.json +1 -1
  2. package/codex-adapter/package.json +1 -1
  3. package/console/dist/server/config/pd-config-store.js +6 -6
  4. package/console/dist/server/index.d.ts +20 -0
  5. package/console/dist/server/index.js +104 -84
  6. package/console/dist/server/models/ApprovalsConsoleModel.d.ts +1 -1
  7. package/console/dist/server/models/ApprovalsConsoleModel.js +5 -2
  8. package/console/dist/server/models/GovernanceExperienceCollector.js +2 -1
  9. package/console/dist/server/models/GovernanceProjectionCollector.js +11 -10
  10. package/console/dist/server/models/IntentPageModel.js +1 -1
  11. package/console/dist/server/models/OwnerDecisionViewModel.d.ts +3 -2
  12. package/console/dist/server/models/OwnerDecisionViewModel.js +8 -7
  13. package/console/dist/server/routes/activations.js +5 -5
  14. package/console/dist/server/routes/approvals-grouped.js +2 -2
  15. package/console/dist/server/routes/approvals.js +7 -7
  16. package/console/dist/server/routes/config.d.ts +4 -4
  17. package/console/dist/server/routes/config.js +5 -5
  18. package/console/dist/server/routes/evidence-chain.d.ts +1 -1
  19. package/console/dist/server/routes/evidence-outcomes.d.ts +2 -2
  20. package/console/dist/server/routes/examiner.d.ts +12 -12
  21. package/console/dist/server/routes/examiner.js +2 -2
  22. package/console/dist/server/routes/failed-tasks.d.ts +4 -4
  23. package/console/dist/server/routes/failed-tasks.js +10 -10
  24. package/console/dist/server/routes/governance.d.ts +1 -1
  25. package/console/dist/server/routes/governance.js +3 -3
  26. package/console/dist/server/routes/intent-decisions.d.ts +6 -6
  27. package/console/dist/server/routes/intent-decisions.js +13 -13
  28. package/console/dist/server/routes/intent.js +6 -6
  29. package/console/dist/server/routes/lifecycle.js +3 -3
  30. package/console/dist/server/routes/onboarding.d.ts +1 -1
  31. package/console/dist/server/routes/onboarding.js +4 -4
  32. package/console/dist/server/routes/owner-decision.d.ts +5 -5
  33. package/console/dist/server/routes/owner-decision.js +3 -3
  34. package/console/dist/server/routes/owner-decisions.d.ts +3 -3
  35. package/console/dist/server/routes/owner-decisions.js +3 -3
  36. package/console/dist/server/routes/owner-identity.d.ts +1 -1
  37. package/console/dist/server/routes/owner-identity.js +1 -1
  38. package/console/dist/server/routes/principles.d.ts +4 -3
  39. package/console/dist/server/routes/principles.js +5 -4
  40. package/console/dist/server/routes/receipts.d.ts +2 -2
  41. package/console/dist/server/routes/receipts.js +4 -4
  42. package/console/dist/server.d.ts +2 -1
  43. package/console/dist/server.js +9 -1
  44. package/console/dist/shared/prompt-injection-contract.d.ts +1 -1
  45. package/console/dist/web/assets/app.js +23 -23
  46. package/core/dist/index.d.ts +1 -1
  47. package/core/dist/index.d.ts.map +1 -1
  48. package/core/dist/index.js +3 -2
  49. package/core/dist/index.js.map +1 -1
  50. package/core/dist/runtime/activation/approval-review-guard.d.ts +2 -2
  51. package/core/dist/runtime/activation/approval-review-guard.d.ts.map +1 -1
  52. package/core/dist/runtime/activation/approval-review-guard.js +6 -1
  53. package/core/dist/runtime/activation/approval-review-guard.js.map +1 -1
  54. package/core/dist/runtime/activation/prompt-budget-policy.d.ts +9 -1
  55. package/core/dist/runtime/activation/prompt-budget-policy.d.ts.map +1 -1
  56. package/core/dist/runtime/activation/prompt-budget-policy.js +9 -1
  57. package/core/dist/runtime/activation/prompt-budget-policy.js.map +1 -1
  58. package/core/dist/runtime/activation/recovery-control-surfaces.d.ts +1 -1
  59. package/core/dist/runtime/activation/recovery-control-surfaces.js +2 -2
  60. package/core/dist/runtime/activation/recovery-control-surfaces.js.map +1 -1
  61. package/core/dist/runtime/adapter/output-schema-registry.d.ts +1 -1
  62. package/core/dist/runtime/adapter/output-schema-registry.d.ts.map +1 -1
  63. package/core/dist/runtime/adapter/output-schema-registry.js +23 -18
  64. package/core/dist/runtime/adapter/output-schema-registry.js.map +1 -1
  65. package/core/dist/runtime/adapter/pi-ai-runtime-adapter.js +1 -1
  66. package/core/dist/runtime/adapter/pi-ai-runtime-adapter.js.map +1 -1
  67. package/core/dist/runtime/adapter/schema-json-converter.d.ts +1 -1
  68. package/core/dist/runtime/adapter/schema-json-converter.js +1 -1
  69. package/core/dist/runtime/adapter/tools/diagnostician-tool.js +1 -1
  70. package/core/dist/runtime/adapter/tools/diagnostician-tool.js.map +1 -1
  71. package/core/dist/runtime/diagnostician-output.d.ts +2 -2
  72. package/core/dist/runtime/diagnostician-output.d.ts.map +1 -1
  73. package/core/dist/runtime/diagnostician-output.js +1 -1
  74. package/core/dist/runtime/diagnostician-output.js.map +1 -1
  75. package/core/dist/runtime/feature-flags/plugin-surface-registry.d.ts.map +1 -1
  76. package/core/dist/runtime/feature-flags/plugin-surface-registry.js +10 -0
  77. package/core/dist/runtime/feature-flags/plugin-surface-registry.js.map +1 -1
  78. package/core/dist/runtime/governance-experience-contract.d.ts +4 -4
  79. package/core/dist/runtime/governance-experience-contract.d.ts.map +1 -1
  80. package/core/dist/runtime/governance-experience-contract.js +3 -2
  81. package/core/dist/runtime/governance-experience-contract.js.map +1 -1
  82. package/core/dist/runtime/governance-experience.d.ts.map +1 -1
  83. package/core/dist/runtime/governance-experience.js +2 -1
  84. package/core/dist/runtime/governance-experience.js.map +1 -1
  85. package/core/dist/runtime/governance-projection-contract.d.ts +14 -14
  86. package/core/dist/runtime/governance-projection-contract.d.ts.map +1 -1
  87. package/core/dist/runtime/governance-projection-contract.js +4 -3
  88. package/core/dist/runtime/governance-projection-contract.js.map +1 -1
  89. package/core/dist/runtime/governance-projection.d.ts.map +1 -1
  90. package/core/dist/runtime/governance-projection.js +2 -1
  91. package/core/dist/runtime/governance-projection.js.map +1 -1
  92. package/core/dist/runtime/index.d.ts +2 -2
  93. package/core/dist/runtime/index.d.ts.map +1 -1
  94. package/core/dist/runtime/index.js +2 -3
  95. package/core/dist/runtime/index.js.map +1 -1
  96. package/core/dist/runtime/internalization/artificer-runner.d.ts +1 -1
  97. package/core/dist/runtime/internalization/artificer-runner.d.ts.map +1 -1
  98. package/core/dist/runtime/internalization/artificer-runner.js +3 -2
  99. package/core/dist/runtime/internalization/artificer-runner.js.map +1 -1
  100. package/core/dist/runtime/internalization/diag-distiller-runner.d.ts.map +1 -1
  101. package/core/dist/runtime/internalization/diag-distiller-runner.js +3 -2
  102. package/core/dist/runtime/internalization/diag-distiller-runner.js.map +1 -1
  103. package/core/dist/runtime/internalization/diag-rootcause-runner.d.ts.map +1 -1
  104. package/core/dist/runtime/internalization/diag-rootcause-runner.js +3 -2
  105. package/core/dist/runtime/internalization/diag-rootcause-runner.js.map +1 -1
  106. package/core/dist/runtime/internalization/diag-router-runner.d.ts.map +1 -1
  107. package/core/dist/runtime/internalization/diag-router-runner.js +4 -3
  108. package/core/dist/runtime/internalization/diag-router-runner.js.map +1 -1
  109. package/core/dist/runtime/internalization/dreamer-runner.d.ts.map +1 -1
  110. package/core/dist/runtime/internalization/dreamer-runner.js +3 -2
  111. package/core/dist/runtime/internalization/dreamer-runner.js.map +1 -1
  112. package/core/dist/runtime/internalization/evaluator-runner.d.ts.map +1 -1
  113. package/core/dist/runtime/internalization/evaluator-runner.js +3 -2
  114. package/core/dist/runtime/internalization/evaluator-runner.js.map +1 -1
  115. package/core/dist/runtime/internalization/philosopher-runner.d.ts +1 -1
  116. package/core/dist/runtime/internalization/philosopher-runner.d.ts.map +1 -1
  117. package/core/dist/runtime/internalization/philosopher-runner.js +3 -2
  118. package/core/dist/runtime/internalization/philosopher-runner.js.map +1 -1
  119. package/core/dist/runtime/internalization/rollout-reviewer-output.d.ts +1 -1
  120. package/core/dist/runtime/internalization/rollout-reviewer-output.js +1 -1
  121. package/core/dist/runtime/internalization/rollout-reviewer-output.js.map +1 -1
  122. package/core/dist/runtime/internalization/rollout-reviewer-runner.d.ts.map +1 -1
  123. package/core/dist/runtime/internalization/rollout-reviewer-runner.js +3 -2
  124. package/core/dist/runtime/internalization/rollout-reviewer-runner.js.map +1 -1
  125. package/core/dist/runtime/internalization/router-context-evidence.d.ts +1 -1
  126. package/core/dist/runtime/internalization/router-context-evidence.d.ts.map +1 -1
  127. package/core/dist/runtime/internalization/router-context-evidence.js +4 -1
  128. package/core/dist/runtime/internalization/router-context-evidence.js.map +1 -1
  129. package/core/dist/runtime/internalization/scribe-runner.d.ts +1 -1
  130. package/core/dist/runtime/internalization/scribe-runner.d.ts.map +1 -1
  131. package/core/dist/runtime/internalization/scribe-runner.js +3 -2
  132. package/core/dist/runtime/internalization/scribe-runner.js.map +1 -1
  133. package/core/dist/runtime/learning-lab/actor-action-output.d.ts +1 -1
  134. package/core/dist/runtime/learning-lab/actor-action-output.d.ts.map +1 -1
  135. package/core/dist/runtime/learning-lab/actor-action-output.js +1 -1
  136. package/core/dist/runtime/learning-lab/actor-action-output.js.map +1 -1
  137. package/core/dist/runtime/observer/correction-observer.d.ts.map +1 -1
  138. package/core/dist/runtime/observer/correction-observer.js +3 -2
  139. package/core/dist/runtime/observer/correction-observer.js.map +1 -1
  140. package/core/dist/runtime/owner-decision/owner-decision-view-contract.d.ts +1 -1
  141. package/core/dist/runtime/owner-decision/owner-decision-view-contract.d.ts.map +1 -1
  142. package/core/dist/runtime/owner-decision/owner-decision-view-contract.js +2 -1
  143. package/core/dist/runtime/owner-decision/owner-decision-view-contract.js.map +1 -1
  144. package/core/dist/runtime/owner-decision/owner-decision-view.d.ts +8 -8
  145. package/core/dist/runtime/owner-decision/owner-decision-view.d.ts.map +1 -1
  146. package/core/dist/runtime/owner-decision/owner-decision-view.js +10 -9
  147. package/core/dist/runtime/owner-decision/owner-decision-view.js.map +1 -1
  148. package/core/dist/runtime/principle-reuse/reuse-evaluation-output.d.ts +1 -1
  149. package/core/dist/runtime/principle-reuse/reuse-evaluation-output.d.ts.map +1 -1
  150. package/core/dist/runtime/principle-reuse/reuse-evaluation-output.js +1 -1
  151. package/core/dist/runtime/principle-reuse/reuse-evaluation-output.js.map +1 -1
  152. package/core/dist/runtime/principle-reuse/reuse-evaluation-runner.d.ts.map +1 -1
  153. package/core/dist/runtime/principle-reuse/reuse-evaluation-runner.js +5 -4
  154. package/core/dist/runtime/principle-reuse/reuse-evaluation-runner.js.map +1 -1
  155. package/core/dist/runtime/schema-version.d.ts +30 -14
  156. package/core/dist/runtime/schema-version.d.ts.map +1 -1
  157. package/core/dist/runtime/schema-version.js +33 -13
  158. package/core/dist/runtime/schema-version.js.map +1 -1
  159. package/core/package.json +1 -1
  160. package/dist/installers/workbuddy-host-installer.d.ts +32 -1
  161. package/dist/installers/workbuddy-host-installer.d.ts.map +1 -1
  162. package/dist/installers/workbuddy-host-installer.js +819 -47
  163. package/dist/installers/workbuddy-host-installer.js.map +1 -1
  164. package/dist/utils/config-file-io.d.ts +27 -1
  165. package/dist/utils/config-file-io.d.ts.map +1 -1
  166. package/dist/utils/config-file-io.js +78 -3
  167. package/dist/utils/config-file-io.js.map +1 -1
  168. package/host-runtime/dist/prompt-injection-budget-observation.js +10 -8
  169. package/host-runtime/dist/signal-classifier.d.ts +3 -1
  170. package/host-runtime/dist/signal-classifier.js +5 -3
  171. package/host-runtime/package.json +1 -1
  172. package/package.json +3 -3
  173. package/pd-cli/package.json +1 -1
  174. package/pd-mcp-server/dist/version.d.ts +1 -1
  175. package/pd-mcp-server/dist/version.js +1 -1
  176. package/pd-mcp-server/package.json +1 -1
  177. package/plugin/dist/bundle.js +441 -441
  178. package/plugin/dist/core/event-log.d.ts +5 -0
  179. package/plugin/dist/governance-audit.js +2 -2
  180. package/plugin/dist/openclaw.plugin.json +1 -1
  181. package/plugin/dist/rulehost-evidence.js +9 -9
  182. package/plugin/openclaw.plugin.json +1 -1
  183. package/plugin/package.json +1 -1
  184. package/release-manager/dist/installers/workbuddy-host-installer.js +819 -47
  185. package/release-manager/dist/utils/config-file-io.js +78 -3
  186. package/release-manager/package.json +1 -1
  187. package/workbuddy-adapter/package.json +1 -1
@@ -12,6 +12,48 @@ export function errnoCode(value) {
12
12
  * target with exclusive sharing surfaces as these on Windows. Transient by
13
13
  * nature — the host rewrites its settings periodically and releases. */
14
14
  const RETRYABLE_RENAME_ERRNOS = new Set(['EPERM', 'EBUSY', 'EACCES']);
15
+ /**
16
+ * The target changed after the transaction snapshot; guarded replacement was
17
+ * refused. `committed: false` means this writer did NOT replace the target.
18
+ *
19
+ * LIMIT (must not be described as a CAS): POSIX/Windows filesystems expose no
20
+ * portable compare-and-swap rename. The guard re-reads and byte-compares
21
+ * immediately before each rename, which narrows but CANNOT eliminate the
22
+ * cross-process window between that read and the rename itself. A concurrent
23
+ * write landing inside that window is not detectable here; callers must keep
24
+ * the original snapshot as manual-recovery evidence instead of claiming the
25
+ * concurrent edit survived.
26
+ */
27
+ export class AtomicReplaceConflictError extends Error {
28
+ committed = false;
29
+ filePath;
30
+ /** Private temp dir left behind when cleanup also failed (manual review). */
31
+ residueDir;
32
+ constructor(filePath, residueDir, cleanupDetail) {
33
+ const residue = residueDir !== undefined
34
+ ? `; temporary write residue preserved at ${residueDir}` +
35
+ (cleanupDetail !== undefined ? ` (${cleanupDetail})` : '')
36
+ : '';
37
+ super(`Atomic replacement refused because ${filePath} changed after the transaction snapshot${residue}. ` +
38
+ 'This is a best-effort byte guard, NOT an atomic compare-and-swap: a concurrent write landing in the final read-then-rename window cannot be ruled out.');
39
+ this.name = 'AtomicReplaceConflictError';
40
+ this.filePath = filePath;
41
+ this.residueDir = residueDir;
42
+ }
43
+ }
44
+ /** The target rename committed, but cleanup of the private temp directory failed. */
45
+ export class AtomicReplaceCleanupError extends Error {
46
+ committed = true;
47
+ filePath;
48
+ tempDir;
49
+ constructor(filePath, tempDir, cleanupError) {
50
+ const detail = cleanupError instanceof Error ? cleanupError.message : String(cleanupError);
51
+ super(`Atomic replacement committed at ${filePath}, but temporary directory cleanup failed at ${tempDir}: ${detail}`);
52
+ this.name = 'AtomicReplaceCleanupError';
53
+ this.filePath = filePath;
54
+ this.tempDir = tempDir;
55
+ }
56
+ }
15
57
  function sleepSync(milliseconds) {
16
58
  if (milliseconds <= 0)
17
59
  return;
@@ -22,7 +64,7 @@ function sleepSync(milliseconds) {
22
64
  * WorkBuddy host holds settings.json while running and a single-attempt
23
65
  * rename turned minutes of installer work into a full rollback. */
24
66
  // eslint-disable-next-line @typescript-eslint/max-params -- fs-ops seam + retry options; merging them would break every existing ops caller
25
- export function atomicReplaceTextFile(filePath, content, ops = FILE_OPS, retry = {}) {
67
+ export function atomicReplaceTextFile(filePath, content, ops = FILE_OPS, retry = {}, expectedCurrentBytes) {
26
68
  const maxAttempts = Math.max(1, retry.maxAttempts ?? 5);
27
69
  const wait = retry.sleep ?? sleepSync;
28
70
  const tempDir = ops.mkdtempSync(path.join(path.dirname(filePath), '.pd-config-write-'));
@@ -32,12 +74,35 @@ export function atomicReplaceTextFile(filePath, content, ops = FILE_OPS, retry =
32
74
  let operationError;
33
75
  try {
34
76
  fd = ops.openSync(tempPath, fs.constants.O_WRONLY | fs.constants.O_CREAT | fs.constants.O_EXCL, 0o600);
35
- ops.writeFileSync(fd, content, 'utf8');
77
+ if (typeof content === 'string')
78
+ ops.writeFileSync(fd, content, 'utf8');
79
+ else
80
+ ops.writeFileSync(fd, content);
36
81
  ops.fsyncSync(fd);
37
82
  ops.closeSync(fd);
38
83
  fd = undefined;
39
84
  for (let attempt = 0;; attempt += 1) {
40
85
  try {
86
+ // A rollback caller supplies the exact bytes PD previously wrote.
87
+ // Revalidate at the commit boundary on every retry so an edit observed
88
+ // before the rename is not replaced by a stale snapshot. This is a
89
+ // best-effort guard, NOT an atomic CAS: the read and the rename are two
90
+ // separate syscalls and a non-cooperating process can write between
91
+ // them. See AtomicReplaceConflictError for the documented limit.
92
+ if (expectedCurrentBytes !== undefined) {
93
+ let currentBytes;
94
+ try {
95
+ currentBytes = Buffer.from(ops.readFileSync(filePath));
96
+ }
97
+ catch (error) {
98
+ if (errnoCode(error) === 'ENOENT')
99
+ throw new AtomicReplaceConflictError(filePath);
100
+ throw error;
101
+ }
102
+ if (!currentBytes.equals(Buffer.from(expectedCurrentBytes))) {
103
+ throw new AtomicReplaceConflictError(filePath);
104
+ }
105
+ }
41
106
  ops.renameSync(tempPath, filePath);
42
107
  operationError = undefined;
43
108
  break;
@@ -81,12 +146,22 @@ export function atomicReplaceTextFile(filePath, content, ops = FILE_OPS, retry =
81
146
  }
82
147
  }
83
148
  if (operationError !== undefined && cleanupError !== undefined) {
149
+ // A guarded conflict is the authoritative verdict (rename never committed).
150
+ // Surface it with the residue path instead of an opaque AggregateError, so
151
+ // the rollback can report the real state and preserve recovery evidence.
152
+ if (operationError instanceof AtomicReplaceConflictError) {
153
+ const detail = cleanupError instanceof Error ? cleanupError.message : String(cleanupError);
154
+ throw new AtomicReplaceConflictError(operationError.filePath, tempDir, detail);
155
+ }
84
156
  throw new AggregateError([operationError, cleanupError], 'Atomic config replacement and cleanup both failed');
85
157
  }
86
158
  if (operationError !== undefined)
87
159
  throw operationError instanceof Error ? operationError : new Error(String(operationError));
88
- if (cleanupError !== undefined)
160
+ if (cleanupError !== undefined) {
161
+ if (replaced)
162
+ throw new AtomicReplaceCleanupError(filePath, tempDir, cleanupError);
89
163
  throw cleanupError instanceof Error ? cleanupError : new Error(String(cleanupError));
164
+ }
90
165
  }
91
166
  function readLockPid(lockPath, ops) {
92
167
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"config-file-io.js","sourceRoot":"","sources":["../../src/utils/config-file-io.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAgBlC,MAAM,QAAQ,GAAkB,EAAE,CAAC;AAEnC,mFAAmF;AACnF,MAAM,UAAU,SAAS,CAAC,KAAc;IACtC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC;QAAE,OAAO,SAAS,CAAC;IACnG,MAAM,EAAE,IAAI,EAAE,GAAG,KAA2B,CAAC;IAC7C,OAAO,OAAO,IAAI,KAAK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MAAM,CAAC,CAAC,oCAAoC,CAAC,CAAC;YAClF,CAAC;YACD,IAAI,SAAS,CAAC,KAAK,CAAC,KAAK,QAAQ;gBAAE,MAAM,KAAK,CAAC;YAC/C,yEAAyE;YACzE,oEAAoE;YACpE,IAAI,OAAO,GAAG,WAAW,GAAG,CAAC,EAAE,CAAC;gBAC9B,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,IAAI,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;YACzC,CAAC;QACH,CAAC;IACH,CAAC;IACD,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,SAAS,GAAG,WAAW,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;QAC7C,MAAM,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,SAAS,EAAE,CAAC;QACnE,MAAM,IAAI,KAAK,CACb,iCAAiC,QAAQ,YAAY,MAAM,IAAI;YAC/D,iFAAiF,CAClF,CAAC;IACJ,CAAC;IACD,IAAI,CAAC;QACH,OAAO,MAAM,EAAE,CAAC;IAClB,CAAC;YAAS,CAAC;QACT,IAAI,WAAW,CAAC,QAAQ,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,GAAG;YAAE,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC3E,CAAC;AACH,CAAC"}
@@ -3,10 +3,11 @@ import path from 'node:path';
3
3
  import { PROMPT_BUDGET_POLICY_VERSION, RUNTIME_PRINCIPLE_BUDGET, isValidContextWindowTokens, promptBudgetCharsForContextWindow, resolvePromptBudget, operatorDeclaredContextWindow, } from '@principles/core/runtime';
4
4
  import { isPromptInjectionTargetHost, } from './prompt-injection-projection.js';
5
5
  /**
6
- * PRI-1104 Stage 0 (expand): accepted budget policy provenance versions.
6
+ * PRI-1104 Stage 0 (expand) / PRI-1139 (PR-6 cutover): accepted budget policy
7
+ * provenance versions.
7
8
  *
8
9
  * Injection events written to the JSONL event log carry `budgetPolicyVersion`
9
- * as a durable wire literal. PR-6 renames the CURRENT policy id from
10
+ * as a durable wire literal. PR-6 renamed the CURRENT policy id from
10
11
  * `model_aware_v2` to a version-neutral `model_aware`; without this read-side
11
12
  * allowance, every historical event would suddenly be classified as
12
13
  * "computed under a different policy" and silently skipped (and a revert of
@@ -14,13 +15,14 @@ import { isPromptInjectionTargetHost, } from './prompt-injection-projection.js';
14
15
  *
15
16
  * These are FROZEN WIRE LITERALS, not a second policy definition: they exist
16
17
  * only so events remain readable across the PR-6 rename AND its revert. The
17
- * PR-6 target id `model_aware` is listed up front (PR #2367 CodeRabbit #2):
18
- * if PR-6 is reverted after it wrote `model_aware` events, a reader accepting
19
- * only `model_aware_v2` would silently skip those observations and the console
20
- * would fall back to a stale budget.
18
+ * pre-cutover id `model_aware_v2` is listed explicitly (PR #2367 CodeRabbit
19
+ * #2): if PR-6 is reverted, a reader accepting only the then-current
20
+ * `model_aware` would silently skip every historical observation and the
21
+ * console would fall back to a stale budget.
21
22
  *
22
- * Today the writer emits only `model_aware_v2`, so listing the future and
23
- * historical literals does not change any current read result.
23
+ * Since the PRI-1139 cutover the writer emits `model_aware`; both spellings
24
+ * denote the SAME formula, so an accepted event of either id is valid
25
+ * evidence about the current budget math.
24
26
  */
25
27
  const ACCEPTED_BUDGET_POLICY_VERSIONS = new Set([
26
28
  PROMPT_BUDGET_POLICY_VERSION,
@@ -29,8 +29,10 @@ export interface CreateSignalClassifierOptions {
29
29
  * packages/principles-core/src/runtime/adapter/output-schema-registry.ts:
30
30
  * the adapter fails loud (`output_invalid`) on an unregistered ref, and the
31
31
  * catch below would silently degrade Stage 2 to "no classification".
32
+ * PRI-1139: version-neutral canonical key; the pre-cutover `-v2` spelling
33
+ * still resolves through the registry's PRI-1104 alias table.
32
34
  */
33
- export declare const SIGNAL_CLASSIFICATION_SCHEMA_REF = "signal-classification-output-v2";
35
+ export declare const SIGNAL_CLASSIFICATION_SCHEMA_REF = "signal-classification-output";
34
36
  /** Build the classifier from an already-resolved profile (no config I/O). */
35
37
  export declare function createSignalLlmClassifier(profile: SignalClassifierProfile, workspaceDir: string, options?: CreateSignalClassifierOptions): SignalLlmClassifier;
36
38
  export type SignalClassifierResolution = {
@@ -13,7 +13,7 @@
13
13
  * No second model runtime is introduced (ADR-0029: pi-ai is the only backend).
14
14
  */
15
15
  import path from 'node:path';
16
- import { PiAiRuntimeAdapter, SIGNAL_CLASSIFIER_SYSTEM_PROMPT, buildLlmPrompt, resolveLlmClassificationPayload, safeStringifyPreview, } from '@principles/core/runtime';
16
+ import { PiAiRuntimeAdapter, RUNTIME_CONTRACT_SCHEMA_VERSION, SIGNAL_CLASSIFIER_SYSTEM_PROMPT, buildLlmPrompt, resolveLlmClassificationPayload, safeStringifyPreview, } from '@principles/core/runtime';
17
17
  import { loadPdConfigForPlugin } from './pd-config.js';
18
18
  /**
19
19
  * The Stage-2 structured-output contract this classifier requests. It MUST stay
@@ -21,8 +21,10 @@ import { loadPdConfigForPlugin } from './pd-config.js';
21
21
  * packages/principles-core/src/runtime/adapter/output-schema-registry.ts:
22
22
  * the adapter fails loud (`output_invalid`) on an unregistered ref, and the
23
23
  * catch below would silently degrade Stage 2 to "no classification".
24
+ * PRI-1139: version-neutral canonical key; the pre-cutover `-v2` spelling
25
+ * still resolves through the registry's PRI-1104 alias table.
24
26
  */
25
- export const SIGNAL_CLASSIFICATION_SCHEMA_REF = 'signal-classification-output-v2';
27
+ export const SIGNAL_CLASSIFICATION_SCHEMA_REF = 'signal-classification-output';
26
28
  /** Build the classifier from an already-resolved profile (no config I/O). */
27
29
  export function createSignalLlmClassifier(profile, workspaceDir, options = {}) {
28
30
  const timeoutMs = options.timeoutMs ?? profile.timeoutMs;
@@ -46,7 +48,7 @@ export function createSignalLlmClassifier(profile, workspaceDir, options = {}) {
46
48
  const effectiveTimeoutMs = callOptions?.timeoutMs ?? timeoutMs;
47
49
  try {
48
50
  const handle = await adapter.startRun({
49
- agentSpec: { agentId: 'signal-collector', schemaVersion: '1' },
51
+ agentSpec: { agentId: 'signal-collector', schemaVersion: RUNTIME_CONTRACT_SCHEMA_VERSION },
50
52
  inputPayload: { prompt },
51
53
  contextItems: [],
52
54
  timeoutMs: effectiveTimeoutMs,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@principles/host-runtime",
3
- "version": "3.0.4",
3
+ "version": "3.1.0",
4
4
  "description": "Shared host-neutral orchestration for Principles Disciple MVP-Core hook paths.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-principles-disciple",
3
- "version": "1.147.18",
3
+ "version": "1.148.1",
4
4
  "description": "Interactive CLI installer for Principles Disciple OpenClaw plugin",
5
5
  "type": "module",
6
6
  "bin": {
@@ -99,7 +99,7 @@
99
99
  "directory": "packages/create-principles-disciple"
100
100
  },
101
101
  "pd": {
102
- "bundledPluginVersion": "3.0.2"
102
+ "bundledPluginVersion": "3.1.1"
103
103
  },
104
- "gitHead": "d1b8ff89e487e11a242aa705ee562b75ebc8d209"
104
+ "gitHead": "1dd3b8e871ed88bac3cf2cc3a7dcaea9838271ba"
105
105
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@principles/pd-cli",
3
- "version": "1.167.3",
3
+ "version": "1.168.0",
4
4
  "description": "PD CLI — Pain recording, sample management, and governance tasks for Principles Disciple",
5
5
  "type": "module",
6
6
  "bin": {
@@ -7,7 +7,7 @@
7
7
  * package.json. A unit test pins it to package.json so the two cannot drift.
8
8
  */
9
9
  export declare const SERVER_NAME: 'pd-mcp-server';
10
- export declare const SERVER_VERSION: '0.3.1';
10
+ export declare const SERVER_VERSION: '0.3.2';
11
11
  /** The only MCP SDK family/version this server is released against
12
12
  * (Gate 4-A freeze, PD_MCP_GATE4A_REALITY_CHECK §3). Exact pin — no ranges. */
13
13
  export declare const MCP_SDK_PIN: '@modelcontextprotocol/server@2.4.0';
@@ -7,7 +7,7 @@
7
7
  * package.json. A unit test pins it to package.json so the two cannot drift.
8
8
  */
9
9
  export const SERVER_NAME = 'pd-mcp-server';
10
- export const SERVER_VERSION = '0.3.1';
10
+ export const SERVER_VERSION = '0.3.2';
11
11
  /** The only MCP SDK family/version this server is released against
12
12
  * (Gate 4-A freeze, PD_MCP_GATE4A_REALITY_CHECK §3). Exact pin — no ranges. */
13
13
  export const MCP_SDK_PIN = '@modelcontextprotocol/server@2.4.0';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@principles/pd-mcp-server",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Principles Disciple MCP Server — the single shared MCP server implementation for the three PD hosts (Codex, OpenClaw, WorkBuddy). Read-only pain recall through the Gate 3 Capability (SPEC-PD-MCP-GATE4-001).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",