principles-disciple 1.221.2 → 1.222.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.
@@ -26,6 +26,23 @@ export interface BlockContext {
26
26
  /** Principle id from the rule result — enables PRI-530 receipt copy attribution */
27
27
  principleId?: string;
28
28
  }
29
+ /**
30
+ * Authoritative persistence core for ONE gate-block decision.
31
+ *
32
+ * Shared by BOTH enforcement paths (PRI-569): recordGateBlockAndReturn
33
+ * (legacy hook path) and handleSharedRuleHostResult's deny branch (shared
34
+ * host-runtime path). Before PRI-569 the shared path recorded only EventLog
35
+ * JSONL rows, so trajectory.db gate_blocks stayed empty and Wave-4's
36
+ * "blocks today" metric read 0 despite live blocks.
37
+ *
38
+ * None of the steps throws into the caller; degradation is observable via
39
+ * reasonCode-carrying warnings, and trajectory write failures schedule the
40
+ * bounded retry chain.
41
+ */
42
+ export declare function persistGateBlock(wctx: WorkspaceContext, blockCtx: BlockContext, logger: {
43
+ warn?: (_message: string) => void;
44
+ error?: (_message: string) => void;
45
+ }): void;
29
46
  /**
30
47
  * Single authoritative block helper.
31
48
  *
@@ -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.221.2",
5
+ "version": "1.222.1",
6
6
  "activation": {
7
7
  "onCapabilities": [
8
8
  "hook"
@@ -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.221.2",
5
+ "version": "1.222.1",
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.221.2",
3
+ "version": "1.222.1",
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",