@exellix/ai-tasks 7.8.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.
- package/.env.example +3 -0
- package/.metadata/instructions-builders/create-expected-output-instructions.md +195 -0
- package/.metadata/readme.md +48 -0
- package/.metadata/shared/audit.md +29 -0
- package/.metadata/skills/professional-answer +32 -0
- package/.metadata/skills/professional-answer.compressed.md +11 -0
- package/.metadata/skills/professional-answer.instructions +33 -0
- package/.metadata/skills/professional-answer.instructions.md +33 -0
- package/.metadata/skills/professional-answer.l2.md +28 -0
- package/.metadata/skills/professional-answer.md +32 -0
- package/.metadata/skills/professional-answer.prompt +1 -0
- package/.metadata/skills/professional-answer.prompt.md +1 -0
- package/.metadata/skills/professional-decision.md +26 -0
- package/BREAKING-CHANGES.md +43 -0
- package/CHANGELOG.md +147 -0
- package/README.md +2497 -0
- package/RUNTASK_REQUEST.md +369 -0
- package/dist/activix/activixClient.d.ts +6 -0
- package/dist/activix/activixClient.d.ts.map +1 -0
- package/dist/activix/activixClient.js +131 -0
- package/dist/activix/activixClient.js.map +1 -0
- package/dist/activix/getTaskActivities.d.ts +10 -0
- package/dist/activix/getTaskActivities.d.ts.map +1 -0
- package/dist/activix/getTaskActivities.js +17 -0
- package/dist/activix/getTaskActivities.js.map +1 -0
- package/dist/activix/phaseTracking.d.ts +17 -0
- package/dist/activix/phaseTracking.d.ts.map +1 -0
- package/dist/activix/phaseTracking.js +85 -0
- package/dist/activix/phaseTracking.js.map +1 -0
- package/dist/aiScoping/index.d.ts +6 -0
- package/dist/aiScoping/index.d.ts.map +1 -0
- package/dist/aiScoping/index.js +4 -0
- package/dist/aiScoping/index.js.map +1 -0
- package/dist/aiScoping/runAiScoping.d.ts +36 -0
- package/dist/aiScoping/runAiScoping.d.ts.map +1 -0
- package/dist/aiScoping/runAiScoping.js +100 -0
- package/dist/aiScoping/runAiScoping.js.map +1 -0
- package/dist/aiScoping/runScopingCall.d.ts +23 -0
- package/dist/aiScoping/runScopingCall.d.ts.map +1 -0
- package/dist/aiScoping/runScopingCall.js +50 -0
- package/dist/aiScoping/runScopingCall.js.map +1 -0
- package/dist/aiScoping/validateAiScoping.d.ts +7 -0
- package/dist/aiScoping/validateAiScoping.d.ts.map +1 -0
- package/dist/aiScoping/validateAiScoping.js +33 -0
- package/dist/aiScoping/validateAiScoping.js.map +1 -0
- package/dist/aiSkillsUpstreamExports.d.ts +13 -0
- package/dist/aiSkillsUpstreamExports.d.ts.map +1 -0
- package/dist/aiSkillsUpstreamExports.js +12 -0
- package/dist/aiSkillsUpstreamExports.js.map +1 -0
- package/dist/analysis/analyzeRunTaskRequest.d.ts +29 -0
- package/dist/analysis/analyzeRunTaskRequest.d.ts.map +1 -0
- package/dist/analysis/analyzeRunTaskRequest.js +85 -0
- package/dist/analysis/analyzeRunTaskRequest.js.map +1 -0
- package/dist/analysis/index.d.ts +3 -0
- package/dist/analysis/index.d.ts.map +1 -0
- package/dist/analysis/index.js +2 -0
- package/dist/analysis/index.js.map +1 -0
- package/dist/builders/task-request-builder.d.ts +310 -0
- package/dist/builders/task-request-builder.d.ts.map +1 -0
- package/dist/builders/task-request-builder.js +581 -0
- package/dist/builders/task-request-builder.js.map +1 -0
- package/dist/compile/compileTaskConfiguration.d.ts +15 -0
- package/dist/compile/compileTaskConfiguration.d.ts.map +1 -0
- package/dist/compile/compileTaskConfiguration.js +184 -0
- package/dist/compile/compileTaskConfiguration.js.map +1 -0
- package/dist/compile/index.d.ts +2 -0
- package/dist/compile/index.d.ts.map +1 -0
- package/dist/compile/index.js +2 -0
- package/dist/compile/index.js.map +1 -0
- package/dist/core/task-sdk.d.ts +36 -0
- package/dist/core/task-sdk.d.ts.map +1 -0
- package/dist/core/task-sdk.js +2432 -0
- package/dist/core/task-sdk.js.map +1 -0
- package/dist/errors/smartInputValidationError.d.ts +39 -0
- package/dist/errors/smartInputValidationError.d.ts.map +1 -0
- package/dist/errors/smartInputValidationError.js +97 -0
- package/dist/errors/smartInputValidationError.js.map +1 -0
- package/dist/errors/taskConfigurationCompileError.d.ts +16 -0
- package/dist/errors/taskConfigurationCompileError.d.ts.map +1 -0
- package/dist/errors/taskConfigurationCompileError.js +20 -0
- package/dist/errors/taskConfigurationCompileError.js.map +1 -0
- package/dist/execution-strategies/applyExecutionStrategyOutputs.d.ts +17 -0
- package/dist/execution-strategies/applyExecutionStrategyOutputs.d.ts.map +1 -0
- package/dist/execution-strategies/applyExecutionStrategyOutputs.js +63 -0
- package/dist/execution-strategies/applyExecutionStrategyOutputs.js.map +1 -0
- package/dist/execution-strategies/constants.d.ts +14 -0
- package/dist/execution-strategies/constants.d.ts.map +1 -0
- package/dist/execution-strategies/constants.js +13 -0
- package/dist/execution-strategies/constants.js.map +1 -0
- package/dist/execution-strategies/executionStrategyCatalogMetadata.d.ts +9 -0
- package/dist/execution-strategies/executionStrategyCatalogMetadata.d.ts.map +1 -0
- package/dist/execution-strategies/executionStrategyCatalogMetadata.js +37 -0
- package/dist/execution-strategies/executionStrategyCatalogMetadata.js.map +1 -0
- package/dist/execution-strategies/genericExecutionFuncxEnvelope.d.ts +94 -0
- package/dist/execution-strategies/genericExecutionFuncxEnvelope.d.ts.map +1 -0
- package/dist/execution-strategies/genericExecutionFuncxEnvelope.js +306 -0
- package/dist/execution-strategies/genericExecutionFuncxEnvelope.js.map +1 -0
- package/dist/execution-strategies/resolveExecutionStrategies.d.ts +14 -0
- package/dist/execution-strategies/resolveExecutionStrategies.d.ts.map +1 -0
- package/dist/execution-strategies/resolveExecutionStrategies.js +108 -0
- package/dist/execution-strategies/resolveExecutionStrategies.js.map +1 -0
- package/dist/execution-strategies/runFuncxExecutionStrategy.d.ts +37 -0
- package/dist/execution-strategies/runFuncxExecutionStrategy.d.ts.map +1 -0
- package/dist/execution-strategies/runFuncxExecutionStrategy.js +72 -0
- package/dist/execution-strategies/runFuncxExecutionStrategy.js.map +1 -0
- package/dist/index.d.ts +99 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +106 -0
- package/dist/index.js.map +1 -0
- package/dist/internal/resolveLlmCallForXynthesis.d.ts +52 -0
- package/dist/internal/resolveLlmCallForXynthesis.d.ts.map +1 -0
- package/dist/internal/resolveLlmCallForXynthesis.js +81 -0
- package/dist/internal/resolveLlmCallForXynthesis.js.map +1 -0
- package/dist/internal/resolveRunTaskRuntimeKnobs.d.ts +19 -0
- package/dist/internal/resolveRunTaskRuntimeKnobs.d.ts.map +1 -0
- package/dist/internal/resolveRunTaskRuntimeKnobs.js +52 -0
- package/dist/internal/resolveRunTaskRuntimeKnobs.js.map +1 -0
- package/dist/internal/runPostStepLlmCall.d.ts +52 -0
- package/dist/internal/runPostStepLlmCall.d.ts.map +1 -0
- package/dist/internal/runPostStepLlmCall.js +170 -0
- package/dist/internal/runPostStepLlmCall.js.map +1 -0
- package/dist/localTasks/collectEvidence.d.ts +3 -0
- package/dist/localTasks/collectEvidence.d.ts.map +1 -0
- package/dist/localTasks/collectEvidence.js +364 -0
- package/dist/localTasks/collectEvidence.js.map +1 -0
- package/dist/localTasks/decideWebScope.d.ts +3 -0
- package/dist/localTasks/decideWebScope.d.ts.map +1 -0
- package/dist/localTasks/decideWebScope.js +56 -0
- package/dist/localTasks/decideWebScope.js.map +1 -0
- package/dist/localTasks/index.d.ts +5 -0
- package/dist/localTasks/index.d.ts.map +1 -0
- package/dist/localTasks/index.js +19 -0
- package/dist/localTasks/index.js.map +1 -0
- package/dist/localTasks/narrixAssetPlayground.d.ts +13 -0
- package/dist/localTasks/narrixAssetPlayground.d.ts.map +1 -0
- package/dist/localTasks/narrixAssetPlayground.js +161 -0
- package/dist/localTasks/narrixAssetPlayground.js.map +1 -0
- package/dist/localTasks/narrixSubnetPlayground.d.ts +14 -0
- package/dist/localTasks/narrixSubnetPlayground.d.ts.map +1 -0
- package/dist/localTasks/narrixSubnetPlayground.js +168 -0
- package/dist/localTasks/narrixSubnetPlayground.js.map +1 -0
- package/dist/localTasks/narrixVulnGroupPlayground.d.ts +13 -0
- package/dist/localTasks/narrixVulnGroupPlayground.d.ts.map +1 -0
- package/dist/localTasks/narrixVulnGroupPlayground.js +161 -0
- package/dist/localTasks/narrixVulnGroupPlayground.js.map +1 -0
- package/dist/localTasks/narrixVulnInstancePlayground.d.ts +13 -0
- package/dist/localTasks/narrixVulnInstancePlayground.d.ts.map +1 -0
- package/dist/localTasks/narrixVulnInstancePlayground.js +165 -0
- package/dist/localTasks/narrixVulnInstancePlayground.js.map +1 -0
- package/dist/localTasks/nodeCallExport.d.ts +6 -0
- package/dist/localTasks/nodeCallExport.d.ts.map +1 -0
- package/dist/localTasks/nodeCallExport.js +99 -0
- package/dist/localTasks/nodeCallExport.js.map +1 -0
- package/dist/localTasks/nodeCallExportBatch.d.ts +3 -0
- package/dist/localTasks/nodeCallExportBatch.d.ts.map +1 -0
- package/dist/localTasks/nodeCallExportBatch.js +52 -0
- package/dist/localTasks/nodeCallExportBatch.js.map +1 -0
- package/dist/localTasks/normalizeNarrixResult.d.ts +3 -0
- package/dist/localTasks/normalizeNarrixResult.d.ts.map +1 -0
- package/dist/localTasks/normalizeNarrixResult.js +106 -0
- package/dist/localTasks/normalizeNarrixResult.js.map +1 -0
- package/dist/localTasks/registry.d.ts +4 -0
- package/dist/localTasks/registry.d.ts.map +1 -0
- package/dist/localTasks/registry.js +8 -0
- package/dist/localTasks/registry.js.map +1 -0
- package/dist/localTasks/types.d.ts +28 -0
- package/dist/localTasks/types.d.ts.map +1 -0
- package/dist/localTasks/types.js +2 -0
- package/dist/localTasks/types.js.map +1 -0
- package/dist/localTasks/validateInput.d.ts +3 -0
- package/dist/localTasks/validateInput.d.ts.map +1 -0
- package/dist/localTasks/validateInput.js +66 -0
- package/dist/localTasks/validateInput.js.map +1 -0
- package/dist/methods/convenience-methods.d.ts +45 -0
- package/dist/methods/convenience-methods.d.ts.map +1 -0
- package/dist/methods/convenience-methods.js +39 -0
- package/dist/methods/convenience-methods.js.map +1 -0
- package/dist/narrix/applyNarrixScope.d.ts +10 -0
- package/dist/narrix/applyNarrixScope.d.ts.map +1 -0
- package/dist/narrix/applyNarrixScope.js +69 -0
- package/dist/narrix/applyNarrixScope.js.map +1 -0
- package/dist/narrix/buildNarrixAttachment.d.ts +9 -0
- package/dist/narrix/buildNarrixAttachment.d.ts.map +1 -0
- package/dist/narrix/buildNarrixAttachment.js +29 -0
- package/dist/narrix/buildNarrixAttachment.js.map +1 -0
- package/dist/narrix/buildWebScopeScopeInput.d.ts +39 -0
- package/dist/narrix/buildWebScopeScopeInput.d.ts.map +1 -0
- package/dist/narrix/buildWebScopeScopeInput.js +193 -0
- package/dist/narrix/buildWebScopeScopeInput.js.map +1 -0
- package/dist/narrix/flags.d.ts +4 -0
- package/dist/narrix/flags.d.ts.map +1 -0
- package/dist/narrix/flags.js +4 -0
- package/dist/narrix/flags.js.map +1 -0
- package/dist/narrix/index.d.ts +11 -0
- package/dist/narrix/index.d.ts.map +1 -0
- package/dist/narrix/index.js +14 -0
- package/dist/narrix/index.js.map +1 -0
- package/dist/narrix/narrixClient.d.ts +9 -0
- package/dist/narrix/narrixClient.d.ts.map +1 -0
- package/dist/narrix/narrixClient.js +46 -0
- package/dist/narrix/narrixClient.js.map +1 -0
- package/dist/narrix/narrixContextMarkdown.d.ts +15 -0
- package/dist/narrix/narrixContextMarkdown.d.ts.map +1 -0
- package/dist/narrix/narrixContextMarkdown.js +98 -0
- package/dist/narrix/narrixContextMarkdown.js.map +1 -0
- package/dist/narrix/narrixRunnerModule.d.ts +11 -0
- package/dist/narrix/narrixRunnerModule.d.ts.map +1 -0
- package/dist/narrix/narrixRunnerModule.js +17 -0
- package/dist/narrix/narrixRunnerModule.js.map +1 -0
- package/dist/narrix/runNarrixForChat.d.ts +3 -0
- package/dist/narrix/runNarrixForChat.d.ts.map +1 -0
- package/dist/narrix/runNarrixForChat.js +51 -0
- package/dist/narrix/runNarrixForChat.js.map +1 -0
- package/dist/narrix/runNarrixForDocs.d.ts +3 -0
- package/dist/narrix/runNarrixForDocs.d.ts.map +1 -0
- package/dist/narrix/runNarrixForDocs.js +50 -0
- package/dist/narrix/runNarrixForDocs.js.map +1 -0
- package/dist/narrix/runNarrixForRecord.d.ts +3 -0
- package/dist/narrix/runNarrixForRecord.d.ts.map +1 -0
- package/dist/narrix/runNarrixForRecord.js +47 -0
- package/dist/narrix/runNarrixForRecord.js.map +1 -0
- package/dist/narrix/runNarrixForText.d.ts +3 -0
- package/dist/narrix/runNarrixForText.d.ts.map +1 -0
- package/dist/narrix/runNarrixForText.js +49 -0
- package/dist/narrix/runNarrixForText.js.map +1 -0
- package/dist/narrix/runnerDispatch.d.ts +12 -0
- package/dist/narrix/runnerDispatch.d.ts.map +1 -0
- package/dist/narrix/runnerDispatch.js +19 -0
- package/dist/narrix/runnerDispatch.js.map +1 -0
- package/dist/narrix/seedBundleRouting.d.ts +15 -0
- package/dist/narrix/seedBundleRouting.d.ts.map +1 -0
- package/dist/narrix/seedBundleRouting.js +46 -0
- package/dist/narrix/seedBundleRouting.js.map +1 -0
- package/dist/narrix/task.d.ts +4 -0
- package/dist/narrix/task.d.ts.map +1 -0
- package/dist/narrix/task.js +143 -0
- package/dist/narrix/task.js.map +1 -0
- package/dist/narrix/types.d.ts +104 -0
- package/dist/narrix/types.d.ts.map +1 -0
- package/dist/narrix/types.js +3 -0
- package/dist/narrix/types.js.map +1 -0
- package/dist/narrix/webContextMarkdown.d.ts +54 -0
- package/dist/narrix/webContextMarkdown.d.ts.map +1 -0
- package/dist/narrix/webContextMarkdown.js +206 -0
- package/dist/narrix/webContextMarkdown.js.map +1 -0
- package/dist/narrix/webScoper.d.ts +43 -0
- package/dist/narrix/webScoper.d.ts.map +1 -0
- package/dist/narrix/webScoper.js +144 -0
- package/dist/narrix/webScoper.js.map +1 -0
- package/dist/observability/debugTrace.d.ts +31 -0
- package/dist/observability/debugTrace.d.ts.map +1 -0
- package/dist/observability/debugTrace.js +117 -0
- package/dist/observability/debugTrace.js.map +1 -0
- package/dist/observability/extractAiTasksObservability.d.ts +7 -0
- package/dist/observability/extractAiTasksObservability.d.ts.map +1 -0
- package/dist/observability/extractAiTasksObservability.js +98 -0
- package/dist/observability/extractAiTasksObservability.js.map +1 -0
- package/dist/observability/graphExecutionRunLogContract.d.ts +19 -0
- package/dist/observability/graphExecutionRunLogContract.d.ts.map +1 -0
- package/dist/observability/graphExecutionRunLogContract.js +11 -0
- package/dist/observability/graphExecutionRunLogContract.js.map +1 -0
- package/dist/packaged-tasks-client.d.ts +66 -0
- package/dist/packaged-tasks-client.d.ts.map +1 -0
- package/dist/packaged-tasks-client.js +100 -0
- package/dist/packaged-tasks-client.js.map +1 -0
- package/dist/planWebScopeQuestions/index.d.ts +78 -0
- package/dist/planWebScopeQuestions/index.d.ts.map +1 -0
- package/dist/planWebScopeQuestions/index.js +282 -0
- package/dist/planWebScopeQuestions/index.js.map +1 -0
- package/dist/planWebScopeQuestions/runResearchPlanQuestionsFuncx.d.ts +18 -0
- package/dist/planWebScopeQuestions/runResearchPlanQuestionsFuncx.d.ts.map +1 -0
- package/dist/planWebScopeQuestions/runResearchPlanQuestionsFuncx.js +42 -0
- package/dist/planWebScopeQuestions/runResearchPlanQuestionsFuncx.js.map +1 -0
- package/dist/post-steps/audit/loadAuditTemplates.d.ts +72 -0
- package/dist/post-steps/audit/loadAuditTemplates.d.ts.map +1 -0
- package/dist/post-steps/audit/loadAuditTemplates.js +62 -0
- package/dist/post-steps/audit/loadAuditTemplates.js.map +1 -0
- package/dist/post-steps/audit/parseAuditOutput.d.ts +11 -0
- package/dist/post-steps/audit/parseAuditOutput.d.ts.map +1 -0
- package/dist/post-steps/audit/parseAuditOutput.js +50 -0
- package/dist/post-steps/audit/parseAuditOutput.js.map +1 -0
- package/dist/post-steps/audit/runAudit.d.ts +22 -0
- package/dist/post-steps/audit/runAudit.d.ts.map +1 -0
- package/dist/post-steps/audit/runAudit.js +406 -0
- package/dist/post-steps/audit/runAudit.js.map +1 -0
- package/dist/post-steps/audit/runAuditCall.d.ts +23 -0
- package/dist/post-steps/audit/runAuditCall.d.ts.map +1 -0
- package/dist/post-steps/audit/runAuditCall.js +32 -0
- package/dist/post-steps/audit/runAuditCall.js.map +1 -0
- package/dist/post-steps/polish/loadPolishTemplates.d.ts +35 -0
- package/dist/post-steps/polish/loadPolishTemplates.d.ts.map +1 -0
- package/dist/post-steps/polish/loadPolishTemplates.js +38 -0
- package/dist/post-steps/polish/loadPolishTemplates.js.map +1 -0
- package/dist/post-steps/polish/parsePolishOutput.d.ts +6 -0
- package/dist/post-steps/polish/parsePolishOutput.d.ts.map +1 -0
- package/dist/post-steps/polish/parsePolishOutput.js +47 -0
- package/dist/post-steps/polish/parsePolishOutput.js.map +1 -0
- package/dist/post-steps/polish/runPolish.d.ts +24 -0
- package/dist/post-steps/polish/runPolish.d.ts.map +1 -0
- package/dist/post-steps/polish/runPolish.js +147 -0
- package/dist/post-steps/polish/runPolish.js.map +1 -0
- package/dist/post-steps/polish/runPolishCall.d.ts +22 -0
- package/dist/post-steps/polish/runPolishCall.d.ts.map +1 -0
- package/dist/post-steps/polish/runPolishCall.js +32 -0
- package/dist/post-steps/polish/runPolishCall.js.map +1 -0
- package/dist/post-steps/resolvePostStepConfig.d.ts +58 -0
- package/dist/post-steps/resolvePostStepConfig.d.ts.map +1 -0
- package/dist/post-steps/resolvePostStepConfig.js +105 -0
- package/dist/post-steps/resolvePostStepConfig.js.map +1 -0
- package/dist/rendrixUpstreamExports.d.ts +7 -0
- package/dist/rendrixUpstreamExports.d.ts.map +1 -0
- package/dist/rendrixUpstreamExports.js +6 -0
- package/dist/rendrixUpstreamExports.js.map +1 -0
- package/dist/skillCatalogExports.d.ts +8 -0
- package/dist/skillCatalogExports.d.ts.map +1 -0
- package/dist/skillCatalogExports.js +8 -0
- package/dist/skillCatalogExports.js.map +1 -0
- package/dist/strategies/direct-execution-strategy.d.ts +31 -0
- package/dist/strategies/direct-execution-strategy.d.ts.map +1 -0
- package/dist/strategies/direct-execution-strategy.js +107 -0
- package/dist/strategies/direct-execution-strategy.js.map +1 -0
- package/dist/strategies/execution-strategy.interface.d.ts +31 -0
- package/dist/strategies/execution-strategy.interface.d.ts.map +1 -0
- package/dist/strategies/execution-strategy.interface.js +2 -0
- package/dist/strategies/execution-strategy.interface.js.map +1 -0
- package/dist/strategies/index.d.ts +9 -0
- package/dist/strategies/index.d.ts.map +1 -0
- package/dist/strategies/index.js +8 -0
- package/dist/strategies/index.js.map +1 -0
- package/dist/strategies/strategy-factory.d.ts +45 -0
- package/dist/strategies/strategy-factory.d.ts.map +1 -0
- package/dist/strategies/strategy-factory.js +59 -0
- package/dist/strategies/strategy-factory.js.map +1 -0
- package/dist/synthesis/index.d.ts +9 -0
- package/dist/synthesis/index.d.ts.map +1 -0
- package/dist/synthesis/index.js +8 -0
- package/dist/synthesis/index.js.map +1 -0
- package/dist/synthesis/resolveSourceMaterial.d.ts +35 -0
- package/dist/synthesis/resolveSourceMaterial.d.ts.map +1 -0
- package/dist/synthesis/resolveSourceMaterial.js +152 -0
- package/dist/synthesis/resolveSourceMaterial.js.map +1 -0
- package/dist/synthesis/runStructuredSynthesisRobust.d.ts +42 -0
- package/dist/synthesis/runStructuredSynthesisRobust.d.ts.map +1 -0
- package/dist/synthesis/runStructuredSynthesisRobust.js +303 -0
- package/dist/synthesis/runStructuredSynthesisRobust.js.map +1 -0
- package/dist/task-strategies/buildTaskStrategyCatalogDescriptor.d.ts +19 -0
- package/dist/task-strategies/buildTaskStrategyCatalogDescriptor.d.ts.map +1 -0
- package/dist/task-strategies/buildTaskStrategyCatalogDescriptor.js +242 -0
- package/dist/task-strategies/buildTaskStrategyCatalogDescriptor.js.map +1 -0
- package/dist/task-strategies/canonicalInputExecutionStrategies.d.ts +171 -0
- package/dist/task-strategies/canonicalInputExecutionStrategies.d.ts.map +1 -0
- package/dist/task-strategies/canonicalInputExecutionStrategies.js +117 -0
- package/dist/task-strategies/canonicalInputExecutionStrategies.js.map +1 -0
- package/dist/task-strategies/canonicalNarrixModes.d.ts +31 -0
- package/dist/task-strategies/canonicalNarrixModes.d.ts.map +1 -0
- package/dist/task-strategies/canonicalNarrixModes.js +35 -0
- package/dist/task-strategies/canonicalNarrixModes.js.map +1 -0
- package/dist/task-strategies/canonicalTaskStrategies.d.ts +104 -0
- package/dist/task-strategies/canonicalTaskStrategies.d.ts.map +1 -0
- package/dist/task-strategies/canonicalTaskStrategies.js +77 -0
- package/dist/task-strategies/canonicalTaskStrategies.js.map +1 -0
- package/dist/task-strategies/cataloxCatalogViews.d.ts +55 -0
- package/dist/task-strategies/cataloxCatalogViews.d.ts.map +1 -0
- package/dist/task-strategies/cataloxCatalogViews.js +65 -0
- package/dist/task-strategies/cataloxCatalogViews.js.map +1 -0
- package/dist/task-strategies/constants.d.ts +49 -0
- package/dist/task-strategies/constants.d.ts.map +1 -0
- package/dist/task-strategies/constants.js +49 -0
- package/dist/task-strategies/constants.js.map +1 -0
- package/dist/task-strategies/index.d.ts +22 -0
- package/dist/task-strategies/index.d.ts.map +1 -0
- package/dist/task-strategies/index.js +13 -0
- package/dist/task-strategies/index.js.map +1 -0
- package/dist/task-strategies/listAiTaskStrategies.d.ts +43 -0
- package/dist/task-strategies/listAiTaskStrategies.d.ts.map +1 -0
- package/dist/task-strategies/listAiTaskStrategies.js +74 -0
- package/dist/task-strategies/listAiTaskStrategies.js.map +1 -0
- package/dist/task-strategies/normalize.d.ts +7 -0
- package/dist/task-strategies/normalize.d.ts.map +1 -0
- package/dist/task-strategies/normalize.js +44 -0
- package/dist/task-strategies/normalize.js.map +1 -0
- package/dist/task-strategies/types.d.ts +37 -0
- package/dist/task-strategies/types.d.ts.map +1 -0
- package/dist/task-strategies/types.js +2 -0
- package/dist/task-strategies/types.js.map +1 -0
- package/dist/types/decision-contracts.d.ts +31 -0
- package/dist/types/decision-contracts.d.ts.map +1 -0
- package/dist/types/decision-contracts.js +23 -0
- package/dist/types/decision-contracts.js.map +1 -0
- package/dist/types/evidence-types.d.ts +108 -0
- package/dist/types/evidence-types.d.ts.map +1 -0
- package/dist/types/evidence-types.js +9 -0
- package/dist/types/evidence-types.js.map +1 -0
- package/dist/types/executionType.d.ts +9 -0
- package/dist/types/executionType.d.ts.map +1 -0
- package/dist/types/executionType.js +8 -0
- package/dist/types/executionType.js.map +1 -0
- package/dist/types/index.d.ts +28 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +12 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/llmCall.d.ts +121 -0
- package/dist/types/llmCall.d.ts.map +1 -0
- package/dist/types/llmCall.js +39 -0
- package/dist/types/llmCall.js.map +1 -0
- package/dist/types/task-configuration.d.ts +60 -0
- package/dist/types/task-configuration.d.ts.map +1 -0
- package/dist/types/task-configuration.js +3 -0
- package/dist/types/task-configuration.js.map +1 -0
- package/dist/types/task-types.d.ts +887 -0
- package/dist/types/task-types.d.ts.map +1 -0
- package/dist/types/task-types.js +21 -0
- package/dist/types/task-types.js.map +1 -0
- package/dist/utilities/runUtility.d.ts +3 -0
- package/dist/utilities/runUtility.d.ts.map +1 -0
- package/dist/utilities/runUtility.js +204 -0
- package/dist/utilities/runUtility.js.map +1 -0
- package/dist/utils/assertRequiredRunSkillCorrelation.d.ts +7 -0
- package/dist/utils/assertRequiredRunSkillCorrelation.d.ts.map +1 -0
- package/dist/utils/assertRequiredRunSkillCorrelation.js +17 -0
- package/dist/utils/assertRequiredRunSkillCorrelation.js.map +1 -0
- package/dist/utils/assertValidSmartInputConfig.d.ts +5 -0
- package/dist/utils/assertValidSmartInputConfig.d.ts.map +1 -0
- package/dist/utils/assertValidSmartInputConfig.js +71 -0
- package/dist/utils/assertValidSmartInputConfig.js.map +1 -0
- package/dist/utils/bridgeRunSkillGatewayMemory.d.ts +13 -0
- package/dist/utils/bridgeRunSkillGatewayMemory.d.ts.map +1 -0
- package/dist/utils/bridgeRunSkillGatewayMemory.js +65 -0
- package/dist/utils/bridgeRunSkillGatewayMemory.js.map +1 -0
- package/dist/utils/extractSmartInputRenderResult.d.ts +7 -0
- package/dist/utils/extractSmartInputRenderResult.d.ts.map +1 -0
- package/dist/utils/extractSmartInputRenderResult.js +30 -0
- package/dist/utils/extractSmartInputRenderResult.js.map +1 -0
- package/dist/utils/jsonPaths.d.ts +6 -0
- package/dist/utils/jsonPaths.d.ts.map +1 -0
- package/dist/utils/jsonPaths.js +32 -0
- package/dist/utils/jsonPaths.js.map +1 -0
- package/dist/utils/normalizeSmartInputConfig.d.ts +5 -0
- package/dist/utils/normalizeSmartInputConfig.d.ts.map +1 -0
- package/dist/utils/normalizeSmartInputConfig.js +30 -0
- package/dist/utils/normalizeSmartInputConfig.js.map +1 -0
- package/dist/utils/outputValidation.d.ts +19 -0
- package/dist/utils/outputValidation.d.ts.map +1 -0
- package/dist/utils/outputValidation.js +75 -0
- package/dist/utils/outputValidation.js.map +1 -0
- package/dist/utils/runTaskRequestShape.d.ts +16 -0
- package/dist/utils/runTaskRequestShape.d.ts.map +1 -0
- package/dist/utils/runTaskRequestShape.js +80 -0
- package/dist/utils/runTaskRequestShape.js.map +1 -0
- package/dist/utils/skillTemplateVariables.d.ts +20 -0
- package/dist/utils/skillTemplateVariables.d.ts.map +1 -0
- package/dist/utils/skillTemplateVariables.js +63 -0
- package/dist/utils/skillTemplateVariables.js.map +1 -0
- package/dist/utils/xynthesizedSmartInputPaths.d.ts +16 -0
- package/dist/utils/xynthesizedSmartInputPaths.d.ts.map +1 -0
- package/dist/utils/xynthesizedSmartInputPaths.js +56 -0
- package/dist/utils/xynthesizedSmartInputPaths.js.map +1 -0
- package/dist/utils/xynthesizedWrite.d.ts +10 -0
- package/dist/utils/xynthesizedWrite.d.ts.map +1 -0
- package/dist/utils/xynthesizedWrite.js +61 -0
- package/dist/utils/xynthesizedWrite.js.map +1 -0
- package/dist/validation/analyzeExpectedRunTaskInput.d.ts +41 -0
- package/dist/validation/analyzeExpectedRunTaskInput.d.ts.map +1 -0
- package/dist/validation/analyzeExpectedRunTaskInput.js +133 -0
- package/dist/validation/analyzeExpectedRunTaskInput.js.map +1 -0
- package/dist/validation/collectSmartInputValidationIssues.d.ts +6 -0
- package/dist/validation/collectSmartInputValidationIssues.d.ts.map +1 -0
- package/dist/validation/collectSmartInputValidationIssues.js +38 -0
- package/dist/validation/collectSmartInputValidationIssues.js.map +1 -0
- package/dist/validation/helpers.d.ts +15 -0
- package/dist/validation/helpers.d.ts.map +1 -0
- package/dist/validation/helpers.js +184 -0
- package/dist/validation/helpers.js.map +1 -0
- package/dist/validation/index.d.ts +9 -0
- package/dist/validation/index.d.ts.map +1 -0
- package/dist/validation/index.js +6 -0
- package/dist/validation/index.js.map +1 -0
- package/dist/validation/types.d.ts +51 -0
- package/dist/validation/types.d.ts.map +1 -0
- package/dist/validation/types.js +5 -0
- package/dist/validation/types.js.map +1 -0
- package/dist/validation/validateRunTaskConfig.d.ts +8 -0
- package/dist/validation/validateRunTaskConfig.d.ts.map +1 -0
- package/dist/validation/validateRunTaskConfig.js +158 -0
- package/dist/validation/validateRunTaskConfig.js.map +1 -0
- package/dist/validation/validateRunTaskInvoke.d.ts +30 -0
- package/dist/validation/validateRunTaskInvoke.d.ts.map +1 -0
- package/dist/validation/validateRunTaskInvoke.js +108 -0
- package/dist/validation/validateRunTaskInvoke.js.map +1 -0
- package/documenations/activix-feature-request-identity.md +123 -0
- package/documenations/activix.md +175 -0
- package/documenations/bug-report-xynthesis-and-synthesis-call.md +217 -0
- package/documenations/core-runtime-tokens-and-strategies.md +123 -0
- package/documenations/downstream-environment.md +48 -0
- package/documenations/downstream-test-runtime-teardown-cleanup.md +73 -0
- package/documenations/examples/xynthesis-run-task-request.example.json +170 -0
- package/documenations/feature-request-ai-skills-raw-template-access.md +82 -0
- package/documenations/feature-request-athenix-core-directive.md +145 -0
- package/documenations/feature-request-athenix-token-extraction.md +124 -0
- package/documenations/funcx-catalog-hosting-checklist.md +107 -0
- package/documenations/funcx-scoping-integration-gaps.md +120 -0
- package/documenations/funcx-upstream-github-issues-draft.md +153 -0
- package/documenations/identity-metadata-contract.md +165 -0
- package/documenations/intermediate-steps.md +33 -0
- package/documenations/record-and-template-variables.md +32 -0
- package/documenations/run-task-execution-flow.md +153 -0
- package/documenations/run-task-single-run-checklist.md +109 -0
- package/documenations/schemas/README.md +40 -0
- package/documenations/schemas/openapi-3.1-components.yaml +24 -0
- package/documenations/schemas/v1/output-schema.json +55 -0
- package/documenations/schemas/v1/output-validation-result.json +41 -0
- package/documenations/schemas/v1/run-task-request.json +219 -0
- package/documenations/schemas/v1/synthesized-artifacts.json +133 -0
- package/documenations/synthesis-invocation-notes.md +26 -0
- package/documenations/synthesized-context-guide.md +84 -0
- package/documenations/task-core-and-core-aware-synthesis.md +58 -0
- package/documenations/upstream-feature-requests/ai-skills-llm-observability.md +129 -0
- package/documenations/upstream-feature-requests/xynthesis-llm-observability.md +125 -0
- package/documenations/upstream-feedback-request-shape-clarification.md +101 -0
- package/documenations/web-context-precedence.md +33 -0
- package/documenations/web-scoping-in-ai-tasks.md +503 -0
- package/documenations/xynthesis-activix-telemetry.md +28 -0
- package/documenations/xynthesis-upstream-fixes-checklist.md +71 -0
- package/package.json +92 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Integrator schema fragments (`@exellix/ai-tasks`)
|
|
2
|
+
|
|
3
|
+
Versioned **JSON Schema (draft 2020-12)** and an **OpenAPI 3.1** component bundle for gateways and graph docs. They mirror TypeScript types in this package; source of truth remains `src/types/task-types.ts` and `src/utils/outputValidation.ts`.
|
|
4
|
+
|
|
5
|
+
## Layout
|
|
6
|
+
|
|
7
|
+
| File | Purpose |
|
|
8
|
+
|------|---------|
|
|
9
|
+
| [v1/output-schema.json](./v1/output-schema.json) | `RunTaskRequest.outputValidation.schema` (`OutputSchema`). Alias in specs: **outputConstraints** → same shape. |
|
|
10
|
+
| [v1/output-validation-result.json](./v1/output-validation-result.json) | `response.metadata.outputValidation` (`OutputValidationResult`). |
|
|
11
|
+
| [v1/synthesized-artifacts.json](./v1/synthesized-artifacts.json) | `executionMemory.synthesizedContext` / `synthesizedInput` after PRE `synthesized-context`. Root schema: `ExecutionMemorySynthesisFields`. |
|
|
12
|
+
| [openapi-3.1-components.yaml](./openapi-3.1-components.yaml) | OpenAPI `components.schemas` embedding the JSON files (paths empty). |
|
|
13
|
+
|
|
14
|
+
## Stable URLs
|
|
15
|
+
|
|
16
|
+
Replace `<TAG>` with a release tag or commit SHA:
|
|
17
|
+
|
|
18
|
+
- `https://raw.githubusercontent.com/woroces/ai-tasks/<TAG>/documenations/schemas/v1/output-schema.json`
|
|
19
|
+
- `https://raw.githubusercontent.com/woroces/ai-tasks/<TAG>/documenations/schemas/v1/output-validation-result.json`
|
|
20
|
+
- `https://raw.githubusercontent.com/woroces/ai-tasks/<TAG>/documenations/schemas/v1/synthesized-artifacts.json`
|
|
21
|
+
|
|
22
|
+
## `correlationId` (output validation)
|
|
23
|
+
|
|
24
|
+
`OutputValidationResult.correlationId` is **optional**. On `runTask()`, the runtime usually sets it from the same id as `metadata.taskId`. It may be **absent** when:
|
|
25
|
+
|
|
26
|
+
- Only `validateParsedOutput()` is used (no response envelope), or
|
|
27
|
+
- A consumer merges partial responses and drops `metadata.taskId`.
|
|
28
|
+
|
|
29
|
+
Graph consumers should branch on `errors[]` / `ok`, not on `correlationId` being present.
|
|
30
|
+
|
|
31
|
+
## Persistence (PRE artifacts)
|
|
32
|
+
|
|
33
|
+
**Canonical response path for merged execution memory:** read **`response.executionMemory`**. The runtime sets **`response.executionState.executionMemory`** to the **same object** for nested execution-state patterns; prefer the top-level field for simple persistence.
|
|
34
|
+
|
|
35
|
+
Align stored JSON with **`@xronoces/xmemory-contracts`** row shapes when mapping `executionMemory` columns (see that package for column names).
|
|
36
|
+
|
|
37
|
+
## Related docs
|
|
38
|
+
|
|
39
|
+
- [structured-decision-contract.md](../../docs/structured-decision-contract.md) — `outputValidation`, `parsed`
|
|
40
|
+
- [synthesized-context-guide.md](../synthesized-context-guide.md) — PRE synthesis behavior
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# OpenAPI 3.1 component bundle for @exellix/ai-tasks integrators.
|
|
2
|
+
# Embed `components.schemas` into your gateway or graph OpenAPI document.
|
|
3
|
+
# JSON equivalents live alongside under v1/*.json (draft 2020-12).
|
|
4
|
+
|
|
5
|
+
openapi: 3.1.0
|
|
6
|
+
info:
|
|
7
|
+
title: "@exellix/ai-tasks — schema fragments"
|
|
8
|
+
version: "1.0.0"
|
|
9
|
+
description: |
|
|
10
|
+
Not a runnable API — reusable schemas only.
|
|
11
|
+
Paths are intentionally empty.
|
|
12
|
+
|
|
13
|
+
paths: {}
|
|
14
|
+
|
|
15
|
+
components:
|
|
16
|
+
schemas:
|
|
17
|
+
OutputSchema:
|
|
18
|
+
$ref: "./v1/output-schema.json"
|
|
19
|
+
OutputValidationResult:
|
|
20
|
+
$ref: "./v1/output-validation-result.json"
|
|
21
|
+
ExecutionMemorySynthesisFields:
|
|
22
|
+
$ref: "./v1/synthesized-artifacts.json#/$defs/ExecutionMemorySynthesisFields"
|
|
23
|
+
RunTaskRequestSubset:
|
|
24
|
+
$ref: "./v1/run-task-request.json"
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/woroces/ai-tasks/main/documenations/schemas/v1/output-schema.json",
|
|
4
|
+
"title": "OutputSchema",
|
|
5
|
+
"description": "Minimal recursive schema language for RunTaskRequest.outputValidation.schema. Matches TypeScript OutputSchema in @exellix/ai-tasks (not full JSON Schema).",
|
|
6
|
+
"$defs": {
|
|
7
|
+
"OutputSchema": {
|
|
8
|
+
"oneOf": [
|
|
9
|
+
{
|
|
10
|
+
"type": "object",
|
|
11
|
+
"required": ["type"],
|
|
12
|
+
"properties": { "type": { "const": "any" } },
|
|
13
|
+
"additionalProperties": false
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "object",
|
|
17
|
+
"required": ["type"],
|
|
18
|
+
"properties": {
|
|
19
|
+
"type": { "enum": ["string", "number", "boolean", "null"] }
|
|
20
|
+
},
|
|
21
|
+
"additionalProperties": false
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "object",
|
|
25
|
+
"required": ["type"],
|
|
26
|
+
"properties": {
|
|
27
|
+
"type": { "const": "array" },
|
|
28
|
+
"items": { "$ref": "#/$defs/OutputSchema" },
|
|
29
|
+
"minItems": { "type": "integer", "minimum": 0 },
|
|
30
|
+
"maxItems": { "type": "integer", "minimum": 0 }
|
|
31
|
+
},
|
|
32
|
+
"additionalProperties": false
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"type": "object",
|
|
36
|
+
"required": ["type"],
|
|
37
|
+
"properties": {
|
|
38
|
+
"type": { "const": "object" },
|
|
39
|
+
"properties": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"additionalProperties": { "$ref": "#/$defs/OutputSchema" }
|
|
42
|
+
},
|
|
43
|
+
"required": {
|
|
44
|
+
"type": "array",
|
|
45
|
+
"items": { "type": "string" }
|
|
46
|
+
},
|
|
47
|
+
"additionalProperties": { "type": "boolean" }
|
|
48
|
+
},
|
|
49
|
+
"additionalProperties": false
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"$ref": "#/$defs/OutputSchema"
|
|
55
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/woroces/ai-tasks/main/documenations/schemas/v1/output-validation-result.json",
|
|
4
|
+
"title": "OutputValidationResult",
|
|
5
|
+
"description": "Attached at response.metadata.outputValidation when output validation runs. correlationId is set by the runTask runtime when it attaches a task id; it may be absent when using validateParsedOutput() alone or in partial response merges.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["ok", "errors"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"ok": { "type": "boolean" },
|
|
10
|
+
"errors": {
|
|
11
|
+
"type": "array",
|
|
12
|
+
"items": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"required": ["path", "message", "code"],
|
|
15
|
+
"properties": {
|
|
16
|
+
"path": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "Path under validated value, e.g. parsed.foo[0] (root label is parsed)."
|
|
19
|
+
},
|
|
20
|
+
"message": { "type": "string" },
|
|
21
|
+
"code": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"enum": [
|
|
24
|
+
"TYPE_MISMATCH",
|
|
25
|
+
"MISSING_REQUIRED",
|
|
26
|
+
"MIN_ITEMS",
|
|
27
|
+
"MAX_ITEMS",
|
|
28
|
+
"ADDITIONAL_PROPERTY"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"additionalProperties": false
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"correlationId": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "When present on runTask responses, aligns with metadata.taskId for that invocation. Optional: may be omitted if the consumer only has validateParsedOutput output, or if metadata.taskId is not propagated."
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"additionalProperties": false
|
|
41
|
+
}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/exellix/ai-tasks/main/documenations/schemas/v1/run-task-request.json",
|
|
4
|
+
"title": "RunTaskRequest",
|
|
5
|
+
"description": "Canonical wire/SDK shape for runTask(). Hosts compile TaskNode authoring (taskConfiguration, inputsConfig, taskVariable, jobVariables/taskVariables buckets) into these fields before invoke.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["skillKey", "agentId", "jobTypeId", "taskTypeId", "executionStrategies"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"skillKey": { "type": "string", "minLength": 1 },
|
|
11
|
+
"agentId": { "type": "string", "minLength": 1 },
|
|
12
|
+
"jobTypeId": { "type": "string", "minLength": 1 },
|
|
13
|
+
"taskTypeId": { "type": "string", "minLength": 1 },
|
|
14
|
+
|
|
15
|
+
"jobId": { "type": "string" },
|
|
16
|
+
"taskId": { "type": "string" },
|
|
17
|
+
"identity": { "type": "object", "additionalProperties": true },
|
|
18
|
+
|
|
19
|
+
"executionMode": { "type": "string", "enum": ["default", "trace"] },
|
|
20
|
+
|
|
21
|
+
"executionPipeline": {
|
|
22
|
+
"type": "array",
|
|
23
|
+
"items": { "$ref": "#/$defs/ExecutionStep" }
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
"narrixMode": { "type": "string", "description": "Narrix invocation: off | preprocessor | handler (catalog keys)." },
|
|
27
|
+
"inputStrategyKey": { "type": "string" },
|
|
28
|
+
|
|
29
|
+
"executionStrategies": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"description": "Required. FuncX wrappers around MAIN: planner (before) and optimizer (after). Use [] for plain MAIN.",
|
|
32
|
+
"items": { "$ref": "#/$defs/ExecutionStrategyInvocation" }
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
"executionStrategyCatalogItems": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"description": "Optional Catalox catalog rows; runtime uses allowlisted fields after validation.",
|
|
38
|
+
"items": { "type": "object", "additionalProperties": true }
|
|
39
|
+
},
|
|
40
|
+
|
|
41
|
+
"executionMemory": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"description": "Execution-scoped blob including jobVariables (whole run) and taskVariables (current node) when graph-engine 5.13+ compiles the request.",
|
|
44
|
+
"additionalProperties": true
|
|
45
|
+
},
|
|
46
|
+
"narrix": { "type": "object", "additionalProperties": true },
|
|
47
|
+
"narrixInput": {
|
|
48
|
+
"description": "Structured Narrix input or jobMemory path wrapper.",
|
|
49
|
+
"oneOf": [
|
|
50
|
+
{
|
|
51
|
+
"type": "object",
|
|
52
|
+
"properties": {
|
|
53
|
+
"$path": { "type": "string", "minLength": 1 }
|
|
54
|
+
},
|
|
55
|
+
"required": ["$path"],
|
|
56
|
+
"additionalProperties": false
|
|
57
|
+
},
|
|
58
|
+
{ "type": "object", "additionalProperties": true }
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"narrixScope": { "type": "object", "additionalProperties": true },
|
|
62
|
+
|
|
63
|
+
"input": {
|
|
64
|
+
"description": "Task payload (compiled from inputsConfig + taskVariable on graph nodes).",
|
|
65
|
+
"oneOf": [{ "type": "string" }, { "type": "object", "additionalProperties": true }]
|
|
66
|
+
},
|
|
67
|
+
"variables": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"description": "Job/graph template bucket only (mirrors executionMemory.jobVariables). Node scope uses executionMemory.taskVariables.",
|
|
70
|
+
"additionalProperties": true
|
|
71
|
+
},
|
|
72
|
+
"jobContext": { "type": "object", "additionalProperties": true },
|
|
73
|
+
"jobMemory": { "type": "object", "additionalProperties": true },
|
|
74
|
+
"taskMemory": { "type": "object", "additionalProperties": true },
|
|
75
|
+
|
|
76
|
+
"xynthesized": {
|
|
77
|
+
"type": "object",
|
|
78
|
+
"additionalProperties": false,
|
|
79
|
+
"properties": {
|
|
80
|
+
"job": { "type": "object", "additionalProperties": true },
|
|
81
|
+
"task": { "type": "object", "additionalProperties": true },
|
|
82
|
+
"execution": { "type": "object", "additionalProperties": true }
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"smartInput": {
|
|
86
|
+
"type": "object",
|
|
87
|
+
"additionalProperties": false,
|
|
88
|
+
"required": ["paths"],
|
|
89
|
+
"properties": {
|
|
90
|
+
"paths": {
|
|
91
|
+
"type": "array",
|
|
92
|
+
"items": { "$ref": "#/$defs/SmartInputPathEntry" }
|
|
93
|
+
},
|
|
94
|
+
"strict": { "type": "boolean" }
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"smartInputRenderOptions": { "type": "object", "additionalProperties": true },
|
|
98
|
+
|
|
99
|
+
"modelConfig": { "type": "object", "additionalProperties": true },
|
|
100
|
+
"llmCall": { "type": "object", "additionalProperties": true },
|
|
101
|
+
"timeoutMs": { "type": "number" },
|
|
102
|
+
|
|
103
|
+
"includeContextInPrompt": { "type": "boolean" },
|
|
104
|
+
|
|
105
|
+
"taskConfiguration": {
|
|
106
|
+
"type": "object",
|
|
107
|
+
"description": "Graph node taskConfiguration blob (compile-only). Mapped to executionPipeline at runTask entry.",
|
|
108
|
+
"additionalProperties": true
|
|
109
|
+
},
|
|
110
|
+
|
|
111
|
+
"aiScoping": {
|
|
112
|
+
"type": "array",
|
|
113
|
+
"items": { "type": "object", "additionalProperties": true }
|
|
114
|
+
},
|
|
115
|
+
"aiScopingOptions": { "type": "object", "additionalProperties": true },
|
|
116
|
+
|
|
117
|
+
"taskKind": { "type": "string", "enum": ["decision", "utility", "content"] },
|
|
118
|
+
"outputValidation": {
|
|
119
|
+
"type": "object",
|
|
120
|
+
"additionalProperties": false,
|
|
121
|
+
"required": ["schema"],
|
|
122
|
+
"properties": {
|
|
123
|
+
"schema": { "$ref": "#/$defs/OutputSchema" },
|
|
124
|
+
"mode": { "type": "string", "enum": ["fail", "warn"] },
|
|
125
|
+
"validateWhenMissing": { "type": "boolean" }
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"autoValidateDecisionOutput": { "type": "boolean" },
|
|
129
|
+
|
|
130
|
+
"templateTokens": { "type": "object", "additionalProperties": true },
|
|
131
|
+
"templateRenderOptions": { "type": "object", "additionalProperties": true },
|
|
132
|
+
|
|
133
|
+
"coreSkillId": { "type": "string" },
|
|
134
|
+
"graphId": { "type": "string" },
|
|
135
|
+
"nodeId": { "type": "string" },
|
|
136
|
+
"prevNodeId": { "type": "string" },
|
|
137
|
+
"masterSkillId": { "type": "string" },
|
|
138
|
+
"masterSkillActivityId": { "type": "string" },
|
|
139
|
+
|
|
140
|
+
"diagnostics": { "type": "object", "additionalProperties": true }
|
|
141
|
+
},
|
|
142
|
+
"$defs": {
|
|
143
|
+
"SmartInputPathEntry": {
|
|
144
|
+
"oneOf": [
|
|
145
|
+
{ "type": "string", "minLength": 1 },
|
|
146
|
+
{
|
|
147
|
+
"type": "object",
|
|
148
|
+
"additionalProperties": false,
|
|
149
|
+
"required": ["title", "path"],
|
|
150
|
+
"properties": {
|
|
151
|
+
"title": { "type": "string", "minLength": 1 },
|
|
152
|
+
"path": { "type": "string", "minLength": 1 },
|
|
153
|
+
"required": { "type": "boolean" }
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
"ExecutionStrategyInvocation": {
|
|
159
|
+
"type": "object",
|
|
160
|
+
"additionalProperties": false,
|
|
161
|
+
"required": ["strategyKey", "phase", "priority"],
|
|
162
|
+
"properties": {
|
|
163
|
+
"strategyKey": { "type": "string", "enum": ["planner", "optimizer"] },
|
|
164
|
+
"phase": { "type": "string", "enum": ["before", "after"] },
|
|
165
|
+
"priority": { "type": "number" },
|
|
166
|
+
"maxIterations": { "type": "integer", "minimum": 1, "description": "Optimizer only." },
|
|
167
|
+
"args": { "type": "object", "additionalProperties": true }
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"ExecutionPhase": { "type": "string", "enum": ["pre", "main", "post"] },
|
|
171
|
+
"ExecutionStep": {
|
|
172
|
+
"type": "object",
|
|
173
|
+
"additionalProperties": false,
|
|
174
|
+
"required": ["phase", "type"],
|
|
175
|
+
"properties": {
|
|
176
|
+
"phase": { "$ref": "#/$defs/ExecutionPhase" },
|
|
177
|
+
"type": { "type": "string", "minLength": 1 },
|
|
178
|
+
"config": { "type": "object", "additionalProperties": true }
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"OutputSchema": {
|
|
182
|
+
"oneOf": [
|
|
183
|
+
{
|
|
184
|
+
"type": "object",
|
|
185
|
+
"additionalProperties": false,
|
|
186
|
+
"required": ["type"],
|
|
187
|
+
"properties": {
|
|
188
|
+
"type": { "type": "string", "enum": ["any", "string", "number", "boolean", "null"] }
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"type": "object",
|
|
193
|
+
"additionalProperties": false,
|
|
194
|
+
"required": ["type"],
|
|
195
|
+
"properties": {
|
|
196
|
+
"type": { "const": "array" },
|
|
197
|
+
"items": { "$ref": "#/$defs/OutputSchema" },
|
|
198
|
+
"minItems": { "type": "integer", "minimum": 0 },
|
|
199
|
+
"maxItems": { "type": "integer", "minimum": 0 }
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"type": "object",
|
|
204
|
+
"additionalProperties": false,
|
|
205
|
+
"required": ["type"],
|
|
206
|
+
"properties": {
|
|
207
|
+
"type": { "const": "object" },
|
|
208
|
+
"properties": {
|
|
209
|
+
"type": "object",
|
|
210
|
+
"additionalProperties": { "$ref": "#/$defs/OutputSchema" }
|
|
211
|
+
},
|
|
212
|
+
"required": { "type": "array", "items": { "type": "string" } },
|
|
213
|
+
"additionalProperties": { "type": "boolean" }
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/woroces/ai-tasks/main/documenations/schemas/v1/synthesized-artifacts.json",
|
|
4
|
+
"title": "PRE synthesis executionMemory artifacts",
|
|
5
|
+
"description": "Shapes stored at executionMemory.synthesizedContext and executionMemory.synthesizedInput after a synthesized-context PRE step. Align persisted JSON with @xronoces/xmemory-contracts row fields when mapping execution memory to storage.",
|
|
6
|
+
"$defs": {
|
|
7
|
+
"TaskCore": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"enum": [
|
|
10
|
+
"question",
|
|
11
|
+
"action",
|
|
12
|
+
"plan",
|
|
13
|
+
"objective",
|
|
14
|
+
"decision",
|
|
15
|
+
"comparison",
|
|
16
|
+
"classification",
|
|
17
|
+
"evaluation",
|
|
18
|
+
"analysis",
|
|
19
|
+
"summary",
|
|
20
|
+
"generation",
|
|
21
|
+
"extraction"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"SynthesisMode": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"enum": ["markdown", "structured"]
|
|
27
|
+
},
|
|
28
|
+
"SynthesizedContextArtifact": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"required": ["templateCores", "question", "mode", "payload", "contextMarkdown"],
|
|
31
|
+
"properties": {
|
|
32
|
+
"templateCores": {
|
|
33
|
+
"type": "array",
|
|
34
|
+
"items": { "$ref": "#/$defs/TaskCore" }
|
|
35
|
+
},
|
|
36
|
+
"question": { "type": "string" },
|
|
37
|
+
"mode": { "$ref": "#/$defs/SynthesisMode" },
|
|
38
|
+
"payload": { "description": "Structured payload or markdown marker object; runtime-defined." },
|
|
39
|
+
"contextMarkdown": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "Markdown fed to MAIN when synthesis is authoritative."
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"additionalProperties": false
|
|
45
|
+
},
|
|
46
|
+
"QuestionDrivenAnswer": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"required": ["question", "source", "synthesis"],
|
|
49
|
+
"properties": {
|
|
50
|
+
"question": { "type": "string" },
|
|
51
|
+
"source": { "enum": ["record", "web", "both"] },
|
|
52
|
+
"synthesis": { "type": "string" },
|
|
53
|
+
"evidence": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"properties": {
|
|
56
|
+
"recordPaths": { "type": "array", "items": { "type": "string" } },
|
|
57
|
+
"webScopeIds": { "type": "array", "items": { "type": "string" } },
|
|
58
|
+
"sources": {
|
|
59
|
+
"type": "array",
|
|
60
|
+
"items": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"properties": {
|
|
63
|
+
"url": { "type": "string" },
|
|
64
|
+
"title": { "type": "string" }
|
|
65
|
+
},
|
|
66
|
+
"additionalProperties": true
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"additionalProperties": true
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"additionalProperties": false
|
|
74
|
+
},
|
|
75
|
+
"QuestionDrivenSynthesizedContext": {
|
|
76
|
+
"type": "object",
|
|
77
|
+
"required": ["mode"],
|
|
78
|
+
"properties": {
|
|
79
|
+
"mode": { "const": "questionDriven" },
|
|
80
|
+
"contextMarkdown": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"description": "Same body MAIN uses; required for persistence and reuseCachedSynthesizedContext."
|
|
83
|
+
},
|
|
84
|
+
"record": { "type": "object", "additionalProperties": true },
|
|
85
|
+
"web": { "type": "object", "additionalProperties": true },
|
|
86
|
+
"answers": {
|
|
87
|
+
"type": "object",
|
|
88
|
+
"additionalProperties": { "$ref": "#/$defs/QuestionDrivenAnswer" }
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"additionalProperties": true
|
|
92
|
+
},
|
|
93
|
+
"AnySynthesizedContextArtifact": {
|
|
94
|
+
"oneOf": [
|
|
95
|
+
{ "$ref": "#/$defs/SynthesizedContextArtifact" },
|
|
96
|
+
{ "$ref": "#/$defs/QuestionDrivenSynthesizedContext" }
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
"SynthesizedInputArtifact": {
|
|
100
|
+
"type": "object",
|
|
101
|
+
"required": ["synthesisMode", "sourceMaterial"],
|
|
102
|
+
"properties": {
|
|
103
|
+
"synthesisMode": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"enum": ["markdown", "structured", "questionDriven"]
|
|
106
|
+
},
|
|
107
|
+
"sourceMaterial": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"description": "Resolved PRE source material; may be truncated per SYNTHESIZED_INPUT_MAX_CHARS."
|
|
110
|
+
},
|
|
111
|
+
"localMarkdown": { "type": "string" },
|
|
112
|
+
"supportingMarkdown": { "type": "string" },
|
|
113
|
+
"question": { "type": "string" },
|
|
114
|
+
"templateCores": {
|
|
115
|
+
"type": "array",
|
|
116
|
+
"items": { "$ref": "#/$defs/TaskCore" }
|
|
117
|
+
},
|
|
118
|
+
"truncated": { "type": "boolean" }
|
|
119
|
+
},
|
|
120
|
+
"additionalProperties": false
|
|
121
|
+
},
|
|
122
|
+
"ExecutionMemorySynthesisFields": {
|
|
123
|
+
"type": "object",
|
|
124
|
+
"description": "Typical keys on executionMemory after PRE synthesized-context. Map these to xmemory-contracts persistence columns as needed.",
|
|
125
|
+
"properties": {
|
|
126
|
+
"synthesizedContext": { "$ref": "#/$defs/AnySynthesizedContextArtifact" },
|
|
127
|
+
"synthesizedInput": { "$ref": "#/$defs/SynthesizedInputArtifact" }
|
|
128
|
+
},
|
|
129
|
+
"additionalProperties": true
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"$ref": "#/$defs/ExecutionMemorySynthesisFields"
|
|
133
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Synthesis Invocation Notes
|
|
2
|
+
|
|
3
|
+
This appendix clarifies that synthesized-context uses a real model invocation.
|
|
4
|
+
|
|
5
|
+
## Confirmed behavior
|
|
6
|
+
|
|
7
|
+
- Source-material assembly is deterministic in runtime code.
|
|
8
|
+
- The synthesis step then calls the model through gateway invocation.
|
|
9
|
+
- This is not a pure string merge or template concatenation step.
|
|
10
|
+
|
|
11
|
+
## Why this matters
|
|
12
|
+
|
|
13
|
+
- Cost and latency include an additional LLM call before MAIN execution.
|
|
14
|
+
- Reliability depends on synthesis model behavior and timeout settings.
|
|
15
|
+
- Structured mode adds validation/parsing requirements.
|
|
16
|
+
|
|
17
|
+
## Operational guidance
|
|
18
|
+
|
|
19
|
+
- Tune synthesis model independently from MAIN model.
|
|
20
|
+
- Use timeout/output-length caps to control risk.
|
|
21
|
+
- Use `fallbackToDirect` when resiliency is preferred over strict synthesis dependency.
|
|
22
|
+
|
|
23
|
+
## Related appendices
|
|
24
|
+
|
|
25
|
+
- `documenations/synthesized-context-guide.md`
|
|
26
|
+
- `documenations/run-task-execution-flow.md`
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Synthesized Context Guide
|
|
2
|
+
|
|
3
|
+
This appendix explains the `synthesized-context` PRE step in `executionPipeline`.
|
|
4
|
+
|
|
5
|
+
## Goal
|
|
6
|
+
|
|
7
|
+
Generate a synthesized `context` string (or structured output transformed to markdown) before the MAIN task step runs.
|
|
8
|
+
|
|
9
|
+
## Pipeline placement
|
|
10
|
+
|
|
11
|
+
- Phase: `pre`
|
|
12
|
+
- Type: `synthesized-context`
|
|
13
|
+
- Runs before MAIN (`direct`)
|
|
14
|
+
|
|
15
|
+
## Inputs
|
|
16
|
+
|
|
17
|
+
- `SynthesisConfig` on PRE-step `config`
|
|
18
|
+
- Enriched memory bundle (job/task/execution) plus request-level **`xynthesized`** and **`smartInput`** for template rendering (same fields as MAIN). Template path prefixes **`jobVariables.*`** / **`taskVariables.*`** (on `executionMemory`) are preferred over legacy **`variables.*`** (job scope).
|
|
19
|
+
- Optional Narrix attachment and web evidence
|
|
20
|
+
- Rendered task templates/instructions
|
|
21
|
+
|
|
22
|
+
## Key controls
|
|
23
|
+
|
|
24
|
+
- `contextSourcePolicy`: `auto`, `narrix-web`, `narrix-web-memory`, `memory-web`, `memory-only`
|
|
25
|
+
- `synthesisInputStrategy`: controls what raw input is fed into the synthesizer
|
|
26
|
+
- `policy` (default): use `contextSourcePolicy`
|
|
27
|
+
- `execution-memory-only`
|
|
28
|
+
- `job-memory-only`
|
|
29
|
+
- `task-memory-only`
|
|
30
|
+
- `full-memory-bundle`
|
|
31
|
+
- `webEvidence`: web-evidence shaping/caps
|
|
32
|
+
- `modelConfig`, `timeoutMs`, `maxOutputLength`
|
|
33
|
+
- `synthesisMode`: `markdown` or `structured` (preferred additive selector)
|
|
34
|
+
- `synthesisOutputFormat`: `markdown` or `structured`
|
|
35
|
+
- `fallbackToDirect`: return empty synthesized context on synthesis failure when enabled
|
|
36
|
+
- `questionDriven`: when `true`, runs multi-question synthesis and stores answers under `executionMemory.synthesizedContext.answers`
|
|
37
|
+
- `questions`: array of `{ id, question, source?: "record" | "web" | "both" }` (effective only when `questionDriven: true`)
|
|
38
|
+
- `reuseCachedSynthesizedContext`: when `true`, skips the PRE synthesis LLM call if `executionMemory.synthesizedContext` already has a valid `contextMarkdown` (including question-driven artifacts). Opt-in; callers must ensure cache validity.
|
|
39
|
+
- `xynthesizedOutput` (optional): writes the synthesis result under `RunTaskRequest.xynthesized.job[outputKey]`, `.task[outputKey]`, or `.execution[outputKey]` and returns `RunTaskResponse.xynthesizedPatch` for graph-engine merge. Fields: `destination` (`job` | `task` | `execution`), `outputKey`, optional `mode` (`replace` | `merge`), optional `alsoWriteLegacySynthesizedContext` (omit or `true`: keep persisting `executionMemory.synthesizedContext` / `synthesizedInput`; `false`: skip that legacy persistence for this PRE step). Template/rendering bundle includes `xynthesized` and `smartInput` from the request. Smart-input paths may reference `xynthesized.execution.*` when the execution bucket is present on the request. See README **Xynthesized memory and smart input**.
|
|
40
|
+
- Template core directives in instructions/prompt (`{{core:...}}`): structured synthesis derives task semantics from declared cores
|
|
41
|
+
|
|
42
|
+
## Template cores
|
|
43
|
+
|
|
44
|
+
Template core directives map to a closed-list task shape used by structured synthesis:
|
|
45
|
+
|
|
46
|
+
- `question`, `action`, `plan`, `objective`, `decision`, `comparison`
|
|
47
|
+
- `classification`, `evaluation`, `analysis`, `summary`, `generation`, `extraction`
|
|
48
|
+
|
|
49
|
+
In structured mode, synthesis uses detected `templateCores` and resolved question to prioritize what is relevant for MAIN execution. Core discovery is pre-render and uses raw templates resolved through `ai-skills.resolveRawTemplate(...)`. If no core directives are declared in template content, synthesis is rejected as a template-definition error.
|
|
50
|
+
`RunTaskRequest.taskCore` is intentionally not part of this flow.
|
|
51
|
+
|
|
52
|
+
Core discovery runs against the **raw** (pre-render) template content in **both** `markdown` and `structured` modes. In structured mode, at least one core directive is required (synthesis is rejected as a template-definition error if none are found and the template is non-empty). In markdown mode, detected cores are reported in `metadata.detectedTemplateCores` and `executionMemory.synthesizedContext.templateCores` but do not alter synthesizer behaviour.
|
|
53
|
+
|
|
54
|
+
## Output
|
|
55
|
+
|
|
56
|
+
- Returns synthesized context markdown used as MAIN-step `context`.
|
|
57
|
+
- In structured mode, output is validated then converted to markdown.
|
|
58
|
+
- In **both** structured and markdown modes, runtime stores a synthesized artifact under `executionMemory.synthesizedContext` (markdown uses `mode: "markdown"` with a small `payload` marker; `templateCores` is populated from the raw template in both modes — it is `[]` only when the template contains no `{{core:...}}` directives or the template could not be resolved).
|
|
59
|
+
- In **question-driven** mode, runtime stores a structured artifact under `executionMemory.synthesizedContext` with `mode: "questionDriven"` and `answers[questionId].synthesis` as the stable access path for templates and mappings. The artifact also includes `contextMarkdown` (same body MAIN uses) for persistence and cache reuse. Evidence fields are best-effort and may be omitted when inputs are unavailable.
|
|
60
|
+
- After PRE, **`executionMemory.synthesizedInput`** holds resolved source material (`SynthesizedInputArtifact`: `synthesisMode`, `sourceMaterial`, `localMarkdown`, `supportingMarkdown`, etc.) for gateways that persist without log scraping. Env **`SYNTHESIZED_INPUT_MAX_CHARS`** (default `200000`) caps `sourceMaterial` size.
|
|
61
|
+
- When MAIN runs from that artifact, empty synthesized context is kept empty (Narrix/web markdown is not substituted as a fallback).
|
|
62
|
+
- Final response includes execution-state + synthesis observability fields for auditing:
|
|
63
|
+
- `metadata.synthesisEnabled` (and `meta` — same object reference as `metadata` for checklist-style consumers)
|
|
64
|
+
- `metadata.effectiveExecutionPipeline`
|
|
65
|
+
- `metadata.synthesizedContextPresent`
|
|
66
|
+
- `metadata.mainContextSource`
|
|
67
|
+
- `metadata.detectedTemplateCores`
|
|
68
|
+
- `metadata.synthesisMode` — `"markdown"` or `"structured"`; present when a PRE synthesis step ran
|
|
69
|
+
- `executionMemory` and `executionState.executionMemory`
|
|
70
|
+
|
|
71
|
+
### Persistence path and schemas
|
|
72
|
+
|
|
73
|
+
**Canonical JSON path for merged PRE artifacts:** **`response.executionMemory`** (same object as **`response.executionState.executionMemory`**; prefer the top-level field for gateways). Versioned JSON Schema for **`synthesizedContext`** / **`synthesizedInput`** lives in **[documenations/schemas/README.md](./schemas/README.md)** (`v1/synthesized-artifacts.json`). Align persisted rows with **`@xronoces/xmemory-contracts`** when mapping columns.
|
|
74
|
+
|
|
75
|
+
## Failure behavior
|
|
76
|
+
|
|
77
|
+
- If synthesis fails and `fallbackToDirect === true`, PRE step returns empty context and execution continues.
|
|
78
|
+
- Otherwise the PRE step raises an error.
|
|
79
|
+
|
|
80
|
+
## Related appendices
|
|
81
|
+
|
|
82
|
+
- `documenations/synthesis-invocation-notes.md`
|
|
83
|
+
- `documenations/run-task-execution-flow.md`
|
|
84
|
+
- `documenations/task-core-and-core-aware-synthesis.md`
|