@memberjunction/record-set-processor 6.2.0-edge.1 → 6.2.0-edge.2

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.
Files changed (31) hide show
  1. package/dist/RecordProcessExecutor.d.ts.map +1 -1
  2. package/dist/RecordProcessExecutor.js +5 -38
  3. package/dist/RecordProcessExecutor.js.map +1 -1
  4. package/dist/feature-pipeline-drivers/BaseFeaturePipelineDriver.d.ts +92 -0
  5. package/dist/feature-pipeline-drivers/BaseFeaturePipelineDriver.d.ts.map +1 -0
  6. package/dist/feature-pipeline-drivers/BaseFeaturePipelineDriver.js +26 -0
  7. package/dist/feature-pipeline-drivers/BaseFeaturePipelineDriver.js.map +1 -0
  8. package/dist/feature-pipeline-drivers/DecisionFeaturePipelineDriver.d.ts +79 -0
  9. package/dist/feature-pipeline-drivers/DecisionFeaturePipelineDriver.d.ts.map +1 -0
  10. package/dist/feature-pipeline-drivers/DecisionFeaturePipelineDriver.js +257 -0
  11. package/dist/feature-pipeline-drivers/DecisionFeaturePipelineDriver.js.map +1 -0
  12. package/dist/feature-pipeline-drivers/LLMFeaturePipelineDriver.d.ts +23 -0
  13. package/dist/feature-pipeline-drivers/LLMFeaturePipelineDriver.d.ts.map +1 -0
  14. package/dist/feature-pipeline-drivers/LLMFeaturePipelineDriver.js +85 -0
  15. package/dist/feature-pipeline-drivers/LLMFeaturePipelineDriver.js.map +1 -0
  16. package/dist/index.d.ts +3 -0
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +3 -0
  19. package/dist/index.js.map +1 -1
  20. package/dist/processors/FeaturePipelineEscalation.d.ts +155 -0
  21. package/dist/processors/FeaturePipelineEscalation.d.ts.map +1 -0
  22. package/dist/processors/FeaturePipelineEscalation.js +208 -0
  23. package/dist/processors/FeaturePipelineEscalation.js.map +1 -0
  24. package/dist/processors/InferProcessor.d.ts +206 -4
  25. package/dist/processors/InferProcessor.d.ts.map +1 -1
  26. package/dist/processors/InferProcessor.js +600 -93
  27. package/dist/processors/InferProcessor.js.map +1 -1
  28. package/dist/processors/WriteBackProcessor.d.ts.map +1 -1
  29. package/dist/processors/WriteBackProcessor.js +2 -0
  30. package/dist/processors/WriteBackProcessor.js.map +1 -1
  31. package/package.json +17 -16
@@ -6,48 +6,206 @@
6
6
  *
7
7
  * Supports DataFeatureSpec context (EntityDocumentID template rendering with __Parent context,
8
8
  * QueryID parameterized execution, Field projections), Layer-1 constraint injection, Layer-2
9
- * constraint validation with OnViolation policies, and lifecycle hooks (P1-6).
9
+ * constraint validation with OnViolation policies, and lifecycle hooks (P1-6). A Decision pipeline
10
+ * whose spec sets `Escalation` re-runs its below-floor records through an LLM pipeline
11
+ * (see `FeaturePipelineEscalation`).
10
12
  *
11
13
  * @module @memberjunction/record-set-processor
12
14
  */
15
+ import { type IMetadataProvider } from '@memberjunction/core';
16
+ import { type MJRecordProcessEntity } from '@memberjunction/core-entities';
13
17
  import { AIPromptParams, type AIPromptRunResult, type MJAIPromptEntityExtended } from '@memberjunction/ai-core-plus';
14
18
  import { IRecordProcessor, RecordProcessorContext, RecordRef, RecordResult } from '@memberjunction/record-set-processor-base';
15
19
  import { DataFeatureSpec, DataFeatureOutput, type CacheKeyResult } from '@memberjunction/feature-pipelines';
16
20
  import type { OutputMappingConfig } from '../writeBack.js';
17
- /** Runs an AI Prompt per record and returns its structured output (write-back is the wrapper's job). */
21
+ import { BaseFeaturePipelineDriver } from '../feature-pipeline-drivers/BaseFeaturePipelineDriver.js';
22
+ /**
23
+ * Runs an AI Prompt per record and returns its structured output (write-back is the wrapper's job).
24
+ * A pipeline whose spec sets `Escalation` computes a whole batch before recording any of it, so its batch
25
+ * path does not call {@link ProcessRecord} once per record: an extension that overrides `ProcessRecord`
26
+ * does not see those records.
27
+ */
18
28
  export declare class InferProcessor implements IRecordProcessor {
19
29
  protected readonly promptID: string;
20
30
  protected readonly inputMapping?: Record<string, string>;
21
31
  protected readonly spec?: DataFeatureSpec;
32
+ /** The driver resolution, started on first use and shared by every record this processor runs. */
33
+ private driverResolution?;
34
+ /** The escalation of below-floor decisions, created on first use when the spec has `Escalation`. */
35
+ private _escalator?;
36
+ /** How many records this processor has escalated. */
37
+ private escalatedRecordCount;
38
+ /**
39
+ * Whether this processor writes `MJ: Feature Values` history rows. On for every pipeline run. A
40
+ * Decision pipeline turns it off on its escalation target, because it records the final answers of
41
+ * the records it escalates itself.
42
+ */
43
+ WritesHistory: boolean;
22
44
  /**
23
45
  * @param promptID - The `MJ: AI Prompts` ID to run for each record.
24
46
  * @param inputMapping - Optional mapping shaping the data passed to the prompt (default: `{ record }`).
25
47
  * @param spec - Optional DataFeatureSpec defining outputs, constraints, and caching policy.
26
48
  */
27
49
  constructor(promptID: string, inputMapping?: Record<string, string>, spec?: DataFeatureSpec);
50
+ /**
51
+ * Builds the processor for an Infer Feature Pipeline from its `MJ: Record Processes` row: parses and
52
+ * validates the DataFeatureSpec in `Configuration` (and its materialization targets), and creates the
53
+ * spec's `ProcessorExtensionKey` subclass when it names one. `RecordProcessExecutor` builds every
54
+ * Infer pipeline this way, and so does a Decision pipeline's escalation to an LLM pipeline.
55
+ *
56
+ * @param rp - The pipeline's row (WorkType `Infer`).
57
+ * @param provider - The provider whose metadata the materialization targets are checked against (default: the global one).
58
+ * @throws Error when the row has no PromptID, its Configuration is not valid JSON, its spec or
59
+ * materialization targets are invalid, or its ProcessorExtensionKey is not registered.
60
+ */
61
+ static FromRecordProcess(rp: MJRecordProcessEntity, provider?: IMetadataProvider): InferProcessor;
62
+ /** Parses and validates the DataFeatureSpec in an Infer pipeline row's `Configuration`; undefined when it has none. */
63
+ private static parseSpec;
64
+ /** The pipeline's DataFeatureSpec, when it has one. */
65
+ get Spec(): DataFeatureSpec | undefined;
66
+ /** The `MJ: AI Prompts` ID this processor runs for each record. */
67
+ get PromptID(): string;
68
+ /** The hash that versions this pipeline's output constraints, as its Dedup Cache and history record it. */
69
+ get ConstraintHash(): string;
70
+ /**
71
+ * How many records this processor has escalated to its spec's `Escalation` pipeline. A processor
72
+ * serves one run, so this is the run's count. It counts every record whose answer was escalated,
73
+ * including the records that shared a Dedup Cache key with one, and the escalations that failed.
74
+ */
75
+ get EscalatedRecordCount(): number;
28
76
  ProcessRecord(record: RecordRef, context: RecordProcessorContext, options?: {
29
77
  skipLookup?: boolean;
30
78
  keyInfo?: CacheKeyResult;
31
79
  }): Promise<RecordResult>;
80
+ /** Runs the driver on a key group's first record, and notes which outputs, if any, are below the escalation floor. */
81
+ private computeSample;
82
+ /**
83
+ * Finishes a computed sample: a driver failure fails it, a below-floor decision takes its escalation's
84
+ * outcome, and any other answer is validated, cached and recorded.
85
+ */
86
+ private finalizeSample;
87
+ /**
88
+ * Validates a driver's outputs against the constraints (applying each OnViolation policy), stores
89
+ * them in the Dedup Cache, and records their history.
90
+ */
91
+ private finalizeComputed;
32
92
  /**
33
93
  * Two-phase batch execution (P1-7c). Resolves distinct keys across the batch first,
34
94
  * checks the dedup cache in one batch query, executes LLM prompts ONCE per distinct key,
35
95
  * and fans results back across all matching rows.
36
96
  */
37
97
  ProcessBatch(records: RecordRef[], context: RecordProcessorContext): Promise<Map<string, RecordResult>>;
38
- /** Computes a deterministic SHA-256 hash representing the prompt version and constraint instructions. */
98
+ /** Fails every record with one message. */
99
+ private failEvery;
100
+ /**
101
+ * Resolves what one processing pass needs: the prompt, the driver, and the hashes that version the
102
+ * pipeline's answers. Returns why the pipeline cannot run instead, when the prompt is missing or the
103
+ * driver cannot be resolved.
104
+ */
105
+ private resolveRunState;
106
+ /**
107
+ * Gives every record in a key group its sample's result. The other records get a copy of it, and their
108
+ * own history row from `history` (which is absent when the sample failed).
109
+ */
110
+ private fanOutGroupResult;
111
+ /** The history a key group's other records get from its sample's computed result: none when it failed. */
112
+ private missFanOutHistory;
113
+ /**
114
+ * The escalation of below-floor decisions, when the spec is a Decision pipeline's and has `Escalation`;
115
+ * created once. `ValidateSpec` already refuses `Escalation` on any other type, but a processor built
116
+ * directly from a spec skips it, and an LLM pipeline returns no confidence, so every record would escalate.
117
+ */
118
+ private get escalator();
119
+ /** A successful decision's outputs below the escalation floor; empty when the pipeline does not escalate. */
120
+ private belowFloor;
121
+ /** An uncached batch of a pipeline that escalates: every record is its own group, computed together. */
122
+ private processUncachedBatchWithEscalation;
123
+ /**
124
+ * Computes key groups for a pipeline that escalates. The driver answers each group's first record; the
125
+ * below-floor answers escalate together, in one pass through the target; then each group's final
126
+ * answer is recorded once and fanned out to its records.
127
+ */
128
+ private computeGroupsWithEscalation;
129
+ /**
130
+ * Escalates the below-floor samples together, then finalizes every sample, in order. The escalations are
131
+ * counted and logged by each escalated sample's final result, so an escalated answer that fails this
132
+ * pipeline's own constraints counts as failed.
133
+ */
134
+ private finalizeSamples;
135
+ /**
136
+ * Escalates, together, the samples whose decision was below the floor. Returns each escalated sample's
137
+ * outcome by record ID; empty when none escalated.
138
+ */
139
+ private escalateBelowFloor;
140
+ /**
141
+ * Adds a pass's escalated records (each group's records, fan-out included) to the run's count, and logs
142
+ * it, counting as failed each escalated group whose final result failed.
143
+ */
144
+ private countEscalations;
145
+ /**
146
+ * Finishes a record whose decision was below the escalation floor. A failed escalation fails the record
147
+ * with both reasons, and the low-confidence decision is never cached, recorded or returned. A successful
148
+ * one replaces the decision: the target's validated payload, in this pipeline's shape, is recorded in
149
+ * history under the target's prompt, prompt run, hashes and cache entry, with the escalation note as the
150
+ * history row's reasoning, and the record's result names the target's prompt with that prompt run and
151
+ * hash, so write-back's `$run` provenance describes one run. It is not written to this pipeline's Dedup
152
+ * Cache, which holds only answers the decision model gave with confidence; the target caches its own answers.
153
+ *
154
+ * The target validated its answer against its own constraints only, and those may be looser than this
155
+ * pipeline's (a wider enum, or none). So the answer, in this pipeline's shape, is validated again against
156
+ * this pipeline's own output constraints, with each output's OnViolation policy, exactly as a decision's
157
+ * answer is: `fail` fails the record with both reasons, `null` and `coerce-to-other` apply. A value
158
+ * outside the Decision pipeline's domain is never recorded or written back.
159
+ *
160
+ * The record paid for two model calls, and `MJ: Feature Values` is what links a prompt run to the process
161
+ * run. So before the answer's row, one more history row records the superseded decision: its prompt run,
162
+ * prompt, hashes and confidence, with no values (the low-confidence answer is never recorded as a value)
163
+ * and a reasoning that says it was superseded. It is written once per decision call: a key group's other
164
+ * records get only the answer's row.
165
+ */
166
+ private finalizeEscalated;
167
+ /**
168
+ * Records the history row of a decision an escalation superseded: the decision model's prompt run and
169
+ * confidence under this pipeline's prompt and hashes, no values, and a reasoning saying it was superseded.
170
+ * Nothing is recorded when the decision has no prompt run to link.
171
+ */
172
+ private recordSupersededDecision;
173
+ /**
174
+ * The escalated payload in this pipeline's shape: the target's validated payload, with each output's
175
+ * value also placed at this pipeline's Ref for it, so write-back and history (which read this
176
+ * pipeline's Refs) find the escalated values. When both pipelines use the same Refs, it is the target's
177
+ * payload as is.
178
+ */
179
+ private projectEscalatedPayload;
180
+ /**
181
+ * Computes a deterministic SHA-256 hash representing the prompt version and constraint instructions.
182
+ * A pipeline type other than `LLM` is part of the hash, so switching a pipeline's type never serves
183
+ * the old type's cached values. An LLM pipeline's hash is unchanged by the type's introduction.
184
+ * So are the `Escalation` settings: the floor decides which decision answers are confident enough to
185
+ * keep, so changing it (or the target) invalidates the answers cached under the old settings. A
186
+ * pipeline without `Escalation` keeps its hash.
187
+ */
39
188
  protected computePromptVersionHash(prompt: MJAIPromptEntityExtended, spec?: DataFeatureSpec): string;
189
+ /** The pipeline type's part of the prompt version hash: empty when the type is absent or `LLM`. */
190
+ private pipelineTypeHashSuffix;
191
+ /** The escalation settings' part of the prompt version hash: empty without `Escalation`. */
192
+ private escalationHashSuffix;
40
193
  /** Computes a deterministic SHA-256 hash representing the output constraints. */
41
194
  protected computeConstraintHash(spec?: DataFeatureSpec): string;
42
195
  /**
43
196
  * Records historical audit rows in MJ: Feature Values for all outputs on a record.
197
+ * `outputConfidence` (from a driver that produces confidence) sets each output's confidence by
198
+ * output name, ahead of the single `confidence`. `omitValues` records every output's value as null,
199
+ * whatever the payload holds (a superseded decision's row). Records nothing when {@link WritesHistory} is off.
44
200
  */
45
201
  protected recordFeatureValuesHistory(params: {
46
202
  record: RecordRef;
47
203
  context: RecordProcessorContext;
48
204
  payload: unknown;
205
+ omitValues?: boolean;
49
206
  reasoning?: string | null;
50
207
  confidence?: number | null;
208
+ outputConfidence?: Record<string, number>;
51
209
  promptID?: string | null;
52
210
  promptVersionHash?: string | null;
53
211
  constraintHash?: string | null;
@@ -59,6 +217,42 @@ export declare class InferProcessor implements IRecordProcessor {
59
217
  * SHA-256 over canonical { promptData, promptVersionHash }.
60
218
  */
61
219
  ComputeBasisHash(record: RecordRef, context: RecordProcessorContext): Promise<string>;
220
+ /**
221
+ * Resolves the driver for this pipeline's type, once per processor instance.
222
+ *
223
+ * The type is `DataFeatureSpec.PipelineType`, or `LLM` when absent. It is matched by name
224
+ * (case-insensitive, trimmed) against the `MJ: Feature Pipeline Types` catalog cached by
225
+ * `KnowledgeHubMetadataEngine`, and its `DriverClass` is created through the ClassFactory. `LLM`
226
+ * resolves to {@link LLMFeaturePipelineDriver} when the catalog has no `LLM` row, or cannot be read,
227
+ * so a database without the seed row keeps working. The driver's `ValidateOutputs` then runs once.
228
+ *
229
+ * @throws Error when the type is not in the catalog (and is not `LLM`), is not Active, names a
230
+ * DriverClass that is not registered, or cannot produce every output (naming each one).
231
+ */
232
+ protected ResolveDriver(context: RecordProcessorContext): Promise<BaseFeaturePipelineDriver>;
233
+ /** Runs {@link ResolveDriver}, turning a resolution error into a message the caller fails the record with. */
234
+ private resolveDriverOrError;
235
+ /** Finds the pipeline's type in the catalog, creates its driver, and checks it can produce every output. */
236
+ private resolveDriverFromCatalog;
237
+ /**
238
+ * Looks the type up by name in the catalog. If the catalog cannot be read, `LLM` is treated as not
239
+ * found (and so still resolves); any other type fails, because only the catalog names its driver.
240
+ */
241
+ private findPipelineType;
242
+ /** The driver for a type with no catalog row: `LLM` still runs; any other name is an error. */
243
+ private createDriverWithoutCatalogRow;
244
+ /** Creates an Active type's driver from its registered `DriverClass`. */
245
+ private createDriver;
246
+ /**
247
+ * The value lists of the pipeline's own entity (`context.entityID`), for the output check and the
248
+ * driver. Consults only that entity's fields, so a same-named field elsewhere is never read; undefined
249
+ * when the run names no entity or the provider does not know it.
250
+ */
251
+ private buildFieldValuesLookup;
252
+ /** Fails when the driver cannot produce one or more of the spec's outputs, naming every one. */
253
+ private assertDriverProducesOutputs;
254
+ /** The driver's callbacks into this processor's overridable steps, so extensions keep working. */
255
+ private buildComputeHooks;
62
256
  /** Lifecycle hook called before prompt data context is constructed. */
63
257
  protected beforeBuildContext(record: RecordRef, ctx: RecordProcessorContext): Promise<void>;
64
258
  /** Lifecycle hook called immediately before ExecutePrompt is invoked. */
@@ -67,13 +261,21 @@ export declare class InferProcessor implements IRecordProcessor {
67
261
  protected afterPromptExecute(result: AIPromptRunResult<unknown>, record: RecordRef, ctx: RecordProcessorContext): Promise<unknown>;
68
262
  /**
69
263
  * Layer 2 output validation hook. Evaluates outputs against declared constraints, applies OnViolation
70
- * policies (fail, null, coerce-to-other), and builds the processed payload.
264
+ * policies (fail, null, coerce-to-other), and builds the processed payload. `replacedOutputs` names
265
+ * the outputs whose value a `null` or `coerce-to-other` policy replaced.
71
266
  */
72
267
  protected validateOutputs(outputs: DataFeatureOutput[], rawResult: unknown, record: RecordRef, ctx: RecordProcessorContext): Promise<{
73
268
  valid: boolean;
74
269
  payload?: unknown;
75
270
  errorMessage?: string;
271
+ replacedOutputs?: string[];
76
272
  }>;
273
+ /**
274
+ * The driver's per-output confidences, less those of outputs whose value the constraint check replaced:
275
+ * a confidence belongs to the value the model gave, not to a null or 'Other' written in its place.
276
+ * Undefined when none remain.
277
+ */
278
+ private confidenceOfKeptValues;
77
279
  /** Lifecycle hook to resolve a dedup cache key for this record. Default returns null (computed by cache service). */
78
280
  protected resolveCacheKey(record: RecordRef, spec: DataFeatureSpec | undefined, ctx: RecordProcessorContext): Promise<string | null>;
79
281
  /** Lifecycle hook called before write-back is executed on this record. */
@@ -1 +1 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