@exellix/ai-tasks 9.1.0 → 9.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/CHANGELOG.md +15 -4
  2. package/README.md +2 -2
  3. package/RUNTASK_REQUEST.md +17 -15
  4. package/dist/compile/compileTaskConfiguration.d.ts.map +1 -1
  5. package/dist/compile/compileTaskConfiguration.js +3 -0
  6. package/dist/compile/compileTaskConfiguration.js.map +1 -1
  7. package/dist/core/task-sdk.d.ts.map +1 -1
  8. package/dist/core/task-sdk.js +112 -166
  9. package/dist/core/task-sdk.js.map +1 -1
  10. package/dist/invocation/types.d.ts +1 -1
  11. package/dist/narrix/narrixUnitExecution.js +2 -2
  12. package/dist/narrix/narrixUnitExecution.js.map +1 -1
  13. package/dist/node-execution/buildRequestFromNodePlan.d.ts +4 -0
  14. package/dist/node-execution/buildRequestFromNodePlan.d.ts.map +1 -1
  15. package/dist/node-execution/buildRequestFromNodePlan.js +4 -13
  16. package/dist/node-execution/buildRequestFromNodePlan.js.map +1 -1
  17. package/dist/node-execution/compileProfessionalAnswerRequest.d.ts +2 -0
  18. package/dist/node-execution/compileProfessionalAnswerRequest.d.ts.map +1 -0
  19. package/dist/node-execution/compileProfessionalAnswerRequest.js +4 -0
  20. package/dist/node-execution/compileProfessionalAnswerRequest.js.map +1 -0
  21. package/dist/node-execution/rejectForbiddenWireFields.d.ts +2 -0
  22. package/dist/node-execution/rejectForbiddenWireFields.d.ts.map +1 -1
  23. package/dist/node-execution/rejectForbiddenWireFields.js +42 -7
  24. package/dist/node-execution/rejectForbiddenWireFields.js.map +1 -1
  25. package/dist/post-steps/audit/auditChecklistFuncxEnvelope.d.ts +19 -3
  26. package/dist/post-steps/audit/auditChecklistFuncxEnvelope.d.ts.map +1 -1
  27. package/dist/post-steps/audit/auditChecklistFuncxEnvelope.js +7 -1
  28. package/dist/post-steps/audit/auditChecklistFuncxEnvelope.js.map +1 -1
  29. package/dist/post-steps/audit/loadAuditTemplates.d.ts +2 -55
  30. package/dist/post-steps/audit/loadAuditTemplates.d.ts.map +1 -1
  31. package/dist/post-steps/audit/loadAuditTemplates.js +3 -38
  32. package/dist/post-steps/audit/loadAuditTemplates.js.map +1 -1
  33. package/dist/post-steps/audit/parseAuditFuncxOutput.d.ts +8 -0
  34. package/dist/post-steps/audit/parseAuditFuncxOutput.d.ts.map +1 -0
  35. package/dist/post-steps/audit/parseAuditFuncxOutput.js +62 -0
  36. package/dist/post-steps/audit/parseAuditFuncxOutput.js.map +1 -0
  37. package/dist/post-steps/audit/parseAuditOutput.d.ts +2 -0
  38. package/dist/post-steps/audit/parseAuditOutput.d.ts.map +1 -1
  39. package/dist/post-steps/audit/parseAuditOutput.js +56 -0
  40. package/dist/post-steps/audit/parseAuditOutput.js.map +1 -1
  41. package/dist/post-steps/audit/runAudit.d.ts.map +1 -1
  42. package/dist/post-steps/audit/runAudit.js +53 -113
  43. package/dist/post-steps/audit/runAudit.js.map +1 -1
  44. package/dist/post-steps/audit/runAuditFuncxCall.d.ts +18 -0
  45. package/dist/post-steps/audit/runAuditFuncxCall.d.ts.map +1 -0
  46. package/dist/post-steps/audit/runAuditFuncxCall.js +59 -0
  47. package/dist/post-steps/audit/runAuditFuncxCall.js.map +1 -0
  48. package/dist/synthesis/resolveSourceMaterial.d.ts.map +1 -1
  49. package/dist/synthesis/resolveSourceMaterial.js +14 -0
  50. package/dist/synthesis/resolveSourceMaterial.js.map +1 -1
  51. package/dist/types/task-types.d.ts +4 -3
  52. package/dist/types/task-types.d.ts.map +1 -1
  53. package/dist/utils/bridgeRunSkillGatewayMemory.d.ts.map +1 -1
  54. package/dist/utils/bridgeRunSkillGatewayMemory.js +1 -0
  55. package/dist/utils/bridgeRunSkillGatewayMemory.js.map +1 -1
  56. package/dist/utils/executionMemoryInputRecord.d.ts +12 -0
  57. package/dist/utils/executionMemoryInputRecord.d.ts.map +1 -0
  58. package/dist/utils/executionMemoryInputRecord.js +28 -0
  59. package/dist/utils/executionMemoryInputRecord.js.map +1 -0
  60. package/dist/utils/resolveAiProfileModel.d.ts +1 -1
  61. package/dist/utils/resolveAiProfileModel.d.ts.map +1 -1
  62. package/dist/utils/skillTemplateVariables.d.ts +3 -2
  63. package/dist/utils/skillTemplateVariables.d.ts.map +1 -1
  64. package/dist/utils/skillTemplateVariables.js +3 -2
  65. package/dist/utils/skillTemplateVariables.js.map +1 -1
  66. package/dist/validation/validateProfessionalAnswerContract.d.ts +8 -0
  67. package/dist/validation/validateProfessionalAnswerContract.d.ts.map +1 -0
  68. package/dist/validation/validateProfessionalAnswerContract.js +45 -0
  69. package/dist/validation/validateProfessionalAnswerContract.js.map +1 -0
  70. package/dist/validation/validateRunTaskConfig.d.ts.map +1 -1
  71. package/dist/validation/validateRunTaskConfig.js +2 -0
  72. package/dist/validation/validateRunTaskConfig.js.map +1 -1
  73. package/documenations/record-and-template-variables.md +21 -13
  74. package/documenations/run-task-execution-flow.md +1 -1
  75. package/documenations/upstream-feature-requests/README.md +9 -5
  76. package/documenations/upstream-feature-requests/ai-skills-orchestrator-invoke-contract-5.9.md +1 -1
  77. package/documenations/upstream-feature-requests/funcx-4.9.13-open-items.md +62 -0
  78. package/documenations/upstream-feature-requests/funcx-gap-analysis-cr-fr.md +401 -0
  79. package/documenations/upstream-feature-requests/funcx-pre-post-sidekick-actions.md +1 -0
  80. package/documenations/upstream-feature-requests/graph-engine-runtask-contract-alignment-investigation.md +370 -0
  81. package/documenations/upstream-feature-requests/xynthesis-ai-profiles-2.1-import-break.md +2 -2
  82. package/documenations/upstream-feature-requests/xynthesis-openrouter-wire-model-double-prefix-bug.md +1 -1
  83. package/documenations/upstream-feature-requests/xynthesis-orchestrator-invoke-contract-4.2.md +1 -1
  84. package/package.json +10 -9
  85. package/.docs/DOWNSTREAM_ENV.md +0 -42
  86. package/.docs/FEEDBACK_TO_CLIENT_DOWNSTREAM_FIXES.md +0 -64
  87. package/.docs/INTERMEDIATE_STEPS.md +0 -82
  88. package/.docs/activity-structure.md +0 -31
  89. package/.docs/ai-task-ai-scoping-spec.md +0 -338
  90. package/.docs/ai-tasks-model-profile-aliases-7x.md +0 -96
  91. package/.docs/blockers-and-issues.md +0 -346
  92. package/.docs/building-runTask-sdk.md +0 -659
  93. package/.docs/building-skill-execution-orchestrator.md +0 -968
  94. package/.docs/code-used-before/run-task.txt +0 -39
  95. package/.docs/code-used-before/task-executor.ts.old +0 -57
  96. package/.docs/code-used-before/test-run-task.ts.old +0 -42
  97. package/.docs/code-used-before/types.txt +0 -23
  98. package/.docs/env-ready-policy.md +0 -40
  99. package/.docs/flow-io/flow-README.md +0 -76
  100. package/.docs/flow-io/narrix.md +0 -124
  101. package/.docs/flow-io/web-scoping.md +0 -135
  102. package/.docs/flow-io/xynthesis-post.md +0 -154
  103. package/.docs/flow-io/xynthesis-pre.md +0 -181
  104. package/.docs/gap-analysis.md +0 -201
  105. package/.docs/integration-facts-ai-tasks.md +0 -109
  106. package/.docs/investigation/ai-skills.md +0 -170
  107. package/.docs/investigation/external-packages-assignments.md +0 -66
  108. package/.docs/investigation/integration-summary.md +0 -20
  109. package/.docs/investigation/narrix-catalox.md +0 -29
  110. package/.docs/investigation/workplan-close-graph-engine-gaps.md +0 -101
  111. package/.docs/logging-stack.md +0 -30
  112. package/.docs/memory-narrix-adapter-developer-guide.md +0 -402
  113. package/.docs/memory-narrix-adapter-requirements.md +0 -112
  114. package/.docs/narrix-context-consumption-gap.md +0 -184
  115. package/.docs/narrix-context-downstream-report.md +0 -30
  116. package/.docs/narrix-ingest-and-packs-library-spec.md +0 -240
  117. package/.docs/narrix-record-input-current-design.md +0 -48
  118. package/.docs/pacakge.md +0 -48
  119. package/.docs/possible-components/README.md +0 -11
  120. package/.docs/possible-components/integration/README.md +0 -10
  121. package/.docs/possible-components/integration/gaps-when-merging.md +0 -16
  122. package/.docs/possible-components/integration/platform.md +0 -54
  123. package/.docs/possible-components/integration/reintegrate-into-ai-tasks.md +0 -26
  124. package/.docs/possible-components/integration/roadmap-and-checklists.md +0 -54
  125. package/.docs/possible-components/post-component/README.md +0 -18
  126. package/.docs/possible-components/post-component/builder-guide.md +0 -175
  127. package/.docs/possible-components/post-component/gaps-and-artifacts.md +0 -52
  128. package/.docs/possible-components/post-component/handler-audit.md +0 -47
  129. package/.docs/possible-components/post-component/handler-polish.md +0 -41
  130. package/.docs/possible-components/post-component/unified-protocol.md +0 -59
  131. package/.docs/possible-components/pre-component/README.md +0 -22
  132. package/.docs/possible-components/pre-component/builder-guide.md +0 -127
  133. package/.docs/possible-components/pre-component/gaps-and-artifacts.md +0 -35
  134. package/.docs/possible-components/pre-component/handler-ai-scoping.md +0 -45
  135. package/.docs/possible-components/pre-component/handler-narrix-preprocessor.md +0 -49
  136. package/.docs/possible-components/pre-component/handler-narrix-system2.md +0 -35
  137. package/.docs/possible-components/pre-component/handler-synthesized-context.md +0 -65
  138. package/.docs/possible-components/pre-component/handler-web-scope.md +0 -29
  139. package/.docs/possible-components/pre-component/unified-protocol.md +0 -89
  140. package/.docs/prefer-openrouter-routing-policy.md +0 -114
  141. package/.docs/questions-for-ai-skills.md +0 -123
  142. package/.docs/realtime-narrixing-gap-analysis.md +0 -40
  143. package/.docs/realtime-narrixing.md +0 -433
  144. package/.docs/run-context-object.md +0 -32
  145. package/.docs/session-id-usage.md +0 -26
  146. package/.docs/skill-library-spec.md +0 -249
  147. package/.docs/synthesized-context-strategy-spec.md +0 -906
  148. package/.docs/upstream-issue/2026-03-21_woroces-ai-tasks_ISSUE-006_web-scope-question-from-cni-entity.md +0 -46
  149. package/.docs/web-scopper-embed.md +0 -93
  150. package/.docs/xynthesis-wiring-and-io.md +0 -12
  151. package/documenations/activix-feature-request-identity.md +0 -123
  152. package/documenations/bug-report-xynthesis-and-synthesis-call.md +0 -217
  153. package/documenations/feature-request-ai-skills-raw-template-access.md +0 -82
  154. package/documenations/feature-request-athenix-core-directive.md +0 -145
  155. package/documenations/feature-request-athenix-token-extraction.md +0 -124
  156. package/documenations/funcx-upstream-github-issues-draft.md +0 -153
  157. package/documenations/identity-metadata-contract.md +0 -165
  158. package/documenations/run-task-single-run-checklist.md +0 -109
  159. package/documenations/sessions/2026-06-08-subnets-model-resolution/CR-1-no-concrete-wire-in-graph-plans.md +0 -93
  160. package/documenations/sessions/2026-06-08-subnets-model-resolution/CR-2-skillModel-profile-only-at-storage.md +0 -88
  161. package/documenations/sessions/2026-06-08-subnets-model-resolution/CR-3-reject-concrete-models-in-catalog-rows.md +0 -76
  162. package/documenations/sessions/2026-06-08-subnets-model-resolution/FR-1-suggested-profile-in-catalogs.md +0 -96
  163. package/documenations/sessions/2026-06-08-subnets-model-resolution/FR-2-graph-engine-failure-phase-attribution.md +0 -92
  164. package/documenations/sessions/2026-06-08-subnets-model-resolution/INVESTIGATION-original-bug.md +0 -182
  165. package/documenations/sessions/2026-06-08-subnets-model-resolution/PROBLEM.md +0 -236
  166. package/documenations/sessions/2026-06-08-subnets-model-resolution/README.md +0 -11
  167. package/documenations/sessions/2026-06-08-subnets-model-resolution/funcx-test-resolveModel.cheapDefaultWireSlug.test.ts +0 -117
  168. package/documenations/upstream-feature-requests/ai-tasks-wrap-up-after-upstream.md +0 -129
  169. package/documenations/upstream-feedback-request-shape-clarification.md +0 -101
  170. package/documenations/web-context-precedence.md +0 -33
  171. package/documenations/xynthesis-activix-telemetry.md +0 -28
@@ -1,101 +0,0 @@
1
- # Upstream Feedback Response: `runTask` Request Shape and Runtime Model
2
-
3
- ## Context
4
-
5
- Feedback received:
6
-
7
- > The `runTask` request still looks old-shaped.
8
- > In all 3 request files, top-level shape is still basically:
9
- > `question`, `record`, `inputs`, `narrix`, `executionMemory`, `variables`.
10
- > I do not see new explicit runtime concepts reflected in request shape:
11
- > - no `taskCore`
12
- > - no detected template core set
13
- > - no `synthesizedContext` being carried into MAIN
14
- > - no sign that template analysis is driving execution
15
- >
16
- > So request contract still looks like old model.
17
-
18
- This document is the formal response and clarification.
19
-
20
- ---
21
-
22
- ## Short Answer
23
-
24
- The request contract is **intentionally minimal and mostly unchanged at top-level**.
25
- The new model is a **runtime-orchestration contract**, not a request-field expansion.
26
-
27
- So the absence of new top-level fields is expected and correct.
28
-
29
- ---
30
-
31
- ## What Changed (and Why It May Not Appear in Request Shape)
32
-
33
- ### 1) `taskCore` removed from request (intentional)
34
-
35
- - The old request-level `taskCore` is removed as source of truth.
36
- - Runtime now derives task semantics from template declarations.
37
- - This is a deliberate shift away from user-supplied task core metadata.
38
-
39
- ### 2) Core detection is runtime-derived, not caller-supplied
40
-
41
- - `templateCores` are discovered pre-render from raw instructions/prompt templates.
42
- - Discovery is done by runtime internals (not by request payload).
43
- - Therefore `templateCores` does not need to be added as request input.
44
-
45
- ### 3) `synthesizedContext` is execution memory artifact, not request input
46
-
47
- - In structured synthesis mode, runtime writes synthesized artifact to:
48
- - `executionMemory.synthesizedContext`
49
- - This is generated during PRE step and then consumed by MAIN flow.
50
- - It is intentionally a runtime-produced artifact, not a required top-level request field.
51
-
52
- ### 4) Template analysis drives execution internally
53
-
54
- - The execution decision path (for structured synthesis) is:
55
- 1. resolve raw templates,
56
- 2. detect `{{core:...}}` directives,
57
- 3. validate non-empty detected core set,
58
- 4. run structured synthesis with detected cores + resolved question,
59
- 5. materialize main context markdown and continue MAIN execution.
60
- - This orchestration is runtime behavior and does not require top-level request shape changes.
61
-
62
- ---
63
-
64
- ## Why Keeping Request Shape Stable Is Correct
65
-
66
- - Backward compatibility for callers that already send existing fields.
67
- - Avoids duplicating runtime-derived data in user input.
68
- - Prevents conflicting sources of truth (caller-provided core vs template-declared core).
69
- - Keeps request API focused on inputs/config, while runtime computes orchestration artifacts.
70
-
71
- ---
72
-
73
- ## Explicit Clarification to Upstream
74
-
75
- Please do **not** interpret the unchanged top-level request shape as "old model still active".
76
-
77
- The new model is active through runtime semantics:
78
-
79
- - no request-level `taskCore`,
80
- - template-driven core declaration (`{{core:...}}`),
81
- - pre-render core discovery from raw template content,
82
- - structured synthesis validation using detected `templateCores`,
83
- - synthesized artifact persisted to execution memory and used in MAIN flow.
84
-
85
- This is a contract change in **runtime behavior**, not a requirement to add more top-level request fields.
86
-
87
- ---
88
-
89
- ## What Upstream Still Needs To Ensure
90
-
91
- 1. `ai-skills.resolveRawTemplate(...)` remains stable/public for pre-render analysis.
92
- 2. `athenix-parser` keeps `core:` directives as first-class non-path tokens.
93
- 3. Lifecycle cleanup/shutdown exists for test/runtime handle hygiene (non-functional hardening).
94
-
95
- ---
96
-
97
- ## Final Position
98
-
99
- The current request shape is acceptable and intentional.
100
- No additional top-level request fields are required to represent the new core-aware runtime model.
101
-
@@ -1,33 +0,0 @@
1
- # Web context precedence: structured scoping vs caller markdown
2
-
3
- This document describes how **web evidence** reaches MAIN context and the **synthesized-context** PRE step, and how to avoid **duplicate** web retrieval.
4
-
5
- ## Sources
6
-
7
- 1. **Internal structured web context** — When NARRIX pre-processor runs with **`narrix.enableWebScope: true`**, ai-tasks calls the Narrix web scoper and stores the result on **`executionMemory.webContext`**. Markdown for prompts is derived via **`buildWebContextEvidenceMarkdown`** (`src/narrix/webContextMarkdown.ts`).
8
-
9
- 2. **Caller-provided markdown** — Orchestrators may attach a pre-rendered string on **`executionMemory.webContextMarkdown`**. When MAIN context is built (`_executeDirect`), if that string is non-empty and context assembly is active (see below), it is appended **after** Narrix narrative and internal web markdown as a section:
10
-
11
- **`## Supplementary web context (caller-provided)`**
12
-
13
- ## Precedence (MAIN `context` markdown)
14
-
15
- When **`includeContextInPrompt`** is true, or NARRIX narrative is in play, or MAIN runs with a **synthesized** override from the pipeline:
16
-
17
- 1. Narrix attachment markdown (when present).
18
- 2. Markdown built from **`executionMemory.webContext`** (when available).
19
- 3. **`executionMemory.webContextMarkdown`** (caller supplementary), if non-empty.
20
-
21
- Synthesis PRE source material uses **`resolveSourceMaterial`** / **`resolveSourceMaterialParts`**, which serialize web as dedicated markdown and may **omit** raw `webContext` from JSON memory slices for specific policies (see [web-scoping-in-ai-tasks.md](./web-scoping-in-ai-tasks.md)).
22
-
23
- ## Avoiding duplicate search
24
-
25
- - **Do not** set **`narrix.enableWebScope: true`** if the gateway already ran web search and you only persist results into **`executionMemory.webContext`** or **`webContextMarkdown`**.
26
- - Use **`narrix.skipWebScopeWhenExternalWebMarkdownPresent: true`** when **`executionMemory.webContextMarkdown`** is already set before the NARRIX pre-processor runs: internal Tavily/web-scoper **will not** run for that invocation (Narrix narrative still runs as usual).
27
-
28
- Optional environment knobs (existing) include caps on generated web markdown (e.g. **`WEB_CONTEXT_MARKDOWN_MAX_CHARS`** in web-scoping docs).
29
-
30
- ## Related
31
-
32
- - [web-scoping-in-ai-tasks.md](./web-scoping-in-ai-tasks.md)
33
- - [synthesized-context-guide.md](./synthesized-context-guide.md)
@@ -1,28 +0,0 @@
1
- # Xynthesis Activix telemetry (Mongo)
2
-
3
- For **hosts** of `@exellix/ai-tasks` and other orchestrators using **`@exellix/xynthesis`**.
4
-
5
- ## Symptom
6
-
7
- With **`MONGO_URI`** or **`MONGO_LOGS_URI`** set, logs may show Activix init failures mentioning **`activix-collections`**, **`diagnostics.owner`**, or **`collectionRegistry.owner`**. Synthesis calls might still return text while **Mongo telemetry** for xynthesis does not initialize.
8
-
9
- ## Root cause
10
-
11
- **`@x12i/activix`** enables the collection registry by default; that path requires **`diagnostics.owner`** (or **`collectionRegistry.owner`**) on the **`Activix`** constructor. If xynthesis builds Activix **without** `diagnostics`, **`init()`** fails in database mode.
12
-
13
- ## Required upstream change
14
-
15
- In **`exellix/xynthesis`** (`src/activix.ts`, `getActivix`), pass **`diagnostics`** with at least **`owner: "@exellix/xynthesis"`** (and optional **`XYNTHESIS_ACTIVIX_DIAGNOSTICS_OWNER`** override). Details and test ideas: **[`xynthesis-upstream-fixes-checklist.md`](./xynthesis-upstream-fixes-checklist.md)** §1.
16
-
17
- ## Operational knobs
18
-
19
- | Env | Effect |
20
- |-----|--------|
21
- | **`XYNTHESIS_ACTIVIX=FALSE`** | Disable xynthesis Mongo telemetry. |
22
- | **`XYNTHESIS_ACTIVIX_DIAGNOSTICS_OWNER`** | Override **`diagnostics.owner`**. |
23
- | **`XYNTHESIS_ACTIVIX_COLLECTION`** | Override default collection **`xynthesis-actions`**. |
24
-
25
- ## Related
26
-
27
- - Gateway-side Activix (**`@x12i/ai-gateway`**) is separate from xynthesis’ singleton.
28
- - ai-tasks Activix wiring: **`src/activix/activixClient.ts`** — constructs when Mongo is configured; persistence toggled via **`activix-collections`** legend `state` (Activix 8.4+), not `ACTIVIX_ENABLED=true`.