principles-disciple 2.0.2 → 2.0.3

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.
@@ -15,3 +15,9 @@ export interface ConversationAccessCheckResult {
15
15
  */
16
16
  export declare function checkConversationAccessConfig(pluginConfig: unknown): ConversationAccessCheckResult;
17
17
  export declare function ensureConversationAccessInConfig(): boolean;
18
+ /**
19
+ * True when the plugin entry carries an explicit
20
+ * `hooks.allowConversationAccess === false`. Callers should honor the opt-out
21
+ * (structured rc-9 log) instead of attempting the absent-flag auto-fix.
22
+ */
23
+ export declare function isExplicitConversationAccessOptOut(pluginEntry: unknown): boolean;
@@ -0,0 +1,15 @@
1
+ export interface DegradedEnforcementRecord {
2
+ workspaceDir: string;
3
+ reason: string;
4
+ firstSeenAt: string;
5
+ lastSeenAt: string;
6
+ occurrences: number;
7
+ }
8
+ /** Stable per-workspace marker path (keyed by resolved workspace dir). */
9
+ export declare function markerPathFor(workspaceDir: string): string;
10
+ /**
11
+ * Record (or bump) the degraded-enforcement marker for a workspace.
12
+ * Overwrites atomically; repeated occurrences accumulate a counter and refresh
13
+ * `lastSeenAt` so a stale marker is distinguishable from an active one.
14
+ */
15
+ export declare function recordDegradedEnforcement(workspaceDir: string, reason: string, now?: Date): void;
@@ -32,6 +32,7 @@ export interface SessionState {
32
32
  dailyGfiPeak: number;
33
33
  injectedProbationIds?: string[];
34
34
  injectedPrincipleIds?: string[];
35
+ injectedActivationIds?: string[];
35
36
  receiptAutoCorrects?: number;
36
37
  }
37
38
  /**
@@ -70,7 +71,14 @@ export declare function setInjectedProbationIds(sessionId: string, ids: string[]
70
71
  * against this set, so keeping a stale set would re-admit markers for
71
72
  * principles no longer injected.
72
73
  */
73
- export declare function setInjectedPrincipleIds(sessionId: string | undefined, ids: readonly string[], workspaceDir?: string): void;
74
+ export declare function setInjectedPrincipleIds(sessionId: string | undefined, ids: readonly string[], workspaceDir?: string,
75
+ /**
76
+ * PRI-899: the activation id paired with each entry of `ids` (same index,
77
+ * the array the presence-receipt writer already consumed). Optional and
78
+ * append-only so every existing caller keeps working unchanged — a caller
79
+ * that omits it stores an empty pairing rather than a stale one.
80
+ */
81
+ activationIds?: readonly string[]): void;
74
82
  /** PRI-534: count one applied live auto-correction in this session. */
75
83
  export declare function trackReceiptAutoCorrect(sessionId: string | undefined, workspaceDir?: string): void;
76
84
  export declare function getInjectedProbationIds(sessionId: string, workspaceDir?: string): string[];
@@ -82,6 +90,16 @@ export declare function getInjectedProbationIds(sessionId: string, workspaceDir?
82
90
  * treat verified membership as evidence — unknown must not imply empty.
83
91
  */
84
92
  export declare function getInjectedPrincipleIds(sessionId: string): readonly string[] | undefined;
93
+ /**
94
+ * PRI-899: the activation id paired with each entry of the injected set, in
95
+ * the SAME index order. Tri-state, mirroring getInjectedPrincipleIds:
96
+ * - undefined → the injection set is UNKNOWN for this session;
97
+ * - [] → the set is known but carries no activation pairing (legacy
98
+ * caller, or the injection carried no activation id);
99
+ * - [a, b] → index-aligned with getInjectedPrincipleIds(sessionId).
100
+ * A consumer must never treat "no pairing" as "some other activation".
101
+ */
102
+ export declare function getInjectedActivationIds(sessionId: string): readonly string[] | undefined;
85
103
  export declare function clearInjectedProbationIds(sessionId: string, workspaceDir?: string): SessionState;
86
104
  export declare function getSession(sessionId: string): SessionState | undefined;
87
105
  export declare function listSessions(workspaceDir?: string): SessionState[];