create-principles-disciple 1.118.0 → 1.119.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/console/dist/server/index.js +17 -1
- package/console/dist/server/models/ActivationsConsoleModel.d.ts +77 -0
- package/console/dist/server/models/ActivationsConsoleModel.js +322 -4
- package/console/dist/server/models/ReceiptsConsoleModel.d.ts +42 -0
- package/console/dist/server/models/ReceiptsConsoleModel.js +160 -0
- package/console/dist/server/routes/activations.d.ts +6 -1
- package/console/dist/server/routes/activations.js +142 -1
- package/console/dist/server/routes/receipts.d.ts +8 -0
- package/console/dist/server/routes/receipts.js +63 -0
- package/console/dist/ui/App.js +6 -3
- package/console/dist/ui/api.d.ts +40 -3
- package/console/dist/ui/api.js +94 -3
- package/console/dist/ui/i18n/en.json +75 -0
- package/console/dist/ui/i18n/zh-CN.json +75 -0
- package/console/dist/ui/pages/activation/ActivationPage.js +114 -5
- package/console/dist/ui/pages/activation/ActivationValidators.js +3 -0
- package/console/dist/ui/pages/focus/FocusPage.js +16 -3
- package/console/dist/ui/pages/principles/PrincipleDetailPage.js +17 -3
- package/console/dist/ui/utils/validators.d.ts +100 -0
- package/console/dist/ui/utils/validators.js +133 -0
- package/console/dist/web/assets/app.css +34 -0
- package/console/dist/web/assets/app.js +704 -14
- package/console/package.json +2 -0
- package/core/dist/runtime-v2/__tests__/architecture-regression.test.js +8 -2
- package/core/dist/runtime-v2/__tests__/architecture-regression.test.js.map +1 -1
- package/core/dist/runtime-v2/activation/__tests__/openclaw-promotion-checks.test.d.ts +2 -0
- package/core/dist/runtime-v2/activation/__tests__/openclaw-promotion-checks.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/openclaw-promotion-checks.test.js +91 -0
- package/core/dist/runtime-v2/activation/__tests__/openclaw-promotion-checks.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/promotion-readiness-evaluator.test.d.ts +2 -0
- package/core/dist/runtime-v2/activation/__tests__/promotion-readiness-evaluator.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/promotion-readiness-evaluator.test.js +83 -0
- package/core/dist/runtime-v2/activation/__tests__/promotion-readiness-evaluator.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/promotion-readiness-reader.test.d.ts +2 -0
- package/core/dist/runtime-v2/activation/__tests__/promotion-readiness-reader.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/promotion-readiness-reader.test.js +48 -0
- package/core/dist/runtime-v2/activation/__tests__/promotion-readiness-reader.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/rulecode-owner-decision-service.test.d.ts +2 -0
- package/core/dist/runtime-v2/activation/__tests__/rulecode-owner-decision-service.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/rulecode-owner-decision-service.test.js +141 -0
- package/core/dist/runtime-v2/activation/__tests__/rulecode-owner-decision-service.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/rulecode-safety-circuit-breaker.test.d.ts +2 -0
- package/core/dist/runtime-v2/activation/__tests__/rulecode-safety-circuit-breaker.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/rulecode-safety-circuit-breaker.test.js +31 -0
- package/core/dist/runtime-v2/activation/__tests__/rulecode-safety-circuit-breaker.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/sqlite-activation-safety-store.test.d.ts +2 -0
- package/core/dist/runtime-v2/activation/__tests__/sqlite-activation-safety-store.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/sqlite-activation-safety-store.test.js +311 -0
- package/core/dist/runtime-v2/activation/__tests__/sqlite-activation-safety-store.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/activation-control-types.d.ts +61 -0
- package/core/dist/runtime-v2/activation/activation-control-types.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/activation-control-types.js +2 -0
- package/core/dist/runtime-v2/activation/activation-control-types.js.map +1 -0
- package/core/dist/runtime-v2/activation/index.d.ts +14 -0
- package/core/dist/runtime-v2/activation/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/activation/index.js +7 -0
- package/core/dist/runtime-v2/activation/index.js.map +1 -1
- package/core/dist/runtime-v2/activation/openclaw-promotion-checks.d.ts +30 -0
- package/core/dist/runtime-v2/activation/openclaw-promotion-checks.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/openclaw-promotion-checks.js +124 -0
- package/core/dist/runtime-v2/activation/openclaw-promotion-checks.js.map +1 -0
- package/core/dist/runtime-v2/activation/promotion-readiness-evaluator.d.ts +17 -0
- package/core/dist/runtime-v2/activation/promotion-readiness-evaluator.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/promotion-readiness-evaluator.js +55 -0
- package/core/dist/runtime-v2/activation/promotion-readiness-evaluator.js.map +1 -0
- package/core/dist/runtime-v2/activation/promotion-readiness-reader.d.ts +21 -0
- package/core/dist/runtime-v2/activation/promotion-readiness-reader.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/promotion-readiness-reader.js +44 -0
- package/core/dist/runtime-v2/activation/promotion-readiness-reader.js.map +1 -0
- package/core/dist/runtime-v2/activation/rulecode-owner-decision-service.d.ts +104 -0
- package/core/dist/runtime-v2/activation/rulecode-owner-decision-service.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/rulecode-owner-decision-service.js +86 -0
- package/core/dist/runtime-v2/activation/rulecode-owner-decision-service.js.map +1 -0
- package/core/dist/runtime-v2/activation/rulecode-safety-circuit-breaker.d.ts +25 -0
- package/core/dist/runtime-v2/activation/rulecode-safety-circuit-breaker.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/rulecode-safety-circuit-breaker.js +23 -0
- package/core/dist/runtime-v2/activation/rulecode-safety-circuit-breaker.js.map +1 -0
- package/core/dist/runtime-v2/activation/rulecode-shadow-summary.d.ts +14 -0
- package/core/dist/runtime-v2/activation/rulecode-shadow-summary.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/rulecode-shadow-summary.js +57 -0
- package/core/dist/runtime-v2/activation/rulecode-shadow-summary.js.map +1 -0
- package/core/dist/runtime-v2/activation/sqlite-activation-safety-store.d.ts +40 -0
- package/core/dist/runtime-v2/activation/sqlite-activation-safety-store.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/sqlite-activation-safety-store.js +461 -0
- package/core/dist/runtime-v2/activation/sqlite-activation-safety-store.js.map +1 -0
- package/core/dist/runtime-v2/activation/sqlite-activation-state-store.d.ts.map +1 -1
- package/core/dist/runtime-v2/activation/sqlite-activation-state-store.js +24 -6
- package/core/dist/runtime-v2/activation/sqlite-activation-state-store.js.map +1 -1
- package/core/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.js +19 -4
- package/core/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.js.map +1 -1
- package/core/dist/runtime-v2/activation/writers/rule-host-writer.d.ts.map +1 -1
- package/core/dist/runtime-v2/activation/writers/rule-host-writer.js +10 -0
- package/core/dist/runtime-v2/activation/writers/rule-host-writer.js.map +1 -1
- package/core/dist/runtime-v2/config/__tests__/pd-config-contract.test.js +13 -0
- package/core/dist/runtime-v2/config/__tests__/pd-config-contract.test.js.map +1 -1
- package/core/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.js +15 -2
- package/core/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.js.map +1 -1
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.d.ts.map +1 -1
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.js +2 -0
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.js.map +1 -1
- package/core/dist/runtime-v2/index.d.ts +2 -2
- package/core/dist/runtime-v2/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/index.js +1 -1
- package/core/dist/runtime-v2/index.js.map +1 -1
- package/core/dist/runtime-v2/internalization/__tests__/legacy-rule-contract-scanner.test.js +20 -1
- package/core/dist/runtime-v2/internalization/__tests__/legacy-rule-contract-scanner.test.js.map +1 -1
- package/core/dist/runtime-v2/internalization/legacy-rule-contract-scanner.d.ts +4 -4
- package/core/dist/runtime-v2/internalization/legacy-rule-contract-scanner.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/legacy-rule-contract-scanner.js +92 -5
- package/core/dist/runtime-v2/internalization/legacy-rule-contract-scanner.js.map +1 -1
- package/core/dist/runtime-v2/store/sqlite-connection-schema-version.test.js +11 -11
- package/core/dist/runtime-v2/store/sqlite-connection-schema-version.test.js.map +1 -1
- package/core/dist/runtime-v2/store/sqlite-connection.d.ts.map +1 -1
- package/core/dist/runtime-v2/store/sqlite-connection.js +111 -0
- package/core/dist/runtime-v2/store/sqlite-connection.js.map +1 -1
- package/host-runtime/dist/host-liveness-contract.d.ts +3 -0
- package/host-runtime/dist/host-liveness-contract.js +18 -0
- package/host-runtime/dist/index.d.ts +1 -0
- package/host-runtime/dist/index.js +1 -0
- package/host-runtime/dist/legacy-rule-contract-symbols.js +88 -1
- package/host-runtime/dist/production-rulehost-gate.js +33 -16
- package/package.json +2 -2
- package/pd-cli/dist/commands/__tests__/runtime-activation-nextaction.test.js +3 -3
- package/pd-cli/dist/commands/__tests__/runtime-activation-nextaction.test.js.map +1 -1
- package/pd-cli/dist/commands/runtime-activation.d.ts +15 -3
- package/pd-cli/dist/commands/runtime-activation.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-activation.js +160 -49
- package/pd-cli/dist/commands/runtime-activation.js.map +1 -1
- package/plugin/dist/bundle.js +730 -565
- package/plugin/dist/core/rule-host.d.ts +0 -19
- package/plugin/dist/core/rulecode-safety-circuit.d.ts +13 -0
- package/plugin/openclaw.plugin.json +1 -1
- package/plugin/package.json +1 -1
|
@@ -75,25 +75,6 @@ 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
|
-
};
|
|
97
78
|
export declare class RuleHost {
|
|
98
79
|
private readonly stateDir;
|
|
99
80
|
private logger;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare function observeRuleCodeSafety(input: {
|
|
2
|
+
workspaceDir: string;
|
|
3
|
+
activationId?: string;
|
|
4
|
+
toolName: string;
|
|
5
|
+
params: Record<string, unknown>;
|
|
6
|
+
decision: string;
|
|
7
|
+
matched: boolean;
|
|
8
|
+
healthFailure?: 'load' | 'compatibility' | 'context' | 'invalid_result' | 'timeout' | 'exception';
|
|
9
|
+
logger?: {
|
|
10
|
+
warn?: (message: string) => void;
|
|
11
|
+
};
|
|
12
|
+
}): boolean;
|
|
13
|
+
export declare function resetRuleCodeSafetyCircuitsForTests(): void;
|
|
@@ -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.
|
|
5
|
+
"version": "1.215.0",
|
|
6
6
|
"activation": {
|
|
7
7
|
"onCapabilities": [
|
|
8
8
|
"hook"
|
package/plugin/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "principles-disciple",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.215.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",
|