@principles/host-runtime 3.1.3 → 3.2.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.
|
@@ -39,6 +39,10 @@ import { StoreEventEmitter } from '@principles/core/runtime';
|
|
|
39
39
|
* Rule 4 降级放行 CREATE 时 Owner 必须能事后取证「复用保护为何没拦」。
|
|
40
40
|
* 注意 reuse_evaluation_recommended 刻意不入列:recommended 已由
|
|
41
41
|
* candidateOutcomes / reuseEvidence 持久承载,落盘会形成第二决策日志)
|
|
42
|
+
* - diag_router_trusted_context_unavailable / replay_review_source_invalid
|
|
43
|
+
* (PRI-1146 P1-01:低频 skip/degradation 取证 — 前者记录 ledger 不可证明
|
|
44
|
+
* 时 canonical association 为何保持 unresolved,后者是 replay review skip
|
|
45
|
+
* 的唯一持久记录;见 Set 内注释)
|
|
42
46
|
*
|
|
43
47
|
* 落点 `<workspaceDir>/.pd/telemetry/critical-events.jsonl`(JSONL,一行一
|
|
44
48
|
* 事件,含完整 TelemetryEvent)。同步 append:事件量小(allowlist 限流),
|
|
@@ -59,6 +63,15 @@ const CRITICAL_EVENT_ALLOWLIST = new Set([
|
|
|
59
63
|
'artificer_blocked_on_owner_evidence',
|
|
60
64
|
'reuse_gate_triggered',
|
|
61
65
|
'reuse_evaluation_unavailable',
|
|
66
|
+
// PRI-1146 (P1-01 / rc-9): typed-unavailable diagnosis runs and replay-review
|
|
67
|
+
// skips must be reconstructable after the fact. Both are low-frequency skip/
|
|
68
|
+
// degradation evidence: the router event records WHY canonical associations
|
|
69
|
+
// stayed unresolved when the ledger was unprovable (the receipt is the
|
|
70
|
+
// primary proof; this line survives even if the artifact write later fails),
|
|
71
|
+
// and the replay event records WHY a pending candidate was not reuse-reviewed
|
|
72
|
+
// (its only durable record — the candidate row itself carries no skip reason).
|
|
73
|
+
'diag_router_trusted_context_unavailable',
|
|
74
|
+
'replay_review_source_invalid',
|
|
62
75
|
]);
|
|
63
76
|
export class WorkspaceTelemetryEmitter extends StoreEventEmitter {
|
|
64
77
|
upstream;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@principles/host-runtime",
|
|
3
|
-
"version": "3.1
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "Shared host-neutral orchestration for Principles Disciple MVP-Core hook paths.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"lint": "eslint \"src/**/*.ts\""
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@principles/core": "^
|
|
35
|
-
"@principles/install-layout": "^0.
|
|
34
|
+
"@principles/core": "^7.0.0",
|
|
35
|
+
"@principles/install-layout": "^0.6.0",
|
|
36
36
|
"better-sqlite3": "^13.0.3",
|
|
37
37
|
"js-yaml": "^5.4.3"
|
|
38
38
|
},
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"url": "git+https://github.com/csuzngjh/principles.git"
|
|
50
50
|
},
|
|
51
51
|
"license": "Apache-2.0",
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "80e8f5e27a6b7b395f73d2334477eb34317c3cc0"
|
|
53
53
|
}
|