principles-disciple 2.2.11 → 2.2.13
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/dist/bundle.js +447 -442
- package/dist/core/config.d.ts +0 -2
- package/dist/core/trajectory.d.ts +0 -6
- package/dist/hooks/llm.d.ts +0 -1
- package/dist/hooks/prompt-helpers.d.ts +2 -1
- package/dist/hooks/raw-observation-adapter.d.ts +6 -4
- package/dist/hooks/triage-adapter.d.ts +1 -1
- package/dist/openclaw.plugin.json +1 -1
- package/dist/rulehost-evidence.js +52 -49
- package/dist/templates/pain_settings.json +0 -2
- package/openclaw.plugin.json +1 -1
- package/package.json +3 -3
- package/templates/pain_settings.json +0 -2
- package/dist/core/detection-funnel.d.ts +0 -47
- package/dist/core/detection-service.d.ts +0 -15
package/dist/core/config.d.ts
CHANGED
|
@@ -34,13 +34,11 @@ export interface PainSettings {
|
|
|
34
34
|
thresholds: {
|
|
35
35
|
pain_trigger: number;
|
|
36
36
|
cognitive_paralysis_input: number;
|
|
37
|
-
stuck_loops_trigger: number;
|
|
38
37
|
semantic_min_score: number;
|
|
39
38
|
promotion_count_threshold: number;
|
|
40
39
|
promotion_similarity_threshold: number;
|
|
41
40
|
};
|
|
42
41
|
scores: {
|
|
43
|
-
paralysis: number;
|
|
44
42
|
default_confusion: number;
|
|
45
43
|
default_loop: number;
|
|
46
44
|
tool_failure_friction: number;
|
|
@@ -265,12 +265,6 @@ export declare class TrajectoryDatabase {
|
|
|
265
265
|
correctionCue: string | null;
|
|
266
266
|
}[];
|
|
267
267
|
reviewCorrectionSample(sampleId: string, status: Exclude<CorrectionSampleReviewStatus, 'pending'>, note?: string): CorrectionSampleRecord;
|
|
268
|
-
/**
|
|
269
|
-
* When a correction sample is rejected, emit a pain event to the trajectory.
|
|
270
|
-
* This feeds rejected corrections into the nocturnal pipeline as a high-fidelity
|
|
271
|
-
* violation signal (human-verified, unlike heuristic pain detection).
|
|
272
|
-
*/
|
|
273
|
-
private recordCorrectionRejectedPain;
|
|
274
268
|
/**
|
|
275
269
|
* 入队一条待确认信号。幂等:UNIQUE(user_turn_rowid) 兜底,重复入队是 no-op
|
|
276
270
|
* (同一轮消息只会在队列里出现一次)。id 由 (sessionId, rowid) 确定性派生。
|
package/dist/hooks/llm.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ export interface EmpathySignal {
|
|
|
7
7
|
mode?: 'structured' | 'legacy_tag';
|
|
8
8
|
}
|
|
9
9
|
export declare function extractEmpathySignal(text: string): EmpathySignal;
|
|
10
|
-
export declare function isEmpathyAuditPayload(text: string): boolean;
|
|
11
10
|
/**
|
|
12
11
|
* Extract enhanced fields from lastAssistant (complete AssistantMessage) in hook payload.
|
|
13
12
|
* Pure function — no I/O, no side effects. ERR-001 compliant.
|
|
@@ -49,7 +49,8 @@ export declare function buildGovernanceContext(): string;
|
|
|
49
49
|
* A main agent emitting them itself would corrupt that evidence channel, so
|
|
50
50
|
* normal output must keep them out. (PRI-819: the stale claim that "the
|
|
51
51
|
* empathy observer subagent" handles detection was removed — detection is
|
|
52
|
-
* owned by signal-collector-host
|
|
52
|
+
* owned by signal-collector-host; the DetectionService funnel was retired in
|
|
53
|
+
* Pain Phase 0.)
|
|
53
54
|
*
|
|
54
55
|
* Pure logic — returns a constant string.
|
|
55
56
|
*/
|
|
@@ -5,12 +5,14 @@
|
|
|
5
5
|
* migrated to principles-core (runtime-v2/evidence-triage/observation-resolver.ts).
|
|
6
6
|
*
|
|
7
7
|
* This file is now a thin re-export adapter. It preserves the original export
|
|
8
|
-
* names (resolveSourceKind, buildToolFailureObservation,
|
|
9
|
-
*
|
|
10
|
-
*
|
|
8
|
+
* names (resolveSourceKind, buildToolFailureObservation, RawObservation) so
|
|
9
|
+
* all existing import sites and the source-string characterization tests keep
|
|
10
|
+
* working without changes. Pain Phase 0 removed the retired
|
|
11
|
+
* buildLlmDetectionObservation / buildEmpathyObservation re-exports (zero
|
|
12
|
+
* production callers).
|
|
11
13
|
*
|
|
12
14
|
* ERR checklist:
|
|
13
15
|
* - ERR-011: re-export adapter, not a local re-definition of migrated logic.
|
|
14
16
|
*/
|
|
15
|
-
export { resolveSourceKind, buildToolFailureObservation,
|
|
17
|
+
export { resolveSourceKind, buildToolFailureObservation, buildManualPainObservation, } from '@principles/core/runtime-v2';
|
|
16
18
|
export type { RawObservation } from './raw-observation-types.js';
|
|
@@ -28,7 +28,7 @@ import { type TriageResult, type SourceKind } from '@principles/core/runtime-v2'
|
|
|
28
28
|
*
|
|
29
29
|
* PRI-360 S1: All source-kind resolution now goes through this single entry point.
|
|
30
30
|
*/
|
|
31
|
-
export { resolveSourceKind, buildToolFailureObservation,
|
|
31
|
+
export { resolveSourceKind, buildToolFailureObservation, type RawObservation } from './raw-observation-adapter.js';
|
|
32
32
|
/**
|
|
33
33
|
* Evaluate evidence triage for a given source kind and context.
|
|
34
34
|
*
|
|
@@ -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": "2.2.
|
|
5
|
+
"version": "2.2.13",
|
|
6
6
|
"activation": {
|
|
7
7
|
"onStartup": true,
|
|
8
8
|
"onCapabilities": [
|