@memberjunction/predictive-studio 6.2.0-edge.5 → 6.2.0-edge.6
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/README.md +18 -14
- package/dist/actions/driver-classes.d.ts +11 -0
- package/dist/actions/driver-classes.d.ts.map +1 -0
- package/dist/actions/driver-classes.js +11 -0
- package/dist/actions/driver-classes.js.map +1 -0
- package/dist/actions/index.d.ts +1 -0
- package/dist/actions/index.d.ts.map +1 -1
- package/dist/actions/index.js +1 -0
- package/dist/actions/index.js.map +1 -1
- package/dist/actions/model-scoring-action-generator.js +1 -1
- package/dist/actions/model-scoring-action-generator.js.map +1 -1
- package/dist/actions/promote-model.action.d.ts +3 -2
- package/dist/actions/promote-model.action.d.ts.map +1 -1
- package/dist/actions/promote-model.action.js +4 -3
- package/dist/actions/promote-model.action.js.map +1 -1
- package/dist/actions/promote-model.gate.d.ts +5 -5
- package/dist/actions/promote-model.gate.d.ts.map +1 -1
- package/dist/actions/promote-model.gate.js +8 -14
- package/dist/actions/promote-model.gate.js.map +1 -1
- package/dist/actions/run-experiment.action.d.ts +13 -5
- package/dist/actions/run-experiment.action.d.ts.map +1 -1
- package/dist/actions/run-experiment.action.js +26 -7
- package/dist/actions/run-experiment.action.js.map +1 -1
- package/dist/actions/run-experiment.deps.d.ts +19 -27
- package/dist/actions/run-experiment.deps.d.ts.map +1 -1
- package/dist/actions/run-experiment.deps.js +23 -48
- package/dist/actions/run-experiment.deps.js.map +1 -1
- package/dist/actions/schedule-model-scoring.action.d.ts +1 -1
- package/dist/actions/schedule-model-scoring.action.d.ts.map +1 -1
- package/dist/actions/schedule-model-scoring.action.js +2 -1
- package/dist/actions/schedule-model-scoring.action.js.map +1 -1
- package/dist/actions/score-record-set.action.d.ts +8 -3
- package/dist/actions/score-record-set.action.d.ts.map +1 -1
- package/dist/actions/score-record-set.action.js +16 -7
- package/dist/actions/score-record-set.action.js.map +1 -1
- package/dist/actions/score-record-set.runner.d.ts +62 -32
- package/dist/actions/score-record-set.runner.d.ts.map +1 -1
- package/dist/actions/score-record-set.runner.js +122 -67
- package/dist/actions/score-record-set.runner.js.map +1 -1
- package/dist/actions/train-model.action.d.ts +4 -6
- package/dist/actions/train-model.action.d.ts.map +1 -1
- package/dist/actions/train-model.action.js +13 -20
- package/dist/actions/train-model.action.js.map +1 -1
- package/dist/agent/modeling-plan-to-pipeline.d.ts +5 -2
- package/dist/agent/modeling-plan-to-pipeline.d.ts.map +1 -1
- package/dist/agent/modeling-plan-to-pipeline.js +32 -7
- package/dist/agent/modeling-plan-to-pipeline.js.map +1 -1
- package/dist/agent/pipeline-builder-agent.d.ts +20 -5
- package/dist/agent/pipeline-builder-agent.d.ts.map +1 -1
- package/dist/agent/pipeline-builder-agent.js +73 -46
- package/dist/agent/pipeline-builder-agent.js.map +1 -1
- package/dist/agent/pipeline-builder.d.ts +37 -5
- package/dist/agent/pipeline-builder.d.ts.map +1 -1
- package/dist/agent/pipeline-builder.js +91 -96
- package/dist/agent/pipeline-builder.js.map +1 -1
- package/dist/feature-assembly/data-access.d.ts +12 -8
- package/dist/feature-assembly/data-access.d.ts.map +1 -1
- package/dist/feature-assembly/data-access.js +8 -10
- package/dist/feature-assembly/data-access.js.map +1 -1
- package/dist/feature-assembly/feature-assembly-executor.d.ts +4 -4
- package/dist/feature-assembly/feature-assembly-executor.d.ts.map +1 -1
- package/dist/feature-assembly/feature-assembly-executor.js +6 -0
- package/dist/feature-assembly/feature-assembly-executor.js.map +1 -1
- package/dist/feature-assembly/index.d.ts +1 -0
- package/dist/feature-assembly/index.d.ts.map +1 -1
- package/dist/feature-assembly/index.js +1 -0
- package/dist/feature-assembly/index.js.map +1 -1
- package/dist/feature-assembly/read-cap-error.d.ts +23 -0
- package/dist/feature-assembly/read-cap-error.d.ts.map +1 -0
- package/dist/feature-assembly/read-cap-error.js +35 -0
- package/dist/feature-assembly/read-cap-error.js.map +1 -0
- package/dist/maintenance/seams.d.ts +4 -4
- package/dist/maintenance/seams.d.ts.map +1 -1
- package/dist/maintenance/seams.js +7 -4
- package/dist/maintenance/seams.js.map +1 -1
- package/dist/maintenance/types.d.ts +10 -10
- package/dist/maintenance/types.d.ts.map +1 -1
- package/dist/operations/delegation.d.ts +16 -17
- package/dist/operations/delegation.d.ts.map +1 -1
- package/dist/operations/delegation.js +18 -19
- package/dist/operations/delegation.js.map +1 -1
- package/dist/operations/index.d.ts +1 -0
- package/dist/operations/index.d.ts.map +1 -1
- package/dist/operations/index.js +1 -0
- package/dist/operations/index.js.map +1 -1
- package/dist/operations/promote-model.operation.d.ts +1 -1
- package/dist/operations/promote-model.operation.js +1 -1
- package/dist/operations/refusals.d.ts +16 -0
- package/dist/operations/refusals.d.ts.map +1 -0
- package/dist/operations/refusals.js +44 -0
- package/dist/operations/refusals.js.map +1 -0
- package/dist/operations/score-record-set.operation.d.ts +4 -2
- package/dist/operations/score-record-set.operation.d.ts.map +1 -1
- package/dist/operations/score-record-set.operation.js +7 -1
- package/dist/operations/score-record-set.operation.js.map +1 -1
- package/dist/operations/start-experiment-session.operation.d.ts +14 -18
- package/dist/operations/start-experiment-session.operation.d.ts.map +1 -1
- package/dist/operations/start-experiment-session.operation.js +23 -21
- package/dist/operations/start-experiment-session.operation.js.map +1 -1
- package/dist/operations/train-model.operation.d.ts +4 -2
- package/dist/operations/train-model.operation.d.ts.map +1 -1
- package/dist/operations/train-model.operation.js +10 -1
- package/dist/operations/train-model.operation.js.map +1 -1
- package/dist/scheduling/scheduled-model-scoring.d.ts +2 -2
- package/dist/scheduling/scheduled-model-scoring.d.ts.map +1 -1
- package/dist/scheduling/scheduled-model-scoring.js +1 -2
- package/dist/scheduling/scheduled-model-scoring.js.map +1 -1
- package/dist/scoring/auto-train.d.ts.map +1 -1
- package/dist/scoring/auto-train.js +6 -10
- package/dist/scoring/auto-train.js.map +1 -1
- package/dist/scoring/ml-model-inference-processor.d.ts +13 -0
- package/dist/scoring/ml-model-inference-processor.d.ts.map +1 -1
- package/dist/scoring/ml-model-inference-processor.js +35 -7
- package/dist/scoring/ml-model-inference-processor.js.map +1 -1
- package/dist/scoring/ml-model-score-enricher.d.ts.map +1 -1
- package/dist/scoring/ml-model-score-enricher.js +5 -0
- package/dist/scoring/ml-model-score-enricher.js.map +1 -1
- package/dist/scoring/model-readiness.d.ts +13 -0
- package/dist/scoring/model-readiness.d.ts.map +1 -1
- package/dist/scoring/model-readiness.js +20 -0
- package/dist/scoring/model-readiness.js.map +1 -1
- package/dist/scoring/scoring-process.d.ts +2 -2
- package/dist/scoring/scoring-process.d.ts.map +1 -1
- package/dist/scoring/scoring-process.js +1 -2
- package/dist/scoring/scoring-process.js.map +1 -1
- package/dist/scoring/seams.d.ts +1 -1
- package/dist/scoring/seams.d.ts.map +1 -1
- package/dist/scoring/seams.js +1 -1
- package/dist/scoring/seams.js.map +1 -1
- package/dist/scoring/startup-register.d.ts +1 -1
- package/dist/scoring/startup-register.js +1 -1
- package/dist/scoring/types.d.ts +2 -2
- package/dist/scoring/types.d.ts.map +1 -1
- package/dist/training/artifact-store.d.ts +3 -3
- package/dist/training/artifact-store.d.ts.map +1 -1
- package/dist/training/artifact-store.js +2 -2
- package/dist/training/artifact-store.js.map +1 -1
- package/dist/training/as-of-refusal.d.ts +35 -0
- package/dist/training/as-of-refusal.d.ts.map +1 -0
- package/dist/training/as-of-refusal.js +48 -0
- package/dist/training/as-of-refusal.js.map +1 -0
- package/dist/training/index.d.ts +2 -0
- package/dist/training/index.d.ts.map +1 -1
- package/dist/training/index.js +2 -0
- package/dist/training/index.js.map +1 -1
- package/dist/training/locked-holdout.d.ts +73 -0
- package/dist/training/locked-holdout.d.ts.map +1 -0
- package/dist/training/locked-holdout.js +151 -0
- package/dist/training/locked-holdout.js.map +1 -0
- package/dist/training/seams.d.ts +10 -11
- package/dist/training/seams.d.ts.map +1 -1
- package/dist/training/seams.js +10 -15
- package/dist/training/seams.js.map +1 -1
- package/dist/training/training-engine.d.ts +23 -9
- package/dist/training/training-engine.d.ts.map +1 -1
- package/dist/training/training-engine.js +80 -55
- package/dist/training/training-engine.js.map +1 -1
- package/dist/training/types.d.ts +40 -12
- package/dist/training/types.d.ts.map +1 -1
- package/package.json +13 -13
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module actions/run-experiment.deps
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* {@link
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* proposed experiment (algorithm × feature set × hyperparameters) to a concrete
|
|
12
|
-
* `MJ: ML Training Pipelines` id is an {@link IPipelineResolver} — a materialization
|
|
13
|
-
* strategy that belongs to the higher layer that owns pipeline definitions. The
|
|
14
|
-
* Engine package therefore supplies a clear-failing default resolver; production
|
|
15
|
-
* callers inject a real one (and a real artifact loader) by constructing the deps
|
|
16
|
-
* themselves and passing them via the action's `buildDeps` override.
|
|
4
|
+
* The experiment-session dependency entry points and the refusal raised while
|
|
5
|
+
* {@link ExperimentSessions.Enabled} is off. The session runner cannot yet turn a
|
|
6
|
+
* proposed experiment into a training pipeline (no production
|
|
7
|
+
* {@link IPipelineResolver} exists), so {@link BuildProductionExperimentDeps}
|
|
8
|
+
* refuses with {@link ExperimentSessionsUnavailableError} before the orchestrator
|
|
9
|
+
* creates any Experiment, Session or Iteration row. The published names are kept
|
|
10
|
+
* for their callers.
|
|
17
11
|
*/
|
|
18
12
|
import type { UserInfo, IMetadataProvider } from '@memberjunction/core';
|
|
19
|
-
import {
|
|
13
|
+
import type { IPipelineResolver } from '../experiment/seams.js';
|
|
20
14
|
import type { ExperimentDeps, TrainExperimentInput } from '../experiment/types.js';
|
|
15
|
+
/** Thrown when an experiment session is requested while sessions are switched off. */
|
|
16
|
+
export declare class ExperimentSessionsUnavailableError extends Error {
|
|
17
|
+
/** The refusal message: the same reason the UI shows, from {@link ExperimentSessions.DisabledReason}. */
|
|
18
|
+
static readonly Message: string;
|
|
19
|
+
constructor();
|
|
20
|
+
}
|
|
21
21
|
/**
|
|
22
22
|
* A clear-failing default {@link IPipelineResolver}. The strategy for turning a
|
|
23
23
|
* proposed experiment into a `MJ: ML Training Pipelines` id (reuse vs. materialize)
|
|
@@ -29,21 +29,13 @@ export declare class UnresolvedPipelineResolver implements IPipelineResolver {
|
|
|
29
29
|
resolvePipelineId(input: TrainExperimentInput): Promise<string>;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
|
-
* Build the production {@link ExperimentDeps}
|
|
33
|
-
*
|
|
34
|
-
* is composed here and handed to the {@link TrainingEngineExperimentTrainer} so
|
|
35
|
-
* each iteration trains through the real {@link TrainingEngine}.
|
|
36
|
-
*
|
|
37
|
-
* The artifact store is built the same way the standalone training path builds it:
|
|
38
|
-
* resolve the active `MJ: File Storage Providers` id (see
|
|
39
|
-
* {@link resolveActiveFileStorageProviderId}) and stamp it on the store, which
|
|
40
|
-
* creates a real `MJ: Files` row and writes the bytes to local disk keyed by that
|
|
41
|
-
* id (dev / on-prem). Async so the provider lookup is part of the wiring.
|
|
32
|
+
* Build the production {@link ExperimentDeps}. Always refuses with {@link ExperimentSessionsUnavailableError}
|
|
33
|
+
* (no production pipeline resolver exists), before touching the database.
|
|
42
34
|
*
|
|
43
|
-
* @param
|
|
44
|
-
* @param
|
|
35
|
+
* @param _contextUser request user (unused; kept for the published signature)
|
|
36
|
+
* @param _provider optional provider (unused; kept for the published signature)
|
|
45
37
|
*/
|
|
46
|
-
export declare function BuildProductionExperimentDeps(
|
|
38
|
+
export declare function BuildProductionExperimentDeps(_contextUser?: UserInfo, _provider?: IMetadataProvider): Promise<ExperimentDeps>;
|
|
47
39
|
/** @deprecated Use {@link BuildProductionExperimentDeps}. */
|
|
48
40
|
export declare function buildProductionExperimentDeps(contextUser?: UserInfo, provider?: IMetadataProvider): Promise<ExperimentDeps>;
|
|
49
41
|
//# sourceMappingURL=run-experiment.deps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-experiment.deps.d.ts","sourceRoot":"","sources":["../../src/actions/run-experiment.deps.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"run-experiment.deps.d.ts","sourceRoot":"","sources":["../../src/actions/run-experiment.deps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAGxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhF,sFAAsF;AACtF,qBAAa,kCAAmC,SAAQ,KAAK;IAC3D,yGAAyG;IACzG,gBAAuB,OAAO,EAAE,MAAM,CAAqC;;CAM5E;AAED;;;;;;GAMG;AACH,qBAAa,0BAA2B,YAAW,iBAAiB;IACrD,iBAAiB,CAAC,KAAK,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC;CAO7E;AAED;;;;;;GAMG;AACH,wBAAsB,6BAA6B,CACjD,YAAY,CAAC,EAAE,QAAQ,EACvB,SAAS,CAAC,EAAE,iBAAiB,GAC5B,OAAO,CAAC,cAAc,CAAC,CAEzB;AAED,6DAA6D;AAC7D,wBAAsB,6BAA6B,CACjD,WAAW,CAAC,EAAE,QAAQ,EACtB,QAAQ,CAAC,EAAE,iBAAiB,GAC3B,OAAO,CAAC,cAAc,CAAC,CAEzB"}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module actions/run-experiment.deps
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* {@link
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* proposed experiment (algorithm × feature set × hyperparameters) to a concrete
|
|
12
|
-
* `MJ: ML Training Pipelines` id is an {@link IPipelineResolver} — a materialization
|
|
13
|
-
* strategy that belongs to the higher layer that owns pipeline definitions. The
|
|
14
|
-
* Engine package therefore supplies a clear-failing default resolver; production
|
|
15
|
-
* callers inject a real one (and a real artifact loader) by constructing the deps
|
|
16
|
-
* themselves and passing them via the action's `buildDeps` override.
|
|
4
|
+
* The experiment-session dependency entry points and the refusal raised while
|
|
5
|
+
* {@link ExperimentSessions.Enabled} is off. The session runner cannot yet turn a
|
|
6
|
+
* proposed experiment into a training pipeline (no production
|
|
7
|
+
* {@link IPipelineResolver} exists), so {@link BuildProductionExperimentDeps}
|
|
8
|
+
* refuses with {@link ExperimentSessionsUnavailableError} before the orchestrator
|
|
9
|
+
* creates any Experiment, Session or Iteration row. The published names are kept
|
|
10
|
+
* for their callers.
|
|
17
11
|
*/
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
import { ExperimentSessions } from '@memberjunction/predictive-studio-core';
|
|
13
|
+
/** Thrown when an experiment session is requested while sessions are switched off. */
|
|
14
|
+
export class ExperimentSessionsUnavailableError extends Error {
|
|
15
|
+
/** The refusal message: the same reason the UI shows, from {@link ExperimentSessions.DisabledReason}. */
|
|
16
|
+
static { this.Message = ExperimentSessions.DisabledReason; }
|
|
17
|
+
constructor() {
|
|
18
|
+
super(ExperimentSessionsUnavailableError.Message);
|
|
19
|
+
this.name = 'ExperimentSessionsUnavailableError';
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
22
|
/**
|
|
23
23
|
* A clear-failing default {@link IPipelineResolver}. The strategy for turning a
|
|
24
24
|
* proposed experiment into a `MJ: ML Training Pipelines` id (reuse vs. materialize)
|
|
@@ -34,39 +34,14 @@ export class UnresolvedPipelineResolver {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
|
-
* Build the production {@link ExperimentDeps}
|
|
38
|
-
*
|
|
39
|
-
* is composed here and handed to the {@link TrainingEngineExperimentTrainer} so
|
|
40
|
-
* each iteration trains through the real {@link TrainingEngine}.
|
|
41
|
-
*
|
|
42
|
-
* The artifact store is built the same way the standalone training path builds it:
|
|
43
|
-
* resolve the active `MJ: File Storage Providers` id (see
|
|
44
|
-
* {@link resolveActiveFileStorageProviderId}) and stamp it on the store, which
|
|
45
|
-
* creates a real `MJ: Files` row and writes the bytes to local disk keyed by that
|
|
46
|
-
* id (dev / on-prem). Async so the provider lookup is part of the wiring.
|
|
37
|
+
* Build the production {@link ExperimentDeps}. Always refuses with {@link ExperimentSessionsUnavailableError}
|
|
38
|
+
* (no production pipeline resolver exists), before touching the database.
|
|
47
39
|
*
|
|
48
|
-
* @param
|
|
49
|
-
* @param
|
|
40
|
+
* @param _contextUser request user (unused; kept for the published signature)
|
|
41
|
+
* @param _provider optional provider (unused; kept for the published signature)
|
|
50
42
|
*/
|
|
51
|
-
export async function BuildProductionExperimentDeps(
|
|
52
|
-
|
|
53
|
-
const providerId = await ResolveActiveFileStorageProviderId(contextUser, provider);
|
|
54
|
-
const trainingDeps = {
|
|
55
|
-
entityFactory,
|
|
56
|
-
recordLoader: new RunViewRecordLoader(),
|
|
57
|
-
sidecar: new MJSidecarTrainer(),
|
|
58
|
-
artifactStore: BuildArtifactStore(providerId, entityFactory),
|
|
59
|
-
contextUser,
|
|
60
|
-
provider,
|
|
61
|
-
};
|
|
62
|
-
const trainer = new TrainingEngineExperimentTrainer(trainingDeps, new UnresolvedPipelineResolver(), new TrainingEngine());
|
|
63
|
-
return {
|
|
64
|
-
entityFactory: new MetadataExperimentEntityFactory(provider),
|
|
65
|
-
trainer,
|
|
66
|
-
clock: new SystemClock(),
|
|
67
|
-
contextUser,
|
|
68
|
-
provider,
|
|
69
|
-
};
|
|
43
|
+
export async function BuildProductionExperimentDeps(_contextUser, _provider) {
|
|
44
|
+
throw new ExperimentSessionsUnavailableError();
|
|
70
45
|
}
|
|
71
46
|
/** @deprecated Use {@link BuildProductionExperimentDeps}. */
|
|
72
47
|
export async function buildProductionExperimentDeps(contextUser, provider) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-experiment.deps.js","sourceRoot":"","sources":["../../src/actions/run-experiment.deps.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"run-experiment.deps.js","sourceRoot":"","sources":["../../src/actions/run-experiment.deps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAK5E,sFAAsF;AACtF,MAAM,OAAO,kCAAmC,SAAQ,KAAK;IAC3D,yGAAyG;aAClF,YAAO,GAAW,kBAAkB,CAAC,cAAc,CAAC;IAE3E;QACE,KAAK,CAAC,kCAAkC,CAAC,OAAO,CAAC,CAAC;QAClD,IAAI,CAAC,IAAI,GAAG,oCAAoC,CAAC;IACnD,CAAC;;AAGH;;;;;;GAMG;AACH,MAAM,OAAO,0BAA0B;IAC9B,KAAK,CAAC,iBAAiB,CAAC,KAA2B;QACxD,MAAM,IAAI,KAAK,CACb,8EAA8E,KAAK,CAAC,UAAU,CAAC,KAAK,KAAK;YACvG,6GAA6G;YAC7G,qEAAqE,CACxE,CAAC;IACJ,CAAC;CACF;AAED;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,6BAA6B,CACjD,YAAuB,EACvB,SAA6B;IAE7B,MAAM,IAAI,kCAAkC,EAAE,CAAC;AACjD,CAAC;AAED,6DAA6D;AAC7D,MAAM,CAAC,KAAK,UAAU,6BAA6B,CACjD,WAAsB,EACtB,QAA4B;IAE5B,OAAO,6BAA6B,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;AAC9D,CAAC"}
|
|
@@ -28,7 +28,7 @@ import type { ActionResultSimple, RunActionParams } from '@memberjunction/action
|
|
|
28
28
|
import { BasePredictiveStudioAction } from './base-predictive-studio.action.js';
|
|
29
29
|
import { type ScheduleModelScoringOptions, type ScheduledModelScoringResult, type ScoringCadence, type ScoringValueKind } from '../scheduling/scheduled-model-scoring.js';
|
|
30
30
|
/** The driver-class key this action registers under (matches the metadata row). */
|
|
31
|
-
export
|
|
31
|
+
export { SCHEDULE_MODEL_SCORING_DRIVER_CLASS } from './driver-classes.js';
|
|
32
32
|
/**
|
|
33
33
|
* The scheduling seam this action depends on — "create + save a scheduled scoring
|
|
34
34
|
* Record Process (and its lineage binding) for these options, give me the saved
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule-model-scoring.action.d.ts","sourceRoot":"","sources":["../../src/actions/schedule-model-scoring.action.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAKxF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAEL,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACtB,MAAM,uCAAuC,CAAC;AAE/C,mFAAmF;AACnF,
|
|
1
|
+
{"version":3,"file":"schedule-model-scoring.action.d.ts","sourceRoot":"","sources":["../../src/actions/schedule-model-scoring.action.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAKxF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAEL,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACtB,MAAM,uCAAuC,CAAC;AAE/C,mFAAmF;AACnF,OAAO,EAAE,mCAAmC,EAAE,MAAM,kBAAkB,CAAC;AAGvE;;;;;GAKG;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,IAAI,EAAE,2BAA2B,KAAK,OAAO,CAAC,2BAA2B,CAAC,CAAC;AAEjH;;;;;;;GAOG;AACH,qBACa,0CAA2C,SAAQ,0BAA0B;IACxF,kBAAkB;cACF,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;IA2CvF;;;;;;;OAOG;IACH,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,2BAA2B,GAAG,kBAAkB;IAgBrG;;;;;OAKG;IACH,SAAS,CAAC,YAAY,CAAC,MAAM,EAAE,eAAe,GAAG,cAAc,GAAG,SAAS;IAY3E,+FAA+F;IAC/F,SAAS,CAAC,cAAc,CAAC,MAAM,EAAE,eAAe,GAAG,gBAAgB,GAAG,SAAS;IAO/E,mFAAmF;IACnF,SAAS,CAAC,QAAQ,IAAI,sBAAsB;CAG7C"}
|
|
@@ -36,7 +36,8 @@ import { BaseAction } from '@memberjunction/actions';
|
|
|
36
36
|
import { BasePredictiveStudioAction } from './base-predictive-studio.action.js';
|
|
37
37
|
import { CreateScheduledModelScoring, } from '../scheduling/scheduled-model-scoring.js';
|
|
38
38
|
/** The driver-class key this action registers under (matches the metadata row). */
|
|
39
|
-
export
|
|
39
|
+
export { SCHEDULE_MODEL_SCORING_DRIVER_CLASS } from './driver-classes.js';
|
|
40
|
+
import { SCHEDULE_MODEL_SCORING_DRIVER_CLASS } from './driver-classes.js';
|
|
40
41
|
/**
|
|
41
42
|
* Binds a trained `MJ: ML Models` to a recurring scoring run: scores the target
|
|
42
43
|
* entity's rows on a cadence (default monthly). The `OutputField` param is optional —
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule-model-scoring.action.js","sourceRoot":"","sources":["../../src/actions/schedule-model-scoring.action.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;;;;;;;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EACL,2BAA2B,GAK5B,MAAM,uCAAuC,CAAC;AAE/C,mFAAmF;AACnF,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"schedule-model-scoring.action.js","sourceRoot":"","sources":["../../src/actions/schedule-model-scoring.action.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;;;;;;;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EACL,2BAA2B,GAK5B,MAAM,uCAAuC,CAAC;AAE/C,mFAAmF;AACnF,OAAO,EAAE,mCAAmC,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EAAE,mCAAmC,EAAE,MAAM,kBAAkB,CAAC;AAUvE;;;;;;;GAOG;AAEI,IAAM,0CAA0C,GAAhD,MAAM,0CAA2C,SAAQ,0BAA0B;IACxF,kBAAkB;IACR,KAAK,CAAC,iBAAiB,CAAC,MAAuB;QACvD,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;YACvD,IAAI,CAAC,OAAO,EAAE,CAAC;gBACb,OAAO,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE,+BAA+B,CAAC,CAAC;YACxE,CAAC;YACD,MAAM,gBAAgB,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;YACzE,IAAI,CAAC,gBAAgB,EAAE,CAAC;gBACtB,OAAO,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE,wCAAwC,CAAC,CAAC;YACjF,CAAC;YAC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C1C,IAAI,KAAK,KAAK,QAAQ;YAAE,OAAO,QAAQ,CAAC;QACxC,IAAI,KAAK,KAAK,OAAO;YAAE,OAAO,OAAO,CAAC;QACtC,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;IACvB,CAAC;IAED,+FAA+F;IACrF,cAAc,CAAC,MAAuB;QAC9C,MAAM,GAAG,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;QACrD,OAAO,GAAG,EAAE,IAAI,EAAE,CAAC,WAAW,EAAE,KAAK,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;IACrE,CAAC;IAED,8EAA8E;IAE9E,mFAAmF;IACzE,QAAQ;QAChB,OAAO,2BAA2B,CAAC;IACrC,CAAC;CACF,CAAA;AAnGY,0CAA0C;IADtD,aAAa,CAAC,UAAU,EAAE,mCAAmC,CAAC;GAClD,0CAA0C,CAmGtD"}
|
|
@@ -20,7 +20,7 @@ import type { ActionResultSimple, RunActionParams } from '@memberjunction/action
|
|
|
20
20
|
import { type UserInfo, type IMetadataProvider } from '@memberjunction/core';
|
|
21
21
|
import { BasePredictiveStudioAction, type JsonObject } from './base-predictive-studio.action.js';
|
|
22
22
|
/** The driver-class key this action registers under (matches the metadata row). */
|
|
23
|
-
export
|
|
23
|
+
export { SCORE_RECORD_SET_DRIVER_CLASS } from './driver-classes.js';
|
|
24
24
|
/**
|
|
25
25
|
* The scope of records to score. Mirrors the Record Set Processing scope shapes
|
|
26
26
|
* (records / view / list / filter / single). Exactly one shape should be
|
|
@@ -68,7 +68,8 @@ export interface ScoreRecordSetRequest {
|
|
|
68
68
|
*/
|
|
69
69
|
dryRun?: boolean;
|
|
70
70
|
contextUser?: UserInfo;
|
|
71
|
-
provider
|
|
71
|
+
/** The provider every scope read and write-back goes through (required: no fallback to the global provider). */
|
|
72
|
+
provider: IMetadataProvider;
|
|
72
73
|
}
|
|
73
74
|
/** A single ephemeral prediction surfaced when write-back is NOT requested. */
|
|
74
75
|
export interface EphemeralPrediction {
|
|
@@ -127,7 +128,11 @@ export declare class PredictiveStudioScoreRecordSetAction extends BasePredictive
|
|
|
127
128
|
* an `OutputMapping`. Returns `undefined` when not requested.
|
|
128
129
|
*/
|
|
129
130
|
protected parseWriteBack(params: RunActionParams): WriteBackDirective | undefined;
|
|
130
|
-
/**
|
|
131
|
+
/**
|
|
132
|
+
* Construct the production scoring runner — the same one the Score Record Set
|
|
133
|
+
* operation uses, wired with the production model loader, sidecar and artifact
|
|
134
|
+
* loader. Overridable so tests inject a mock.
|
|
135
|
+
*/
|
|
131
136
|
protected createRunner(): IScoreRecordSetRunner;
|
|
132
137
|
}
|
|
133
138
|
//# sourceMappingURL=score-record-set.action.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"score-record-set.action.d.ts","sourceRoot":"","sources":["../../src/actions/score-record-set.action.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAExF,OAAO,
|
|
1
|
+
{"version":3,"file":"score-record-set.action.d.ts","sourceRoot":"","sources":["../../src/actions/score-record-set.action.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAExF,OAAO,EAAsB,KAAK,QAAQ,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAGjG,OAAO,EAAE,0BAA0B,EAAE,KAAK,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAI9F,mFAAmF;AACnF,OAAO,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAC;AAGjE;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,oDAAoD;IACpD,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,UAAU,C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E,OAAO,CAAC;CACpB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB;IACpC,4DAA4D;IAC5D,GAAG,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;CACpE;AAED;;;GAGG;AACH,qBACa,oCAAqC,SAAQ,0BAA0B;IAClF,kBAAkB;cACF,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAiDvF,2EAA2E;IAC3E,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,oBAAoB,GAAG,kBAAkB;IAc9F,gEAAgE;IAChE,SAAS,CAAC,UAAU,CAAC,MAAM,EAAE,eAAe,GAAG,YAAY,GAAG,SAAS;IAKvE;;;;OAIG;IACH,SAAS,CAAC,cAAc,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO;IAItD,8EAA8E;IAC9E,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM;IAU1D;;;OAGG;IACH,SAAS,CAAC,cAAc,CAAC,MAAM,EAAE,eAAe,GAAG,kBAAkB,GAAG,SAAS;IAWjF;;;;OAIG;IACH,SAAS,CAAC,YAAY,IAAI,qBAAqB;CAGhD"}
|
|
@@ -23,12 +23,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
23
23
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24
24
|
};
|
|
25
25
|
import { RegisterClass } from '@memberjunction/global';
|
|
26
|
-
import { LogError } from '@memberjunction/core';
|
|
26
|
+
import { LogError, Metadata } from '@memberjunction/core';
|
|
27
27
|
import { BaseAction } from '@memberjunction/actions';
|
|
28
28
|
import { BasePredictiveStudioAction } from './base-predictive-studio.action.js';
|
|
29
|
-
import {
|
|
29
|
+
import { BuildScoreRecordSetRunner } from '../operations/delegation.js';
|
|
30
|
+
import { PredictiveStudioRefusals } from '../operations/refusals.js';
|
|
30
31
|
/** The driver-class key this action registers under (matches the metadata row). */
|
|
31
|
-
export
|
|
32
|
+
export { SCORE_RECORD_SET_DRIVER_CLASS } from './driver-classes.js';
|
|
33
|
+
import { SCORE_RECORD_SET_DRIVER_CLASS } from './driver-classes.js';
|
|
32
34
|
/**
|
|
33
35
|
* Scores a set of records with a trained `MJ: ML Models`. Outputs: `ScoredCount`
|
|
34
36
|
* (number), `Predictions` (JSON array, ephemeral only), `WroteBack` (boolean).
|
|
@@ -55,19 +57,22 @@ let PredictiveStudioScoreRecordSetAction = class PredictiveStudioScoreRecordSetA
|
|
|
55
57
|
return this.fail('VALIDATION_ERROR', 'Scope must populate exactly one of: records, viewId, listId, filter, single');
|
|
56
58
|
}
|
|
57
59
|
const writeBack = this.parseWriteBack(params);
|
|
60
|
+
const provider = params.Provider || Metadata.Provider; // global-provider-ok: RunActionParams.Provider is optional; ActionEngine contract falls back to the global provider (ActionEngine-Base.ts:413-419)
|
|
58
61
|
const runner = this.createRunner();
|
|
59
62
|
const result = await runner.run({
|
|
60
63
|
modelId,
|
|
61
64
|
scope,
|
|
62
65
|
writeBack,
|
|
63
66
|
contextUser: params.ContextUser,
|
|
64
|
-
provider
|
|
67
|
+
provider,
|
|
65
68
|
});
|
|
66
69
|
return this.mapResult(params, result);
|
|
67
70
|
}
|
|
68
71
|
catch (e) {
|
|
69
72
|
LogError(e);
|
|
70
|
-
|
|
73
|
+
const error = e instanceof Error ? e : new Error(String(e));
|
|
74
|
+
// A refusal keeps its typed code (the same one the operation returns), so agents never parse the message.
|
|
75
|
+
return this.fail(PredictiveStudioRefusals.CodeOf(error) || 'SCORING_FAILED', `Scoring failed: ${error.message}`);
|
|
71
76
|
}
|
|
72
77
|
}
|
|
73
78
|
/** Map the runner result onto output params + a human-readable message. */
|
|
@@ -124,9 +129,13 @@ let PredictiveStudioScoreRecordSetAction = class PredictiveStudioScoreRecordSetA
|
|
|
124
129
|
return flag ? true : undefined;
|
|
125
130
|
}
|
|
126
131
|
// ----- injectable runner seam (overridden in tests) ------------------------
|
|
127
|
-
/**
|
|
132
|
+
/**
|
|
133
|
+
* Construct the production scoring runner — the same one the Score Record Set
|
|
134
|
+
* operation uses, wired with the production model loader, sidecar and artifact
|
|
135
|
+
* loader. Overridable so tests inject a mock.
|
|
136
|
+
*/
|
|
128
137
|
createRunner() {
|
|
129
|
-
return
|
|
138
|
+
return BuildScoreRecordSetRunner();
|
|
130
139
|
}
|
|
131
140
|
};
|
|
132
141
|
PredictiveStudioScoreRecordSetAction = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"score-record-set.action.js","sourceRoot":"","sources":["../../src/actions/score-record-set.action.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAyC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"score-record-set.action.js","sourceRoot":"","sources":["../../src/actions/score-record-set.action.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAyC,MAAM,sBAAsB,CAAC;AACjG,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,0BAA0B,EAAmB,MAAM,iCAAiC,CAAC;AAC9F,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,mFAAmF;AACnF,OAAO,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAC;AAkFjE;;;GAGG;AAEI,IAAM,oCAAoC,GAA1C,MAAM,oCAAqC,SAAQ,0BAA0B;IAClF,kB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;;OAIG;IACO,YAAY;QACpB,OAAO,yBAAyB,EAAE,CAAC;IACrC,CAAC;CACF,CAAA;AAnHY,oCAAoC;IADhD,aAAa,CAAC,UAAU,EAAE,6BAA6B,CAAC;GAC5C,oCAAoC,CAmHhD"}
|
|
@@ -9,10 +9,12 @@
|
|
|
9
9
|
* production seams, and drives its batch path.
|
|
10
10
|
*
|
|
11
11
|
* Keeping this OUT of the action keeps the action thin (validate → delegate → map)
|
|
12
|
-
* and keeps this resolver independently testable. The
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
12
|
+
* and keeps this resolver independently testable. The production wiring (model
|
|
13
|
+
* loader, sidecar and the `LocalArtifactLoader`) comes from
|
|
14
|
+
* `BuildScoreRecordSetRunner()` in `operations/delegation`, which both the Score
|
|
15
|
+
* action and the Score Record Set operation use. A runner constructed without `deps`
|
|
16
|
+
* has no artifact loader and fails with a clear, actionable message rather than
|
|
17
|
+
* silently mis-scoring.
|
|
16
18
|
*/
|
|
17
19
|
import { type UserInfo, type IMetadataProvider, type EntityInfo } from '@memberjunction/core';
|
|
18
20
|
import { BaseEntity } from '@memberjunction/core';
|
|
@@ -44,8 +46,8 @@ interface ScoringOutputMapping {
|
|
|
44
46
|
export interface ProductionScoreRecordSetRunnerOptions {
|
|
45
47
|
/**
|
|
46
48
|
* The scoring dependency bundle (model loader / artifact loader / sidecar). When
|
|
47
|
-
* omitted, production model-loader + sidecar are built
|
|
48
|
-
*
|
|
49
|
+
* omitted, production model-loader + sidecar are built with an artifact loader
|
|
50
|
+
* that refuses; `BuildScoreRecordSetRunner()` supplies the production bundle.
|
|
49
51
|
*/
|
|
50
52
|
deps?: MLInferenceDeps;
|
|
51
53
|
/** Primary-key field on scored entities (defaults to `ID`). */
|
|
@@ -56,22 +58,39 @@ export interface ProductionScoreRecordSetRunnerOptions {
|
|
|
56
58
|
* {@link MLModelInferenceProcessor} batch path.
|
|
57
59
|
*/
|
|
58
60
|
export declare class ProductionScoreRecordSetRunner implements IScoreRecordSetRunner {
|
|
61
|
+
/** How many list members one `IN (...)` / `OR` filter selects. */
|
|
62
|
+
private static readonly ID_CHUNK_SIZE;
|
|
59
63
|
private readonly options;
|
|
60
64
|
constructor(options?: ProductionScoreRecordSetRunnerOptions);
|
|
61
65
|
/** @inheritdoc */
|
|
62
66
|
run(request: ScoreRecordSetRequest): Promise<ScoreRecordSetResult>;
|
|
63
67
|
/** Resolve the scope into a set of record refs. Exactly one selector is honored. */
|
|
64
|
-
protected resolveScope(scope: ScoringScope, contextUser
|
|
68
|
+
protected resolveScope(scope: ScoringScope, contextUser: UserInfo | undefined, provider: IMetadataProvider): Promise<RecordRef[]>;
|
|
65
69
|
/**
|
|
66
|
-
* Resolve a `MJ: Lists` id into its member records as entity objects. Mirrors
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
70
|
+
* Resolve a `MJ: Lists` id into its member records as entity objects. Mirrors the substrate's
|
|
71
|
+
* `ListSource` membership contract — a List's members live in `MJ: List Details` (which store a
|
|
72
|
+
* composite-key-safe `RecordID`), NOT in a backing User View. We (1) read the list's target
|
|
73
|
+
* `EntityID`/name, (2) read its member `RecordID`s from `MJ: List Details`, then (3) load those
|
|
74
|
+
* target rows as `entity_object`s so the inference processor gets the same full preloaded rows as
|
|
75
|
+
* the view and filter scopes (feature columns present whatever the key is called, `record.<field>`
|
|
76
|
+
* write-back refs resolvable, and write-back reuses the loaded entity instead of reloading it).
|
|
73
77
|
*/
|
|
74
|
-
protected resolveList(listId: string, contextUser
|
|
78
|
+
protected resolveList(listId: string, contextUser: UserInfo | undefined, provider: IMetadataProvider): Promise<RecordRef[]>;
|
|
79
|
+
/**
|
|
80
|
+
* Load the given records of `entityInfo` as entity objects, in chunks of
|
|
81
|
+
* {@link ProductionScoreRecordSetRunner.ID_CHUNK_SIZE} batched into one `RunViews` call. List
|
|
82
|
+
* Details store each member's key as a compact CompositeKey URL segment (the bare value for a
|
|
83
|
+
* single-column key, whatever that column is called; `F1|v1||F2|v2` for a composite key), so the
|
|
84
|
+
* filter is built from the entity's real primary key(s) — never an assumed column named ID.
|
|
85
|
+
*/
|
|
86
|
+
private resolveIDChunks;
|
|
87
|
+
/**
|
|
88
|
+
* The record refs a successful scope read produced; throws with the read's error when it failed, so a failed read
|
|
89
|
+
* (or one failed chunk of a list) never silently drops records.
|
|
90
|
+
*
|
|
91
|
+
* @param scopeLabel what was read, for the error message (e.g. `entity 'Members'`, `view '<id>'`)
|
|
92
|
+
*/
|
|
93
|
+
private toRecordRefs;
|
|
75
94
|
/**
|
|
76
95
|
* Build the filter that selects exactly the given records of `entityInfo`, where each id is a
|
|
77
96
|
* compact CompositeKey URL segment (the form `MJ: List Details.RecordID` and
|
|
@@ -80,27 +99,37 @@ export declare class ProductionScoreRecordSetRunner implements IScoreRecordSetRu
|
|
|
80
99
|
* no single column can be compared against a multi-column value.
|
|
81
100
|
*/
|
|
82
101
|
protected primaryKeyInFilter(entityInfo: EntityInfo, recordIds: string[]): string;
|
|
83
|
-
/**
|
|
84
|
-
|
|
102
|
+
/**
|
|
103
|
+
* Resolve an entity + filter into entity-object record refs.
|
|
104
|
+
*
|
|
105
|
+
* `maxRows` that is absent, `null` (possible on the operation's JSON input) or `<= 0` means no cap: every matching
|
|
106
|
+
* row is read. A positive cap reads one row past it, and a scope that returns more than `maxRows` rows is refused
|
|
107
|
+
* with {@link ReadCapExceededError} (decision D2-C1: scoring a fraction and reporting success is F-L3-2). Reading
|
|
108
|
+
* `maxRows + 1` rows detects the cut from the rows themselves, so it holds for `maxRows: 1`, where the provider
|
|
109
|
+
* issues no count query and `TotalRowCount` cannot show the truncation.
|
|
110
|
+
*/
|
|
111
|
+
protected resolveFilter(entityName: string, extraFilter: string | undefined, maxRows: number | null | undefined, contextUser: UserInfo | undefined, provider: IMetadataProvider): Promise<RecordRef[]>;
|
|
112
|
+
/** The explicit row cap a `maxRows` value asks for, or `undefined` when it asks for every row (absent, null, <= 0). */
|
|
113
|
+
private static explicitCap;
|
|
85
114
|
/** Resolve a saved-view id into entity-object record refs. */
|
|
86
115
|
protected resolveView(params: {
|
|
87
116
|
ViewID: string;
|
|
88
|
-
}, contextUser
|
|
117
|
+
}, contextUser: UserInfo | undefined, provider: IMetadataProvider): Promise<RecordRef[]>;
|
|
89
118
|
/**
|
|
90
119
|
* Build the per-record execution context for the processor. A `contextUser` is
|
|
91
|
-
* required (server-side scoring is user-scoped)
|
|
92
|
-
*
|
|
93
|
-
*
|
|
120
|
+
* required (server-side scoring is user-scoped), and so is the `provider` every read
|
|
121
|
+
* and write-back goes through (there is no fallback to the global provider); the
|
|
122
|
+
* Action validates the user before delegating, but we also assert both here so this
|
|
123
|
+
* runner can't be driven without them.
|
|
94
124
|
*/
|
|
95
125
|
protected buildContext(request: ScoreRecordSetRequest): RecordProcessorContext;
|
|
96
126
|
/** Resolve the deps bundle, building production model-loader + sidecar when absent. */
|
|
97
127
|
protected resolveDeps(): MLInferenceDeps;
|
|
98
128
|
/**
|
|
99
|
-
* A placeholder {@link IArtifactLoader} that fails loudly
|
|
100
|
-
*
|
|
101
|
-
* the
|
|
102
|
-
*
|
|
103
|
-
* the runner; tests inject the whole runner.
|
|
129
|
+
* A placeholder {@link IArtifactLoader} that fails loudly, used only when the
|
|
130
|
+
* runner is constructed without `deps`. Production callers (the Score action and
|
|
131
|
+
* the Score Record Set operation) build the runner with
|
|
132
|
+
* `BuildScoreRecordSetRunner()`, which wires the real `LocalArtifactLoader`.
|
|
104
133
|
*/
|
|
105
134
|
protected missingArtifactLoader(): IArtifactLoader;
|
|
106
135
|
/** Convert a scope `records` entry (id string or pk object) into a record ref. */
|
|
@@ -109,14 +138,15 @@ export declare class ProductionScoreRecordSetRunner implements IScoreRecordSetRu
|
|
|
109
138
|
protected entityToRecordRef(row: BaseEntity, entityId?: string): RecordRef;
|
|
110
139
|
/**
|
|
111
140
|
* Build a `Field='value'`-style filter from a primary-key object. Each KEY is
|
|
112
|
-
* validated against the entity's
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
141
|
+
* validated against the entity's PRIMARY-KEY fields BEFORE interpolation — any
|
|
142
|
+
* other name is rejected (SQL-injection defense for the untrusted key names, and
|
|
143
|
+
* a non-key field such as `Status` would select an arbitrary matching row). Every
|
|
144
|
+
* primary-key field must be supplied, so the filter identifies exactly one record.
|
|
145
|
+
* Values are single-quote-escaped.
|
|
116
146
|
*/
|
|
117
|
-
protected primaryKeyFilter(entityName: string, primaryKey: JsonObject, provider
|
|
147
|
+
protected primaryKeyFilter(entityName: string, primaryKey: JsonObject, provider: IMetadataProvider): string;
|
|
118
148
|
/** Resolve an entity id from its name (best-effort; empty when unavailable). */
|
|
119
|
-
protected resolveEntityId(entityName: string, provider
|
|
149
|
+
protected resolveEntityId(entityName: string, provider: IMetadataProvider): string;
|
|
120
150
|
/** First string-able value of an object (used to key a record ref from a pk map). */
|
|
121
151
|
protected firstStringValue(obj: JsonObject): string;
|
|
122
152
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"score-record-set.runner.d.ts","sourceRoot":"","sources":["../../src/actions/score-record-set.runner.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"score-record-set.runner.d.ts","sourceRoot":"","sources":["../../src/actions/score-record-set.runner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAIL,KAAK,QAAQ,EACb,KAAK,iBAAiB,EACtB,KAAK,UAAU,EAEhB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,KAAK,EAAE,SAAS,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAKjH,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yC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