principles-disciple 1.204.0 → 1.205.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.
@@ -0,0 +1,15 @@
1
+ export interface PrincipleReceiptMetadata {
2
+ /** Resolved display title (fallback chain result; never empty). */
3
+ title: string;
4
+ /** Owner approval date (ISO string) — approvals.decided_at, fallback activations.activated_at. */
5
+ approvedAt?: string;
6
+ /** Source correction summary — only present when the artifact carries painReasonSummary. */
7
+ sourceSummary?: string;
8
+ }
9
+ /**
10
+ * Resolve receipt metadata for a blocked rule. Returns undefined when nothing
11
+ * useful can be resolved (caller degrades to the generic copy).
12
+ */
13
+ export declare function loadPrincipleReceiptMetadata(workspaceDir: string, ruleId: string | undefined, principleId: string | undefined): PrincipleReceiptMetadata | undefined;
14
+ /** Test hook: clear caches between tests. */
15
+ export declare function clearPrincipleReceiptMetadataCache(): void;
@@ -21,6 +21,10 @@ export interface BlockContext {
21
21
  sessionId?: string;
22
22
  /** Source module that triggered the block (for audit trail) */
23
23
  blockSource?: string;
24
+ /** RuleHost rule id — enables PRI-530 receipt copy attribution */
25
+ ruleId?: string;
26
+ /** Principle id from the rule result — enables PRI-530 receipt copy attribution */
27
+ principleId?: string;
24
28
  }
25
29
  /**
26
30
  * Single authoritative block helper.
@@ -2,7 +2,7 @@
2
2
  "id": "principles-disciple",
3
3
  "name": "Principles Disciple",
4
4
  "description": "Turn repeated Agent corrections into Owner-approved, observable, reversible behavior principles. Stop correcting the same AI behavior across sessions.",
5
- "version": "1.204.0",
5
+ "version": "1.205.0",
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": "Turn repeated Agent corrections into Owner-approved, observable, reversible behavior principles. Stop correcting the same AI behavior across sessions.",
5
- "version": "1.204.0",
5
+ "version": "1.205.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.204.0",
3
+ "version": "1.205.0",
4
4
  "description": "Turn repeated Agent corrections into Owner-approved, observable, reversible behavior principles. Stop correcting the same AI behavior across sessions.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",