@principles/host-runtime 0.7.13 → 0.7.14
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.
|
@@ -25,6 +25,12 @@ import { StoreEventEmitter } from '@principles/core/runtime-v2';
|
|
|
25
25
|
* - artificer_l2_complete(PRI-795 review P1:Artificer L2 的 completion
|
|
26
26
|
* 证据 — abortOwner/budgetMs/elapsedMs/stopReason/tokenUsage — 必须
|
|
27
27
|
* crash 前落盘,否则 EP002-R3 的「失败后什么都查不到」重演)
|
|
28
|
+
* - reuse_gate_triggered(PRI-939 Option A:Reuse Review Gate 挂起观察,
|
|
29
|
+
* Owner 复用闭环的入口证据)
|
|
30
|
+
* - reuse_evaluation_unavailable(PRI-939 Option A:语义评估降级信号 —
|
|
31
|
+
* Rule 4 降级放行 CREATE 时 Owner 必须能事后取证「复用保护为何没拦」。
|
|
32
|
+
* 注意 reuse_evaluation_recommended 刻意不入列:recommended 已由
|
|
33
|
+
* candidateOutcomes / reuseEvidence 持久承载,落盘会形成第二决策日志)
|
|
28
34
|
*
|
|
29
35
|
* 落点 `<workspaceDir>/.pd/telemetry/critical-events.jsonl`(JSONL,一行一
|
|
30
36
|
* 事件,含完整 TelemetryEvent)。同步 append:事件量小(allowlist 限流),
|
|
@@ -38,6 +44,8 @@ const CRITICAL_EVENT_ALLOWLIST = new Set([
|
|
|
38
44
|
'evaluator_rule_assembled',
|
|
39
45
|
'evaluator_rule_assembly_failed',
|
|
40
46
|
'artificer_l2_complete',
|
|
47
|
+
'reuse_gate_triggered',
|
|
48
|
+
'reuse_evaluation_unavailable',
|
|
41
49
|
]);
|
|
42
50
|
export class WorkspaceTelemetryEmitter extends StoreEventEmitter {
|
|
43
51
|
upstream;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@principles/host-runtime",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.14",
|
|
4
4
|
"description": "Shared host-neutral orchestration for Principles Disciple MVP-Core hook paths.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"lint": "eslint \"src/**/*.ts\""
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@principles/core": "^1.289.
|
|
24
|
+
"@principles/core": "^1.289.1",
|
|
25
25
|
"@principles/install-layout": "^0.2.7",
|
|
26
26
|
"better-sqlite3": "^13.0.3",
|
|
27
27
|
"js-yaml": "^5.4.1"
|