principles-disciple 1.210.0 → 1.211.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 (30) hide show
  1. package/README.md +2 -3
  2. package/dist/bundle.js +537 -758
  3. package/dist/core/event-log.d.ts +1 -2
  4. package/dist/core/paths.d.ts +0 -2
  5. package/dist/core/profile.d.ts +0 -19
  6. package/dist/core/rule-host.d.ts +19 -0
  7. package/dist/core/session-tracker.d.ts +0 -13
  8. package/dist/core/thinking-os-parser.d.ts +0 -5
  9. package/dist/core/trajectory-types.d.ts +0 -1
  10. package/dist/core/trajectory.d.ts +0 -12
  11. package/dist/hooks/gate.d.ts +0 -1
  12. package/dist/openclaw.plugin.json +1 -1
  13. package/dist/templates/langs/en/skills/pd-mentor/SKILL.md +3 -4
  14. package/dist/templates/langs/zh/skills/pd-mentor/SKILL.md +3 -4
  15. package/dist/templates/workspace/.principles/PROFILE.json +0 -29
  16. package/dist/templates/workspace/.principles/PROFILE.schema.json +16 -25
  17. package/dist/templates/workspace/okr/CURRENT_FOCUS.md +0 -1
  18. package/dist/types/event-types.d.ts +1 -1
  19. package/openclaw.plugin.json +1 -1
  20. package/package.json +1 -1
  21. package/templates/langs/en/skills/pd-mentor/SKILL.md +3 -4
  22. package/templates/langs/zh/skills/pd-mentor/SKILL.md +3 -4
  23. package/templates/workspace/.principles/PROFILE.json +0 -29
  24. package/templates/workspace/.principles/PROFILE.schema.json +16 -25
  25. package/templates/workspace/okr/CURRENT_FOCUS.md +0 -1
  26. package/dist/commands/thinking-os.d.ts +0 -2
  27. package/dist/core/control-ui-db.d.ts +0 -117
  28. package/dist/core/thinking-models.d.ts +0 -25
  29. package/dist/templates/workspace/.principles/THINKING_OS_CANDIDATES.md +0 -9
  30. package/templates/workspace/.principles/THINKING_OS_CANDIDATES.md +0 -9
@@ -1,4 +1,4 @@
1
- import type { EventLogEntry, DailyStats, EmpathyEventStats, ToolCallEventData, PainSignalEventData, RulePromotionEventData, HookExecutionEventData, GateBlockEventData, GateBypassEventData, PlanApprovalEventData, EvolutionTaskEventData, EmpathyRollbackEventData, DiagnosisTaskEventData, HeartbeatDiagnosisEventData, DiagnosticianReportEventData, PrincipleCandidateEventData, RuleEnforcedEventData, RuleHostEvaluatedEventData, RuleHostBlockedEventData, RuleHostRequireApprovalEventData, RuleHostAutoCorrectProposedEventData, RuleHostAutoCorrectAppliedEventData, RuntimeV2PromptActivationsInjectedEventData, RuleHostUnhealthyEventData, RuleHostSkippedEventData } from '../types/event-types.js';
1
+ import type { EventLogEntry, DailyStats, EmpathyEventStats, ToolCallEventData, PainSignalEventData, RulePromotionEventData, HookExecutionEventData, GateBlockEventData, GateBypassEventData, EvolutionTaskEventData, EmpathyRollbackEventData, DiagnosisTaskEventData, HeartbeatDiagnosisEventData, DiagnosticianReportEventData, PrincipleCandidateEventData, RuleEnforcedEventData, RuleHostEvaluatedEventData, RuleHostBlockedEventData, RuleHostRequireApprovalEventData, RuleHostAutoCorrectProposedEventData, RuleHostAutoCorrectAppliedEventData, RuntimeV2PromptActivationsInjectedEventData, RuleHostUnhealthyEventData, RuleHostSkippedEventData } from '../types/event-types.js';
2
2
  import type { PluginLogger } from '../openclaw-sdk.js';
3
3
  export declare class EventLog {
4
4
  private readonly logsDir;
@@ -24,7 +24,6 @@ export declare class EventLog {
24
24
  }): void;
25
25
  recordGateBlock(sessionId: string | undefined, data: GateBlockEventData): void;
26
26
  recordGateBypass(sessionId: string | undefined, data: GateBypassEventData): void;
27
- recordPlanApproval(sessionId: string | undefined, data: PlanApprovalEventData): void;
28
27
  recordEvolutionTask(data: EvolutionTaskEventData): void;
29
28
  recordEvolutionTaskCompleted(data: EvolutionTaskEventData): void;
30
29
  recordEmpathyRollback(sessionId: string | undefined, data: EmpathyRollbackEventData): void;
@@ -32,7 +32,6 @@ export declare const PD_FILES: {
32
32
  SYSTEM_CAPABILITIES: string;
33
33
  PAIN_SETTINGS: string;
34
34
  PAIN_CANDIDATES: string;
35
- THINKING_OS_USAGE: string;
36
35
  TRAJECTORY_DB: string;
37
36
  TRAJECTORY_BLOBS_DIR: string;
38
37
  EXPORTS_DIR: string;
@@ -49,7 +48,6 @@ export declare const PD_FILES: {
49
48
  OKR_DIR: string;
50
49
  CURRENT_FOCUS: string;
51
50
  WEEK_STATE: string;
52
- THINKING_OS_CANDIDATES: string;
53
51
  EVOLUTION_STREAM: string;
54
52
  EVOLUTION_LOCK: string;
55
53
  };
@@ -5,11 +5,6 @@ export declare const PROFILE_DEFAULTS: {
5
5
  audit_level: string;
6
6
  risk_paths: string[];
7
7
  evolution_mode: string;
8
- gate: {
9
- require_plan_for_risk_paths: boolean;
10
- require_audit_before_write: boolean;
11
- require_reviewer_after_write: boolean;
12
- };
13
8
  tests: {
14
9
  on_change: string;
15
10
  on_risk_change: string;
@@ -32,15 +27,6 @@ export declare const PROFILE_DEFAULTS: {
32
27
  enabled: boolean;
33
28
  heartbeat_stale_hours: number;
34
29
  };
35
- progressive_gate: {
36
- enabled: boolean;
37
- plan_approvals: {
38
- enabled: boolean;
39
- max_lines_override: number;
40
- allowed_patterns: string[];
41
- allowed_operations: string[];
42
- };
43
- };
44
30
  edit_verification: {
45
31
  enabled: boolean;
46
32
  max_file_size_bytes: number;
@@ -48,11 +34,6 @@ export declare const PROFILE_DEFAULTS: {
48
34
  fuzzy_match_threshold: number;
49
35
  skip_large_file_action: "warn" | "block";
50
36
  };
51
- thinking_checkpoint: {
52
- enabled: boolean;
53
- window_ms: number;
54
- high_risk_tools: string[];
55
- };
56
37
  custom_guards: {
57
38
  pattern: string;
58
39
  message: string;
@@ -75,6 +75,25 @@ export interface RuleHostEvaluationReport {
75
75
  */
76
76
  readonly skippedActivations: readonly SkippedActivation[];
77
77
  }
78
+ /**
79
+ * P1 (2026-08-20): Compatibility Guard type guard.
80
+ *
81
+ * Distinguishes a runtime compatibility fail-closed block (an active
82
+ * owner-approved RuleCode depends on a retired contract symbol and was NEVER
83
+ * executed) from a real Principle-enforcement block (RuleCode actually ran
84
+ * and returned block).
85
+ *
86
+ * Machine semantics: the block is a RUNTIME safety guard, not behavioral
87
+ * evidence. The OpenClaw gate MUST use this guard (branching on
88
+ * `diagnostics.kind` / `diagnostics.code`) and must NOT use
89
+ * reason.startsWith/includes text matching.
90
+ */
91
+ export declare function isCompatibilityGuardBlock(result: RuleHostResult | undefined): result is RuleHostResult & {
92
+ diagnostics: {
93
+ kind: 'compatibility_guard';
94
+ code: 'legacy_rule_contract_dependency';
95
+ };
96
+ };
78
97
  export declare class RuleHost {
79
98
  private readonly stateDir;
80
99
  private logger;
@@ -30,7 +30,6 @@ export interface SessionState {
30
30
  dailyToolFailures: number;
31
31
  dailyPainSignals: number;
32
32
  dailyGfiPeak: number;
33
- lastThinkingTimestamp: number;
34
33
  injectedProbationIds?: string[];
35
34
  }
36
35
  /**
@@ -59,18 +58,6 @@ export declare function resetFriction(sessionId: string, workspaceDir?: string,
59
58
  source?: string;
60
59
  amount?: number;
61
60
  }): SessionState;
62
- /**
63
- * Records that deep thinking (Thinking OS) was performed in this session.
64
- * Used by the Thinking OS checkpoint to allow high-risk operations.
65
- */
66
- export declare function recordThinkingCheckpoint(sessionId: string, workspaceDir?: string): SessionState;
67
- /**
68
- * Checks if deep thinking was performed recently (within the given window).
69
- * @param sessionId - The session to check
70
- * @param windowMs - How recent the thinking must be (default: 5 minutes)
71
- * @returns true if thinking was recorded within the window
72
- */
73
- export declare function hasRecentThinking(sessionId: string, windowMs?: number): boolean;
74
61
  export declare function trackBlock(sessionId: string): SessionState;
75
62
  export declare function setInjectedProbationIds(sessionId: string, ids: string[], workspaceDir?: string): SessionState;
76
63
  export declare function getInjectedProbationIds(sessionId: string, workspaceDir?: string): string[];
@@ -28,8 +28,3 @@ export declare function parseThinkingOsMd(content: string): ThinkingOsDirective[
28
28
  * Falls back to the workspace THINKING_OS.md if it exists.
29
29
  */
30
30
  export declare function loadThinkingOsFromWorkspace(workspaceDir: string, language?: string): ThinkingOsDirective[];
31
- /**
32
- * Extract meaningful detection keywords from a trigger string.
33
- * Returns an array of regex patterns.
34
- */
35
- export declare function generateDetectionPatterns(trigger: string): RegExp[];
@@ -75,7 +75,6 @@ export interface TrajectoryGateBlockInput {
75
75
  toolName: string;
76
76
  filePath?: string | null;
77
77
  reason: string;
78
- planStatus?: string | null;
79
78
  createdAt?: string;
80
79
  }
81
80
  type DailyMetricRow = {
@@ -192,18 +192,6 @@ export declare class TrajectoryDatabase {
192
192
  * Not: Runtime truth or real-time queue state.
193
193
  */
194
194
  listCorrectionSamples(status?: CorrectionSampleReviewStatus): CorrectionSampleRecord[];
195
- /**
196
- * List gate blocks for a session.
197
- * Returns minimal fields for nocturnal use — no raw text.
198
- */
199
- listGateBlocksForSession(sessionId: string): {
200
- id: number;
201
- toolName: string;
202
- filePath: string | null;
203
- reason: string;
204
- planStatus: string | null;
205
- createdAt: string;
206
- }[];
207
195
  /**
208
196
  * List correction samples for a specific session.
209
197
  * Returns minimal fields for nocturnal use — correction cue only.
@@ -19,7 +19,6 @@ export declare function handleBeforeToolCall(event: PluginHookBeforeToolCallEven
19
19
  }): PluginHookBeforeToolCallResult | void;
20
20
  export declare function buildOpenClawRuleInputEnrichment(event: PluginHookBeforeToolCallEvent, workspaceDir: string, sessionId: string | undefined): {
21
21
  currentGfi: number;
22
- recentThinking: boolean;
23
22
  epTier: number;
24
23
  bashRisk: "dangerous" | "normal" | "safe" | "unknown";
25
24
  };
@@ -2,7 +2,7 @@
2
2
  "id": "principles-disciple",
3
3
  "name": "Principles Disciple",
4
4
  "description": "Stop correcting the same AI behavior across sessions. Turn repeated Agent corrections into Owner-approved, observable, reversible behavior principles.",
5
- "version": "1.210.0",
5
+ "version": "1.211.0",
6
6
  "activation": {
7
7
  "onCapabilities": [
8
8
  "hook"
@@ -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-thinking` | Manage mental models and candidates | Metacognition |
32
31
  | `/pd-evolution-status` | View trust score and security stage | Permission check |
33
32
  | `/pd-status` | View system status (GFI and Pain Dictionary) | Health check |
34
33
  | `/pd-help` | Get interactive command guidance | This skill |
@@ -44,7 +43,7 @@ I'm your intelligent mentor, helping you understand and use all features of Prin
44
43
  **Recommended Flow**:
45
44
  1. `/pd-init` - Establish strategic vision
46
45
  2. `/pd-bootstrap` - Scan environment tools, get capability list
47
- 3. `/pd-thinking` - Establish project's mental model baseline
46
+ 3. `/pd-context thinking on` - Enable Thinking OS guidance injection
48
47
 
49
48
  **Script**: "A new project is like a blank canvas. Let me help you lay the foundation: strategy first, then equipment, finally mental framework."
50
49
 
@@ -175,8 +174,8 @@ A: Pain Signal is a problem signal detected by the system. Runtime V2 routes it
175
174
  **Q: How to view installed tool capabilities?**
176
175
  A: Check `.state/SYSTEM_CAPABILITIES.json` or run `/pd-bootstrap` to rescan.
177
176
 
178
- **Q: What's the difference between `/pd-thinking` and `/pd-research`?**
179
- A: `/pd-thinking` manages mental models and candidate solutions for metacognition and decision support; `/pd-research` initiates tool upgrade research for technical investigation.
177
+ **Q: What's the difference between Thinking OS and `/pd-research`?**
178
+ A: Thinking OS is injected guidance (managed via `/pd-context thinking on/off`); `/pd-research` initiates tool upgrade research for technical investigation.
180
179
 
181
180
  ---
182
181
 
@@ -28,7 +28,6 @@ disable-model-invocation: true
28
28
  | `/pd-init` | 初始化战略 | 新项目启动 |
29
29
  | `/pd-bootstrap` | 环境工具扫描与升级 | 装备升级 |
30
30
  | `/pd-research` | 发起工具升级研究 | 深度调研 |
31
- | `/pd-thinking` | 管理思维模型与候选方案 | 元认知管理 |
32
31
  | `/pd-evolution-status` | 查看EP等级与安全状态 | 状态查询 |
33
32
  | `/pd-status` | 查看系统状态(GFI和痛苦词典) | 健康检查 |
34
33
  | `/pd-help` | 获取交互式命令引导 | 本技能 |
@@ -44,7 +43,7 @@ disable-model-invocation: true
44
43
  **推荐流程**:
45
44
  1. `/pd-init` - 建立战略愿景和 OKR 框架
46
45
  2. `/pd-bootstrap` - 扫描环境工具,获取能力清单
47
- 3. `/pd-thinking` - 建立项目的思维模型基线
46
+ 3. `/pd-context thinking on` - 开启 Thinking OS 指引注入
48
47
 
49
48
  **话术**: "新项目就像一张白纸。让我帮你打好地基:先定战略、再配装备、最后建立思维框架。"
50
49
 
@@ -175,8 +174,8 @@ A: Pain Signal 是系统检测到的问题信号。Runtime V2 通过 `PainSignal
175
174
  **Q: 如何查看已安装的工具能力?**
176
175
  A: 查看 `.state/SYSTEM_CAPABILITIES.json` 或运行 `/pd-bootstrap` 重新扫描。
177
176
 
178
- **Q: `/pd-thinking` 和 `/pd-research` 有什么区别?**
179
- A: `/pd-thinking` 管理思维模型和候选方案,用于元认知和决策支持;`/pd-research` 发起工具升级研究,用于技术调研。
177
+ **Q: Thinking OS 和 `/pd-research` 有什么区别?**
178
+ A: Thinking OS 是注入的指引(通过 `/pd-context thinking on/off` 管理);`/pd-research` 发起工具升级研究,用于技术调研。
180
179
 
181
180
  ---
182
181
 
@@ -9,31 +9,6 @@
9
9
  ".principles/PROFILE.json",
10
10
  "docs/PROFILE.json"
11
11
  ],
12
- "gate": {
13
- "require_plan_for_risk_paths": true,
14
- "require_audit_before_write": true
15
- },
16
- "progressive_gate": {
17
- "enabled": true,
18
- "plan_approvals": {
19
- "enabled": true,
20
- "allowed_patterns": [
21
- "AGENTS.md",
22
- "SOUL.md",
23
- "IDENTITY.md",
24
- "USER.md",
25
- "docs/PRINCIPLES.md",
26
- ".principles/PROFILE.json",
27
- "docs/PROFILE.json",
28
- "docs/okr/**"
29
- ],
30
- "allowed_operations": [
31
- "write",
32
- "edit",
33
- "replace"
34
- ]
35
- }
36
- },
37
12
  "tests": {
38
13
  "on_change": "smoke",
39
14
  "commands": {
@@ -41,10 +16,6 @@
41
16
  "unit": ""
42
17
  }
43
18
  },
44
- "permissions": {
45
- "deny_skip_tests": true,
46
- "deny_unsafe_db_ops": true
47
- },
48
19
  "custom_guards": [
49
20
  {
50
21
  "pattern": "Edit.*SYSTEM_CAPABILITIES",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "System Profile Schema",
4
- "description": "Schema for the evolutionary agent framework configuration (The Interception Database)",
3
+ "title": "Principles Disciple Workspace Profile Schema",
4
+ "description": "Schema for the Principles Disciple workspace profile configuration",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "audit_level": {
@@ -13,18 +13,10 @@
13
13
  "type": "array",
14
14
  "items": {
15
15
  "type": "string",
16
- "description": "Project-relative directory or file paths that require mandatory gating."
16
+ "description": "Project-relative paths treated as higher-risk context for evidence triage, risk classification, and related governance signals. Blocking behavior is determined by owner-approved RuleHost rules, not by listing a path here."
17
17
  },
18
18
  "default": []
19
19
  },
20
- "gate": {
21
- "type": "object",
22
- "properties": {
23
- "require_plan_for_risk_paths": { "type": "boolean", "default": true },
24
- "require_audit_before_write": { "type": "boolean", "default": true },
25
- "require_reviewer_after_write": { "type": "boolean", "default": true }
26
- }
27
- },
28
20
  "tests": {
29
21
  "type": "object",
30
22
  "properties": {
@@ -37,20 +29,19 @@
37
29
  }
38
30
  }
39
31
  },
40
- "permissions": {
41
- "type": "object",
42
- "properties": {
43
- "deny_skip_tests": { "type": "boolean", "default": true },
44
- "deny_unsafe_db_ops": { "type": "boolean", "default": true }
45
- }
46
- },
47
- "output": {
48
- "type": "object",
49
- "properties": {
50
- "verbosity": { "type": "string", "enum": ["concise", "balanced", "detailed"], "default": "balanced" },
51
- "show_evidence": { "type": "boolean", "default": true }
52
- }
32
+ "custom_guards": {
33
+ "type": "array",
34
+ "items": {
35
+ "type": "object",
36
+ "properties": {
37
+ "pattern": { "type": "string" },
38
+ "message": { "type": "string" },
39
+ "severity": { "type": "string", "enum": ["info", "warning", "error", "fatal"], "default": "error" }
40
+ },
41
+ "required": ["pattern", "message"]
42
+ },
43
+ "default": []
53
44
  }
54
45
  },
55
- "required": ["risk_paths", "gate", "tests"]
46
+ "required": ["risk_paths", "tests"]
56
47
  }
@@ -42,7 +42,6 @@
42
42
 
43
43
  | 资源 | 路径 |
44
44
  |------|------|
45
- | 详细计划 | `memory/tasks/{任务目录}/PLAN.md` |
46
45
  | 历史版本 | `memory/okr/.history/` |
47
46
  | 任务列表 | `memory/okr/WEEK_TASKS.json` |
48
47
 
@@ -1,2 +1,2 @@
1
- export type { EventType, EventCategory, EventLogEntry, ToolCallEventData, PainSignalEventData, RulePromotionEventData, HookExecutionEventData, GateBlockEventData, GateBypassEventData, PlanApprovalEventData, EvolutionTaskEventData, EmpathyRollbackEventData, HeartbeatDiagnosisEventData, DiagnosisTaskEventData, DiagnosticianReportEventData, PrincipleCandidateEventData, RuleEnforcedEventData, RuleHostEvaluatedEventData, RuleHostBlockedEventData, RuleHostRequireApprovalEventData, RuleHostAutoCorrectProposedEventData, RuleHostAutoCorrectAppliedEventData, RuntimeV2PromptActivationsInjectedEventData, RuleHostUnhealthyEventData, RuleHostSkippedEventData, ToolCallStats, ErrorStats, EmpathyEventStats, GfiStats, EvolutionStats as EventEvolutionStats, HookStats, DailyStats, } from '@principles/core/runtime-v2';
1
+ export type { EventType, EventCategory, EventLogEntry, ToolCallEventData, PainSignalEventData, RulePromotionEventData, HookExecutionEventData, GateBlockEventData, GateBypassEventData, EvolutionTaskEventData, EmpathyRollbackEventData, HeartbeatDiagnosisEventData, DiagnosisTaskEventData, DiagnosticianReportEventData, PrincipleCandidateEventData, RuleEnforcedEventData, RuleHostEvaluatedEventData, RuleHostBlockedEventData, RuleHostRequireApprovalEventData, RuleHostAutoCorrectProposedEventData, RuleHostAutoCorrectAppliedEventData, RuntimeV2PromptActivationsInjectedEventData, RuleHostUnhealthyEventData, RuleHostSkippedEventData, ToolCallStats, ErrorStats, EmpathyEventStats, GfiStats, EvolutionStats as EventEvolutionStats, HookStats, DailyStats, } from '@principles/core/runtime-v2';
2
2
  export { createEmptyDailyStats, } from '@principles/core/runtime-v2';
@@ -2,7 +2,7 @@
2
2
  "id": "principles-disciple",
3
3
  "name": "Principles Disciple",
4
4
  "description": "Stop correcting the same AI behavior across sessions. Turn repeated Agent corrections into Owner-approved, observable, reversible behavior principles.",
5
- "version": "1.210.0",
5
+ "version": "1.211.0",
6
6
  "activation": {
7
7
  "onCapabilities": [
8
8
  "hook"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "principles-disciple",
3
- "version": "1.210.0",
3
+ "version": "1.211.0",
4
4
  "description": "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-thinking` | Manage mental models and candidates | Metacognition |
32
31
  | `/pd-evolution-status` | View trust score and security stage | Permission check |
33
32
  | `/pd-status` | View system status (GFI and Pain Dictionary) | Health check |
34
33
  | `/pd-help` | Get interactive command guidance | This skill |
@@ -44,7 +43,7 @@ I'm your intelligent mentor, helping you understand and use all features of Prin
44
43
  **Recommended Flow**:
45
44
  1. `/pd-init` - Establish strategic vision
46
45
  2. `/pd-bootstrap` - Scan environment tools, get capability list
47
- 3. `/pd-thinking` - Establish project's mental model baseline
46
+ 3. `/pd-context thinking on` - Enable Thinking OS guidance injection
48
47
 
49
48
  **Script**: "A new project is like a blank canvas. Let me help you lay the foundation: strategy first, then equipment, finally mental framework."
50
49
 
@@ -175,8 +174,8 @@ A: Pain Signal is a problem signal detected by the system. Runtime V2 routes it
175
174
  **Q: How to view installed tool capabilities?**
176
175
  A: Check `.state/SYSTEM_CAPABILITIES.json` or run `/pd-bootstrap` to rescan.
177
176
 
178
- **Q: What's the difference between `/pd-thinking` and `/pd-research`?**
179
- A: `/pd-thinking` manages mental models and candidate solutions for metacognition and decision support; `/pd-research` initiates tool upgrade research for technical investigation.
177
+ **Q: What's the difference between Thinking OS and `/pd-research`?**
178
+ A: Thinking OS is injected guidance (managed via `/pd-context thinking on/off`); `/pd-research` initiates tool upgrade research for technical investigation.
180
179
 
181
180
  ---
182
181
 
@@ -28,7 +28,6 @@ disable-model-invocation: true
28
28
  | `/pd-init` | 初始化战略 | 新项目启动 |
29
29
  | `/pd-bootstrap` | 环境工具扫描与升级 | 装备升级 |
30
30
  | `/pd-research` | 发起工具升级研究 | 深度调研 |
31
- | `/pd-thinking` | 管理思维模型与候选方案 | 元认知管理 |
32
31
  | `/pd-evolution-status` | 查看EP等级与安全状态 | 状态查询 |
33
32
  | `/pd-status` | 查看系统状态(GFI和痛苦词典) | 健康检查 |
34
33
  | `/pd-help` | 获取交互式命令引导 | 本技能 |
@@ -44,7 +43,7 @@ disable-model-invocation: true
44
43
  **推荐流程**:
45
44
  1. `/pd-init` - 建立战略愿景和 OKR 框架
46
45
  2. `/pd-bootstrap` - 扫描环境工具,获取能力清单
47
- 3. `/pd-thinking` - 建立项目的思维模型基线
46
+ 3. `/pd-context thinking on` - 开启 Thinking OS 指引注入
48
47
 
49
48
  **话术**: "新项目就像一张白纸。让我帮你打好地基:先定战略、再配装备、最后建立思维框架。"
50
49
 
@@ -175,8 +174,8 @@ A: Pain Signal 是系统检测到的问题信号。Runtime V2 通过 `PainSignal
175
174
  **Q: 如何查看已安装的工具能力?**
176
175
  A: 查看 `.state/SYSTEM_CAPABILITIES.json` 或运行 `/pd-bootstrap` 重新扫描。
177
176
 
178
- **Q: `/pd-thinking` 和 `/pd-research` 有什么区别?**
179
- A: `/pd-thinking` 管理思维模型和候选方案,用于元认知和决策支持;`/pd-research` 发起工具升级研究,用于技术调研。
177
+ **Q: Thinking OS 和 `/pd-research` 有什么区别?**
178
+ A: Thinking OS 是注入的指引(通过 `/pd-context thinking on/off` 管理);`/pd-research` 发起工具升级研究,用于技术调研。
180
179
 
181
180
  ---
182
181
 
@@ -9,31 +9,6 @@
9
9
  ".principles/PROFILE.json",
10
10
  "docs/PROFILE.json"
11
11
  ],
12
- "gate": {
13
- "require_plan_for_risk_paths": true,
14
- "require_audit_before_write": true
15
- },
16
- "progressive_gate": {
17
- "enabled": true,
18
- "plan_approvals": {
19
- "enabled": true,
20
- "allowed_patterns": [
21
- "AGENTS.md",
22
- "SOUL.md",
23
- "IDENTITY.md",
24
- "USER.md",
25
- "docs/PRINCIPLES.md",
26
- ".principles/PROFILE.json",
27
- "docs/PROFILE.json",
28
- "docs/okr/**"
29
- ],
30
- "allowed_operations": [
31
- "write",
32
- "edit",
33
- "replace"
34
- ]
35
- }
36
- },
37
12
  "tests": {
38
13
  "on_change": "smoke",
39
14
  "commands": {
@@ -41,10 +16,6 @@
41
16
  "unit": ""
42
17
  }
43
18
  },
44
- "permissions": {
45
- "deny_skip_tests": true,
46
- "deny_unsafe_db_ops": true
47
- },
48
19
  "custom_guards": [
49
20
  {
50
21
  "pattern": "Edit.*SYSTEM_CAPABILITIES",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "System Profile Schema",
4
- "description": "Schema for the evolutionary agent framework configuration (The Interception Database)",
3
+ "title": "Principles Disciple Workspace Profile Schema",
4
+ "description": "Schema for the Principles Disciple workspace profile configuration",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "audit_level": {
@@ -13,18 +13,10 @@
13
13
  "type": "array",
14
14
  "items": {
15
15
  "type": "string",
16
- "description": "Project-relative directory or file paths that require mandatory gating."
16
+ "description": "Project-relative paths treated as higher-risk context for evidence triage, risk classification, and related governance signals. Blocking behavior is determined by owner-approved RuleHost rules, not by listing a path here."
17
17
  },
18
18
  "default": []
19
19
  },
20
- "gate": {
21
- "type": "object",
22
- "properties": {
23
- "require_plan_for_risk_paths": { "type": "boolean", "default": true },
24
- "require_audit_before_write": { "type": "boolean", "default": true },
25
- "require_reviewer_after_write": { "type": "boolean", "default": true }
26
- }
27
- },
28
20
  "tests": {
29
21
  "type": "object",
30
22
  "properties": {
@@ -37,20 +29,19 @@
37
29
  }
38
30
  }
39
31
  },
40
- "permissions": {
41
- "type": "object",
42
- "properties": {
43
- "deny_skip_tests": { "type": "boolean", "default": true },
44
- "deny_unsafe_db_ops": { "type": "boolean", "default": true }
45
- }
46
- },
47
- "output": {
48
- "type": "object",
49
- "properties": {
50
- "verbosity": { "type": "string", "enum": ["concise", "balanced", "detailed"], "default": "balanced" },
51
- "show_evidence": { "type": "boolean", "default": true }
52
- }
32
+ "custom_guards": {
33
+ "type": "array",
34
+ "items": {
35
+ "type": "object",
36
+ "properties": {
37
+ "pattern": { "type": "string" },
38
+ "message": { "type": "string" },
39
+ "severity": { "type": "string", "enum": ["info", "warning", "error", "fatal"], "default": "error" }
40
+ },
41
+ "required": ["pattern", "message"]
42
+ },
43
+ "default": []
53
44
  }
54
45
  },
55
- "required": ["risk_paths", "gate", "tests"]
46
+ "required": ["risk_paths", "tests"]
56
47
  }
@@ -42,7 +42,6 @@
42
42
 
43
43
  | 资源 | 路径 |
44
44
  |------|------|
45
- | 详细计划 | `memory/tasks/{任务目录}/PLAN.md` |
46
45
  | 历史版本 | `memory/okr/.history/` |
47
46
  | 任务列表 | `memory/okr/WEEK_TASKS.json` |
48
47
 
@@ -1,2 +0,0 @@
1
- import type { PluginCommandContext, PluginCommandResult } from '../openclaw-sdk.js';
2
- export declare function handleThinkingOs(ctx: PluginCommandContext): PluginCommandResult;