principles-disciple 1.233.0 → 1.234.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.
- package/README.md +1 -2
- package/dist/bundle.js +731 -739
- package/dist/governance-audit.js +172 -172
- package/dist/hooks/after-tool-call-helpers.d.ts +1 -1
- package/dist/openclaw.plugin.json +1 -1
- package/dist/rulehost-evidence.js +182 -182
- package/dist/templates/langs/en/skills/pd-mentor/SKILL.md +2 -5
- package/dist/templates/langs/zh/skills/pd-mentor/SKILL.md +2 -5
- package/dist/utils/workspace-resolver.d.ts +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/templates/langs/en/skills/pd-mentor/SKILL.md +2 -5
- package/templates/langs/zh/skills/pd-mentor/SKILL.md +2 -5
- package/dist/commands/evolution-status.d.ts +0 -4
- package/dist/service/runtime-summary-service.d.ts +0 -156
- package/dist/types/runtime-summary.d.ts +0 -1
|
@@ -28,7 +28,6 @@ I'm your intelligent mentor, helping you understand and use all features of Prin
|
|
|
28
28
|
| `/pd-init` | Initialize strategy | New project startup |
|
|
29
29
|
| `/pd-bootstrap` | Environment tool scan and upgrade | Tool upgrade |
|
|
30
30
|
| `/pd-research` | Initiate tool upgrade research | Deep research |
|
|
31
|
-
| `/pd-evolution-status` | View trust score and security stage | Permission check |
|
|
32
31
|
| `/pd-status` | View system status (GFI and Pain Dictionary) | Health check |
|
|
33
32
|
| `/pd-help` | Get interactive command guidance | This skill |
|
|
34
33
|
|
|
@@ -55,7 +54,6 @@ I'm your intelligent mentor, helping you understand and use all features of Prin
|
|
|
55
54
|
|
|
56
55
|
**Recommended Flow**:
|
|
57
56
|
1. `/pd-status` - Check system status (GFI and Pain Dictionary)
|
|
58
|
-
2. `/pd-evolution-status` - View EP tier and evolution status
|
|
59
57
|
|
|
60
58
|
**Script**: "Problems are the fuel of evolution. Let me help you diagnose and fix systematically."
|
|
61
59
|
|
|
@@ -66,8 +64,7 @@ I'm your intelligent mentor, helping you understand and use all features of Prin
|
|
|
66
64
|
**Trigger**: The user explicitly asks for a Principles Disciple progress or health review (mentioning PD, EP, GFI, or system status)
|
|
67
65
|
|
|
68
66
|
**Recommended Flow**:
|
|
69
|
-
1. `/pd-
|
|
70
|
-
2. `/pd-status` - Check GFI and Pain Dictionary status
|
|
67
|
+
1. `/pd-status` - Check GFI and Pain Dictionary status
|
|
71
68
|
|
|
72
69
|
**Script**: "Let me help you review the current system status."
|
|
73
70
|
|
|
@@ -78,7 +75,7 @@ I'm your intelligent mentor, helping you understand and use all features of Prin
|
|
|
78
75
|
**Trigger**: The user asks about Principles Disciple permissions, blocks, or security stages
|
|
79
76
|
|
|
80
77
|
**Recommended Flow**:
|
|
81
|
-
1. `/pd-
|
|
78
|
+
1. `/pd-status` - Check system status
|
|
82
79
|
2. Explain current stage's capability boundaries
|
|
83
80
|
|
|
84
81
|
**Script**: "Trust is earned, not given. Let me help you understand your current security level."
|
|
@@ -28,7 +28,6 @@ disable-model-invocation: true
|
|
|
28
28
|
| `/pd-init` | 初始化战略 | 新项目启动 |
|
|
29
29
|
| `/pd-bootstrap` | 环境工具扫描与升级 | 装备升级 |
|
|
30
30
|
| `/pd-research` | 发起工具升级研究 | 深度调研 |
|
|
31
|
-
| `/pd-evolution-status` | 查看EP等级与安全状态 | 状态查询 |
|
|
32
31
|
| `/pd-status` | 查看系统状态(GFI和痛苦词典) | 健康检查 |
|
|
33
32
|
| `/pd-help` | 获取交互式命令引导 | 本技能 |
|
|
34
33
|
|
|
@@ -55,7 +54,6 @@ disable-model-invocation: true
|
|
|
55
54
|
|
|
56
55
|
**推荐流程**:
|
|
57
56
|
1. `/pd-status` - 检查系统状态(GFI 和痛苦词典)
|
|
58
|
-
2. `/pd-evolution-status` - 查看 EP 等级和进化状态
|
|
59
57
|
|
|
60
58
|
**话术**: "问题就是进化的燃料。让我帮你系统化地诊断和修复。"
|
|
61
59
|
|
|
@@ -66,8 +64,7 @@ disable-model-invocation: true
|
|
|
66
64
|
**触发条件**: 用户明确要求 Principles Disciple 的进度或健康回顾(提及 PD、EP、GFI、系统状态)
|
|
67
65
|
|
|
68
66
|
**推荐流程**:
|
|
69
|
-
1. `/pd-
|
|
70
|
-
2. `/pd-status` - 查看 GFI 和痛苦词典状态
|
|
67
|
+
1. `/pd-status` - 查看 GFI 和痛苦词典状态
|
|
71
68
|
|
|
72
69
|
**话术**: "让我帮你回顾一下系统状态。"
|
|
73
70
|
|
|
@@ -78,7 +75,7 @@ disable-model-invocation: true
|
|
|
78
75
|
**触发条件**: 用户询问 Principles Disciple 的权限、拦截或安全等级
|
|
79
76
|
|
|
80
77
|
**推荐流程**:
|
|
81
|
-
1. `/pd-
|
|
78
|
+
1. `/pd-status` - 查看系统状态
|
|
82
79
|
2. 解释当前等级的能力边界
|
|
83
80
|
|
|
84
81
|
**话术**: "信任是挣来的,不是给的。让我帮你了解当前的安全等级。"
|
|
@@ -59,7 +59,7 @@ export declare function resolveCommandWorkspaceDir(api: OpenClawPluginApi, ctx:
|
|
|
59
59
|
* the wrong workspace.
|
|
60
60
|
*
|
|
61
61
|
* @param ctx - Plugin command context (has workspaceDir + config properties)
|
|
62
|
-
* @param source - Source label for error messages (e.g. '
|
|
62
|
+
* @param source - Source label for error messages (e.g. 'pain', 'pd-status')
|
|
63
63
|
* @param logger - Optional logger for divergence warnings (the plugin API logger)
|
|
64
64
|
*/
|
|
65
65
|
export declare function resolvePluginCommandWorkspaceDir(ctx: PluginCommandContext, source: string, logger?: {
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "principles-disciple",
|
|
3
3
|
"name": "Principles Disciple",
|
|
4
4
|
"description": "Principles Disciple is an AI Agent Governance System. Stop correcting the same AI behavior across sessions. Turn repeated Agent corrections into Owner-approved, observable, reversible behavior principles.",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.234.0",
|
|
6
6
|
"activation": {
|
|
7
7
|
"onStartup": true,
|
|
8
8
|
"onCapabilities": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "principles-disciple",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.234.0",
|
|
4
4
|
"description": "Principles Disciple is an AI Agent Governance System. Stop correcting the same AI behavior across sessions. Turn repeated Agent corrections into Owner-approved, observable, reversible behavior principles.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -28,7 +28,6 @@ I'm your intelligent mentor, helping you understand and use all features of Prin
|
|
|
28
28
|
| `/pd-init` | Initialize strategy | New project startup |
|
|
29
29
|
| `/pd-bootstrap` | Environment tool scan and upgrade | Tool upgrade |
|
|
30
30
|
| `/pd-research` | Initiate tool upgrade research | Deep research |
|
|
31
|
-
| `/pd-evolution-status` | View trust score and security stage | Permission check |
|
|
32
31
|
| `/pd-status` | View system status (GFI and Pain Dictionary) | Health check |
|
|
33
32
|
| `/pd-help` | Get interactive command guidance | This skill |
|
|
34
33
|
|
|
@@ -55,7 +54,6 @@ I'm your intelligent mentor, helping you understand and use all features of Prin
|
|
|
55
54
|
|
|
56
55
|
**Recommended Flow**:
|
|
57
56
|
1. `/pd-status` - Check system status (GFI and Pain Dictionary)
|
|
58
|
-
2. `/pd-evolution-status` - View EP tier and evolution status
|
|
59
57
|
|
|
60
58
|
**Script**: "Problems are the fuel of evolution. Let me help you diagnose and fix systematically."
|
|
61
59
|
|
|
@@ -66,8 +64,7 @@ I'm your intelligent mentor, helping you understand and use all features of Prin
|
|
|
66
64
|
**Trigger**: The user explicitly asks for a Principles Disciple progress or health review (mentioning PD, EP, GFI, or system status)
|
|
67
65
|
|
|
68
66
|
**Recommended Flow**:
|
|
69
|
-
1. `/pd-
|
|
70
|
-
2. `/pd-status` - Check GFI and Pain Dictionary status
|
|
67
|
+
1. `/pd-status` - Check GFI and Pain Dictionary status
|
|
71
68
|
|
|
72
69
|
**Script**: "Let me help you review the current system status."
|
|
73
70
|
|
|
@@ -78,7 +75,7 @@ I'm your intelligent mentor, helping you understand and use all features of Prin
|
|
|
78
75
|
**Trigger**: The user asks about Principles Disciple permissions, blocks, or security stages
|
|
79
76
|
|
|
80
77
|
**Recommended Flow**:
|
|
81
|
-
1. `/pd-
|
|
78
|
+
1. `/pd-status` - Check system status
|
|
82
79
|
2. Explain current stage's capability boundaries
|
|
83
80
|
|
|
84
81
|
**Script**: "Trust is earned, not given. Let me help you understand your current security level."
|
|
@@ -28,7 +28,6 @@ disable-model-invocation: true
|
|
|
28
28
|
| `/pd-init` | 初始化战略 | 新项目启动 |
|
|
29
29
|
| `/pd-bootstrap` | 环境工具扫描与升级 | 装备升级 |
|
|
30
30
|
| `/pd-research` | 发起工具升级研究 | 深度调研 |
|
|
31
|
-
| `/pd-evolution-status` | 查看EP等级与安全状态 | 状态查询 |
|
|
32
31
|
| `/pd-status` | 查看系统状态(GFI和痛苦词典) | 健康检查 |
|
|
33
32
|
| `/pd-help` | 获取交互式命令引导 | 本技能 |
|
|
34
33
|
|
|
@@ -55,7 +54,6 @@ disable-model-invocation: true
|
|
|
55
54
|
|
|
56
55
|
**推荐流程**:
|
|
57
56
|
1. `/pd-status` - 检查系统状态(GFI 和痛苦词典)
|
|
58
|
-
2. `/pd-evolution-status` - 查看 EP 等级和进化状态
|
|
59
57
|
|
|
60
58
|
**话术**: "问题就是进化的燃料。让我帮你系统化地诊断和修复。"
|
|
61
59
|
|
|
@@ -66,8 +64,7 @@ disable-model-invocation: true
|
|
|
66
64
|
**触发条件**: 用户明确要求 Principles Disciple 的进度或健康回顾(提及 PD、EP、GFI、系统状态)
|
|
67
65
|
|
|
68
66
|
**推荐流程**:
|
|
69
|
-
1. `/pd-
|
|
70
|
-
2. `/pd-status` - 查看 GFI 和痛苦词典状态
|
|
67
|
+
1. `/pd-status` - 查看 GFI 和痛苦词典状态
|
|
71
68
|
|
|
72
69
|
**话术**: "让我帮你回顾一下系统状态。"
|
|
73
70
|
|
|
@@ -78,7 +75,7 @@ disable-model-invocation: true
|
|
|
78
75
|
**触发条件**: 用户询问 Principles Disciple 的权限、拦截或安全等级
|
|
79
76
|
|
|
80
77
|
**推荐流程**:
|
|
81
|
-
1. `/pd-
|
|
78
|
+
1. `/pd-status` - 查看系统状态
|
|
82
79
|
2. 解释当前等级的能力边界
|
|
83
80
|
|
|
84
81
|
**话术**: "信任是挣来的,不是给的。让我帮你了解当前的安全等级。"
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import type { WorkflowStage } from '../core/workflow-funnel-loader.js';
|
|
2
|
-
import type { RuntimeTruth, AnalyticsTruth } from '../types/runtime-summary.js';
|
|
3
|
-
import type { GfiWorkspaceSnapshot } from '@principles/core/runtime-v2';
|
|
4
|
-
export type RuntimeDataQuality = 'authoritative' | 'partial';
|
|
5
|
-
export type RuntimeRewardPolicy = 'frozen_all_positive' | 'frozen_atomic_positive_keep_plan_ready';
|
|
6
|
-
interface RuntimeSummarySource {
|
|
7
|
-
source: string;
|
|
8
|
-
score?: number;
|
|
9
|
-
ts?: string;
|
|
10
|
-
confidence?: number;
|
|
11
|
-
origin?: string;
|
|
12
|
-
}
|
|
13
|
-
interface RuntimePainSignal {
|
|
14
|
-
source: string;
|
|
15
|
-
ts: string | null;
|
|
16
|
-
reason: string | null;
|
|
17
|
-
}
|
|
18
|
-
export interface RuntimeSummary {
|
|
19
|
-
/**
|
|
20
|
-
* Runtime truth represents the current state of the system.
|
|
21
|
-
* Used for control decisions, Phase 3 eligibility, and real-time operations.
|
|
22
|
-
*/
|
|
23
|
-
runtime: RuntimeTruth;
|
|
24
|
-
/**
|
|
25
|
-
* Analytics truth represents historical data and aggregated metrics.
|
|
26
|
-
* Used for insights, trends, and supporting evidence (where explicitly allowed).
|
|
27
|
-
* NOT used for control decisions or Phase 3 eligibility.
|
|
28
|
-
*/
|
|
29
|
-
analytics: AnalyticsTruth;
|
|
30
|
-
gfi: {
|
|
31
|
-
current: number | null;
|
|
32
|
-
peak: number | null;
|
|
33
|
-
sources: RuntimeSummarySource[];
|
|
34
|
-
dataQuality: RuntimeDataQuality;
|
|
35
|
-
workspaceSnapshot?: GfiWorkspaceSnapshot;
|
|
36
|
-
};
|
|
37
|
-
evolution: {
|
|
38
|
-
queue: {
|
|
39
|
-
pending: number;
|
|
40
|
-
inProgress: number;
|
|
41
|
-
completed: number;
|
|
42
|
-
};
|
|
43
|
-
directive: {
|
|
44
|
-
exists: boolean;
|
|
45
|
-
active: boolean | null;
|
|
46
|
-
ageSeconds: number | null;
|
|
47
|
-
taskPreview: string | null;
|
|
48
|
-
};
|
|
49
|
-
dataQuality: RuntimeDataQuality;
|
|
50
|
-
};
|
|
51
|
-
runtimeDiagnosis: {
|
|
52
|
-
/** Tasks pending in diagnostician_tasks.json (not yet processed by heartbeat) */
|
|
53
|
-
pendingTasks: number;
|
|
54
|
-
/** Total diagnosis tasks written by evolution worker (today from event log) */
|
|
55
|
-
tasksWrittenToday: number;
|
|
56
|
-
/** Total diagnostician reports written (today from event log) */
|
|
57
|
-
reportsWrittenToday: number;
|
|
58
|
-
/** Total diagnostician reports that were missing JSON (category=missing_json) */
|
|
59
|
-
reportsMissingJsonToday: number;
|
|
60
|
-
/** Total diagnostician reports with incomplete fields (category=incomplete_fields) */
|
|
61
|
-
reportsIncompleteFieldsToday: number;
|
|
62
|
-
/** Total principle candidates created from heartbeat chain (today from event log) */
|
|
63
|
-
candidatesCreatedToday: number;
|
|
64
|
-
/** Heartbeats that injected diagnostician tasks (today from event log) */
|
|
65
|
-
heartbeatsInjectedToday: number;
|
|
66
|
-
};
|
|
67
|
-
phase3: {
|
|
68
|
-
queueTruthReady: boolean;
|
|
69
|
-
phase3ShadowEligible: boolean;
|
|
70
|
-
evolutionEligible: number;
|
|
71
|
-
evolutionReferenceOnly: number;
|
|
72
|
-
evolutionReferenceOnlyReasons: string[];
|
|
73
|
-
evolutionRejected: number;
|
|
74
|
-
evolutionRejectedReasons: string[];
|
|
75
|
-
legacyDirectiveFilePresent: boolean;
|
|
76
|
-
directiveStatus: 'compatibility-only' | 'missing' | 'present';
|
|
77
|
-
directiveIgnoredReason: string;
|
|
78
|
-
/**
|
|
79
|
-
* Source of Phase 3 eligibility calculation.
|
|
80
|
-
* Should always be 'runtime_truth' - analytics not used for control decisions.
|
|
81
|
-
*/
|
|
82
|
-
eligibilitySource: 'runtime_truth';
|
|
83
|
-
};
|
|
84
|
-
pain: {
|
|
85
|
-
candidates: number | null;
|
|
86
|
-
lastSignal: RuntimePainSignal | null;
|
|
87
|
-
};
|
|
88
|
-
gate: {
|
|
89
|
-
recentBlocks: number | null;
|
|
90
|
-
recentBypasses: number | null;
|
|
91
|
-
dataQuality: RuntimeDataQuality;
|
|
92
|
-
};
|
|
93
|
-
/** YAML-driven funnel counts — only present when funnels param is provided (YAML-SSOT-01) */
|
|
94
|
-
workflowFunnels?: WorkflowFunnelOutput[];
|
|
95
|
-
metadata: {
|
|
96
|
-
generatedAt: string;
|
|
97
|
-
workspaceDir: string;
|
|
98
|
-
sessionId: string | null;
|
|
99
|
-
selectedSessionReason: 'explicit' | 'latest_active' | 'none';
|
|
100
|
-
/** 'degraded' when YAML load errors or unresolved statsField paths exist; 'ok' otherwise */
|
|
101
|
-
status: 'ok' | 'degraded';
|
|
102
|
-
warnings: string[];
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
export interface WorkflowFunnelStageOutput {
|
|
106
|
-
key: string;
|
|
107
|
-
label: string;
|
|
108
|
-
statsField: string;
|
|
109
|
-
count: number;
|
|
110
|
-
}
|
|
111
|
-
export interface WorkflowFunnelOutput {
|
|
112
|
-
funnelKey: string;
|
|
113
|
-
funnelLabel: string;
|
|
114
|
-
stages: WorkflowFunnelStageOutput[];
|
|
115
|
-
}
|
|
116
|
-
export declare class RuntimeSummaryService {
|
|
117
|
-
static getSummary(workspaceDir: string, options?: {
|
|
118
|
-
sessionId?: string | null;
|
|
119
|
-
loaderWarnings?: string[];
|
|
120
|
-
funnels?: Map<string, WorkflowStage[]>;
|
|
121
|
-
}): RuntimeSummary;
|
|
122
|
-
private static readSessions;
|
|
123
|
-
private static selectSession;
|
|
124
|
-
private static mergeSessionSnapshots;
|
|
125
|
-
private static buildQueueStats;
|
|
126
|
-
/**
|
|
127
|
-
* Builds directive summary for compatibility display only.
|
|
128
|
-
* NOT a truth source for Phase 3 eligibility or decisions.
|
|
129
|
-
* Queue is the only authoritative execution truth source.
|
|
130
|
-
*/
|
|
131
|
-
private static buildDirectiveSummary;
|
|
132
|
-
private static readEvents;
|
|
133
|
-
private static buildGfiSources;
|
|
134
|
-
private static findLastPainSignal;
|
|
135
|
-
private static buildGateStats;
|
|
136
|
-
private static resolveSessionSortTime;
|
|
137
|
-
private static mergeEvents;
|
|
138
|
-
private static getEventDedupKey;
|
|
139
|
-
private static resolveEvolutionDataQuality;
|
|
140
|
-
private static selectInProgressTask;
|
|
141
|
-
private static getQueuePriority;
|
|
142
|
-
private static isResolvableEvolutionTask;
|
|
143
|
-
private static resolveDirectiveTimestamp;
|
|
144
|
-
private static buildDirectiveTaskPreview;
|
|
145
|
-
private static warnOnLegacyDirectiveMismatch;
|
|
146
|
-
private static readJsonFile;
|
|
147
|
-
private static asFiniteNumber;
|
|
148
|
-
/**
|
|
149
|
-
* Read trajectory analytics data from trajectory database.
|
|
150
|
-
*
|
|
151
|
-
* Returns: Analytics data (historical metrics) aggregated from trajectory database.
|
|
152
|
-
* Not: Runtime truth or real-time queue state.
|
|
153
|
-
*/
|
|
154
|
-
private static readTrajectoryStats;
|
|
155
|
-
}
|
|
156
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { RuntimeTruth, AnalyticsTruth, TrendMetrics, } from '@principles/core/runtime-v2';
|