@exellix/ai-tasks 9.1.0 → 10.0.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.
Files changed (252) hide show
  1. package/CHANGELOG.md +34 -4
  2. package/README.md +2 -2
  3. package/RUNTASK_REQUEST.md +32 -17
  4. package/dist/builders/task-request-builder.d.ts.map +1 -1
  5. package/dist/builders/task-request-builder.js +2 -1
  6. package/dist/builders/task-request-builder.js.map +1 -1
  7. package/dist/compile/compileTaskConfiguration.d.ts.map +1 -1
  8. package/dist/compile/compileTaskConfiguration.js +3 -0
  9. package/dist/compile/compileTaskConfiguration.js.map +1 -1
  10. package/dist/core/task-sdk.d.ts.map +1 -1
  11. package/dist/core/task-sdk.js +148 -180
  12. package/dist/core/task-sdk.js.map +1 -1
  13. package/dist/errors/runTaskExecutionError.d.ts.map +1 -1
  14. package/dist/errors/runTaskExecutionError.js +0 -2
  15. package/dist/errors/runTaskExecutionError.js.map +1 -1
  16. package/dist/index.d.ts +0 -4
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +0 -4
  19. package/dist/index.js.map +1 -1
  20. package/dist/invocation/types.d.ts +1 -1
  21. package/dist/narrix/applyWebScopeToRequest.d.ts +9 -0
  22. package/dist/narrix/applyWebScopeToRequest.d.ts.map +1 -0
  23. package/dist/narrix/applyWebScopeToRequest.js +156 -0
  24. package/dist/narrix/applyWebScopeToRequest.js.map +1 -0
  25. package/dist/narrix/narrixUnitExecution.d.ts.map +1 -1
  26. package/dist/narrix/narrixUnitExecution.js +8 -3
  27. package/dist/narrix/narrixUnitExecution.js.map +1 -1
  28. package/dist/node-execution/buildRequestFromNodePlan.d.ts +6 -0
  29. package/dist/node-execution/buildRequestFromNodePlan.d.ts.map +1 -1
  30. package/dist/node-execution/buildRequestFromNodePlan.js +4 -16
  31. package/dist/node-execution/buildRequestFromNodePlan.js.map +1 -1
  32. package/dist/node-execution/compileProfessionalAnswerRequest.d.ts +2 -0
  33. package/dist/node-execution/compileProfessionalAnswerRequest.d.ts.map +1 -0
  34. package/dist/node-execution/compileProfessionalAnswerRequest.js +4 -0
  35. package/dist/node-execution/compileProfessionalAnswerRequest.js.map +1 -0
  36. package/dist/node-execution/createNodeExecutionHost.d.ts.map +1 -1
  37. package/dist/node-execution/createNodeExecutionHost.js +97 -26
  38. package/dist/node-execution/createNodeExecutionHost.js.map +1 -1
  39. package/dist/node-execution/dispatchExecutionUnit.d.ts.map +1 -1
  40. package/dist/node-execution/dispatchExecutionUnit.js +4 -2
  41. package/dist/node-execution/dispatchExecutionUnit.js.map +1 -1
  42. package/dist/node-execution/orchestration/runPostOrchestration.d.ts +11 -0
  43. package/dist/node-execution/orchestration/runPostOrchestration.d.ts.map +1 -0
  44. package/dist/node-execution/orchestration/runPostOrchestration.js +123 -0
  45. package/dist/node-execution/orchestration/runPostOrchestration.js.map +1 -0
  46. package/dist/node-execution/orchestration/runPreOrchestration.d.ts +3 -0
  47. package/dist/node-execution/orchestration/runPreOrchestration.d.ts.map +1 -0
  48. package/dist/node-execution/orchestration/runPreOrchestration.js +110 -0
  49. package/dist/node-execution/orchestration/runPreOrchestration.js.map +1 -0
  50. package/dist/node-execution/orchestration/shardContext.d.ts +12 -0
  51. package/dist/node-execution/orchestration/shardContext.d.ts.map +1 -0
  52. package/dist/node-execution/orchestration/shardContext.js +71 -0
  53. package/dist/node-execution/orchestration/shardContext.js.map +1 -0
  54. package/dist/node-execution/orchestration/types.d.ts +21 -0
  55. package/dist/node-execution/orchestration/types.d.ts.map +1 -0
  56. package/dist/node-execution/orchestration/types.js +2 -0
  57. package/dist/node-execution/orchestration/types.js.map +1 -0
  58. package/dist/node-execution/rejectForbiddenWireFields.d.ts +2 -0
  59. package/dist/node-execution/rejectForbiddenWireFields.d.ts.map +1 -1
  60. package/dist/node-execution/rejectForbiddenWireFields.js +42 -7
  61. package/dist/node-execution/rejectForbiddenWireFields.js.map +1 -1
  62. package/dist/observability/classifyRunTaskFailure.d.ts.map +1 -1
  63. package/dist/observability/classifyRunTaskFailure.js +4 -3
  64. package/dist/observability/classifyRunTaskFailure.js.map +1 -1
  65. package/dist/observability/logRunTaskFailure.d.ts.map +1 -1
  66. package/dist/observability/logRunTaskFailure.js +0 -2
  67. package/dist/observability/logRunTaskFailure.js.map +1 -1
  68. package/dist/post-steps/audit/auditChecklistFuncxEnvelope.d.ts +19 -3
  69. package/dist/post-steps/audit/auditChecklistFuncxEnvelope.d.ts.map +1 -1
  70. package/dist/post-steps/audit/auditChecklistFuncxEnvelope.js +7 -1
  71. package/dist/post-steps/audit/auditChecklistFuncxEnvelope.js.map +1 -1
  72. package/dist/post-steps/audit/loadAuditTemplates.d.ts +2 -55
  73. package/dist/post-steps/audit/loadAuditTemplates.d.ts.map +1 -1
  74. package/dist/post-steps/audit/loadAuditTemplates.js +3 -38
  75. package/dist/post-steps/audit/loadAuditTemplates.js.map +1 -1
  76. package/dist/post-steps/audit/parseAuditFuncxOutput.d.ts +8 -0
  77. package/dist/post-steps/audit/parseAuditFuncxOutput.d.ts.map +1 -0
  78. package/dist/post-steps/audit/parseAuditFuncxOutput.js +62 -0
  79. package/dist/post-steps/audit/parseAuditFuncxOutput.js.map +1 -0
  80. package/dist/post-steps/audit/parseAuditOutput.d.ts +2 -0
  81. package/dist/post-steps/audit/parseAuditOutput.d.ts.map +1 -1
  82. package/dist/post-steps/audit/parseAuditOutput.js +56 -0
  83. package/dist/post-steps/audit/parseAuditOutput.js.map +1 -1
  84. package/dist/post-steps/audit/runAudit.d.ts.map +1 -1
  85. package/dist/post-steps/audit/runAudit.js +53 -113
  86. package/dist/post-steps/audit/runAudit.js.map +1 -1
  87. package/dist/post-steps/audit/runAuditFuncxCall.d.ts +18 -0
  88. package/dist/post-steps/audit/runAuditFuncxCall.d.ts.map +1 -0
  89. package/dist/post-steps/audit/runAuditFuncxCall.js +59 -0
  90. package/dist/post-steps/audit/runAuditFuncxCall.js.map +1 -0
  91. package/dist/synthesis/resolveSourceMaterial.d.ts.map +1 -1
  92. package/dist/synthesis/resolveSourceMaterial.js +14 -0
  93. package/dist/synthesis/resolveSourceMaterial.js.map +1 -1
  94. package/dist/synthesis/runStructuredSynthesisRobust.d.ts.map +1 -1
  95. package/dist/synthesis/runStructuredSynthesisRobust.js +24 -4
  96. package/dist/synthesis/runStructuredSynthesisRobust.js.map +1 -1
  97. package/dist/task-strategies/buildTaskStrategyCatalogDescriptor.d.ts +3 -0
  98. package/dist/task-strategies/buildTaskStrategyCatalogDescriptor.d.ts.map +1 -1
  99. package/dist/task-strategies/buildTaskStrategyCatalogDescriptor.js +28 -4
  100. package/dist/task-strategies/buildTaskStrategyCatalogDescriptor.js.map +1 -1
  101. package/dist/task-strategies/canonicalInputExecutionStrategies.d.ts +4 -4
  102. package/dist/task-strategies/canonicalInputExecutionStrategies.d.ts.map +1 -1
  103. package/dist/task-strategies/canonicalInputExecutionStrategies.js +2 -1
  104. package/dist/task-strategies/canonicalInputExecutionStrategies.js.map +1 -1
  105. package/dist/task-strategies/canonicalOrchestrationStrategies.d.ts +42 -0
  106. package/dist/task-strategies/canonicalOrchestrationStrategies.d.ts.map +1 -0
  107. package/dist/task-strategies/canonicalOrchestrationStrategies.js +47 -0
  108. package/dist/task-strategies/canonicalOrchestrationStrategies.js.map +1 -0
  109. package/dist/task-strategies/canonicalTaskStrategies.d.ts +2 -1
  110. package/dist/task-strategies/canonicalTaskStrategies.d.ts.map +1 -1
  111. package/dist/task-strategies/canonicalTaskStrategies.js +2 -1
  112. package/dist/task-strategies/canonicalTaskStrategies.js.map +1 -1
  113. package/dist/task-strategies/constants.d.ts +9 -1
  114. package/dist/task-strategies/constants.d.ts.map +1 -1
  115. package/dist/task-strategies/constants.js +9 -1
  116. package/dist/task-strategies/constants.js.map +1 -1
  117. package/dist/task-strategies/index.d.ts +5 -3
  118. package/dist/task-strategies/index.d.ts.map +1 -1
  119. package/dist/task-strategies/index.js +4 -3
  120. package/dist/task-strategies/index.js.map +1 -1
  121. package/dist/task-strategies/listAiTaskStrategies.d.ts +10 -1
  122. package/dist/task-strategies/listAiTaskStrategies.d.ts.map +1 -1
  123. package/dist/task-strategies/listAiTaskStrategies.js +17 -2
  124. package/dist/task-strategies/listAiTaskStrategies.js.map +1 -1
  125. package/dist/types/task-types.d.ts +4 -11
  126. package/dist/types/task-types.d.ts.map +1 -1
  127. package/dist/utils/bridgeRunSkillGatewayMemory.d.ts.map +1 -1
  128. package/dist/utils/bridgeRunSkillGatewayMemory.js +1 -0
  129. package/dist/utils/bridgeRunSkillGatewayMemory.js.map +1 -1
  130. package/dist/utils/executionMemoryInputRecord.d.ts +12 -0
  131. package/dist/utils/executionMemoryInputRecord.d.ts.map +1 -0
  132. package/dist/utils/executionMemoryInputRecord.js +28 -0
  133. package/dist/utils/executionMemoryInputRecord.js.map +1 -0
  134. package/dist/utils/resolveAiProfileModel.d.ts +1 -1
  135. package/dist/utils/resolveAiProfileModel.d.ts.map +1 -1
  136. package/dist/utils/resolveRunTaskModelReferences.d.ts.map +1 -1
  137. package/dist/utils/resolveRunTaskModelReferences.js +0 -32
  138. package/dist/utils/resolveRunTaskModelReferences.js.map +1 -1
  139. package/dist/utils/runTaskRequestShape.d.ts.map +1 -1
  140. package/dist/utils/runTaskRequestShape.js +4 -26
  141. package/dist/utils/runTaskRequestShape.js.map +1 -1
  142. package/dist/utils/skillTemplateVariables.d.ts +3 -2
  143. package/dist/utils/skillTemplateVariables.d.ts.map +1 -1
  144. package/dist/utils/skillTemplateVariables.js +3 -2
  145. package/dist/utils/skillTemplateVariables.js.map +1 -1
  146. package/dist/validation/validateProfessionalAnswerContract.d.ts +8 -0
  147. package/dist/validation/validateProfessionalAnswerContract.d.ts.map +1 -0
  148. package/dist/validation/validateProfessionalAnswerContract.js +45 -0
  149. package/dist/validation/validateProfessionalAnswerContract.js.map +1 -0
  150. package/dist/validation/validateRunTaskConfig.d.ts.map +1 -1
  151. package/dist/validation/validateRunTaskConfig.js +3 -66
  152. package/dist/validation/validateRunTaskConfig.js.map +1 -1
  153. package/documenations/record-and-template-variables.md +21 -13
  154. package/documenations/run-task-execution-flow.md +1 -1
  155. package/documenations/skill-orchestration-strategy-cr-fr.md +147 -0
  156. package/documenations/upstream-feature-requests/README.md +9 -5
  157. package/documenations/upstream-feature-requests/ai-skills-orchestrator-invoke-contract-5.9.md +1 -1
  158. package/documenations/upstream-feature-requests/funcx-4.9.13-open-items.md +62 -0
  159. package/documenations/upstream-feature-requests/funcx-gap-analysis-cr-fr.md +401 -0
  160. package/documenations/upstream-feature-requests/funcx-pre-post-sidekick-actions.md +1 -0
  161. package/documenations/upstream-feature-requests/graph-engine-runtask-contract-alignment-investigation.md +370 -0
  162. package/documenations/upstream-feature-requests/xynthesis-ai-profiles-2.1-import-break.md +2 -2
  163. package/documenations/upstream-feature-requests/xynthesis-openrouter-wire-model-double-prefix-bug.md +1 -1
  164. package/documenations/upstream-feature-requests/xynthesis-orchestrator-invoke-contract-4.2.md +1 -1
  165. package/package.json +10 -9
  166. package/.docs/DOWNSTREAM_ENV.md +0 -42
  167. package/.docs/FEEDBACK_TO_CLIENT_DOWNSTREAM_FIXES.md +0 -64
  168. package/.docs/INTERMEDIATE_STEPS.md +0 -82
  169. package/.docs/activity-structure.md +0 -31
  170. package/.docs/ai-task-ai-scoping-spec.md +0 -338
  171. package/.docs/ai-tasks-model-profile-aliases-7x.md +0 -96
  172. package/.docs/blockers-and-issues.md +0 -346
  173. package/.docs/building-runTask-sdk.md +0 -659
  174. package/.docs/building-skill-execution-orchestrator.md +0 -968
  175. package/.docs/code-used-before/run-task.txt +0 -39
  176. package/.docs/code-used-before/task-executor.ts.old +0 -57
  177. package/.docs/code-used-before/test-run-task.ts.old +0 -42
  178. package/.docs/code-used-before/types.txt +0 -23
  179. package/.docs/env-ready-policy.md +0 -40
  180. package/.docs/flow-io/flow-README.md +0 -76
  181. package/.docs/flow-io/narrix.md +0 -124
  182. package/.docs/flow-io/web-scoping.md +0 -135
  183. package/.docs/flow-io/xynthesis-post.md +0 -154
  184. package/.docs/flow-io/xynthesis-pre.md +0 -181
  185. package/.docs/gap-analysis.md +0 -201
  186. package/.docs/integration-facts-ai-tasks.md +0 -109
  187. package/.docs/investigation/ai-skills.md +0 -170
  188. package/.docs/investigation/external-packages-assignments.md +0 -66
  189. package/.docs/investigation/integration-summary.md +0 -20
  190. package/.docs/investigation/narrix-catalox.md +0 -29
  191. package/.docs/investigation/workplan-close-graph-engine-gaps.md +0 -101
  192. package/.docs/logging-stack.md +0 -30
  193. package/.docs/memory-narrix-adapter-developer-guide.md +0 -402
  194. package/.docs/memory-narrix-adapter-requirements.md +0 -112
  195. package/.docs/narrix-context-consumption-gap.md +0 -184
  196. package/.docs/narrix-context-downstream-report.md +0 -30
  197. package/.docs/narrix-ingest-and-packs-library-spec.md +0 -240
  198. package/.docs/narrix-record-input-current-design.md +0 -48
  199. package/.docs/pacakge.md +0 -48
  200. package/.docs/possible-components/README.md +0 -11
  201. package/.docs/possible-components/integration/README.md +0 -10
  202. package/.docs/possible-components/integration/gaps-when-merging.md +0 -16
  203. package/.docs/possible-components/integration/platform.md +0 -54
  204. package/.docs/possible-components/integration/reintegrate-into-ai-tasks.md +0 -26
  205. package/.docs/possible-components/integration/roadmap-and-checklists.md +0 -54
  206. package/.docs/possible-components/post-component/README.md +0 -18
  207. package/.docs/possible-components/post-component/builder-guide.md +0 -175
  208. package/.docs/possible-components/post-component/gaps-and-artifacts.md +0 -52
  209. package/.docs/possible-components/post-component/handler-audit.md +0 -47
  210. package/.docs/possible-components/post-component/handler-polish.md +0 -41
  211. package/.docs/possible-components/post-component/unified-protocol.md +0 -59
  212. package/.docs/possible-components/pre-component/README.md +0 -22
  213. package/.docs/possible-components/pre-component/builder-guide.md +0 -127
  214. package/.docs/possible-components/pre-component/gaps-and-artifacts.md +0 -35
  215. package/.docs/possible-components/pre-component/handler-ai-scoping.md +0 -45
  216. package/.docs/possible-components/pre-component/handler-narrix-preprocessor.md +0 -49
  217. package/.docs/possible-components/pre-component/handler-narrix-system2.md +0 -35
  218. package/.docs/possible-components/pre-component/handler-synthesized-context.md +0 -65
  219. package/.docs/possible-components/pre-component/handler-web-scope.md +0 -29
  220. package/.docs/possible-components/pre-component/unified-protocol.md +0 -89
  221. package/.docs/prefer-openrouter-routing-policy.md +0 -114
  222. package/.docs/questions-for-ai-skills.md +0 -123
  223. package/.docs/realtime-narrixing-gap-analysis.md +0 -40
  224. package/.docs/realtime-narrixing.md +0 -433
  225. package/.docs/run-context-object.md +0 -32
  226. package/.docs/session-id-usage.md +0 -26
  227. package/.docs/skill-library-spec.md +0 -249
  228. package/.docs/synthesized-context-strategy-spec.md +0 -906
  229. package/.docs/upstream-issue/2026-03-21_woroces-ai-tasks_ISSUE-006_web-scope-question-from-cni-entity.md +0 -46
  230. package/.docs/web-scopper-embed.md +0 -93
  231. package/.docs/xynthesis-wiring-and-io.md +0 -12
  232. package/documenations/activix-feature-request-identity.md +0 -123
  233. package/documenations/bug-report-xynthesis-and-synthesis-call.md +0 -217
  234. package/documenations/feature-request-ai-skills-raw-template-access.md +0 -82
  235. package/documenations/feature-request-athenix-core-directive.md +0 -145
  236. package/documenations/feature-request-athenix-token-extraction.md +0 -124
  237. package/documenations/funcx-upstream-github-issues-draft.md +0 -153
  238. package/documenations/identity-metadata-contract.md +0 -165
  239. package/documenations/run-task-single-run-checklist.md +0 -109
  240. package/documenations/sessions/2026-06-08-subnets-model-resolution/CR-1-no-concrete-wire-in-graph-plans.md +0 -93
  241. package/documenations/sessions/2026-06-08-subnets-model-resolution/CR-2-skillModel-profile-only-at-storage.md +0 -88
  242. package/documenations/sessions/2026-06-08-subnets-model-resolution/CR-3-reject-concrete-models-in-catalog-rows.md +0 -76
  243. package/documenations/sessions/2026-06-08-subnets-model-resolution/FR-1-suggested-profile-in-catalogs.md +0 -96
  244. package/documenations/sessions/2026-06-08-subnets-model-resolution/FR-2-graph-engine-failure-phase-attribution.md +0 -92
  245. package/documenations/sessions/2026-06-08-subnets-model-resolution/INVESTIGATION-original-bug.md +0 -182
  246. package/documenations/sessions/2026-06-08-subnets-model-resolution/PROBLEM.md +0 -236
  247. package/documenations/sessions/2026-06-08-subnets-model-resolution/README.md +0 -11
  248. package/documenations/sessions/2026-06-08-subnets-model-resolution/funcx-test-resolveModel.cheapDefaultWireSlug.test.ts +0 -117
  249. package/documenations/upstream-feature-requests/ai-tasks-wrap-up-after-upstream.md +0 -129
  250. package/documenations/upstream-feedback-request-shape-clarification.md +0 -101
  251. package/documenations/web-context-precedence.md +0 -33
  252. 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`.