mayura 1.2.0 → 1.2.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 (225) hide show
  1. package/docs/README.md +1 -0
  2. package/docs/concepts/workflows.md +60 -1
  3. package/docs/guides/durable-workflows.md +1 -1
  4. package/docs/guides/rag-production.md +29 -0
  5. package/docs/guides/rag.md +12 -2
  6. package/docs/guides/release-readiness.md +8 -22
  7. package/docs/guides/workflow-composition.md +1 -1
  8. package/docs/integrations/vector-pinecone.md +1 -1
  9. package/lib/adapter-code-docker/image/Dockerfile +1 -1
  10. package/lib/adapter-code-docker/package.json +1 -1
  11. package/lib/adapter-code-quickjs/package.json +1 -1
  12. package/lib/adapter-mcp/package.json +1 -1
  13. package/lib/ag-ui/package.json +1 -1
  14. package/lib/artifacts/package.json +1 -1
  15. package/lib/auth/package.json +1 -1
  16. package/lib/authz/package.json +1 -1
  17. package/lib/browser/package.json +1 -1
  18. package/lib/cli/dist/operations.d.ts +1 -0
  19. package/lib/cli/dist/operations.d.ts.map +1 -1
  20. package/lib/cli/dist/operations.js +13 -5
  21. package/lib/cli/dist/operations.js.map +1 -1
  22. package/lib/cli/package.json +1 -1
  23. package/lib/cli/src/operations.ts +9 -5
  24. package/lib/client/dist/index.d.ts.map +1 -1
  25. package/lib/client/dist/index.js +12 -4
  26. package/lib/client/dist/index.js.map +1 -1
  27. package/lib/client/dist/workflow-limits.d.ts +6 -0
  28. package/lib/client/dist/workflow-limits.d.ts.map +1 -0
  29. package/lib/client/dist/workflow-limits.js +15 -0
  30. package/lib/client/dist/workflow-limits.js.map +1 -0
  31. package/lib/client/dist/workflows.d.ts +3 -0
  32. package/lib/client/dist/workflows.d.ts.map +1 -1
  33. package/lib/client/dist/workflows.js +15 -7
  34. package/lib/client/dist/workflows.js.map +1 -1
  35. package/lib/client/package.json +1 -1
  36. package/lib/client/src/index.ts +7 -4
  37. package/lib/client/src/workflow-limits.ts +12 -0
  38. package/lib/client/src/workflows.ts +12 -6
  39. package/lib/client-react/package.json +1 -1
  40. package/lib/code-mode/package.json +1 -1
  41. package/lib/code-mode-workflows/package.json +1 -1
  42. package/lib/context/package.json +1 -1
  43. package/lib/core/dist/host.d.ts +1 -0
  44. package/lib/core/dist/host.d.ts.map +1 -1
  45. package/lib/core/dist/host.js +1 -0
  46. package/lib/core/dist/host.js.map +1 -1
  47. package/lib/core/dist/index.d.ts +1 -0
  48. package/lib/core/dist/index.d.ts.map +1 -1
  49. package/lib/core/dist/index.js +1 -0
  50. package/lib/core/dist/index.js.map +1 -1
  51. package/lib/core/dist/workflow-environment.d.ts +9 -0
  52. package/lib/core/dist/workflow-environment.d.ts.map +1 -0
  53. package/lib/core/dist/workflow-environment.js +15 -0
  54. package/lib/core/dist/workflow-environment.js.map +1 -0
  55. package/lib/core/dist/workflow-limits.d.ts +7 -0
  56. package/lib/core/dist/workflow-limits.d.ts.map +1 -0
  57. package/lib/core/dist/workflow-limits.js +17 -0
  58. package/lib/core/dist/workflow-limits.js.map +1 -0
  59. package/lib/core/package.json +1 -1
  60. package/lib/core/src/host.ts +1 -0
  61. package/lib/core/src/index.ts +1 -0
  62. package/lib/core/src/workflow-environment.ts +15 -0
  63. package/lib/core/src/workflow-limits.ts +16 -0
  64. package/lib/exporter-otlp/dist/otlp-http-json.js +1 -1
  65. package/lib/exporter-otlp/dist/otlp-http-json.js.map +1 -1
  66. package/lib/exporter-otlp/dist/signals.js +2 -2
  67. package/lib/exporter-otlp/dist/signals.js.map +1 -1
  68. package/lib/exporter-otlp/package.json +1 -1
  69. package/lib/exporter-otlp/src/otlp-http-json.ts +1 -1
  70. package/lib/exporter-otlp/src/signals.ts +2 -2
  71. package/lib/files/package.json +1 -1
  72. package/lib/guardrails/package.json +1 -1
  73. package/lib/helpers/package.json +1 -1
  74. package/lib/keys/package.json +1 -1
  75. package/lib/memory/package.json +1 -1
  76. package/lib/memory-remote/package.json +1 -1
  77. package/lib/observability/package.json +1 -1
  78. package/lib/provider-anthropic/package.json +1 -1
  79. package/lib/provider-openai/package.json +1 -1
  80. package/lib/rag/dist/bm25.d.ts +13 -0
  81. package/lib/rag/dist/bm25.d.ts.map +1 -0
  82. package/lib/rag/dist/bm25.js +76 -0
  83. package/lib/rag/dist/bm25.js.map +1 -0
  84. package/lib/rag/dist/document-lexical.d.ts +7 -0
  85. package/lib/rag/dist/document-lexical.d.ts.map +1 -0
  86. package/lib/rag/dist/document-lexical.js +33 -0
  87. package/lib/rag/dist/document-lexical.js.map +1 -0
  88. package/lib/rag/dist/evidence-window.d.ts +15 -0
  89. package/lib/rag/dist/evidence-window.d.ts.map +1 -0
  90. package/lib/rag/dist/evidence-window.js +52 -0
  91. package/lib/rag/dist/evidence-window.js.map +1 -0
  92. package/lib/rag/dist/retrieval.d.ts +6 -0
  93. package/lib/rag/dist/retrieval.d.ts.map +1 -1
  94. package/lib/rag/dist/retrieval.js +60 -6
  95. package/lib/rag/dist/retrieval.js.map +1 -1
  96. package/lib/rag/dist/vectors.d.ts +8 -0
  97. package/lib/rag/dist/vectors.d.ts.map +1 -1
  98. package/lib/rag/dist/vectors.js +121 -4
  99. package/lib/rag/dist/vectors.js.map +1 -1
  100. package/lib/rag/package.json +1 -1
  101. package/lib/rag/src/bm25.ts +35 -0
  102. package/lib/rag/src/document-lexical.ts +17 -0
  103. package/lib/rag/src/evidence-window.ts +41 -0
  104. package/lib/rag/src/retrieval.ts +56 -7
  105. package/lib/rag/src/vectors.ts +62 -4
  106. package/lib/runtime/package.json +1 -1
  107. package/lib/sandbox/package.json +1 -1
  108. package/lib/sdk/package.json +1 -1
  109. package/lib/server/dist/index.d.ts +2 -0
  110. package/lib/server/dist/index.d.ts.map +1 -1
  111. package/lib/server/dist/index.js +12 -4
  112. package/lib/server/dist/index.js.map +1 -1
  113. package/lib/server/dist/inspector-bundle.d.ts +1 -1
  114. package/lib/server/dist/inspector-bundle.d.ts.map +1 -1
  115. package/lib/server/dist/inspector-bundle.js +4 -4
  116. package/lib/server/dist/inspector-bundle.js.map +1 -1
  117. package/lib/server/package.json +1 -1
  118. package/lib/server/src/index.ts +9 -4
  119. package/lib/server/src/inspector-bundle.ts +4 -4
  120. package/lib/server-node/package.json +1 -1
  121. package/lib/skills/package.json +1 -1
  122. package/lib/storage/package.json +1 -1
  123. package/lib/storage-contracts/dist/scheduled-workflow-contracts.d.ts +2 -0
  124. package/lib/storage-contracts/dist/scheduled-workflow-contracts.d.ts.map +1 -1
  125. package/lib/storage-contracts/dist/scheduled-workflow-contracts.js.map +1 -1
  126. package/lib/storage-contracts/dist/workflow-format2.d.ts +2 -0
  127. package/lib/storage-contracts/dist/workflow-format2.d.ts.map +1 -1
  128. package/lib/storage-contracts/dist/workflow-format2.js +8 -7
  129. package/lib/storage-contracts/dist/workflow-format2.js.map +1 -1
  130. package/lib/storage-contracts/dist/workflow-format3.d.ts.map +1 -1
  131. package/lib/storage-contracts/dist/workflow-format3.js +9 -7
  132. package/lib/storage-contracts/dist/workflow-format3.js.map +1 -1
  133. package/lib/storage-contracts/dist/workflow-format4.d.ts +2 -0
  134. package/lib/storage-contracts/dist/workflow-format4.d.ts.map +1 -1
  135. package/lib/storage-contracts/dist/workflow-format4.js +9 -8
  136. package/lib/storage-contracts/dist/workflow-format4.js.map +1 -1
  137. package/lib/storage-contracts/dist/workflow-format5.d.ts +4 -0
  138. package/lib/storage-contracts/dist/workflow-format5.d.ts.map +1 -1
  139. package/lib/storage-contracts/dist/workflow-format5.js +9 -8
  140. package/lib/storage-contracts/dist/workflow-format5.js.map +1 -1
  141. package/lib/storage-contracts/dist/workflow-graph-contracts.d.ts +2 -0
  142. package/lib/storage-contracts/dist/workflow-graph-contracts.d.ts.map +1 -1
  143. package/lib/storage-contracts/dist/workflow-graph-contracts.js.map +1 -1
  144. package/lib/storage-contracts/dist/workflow-tree-contracts.d.ts +2 -0
  145. package/lib/storage-contracts/dist/workflow-tree-contracts.d.ts.map +1 -1
  146. package/lib/storage-contracts/dist/workflow-tree-contracts.js +5 -3
  147. package/lib/storage-contracts/dist/workflow-tree-contracts.js.map +1 -1
  148. package/lib/storage-contracts/package.json +1 -1
  149. package/lib/storage-contracts/src/scheduled-workflow-contracts.ts +2 -0
  150. package/lib/storage-contracts/src/workflow-format2.ts +10 -7
  151. package/lib/storage-contracts/src/workflow-format3.ts +9 -7
  152. package/lib/storage-contracts/src/workflow-format4.ts +11 -8
  153. package/lib/storage-contracts/src/workflow-format5.ts +13 -8
  154. package/lib/storage-contracts/src/workflow-graph-contracts.ts +2 -0
  155. package/lib/storage-contracts/src/workflow-tree-contracts.ts +7 -3
  156. package/lib/storage-postgres/package.json +1 -1
  157. package/lib/storage-sql/dist/scheduled-database.js +1 -1
  158. package/lib/storage-sql/dist/scheduled-database.js.map +1 -1
  159. package/lib/storage-sql/dist/workflow-tree-database.d.ts.map +1 -1
  160. package/lib/storage-sql/dist/workflow-tree-database.js +37 -1
  161. package/lib/storage-sql/dist/workflow-tree-database.js.map +1 -1
  162. package/lib/storage-sql/package.json +1 -1
  163. package/lib/storage-sql/src/scheduled-database.ts +1 -1
  164. package/lib/storage-sql/src/workflow-tree-database.ts +15 -1
  165. package/lib/storage-sqlite/package.json +1 -1
  166. package/lib/terminal/package.json +1 -1
  167. package/lib/testing/package.json +1 -1
  168. package/lib/threads/package.json +1 -1
  169. package/lib/tools/package.json +1 -1
  170. package/lib/voice/package.json +1 -1
  171. package/lib/workflows/dist/children-definition.d.ts +5 -1
  172. package/lib/workflows/dist/children-definition.d.ts.map +1 -1
  173. package/lib/workflows/dist/children-definition.js +6 -2
  174. package/lib/workflows/dist/children-definition.js.map +1 -1
  175. package/lib/workflows/dist/children-runtime.d.ts.map +1 -1
  176. package/lib/workflows/dist/children-runtime.js +4 -3
  177. package/lib/workflows/dist/children-runtime.js.map +1 -1
  178. package/lib/workflows/dist/definition.d.ts +4 -0
  179. package/lib/workflows/dist/definition.d.ts.map +1 -1
  180. package/lib/workflows/dist/definition.js +6 -3
  181. package/lib/workflows/dist/definition.js.map +1 -1
  182. package/lib/workflows/dist/graph-definition.d.ts +5 -1
  183. package/lib/workflows/dist/graph-definition.d.ts.map +1 -1
  184. package/lib/workflows/dist/graph-definition.js +8 -4
  185. package/lib/workflows/dist/graph-definition.js.map +1 -1
  186. package/lib/workflows/dist/lifecycle-definition.d.ts +5 -1
  187. package/lib/workflows/dist/lifecycle-definition.d.ts.map +1 -1
  188. package/lib/workflows/dist/lifecycle-definition.js +5 -2
  189. package/lib/workflows/dist/lifecycle-definition.js.map +1 -1
  190. package/lib/workflows/dist/lifecycle-runtime.d.ts.map +1 -1
  191. package/lib/workflows/dist/lifecycle-runtime.js +4 -5
  192. package/lib/workflows/dist/lifecycle-runtime.js.map +1 -1
  193. package/lib/workflows/dist/node-batches.d.ts +9 -0
  194. package/lib/workflows/dist/node-batches.d.ts.map +1 -0
  195. package/lib/workflows/dist/node-batches.js +19 -0
  196. package/lib/workflows/dist/node-batches.js.map +1 -0
  197. package/lib/workflows/dist/operator-transports.d.ts +1 -0
  198. package/lib/workflows/dist/operator-transports.d.ts.map +1 -1
  199. package/lib/workflows/dist/operator-transports.js +1 -0
  200. package/lib/workflows/dist/operator-transports.js.map +1 -1
  201. package/lib/workflows/dist/runtime.d.ts.map +1 -1
  202. package/lib/workflows/dist/runtime.js +6 -7
  203. package/lib/workflows/dist/runtime.js.map +1 -1
  204. package/lib/workflows/dist/scheduled-helpers.d.ts.map +1 -1
  205. package/lib/workflows/dist/scheduled-helpers.js +3 -2
  206. package/lib/workflows/dist/scheduled-helpers.js.map +1 -1
  207. package/lib/workflows/dist/scheduled.d.ts.map +1 -1
  208. package/lib/workflows/dist/scheduled.js +2 -1
  209. package/lib/workflows/dist/scheduled.js.map +1 -1
  210. package/lib/workflows/package.json +1 -1
  211. package/lib/workflows/src/children-definition.ts +10 -3
  212. package/lib/workflows/src/children-runtime.ts +3 -2
  213. package/lib/workflows/src/definition.ts +9 -2
  214. package/lib/workflows/src/graph-definition.ts +10 -3
  215. package/lib/workflows/src/lifecycle-definition.ts +10 -3
  216. package/lib/workflows/src/lifecycle-runtime.ts +4 -4
  217. package/lib/workflows/src/node-batches.ts +21 -0
  218. package/lib/workflows/src/operator-transports.ts +3 -1
  219. package/lib/workflows/src/runtime.ts +6 -6
  220. package/lib/workflows/src/scheduled-helpers.ts +3 -2
  221. package/lib/workflows/src/scheduled.ts +2 -1
  222. package/lib/workstream/package.json +1 -1
  223. package/llms-full.txt +116 -28
  224. package/llms.txt +1 -0
  225. package/package.json +1 -1
package/docs/README.md CHANGED
@@ -27,6 +27,7 @@ Mayura is a TypeScript framework for building AI agents, typed tools and durable
27
27
  - [Framework starters](guides/framework-starters.md): six notebook applications with scoped threads, exact approvals and workers.
28
28
 
29
29
  - [Retrieval augmented generation](guides/rag.md): scoped evidence, durable ingestion, vector stores and reranking.
30
+ - [RAG production qualification](guides/rag-production.md): the stable Modal and Pinecone profile and its verified limits.
30
31
 
31
32
  ## Agents and models
32
33
 
@@ -66,10 +66,69 @@ The pieces:
66
66
  are done run together.
67
67
  - **`result`** is a binding that picks the workflow's output, checked against the `output` schema.
68
68
 
69
- The graph is fixed when you define it: at most 128 nodes, no cycles, and no code runs between steps. Logic lives in the
69
+ The graph is fixed when you define it: 128 nodes by default, no cycles, and no code runs between steps. Logic lives in the
70
70
  tools. For work whose width depends on data, a durable workflow can declare up to a fixed number of parallel slots
71
71
  (`fanOut`) and skip steps with a condition (`when`). See [Durable workflows](../guides/durable-workflows.md).
72
72
 
73
+ ## Configuring graph size
74
+
75
+ Starting in V1.2.1, `defineWorkflow`, `defineWorkflowLifecycle`, `defineWorkflowGraph` and `defineWorkflowTree` accept
76
+ an optional `maxNodes`: `false` or an integer from 1 through 512. Omission retains the 128-node admission limit. Set the bound
77
+ explicitly when defining a larger graph; it does not automatically increase to match the supplied nodes.
78
+
79
+ ```ts
80
+ import { z } from 'mayura';
81
+ import { defineWorkflowLifecycle } from 'mayura/workflows/lifecycle';
82
+
83
+ const workflow = defineWorkflowLifecycle({
84
+ id: 'wide-review', version: '1', input: z.null(), output: z.null(), maxNodes: 256,
85
+ nodes: Array.from({ length: 256 }, (_, index) => ({
86
+ kind: 'join' as const, id: `step${index}`, dependsOn: [],
87
+ })),
88
+ result: { kind: 'input', path: [] },
89
+ });
90
+ void workflow;
91
+ ```
92
+
93
+ To disable the per-graph node-count constraint through environment configuration, set
94
+ `MAYURA_WORKFLOW_DISABLE_MAX_NODES=true` (or `1`) and explicitly wire the host helper into each definition:
95
+
96
+ ```ts
97
+ import { z } from 'mayura';
98
+ import { workflowNodeLimitsFromEnv } from 'mayura/core/host';
99
+ import { defineWorkflowLifecycle } from 'mayura/workflows/lifecycle';
100
+
101
+ const workflow = defineWorkflowLifecycle({
102
+ id: 'unbounded-graph', version: '1', input: z.null(), output: z.null(),
103
+ ...workflowNodeLimitsFromEnv(process.env),
104
+ nodes: [{ kind: 'join', id: 'ready', dependsOn: [] }],
105
+ result: { kind: 'input', path: [] },
106
+ });
107
+ void workflow;
108
+ ```
109
+
110
+ The helper accepts a host-owned environment map without reading ambient globals. Unset, empty, `false` and `0`
111
+ return no override; other values are rejected. Its opt-in becomes the JSON-safe `maxNodes: false`, included in
112
+ the definition identity and stored state. Changing the environment never changes an already-pinned run. Browser
113
+ and edge hosts may pass their own configuration map, or set `maxNodes: false` explicitly. To override a numeric
114
+ setting, spread the helper **after** that setting. Roll out matching workers and readers before submitting runs.
115
+
116
+ The explicit bound becomes part of the definition digest and persisted state. Restarted workers validate the same
117
+ bound; changing it for an existing run requires the normal reviewed migration process. Definitions that omit it keep
118
+ their existing hashes and stored representation. Deploy readers, workers and clients from V1.2.1 together before
119
+ submitting larger graphs: V1.2.0 readers reject the additional metadata.
120
+
121
+ Increasing `maxNodes` does not increase spending, tool calls, output sizes, human/timer/signal counts or concurrency.
122
+ The server and client graph views allow at most four dependency edges per configured node in total (per actual node
123
+ when `maxNodes` is `false`); a node may depend
124
+ on at most `maxNodes - 1` other nodes. Existing JSON byte limits still apply, so a dense graph or large accumulated
125
+ outputs may reach a byte limit before reaching the node ceiling. Larger in-process and lifecycle graphs execute in
126
+ small batches to bound storage queues and contention.
127
+
128
+ Workflow trees still allow at most 16 children, 256 total nodes across root and children, and 128 tool nodes. A
129
+ root's `maxNodes` does not raise these tree-wide limits, and each leaf declares its own per-graph bound. Saga step
130
+ counts, loop iteration counts and graph wait-target limits are separate and retain their existing bounds.
131
+
73
132
  ## In-process or durable
74
133
 
75
134
  Mayura runs workflows in two ways.
@@ -453,7 +453,7 @@ const runtime = createWorkflowLifecycleFleetRuntime({
453
453
  - **Errors.** Every error the runtimes and stores throw is a `MayuraError` with a stable `code`. Reusing an
454
454
  idempotency key with other input, another definition version or other runtime settings is `CONFLICT`; resubmit the
455
455
  identical request to get the existing run. See [Storage](storage.md#errors).
456
- - **Limits.** At most 128 steps, 32 human steps, 64 timers and 64 signal steps per definition; prompts up to 1 KiB.
456
+ - **Limits.** 128 steps by default; V1.2.1 adds an explicit `maxNodes` up to 512 (see [graph size](../concepts/workflows.md#configuring-graph-size)). At most 32 human steps, 64 timers and 64 signal steps per definition; prompts up to 1 KiB.
457
457
  - `runUntilSettled` runs steps in the calling process. A plain runtime starts no background timers; waiting runs move
458
458
  only when something calls it again.
459
459
 
@@ -0,0 +1,29 @@
1
+ ---
2
+ title: RAG production qualification
3
+ description: Production qualification evidence and deployment boundaries for the Modal and Pinecone Loki v28 profile.
4
+ ---
5
+
6
+ ## Qualified production profile
7
+
8
+ **The Modal + Pinecone profile for Loki v28 is stable for production within its tested scope.**
9
+ The result covers the registered software-operations workload and its pinned configuration.
10
+ Other RAG profiles remain experimental. See the [RAG API guide](rag.md) for framework usage.
11
+
12
+ | Gate | Verified result |
13
+ | --- | --- |
14
+ | Document preparation | Verified embeddings reused from the registered checkpoint |
15
+ | Semantic quality and latency | All 40 Loki cases passed the source-reviewed release gate. Acquisition and ranking p95 upper bound was 4.725 s against the 5 s limit |
16
+ | Nomic acquisition load | 120/120 queries on the registered Loki catalog, 417.127 ms acquisition p95 |
17
+ | Pinecone native load | 600/600 timed queries, 45.095 ms p95, complete original request archive recovered |
18
+ | Recovery and scope security | Seven production recovery checkpoints passed, maximum 25.428 s. Scope security passed |
19
+ | Campaign cleanup | Provider evidence covers 14 owned apps and 23 sandboxes. No owned Pinecone indexes remained. The pre-existing Modal app was verified by exact ID |
20
+
21
+ The revised cleanup verifier uses retained provider observations for current owners and original
22
+ shutdown receipts for historical owners. Missing records alone provide no cleanup credit. The
23
+ original incomplete audit remains in the evidence, including its completed archive verification.
24
+ The offline release check made no provider calls and reran no queries. The original quality,
25
+ latency, recovery, security and 600-query gates still apply.
26
+
27
+ The release receipt is `compatibility/rag-modal-pinecone-loki-production-v1.json` in the
28
+ repository. The registered workload does not establish capacity, latency, or semantic quality
29
+ for other corpora, providers, models, or deployments.
@@ -5,8 +5,18 @@ description: "Scoped retrieval tools, durable content-addressed ingestion, vecto
5
5
 
6
6
  `mayura/rag` adds retrieval without giving a model a database connection or letting it choose a principal, project,
7
7
  index or filter. Host code loads documents, stages embeddings and publishes a revision. A retrieval tool returns
8
- only authorized evidence and exact citation identities. This is an experimental 1.2 surface; source, examples and
9
- regression cases pass local offline validation, including builds, documentation and package checks. Real service qualification remains outstanding; see [release validation status](release-readiness.md).
8
+ only authorized evidence and exact citation identities. The [qualified Modal + Pinecone Loki v28
9
+ profile](rag-production.md#qualified-production-profile) is stable within its tested scope. Other RAG profiles
10
+ remain experimental. See [release validation status](release-readiness.md) for the limits of the available evidence.
11
+
12
+ ## Retrieval configuration
13
+
14
+ Chunk-level fusion remains the default. Use `fusionLevel: 'document'` to combine ranks by document and
15
+ return a real passage as the citation witness. Use `distinctDocuments: true` to return at most one
16
+ passage per document. Parent context still depends on published, authorized evidence.
17
+
18
+ The in-memory vector store supports optional BM25, document-level lexical and semantic candidates,
19
+ and max or mean aggregation of document cosine scores. The default stays chunk-level.
10
20
 
11
21
  ## Architecture
12
22
 
@@ -3,13 +3,9 @@ title: "V1.2 release validation status"
3
3
  description: "Completed local and CI qualification, experimental surfaces and the checks still required before releasing Mayura V1.2."
4
4
  ---
5
5
 
6
- Stable V1.2 is prepared for review and is not yet published. The implementation and full-release safeguards are
7
- merged into `main`, whose full qualification passed on **2026-10-23** at
8
- `a9b5c565167170e4b35b5f42cf7df58a64b485e8`. The coordinated **1.2.0** version PR needs its own qualification and
9
- green main checks after merging. The reviewed 22-package set was previously published as
10
- **1.2.0-rc.1 under `next`**, through trusted publishing, with all existing `latest` tags unchanged. The local and
11
- earlier release-branch snapshots below remain historical evidence; none establishes interoperability with
12
- unqualified real external services.
6
+ **1.2.0 was published** for all 106 packages through trusted publishing. The [V1.2.1 release candidate](#release-preparation)
7
+ adds configurable workflow graph limits and marks the [Modal + Pinecone Loki v28 RAG profile](rag-production.md#qualified-production-profile)
8
+ stable for its tested scope. Other RAG profiles remain experimental. The earlier snapshots below record the 1.2.0 qualification.
13
9
 
14
10
  ## Completed CI qualification
15
11
 
@@ -104,7 +100,7 @@ concurrent builds and unit-suite load. The subsequent complete CI pass is record
104
100
  - **Authorization:** OpenFGA, Cedar, Permit.io and Oso passed offline tests and package checks. Real provider/native
105
101
  engine interoperability, deployed policies and revision consistency remain host responsibilities and unqualified
106
102
  here. Amazon Verified Permissions is outside the implemented Cedar adapter.
107
- - **RAG:** the [experimental RAG surface](rag.md) passed offline tests, including fake vector transports/SQL executors
103
+ - **RAG:** the [RAG surface](rag.md) as shipped in 1.2.0 passed offline tests, including fake vector transports/SQL executors
108
104
  and local SQLite native-memory checks. This does not establish real vector/reranker service compatibility, SQL
109
105
  query plans, deployment limits or read-after-write visibility on eventually consistent services.
110
106
  - **AG-UI:** the [experimental bounded profile](ag-ui.md) passed adapter and native server tests. The opt-in reference
@@ -122,17 +118,7 @@ sufficient evidence for that claim.
122
118
 
123
119
  ## Release preparation
124
120
 
125
- 1. Full-release publisher/recovery changes are merged and qualified on main; review these updated release records.
126
- 2. Review the prepared coordinated **1.2.0** version/changelog PR, committed without `[skip ci]`, merge through normal branch
127
- protection and require the pushed main commit's complete qualification to pass. The publisher does not write main.
128
- 3. Verify trusted publishing for all 106 packages, the protected `release` environment, tag creation permission and
129
- publishing enablement. Preserve the experimental labels and limitations above.
130
- 4. Rehearse **1.2.0** with `package_set=all` and `dry_run=true`, regenerating archives, checksums, SBOM and notes from
131
- the final source. Dry runs do not validate unexercised package trust.
132
- 5. Approve publication from that qualified main commit with `dry_run=false`. Verify all 106 versions, `latest` tags,
133
- provenance and the source-bound tag/GitHub Release. Recover partial publication from the original run's saved
134
- archives and receipt, without replaying accepted or uncertain uploads.
135
-
136
- This version PR sets source manifests and version references to **1.2.0** and prepares the changelog. It does not
137
- publish to npm, change distribution tags, create `v1.2.0` or create a stable GitHub Release. Stable publication and
138
- deployment remain outstanding; RC1 availability is not evidence of live-service or rendered browser qualification.
121
+ V1.2.1 is prepared as a coordinated patch release for `mayura` and all 105 extensions. Before publication,
122
+ require the PR and its resulting main commit to pass the full Qualification gate. Then rehearse the same main
123
+ commit with `package_set=all`, `version=1.2.1` and `dry_run=true`. Review the archives, checksums, SBOM and release
124
+ notes before approving the protected trusted-publishing job. Publish to `latest` while preserving existing `next` tags.
@@ -129,7 +129,7 @@ earlier steps; `runtime.inspect(run)` lists what executed. Cancelling does not u
129
129
  ## Good to know
130
130
 
131
131
  - A graph with an `approval: true` step is refused. Approvals need a durable workflow.
132
- - The graph has at most 128 nodes and no cycles. For data-dependent branching, let an agent decide.
132
+ - The graph has at most 128 nodes by default and no cycles. V1.2.1 adds an explicit `maxNodes` up to 512; see [graph size](../concepts/workflows.md#configuring-graph-size). For data-dependent branching, let an agent decide.
133
133
  - The same `defineWorkflow` graph can also run durably through the earlier runtimes in `mayura/workflows`, but new
134
134
  durable work should use `defineWorkflowLifecycle`; see [Durable workflows](durable-workflows.md).
135
135
 
@@ -9,7 +9,7 @@ area: "vectors"
9
9
 
10
10
  `@mayurajs/vector-pinecone` implements the [RAG contracts](../guides/rag.md). Install it alongside `mayura`.
11
11
  Construction performs no I/O, credential discovery, provisioning or background work. All operations require an
12
- explicit host permission and a nonnegative `costMicros` ceiling. Offline tests and package checks passed locally. Real service behavior remains unqualified; see [release validation status](../guides/release-readiness.md).
12
+ explicit host permission and a nonnegative `costMicros` ceiling. Offline tests and package checks passed locally. The [Modal + Pinecone Loki v28 profile](../guides/rag-production.md#qualified-production-profile) is stable for its registered workload and configuration.
13
13
 
14
14
  `pineconeVectorStore` accepts `endpoint`, `headers`, `collection`, `dimensions`, `costMicros`, `permissions`,
15
15
  `timeoutMs`, `maxConcurrent` and optional test `fetch`. Grant `rag:transport:pinecone`. Credentials go in host-owned
@@ -2,7 +2,7 @@ FROM node:24.14.1-alpine@sha256:8510330d3eb72c804231a834b1a8ebb55cb3796c3e443129
2
2
 
3
3
  ARG MAYURA_PROVENANCE
4
4
  LABEL org.opencontainers.image.title="Mayura Code Sandbox" \
5
- org.opencontainers.image.version="1.2.0" \
5
+ org.opencontainers.image.version="1.2.1" \
6
6
  org.opencontainers.image.base.name="node:24.14.1-alpine@sha256:8510330d3eb72c804231a834b1a8ebb55cb3796c3e4431297a24d246b8add4d5" \
7
7
  dev.mayura.code-sandbox.provenance="${MAYURA_PROVENANCE}"
8
8
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "type": "module",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "private": true
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "type": "module",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "private": true
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "type": "module",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "private": true
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "type": "module",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "private": true
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "type": "module",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "private": true
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "type": "module",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "private": true
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "type": "module",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "private": true
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "type": "module",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "private": true
5
5
  }
@@ -88,6 +88,7 @@ export interface OperationalWorkflowStep {
88
88
  readonly approval?: OperationalWorkflowApproval;
89
89
  }
90
90
  export interface OperationalWorkflow {
91
+ readonly maxNodes?: number | false;
91
92
  readonly format: OperationalWorkflowFormat;
92
93
  readonly definitionId: string;
93
94
  readonly definitionVersion: string;
@@ -1 +1 @@
1
- {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEnG,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,8FAA8F;IAC9F,QAAQ,CAAC,KAAK,EAAE,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/C,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,UAAU,CAAC,KAAK,CAAC;IACzC,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CACpC;AACD,MAAM,WAAW,sBAAsB;IAAG,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,GAAG,aAAa,CAAA;CAAE;AACzG,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAAC;IAA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jF,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC;IAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACjG,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAuBjC;AAED,6FAA6F;AAC7F,wBAAsB,UAAU,CAAC,OAAO,EAAE,wBAAwB,EAAE,EAAE,EAAE,MAAM,EAC5E,QAAQ,GAAE;IAAE,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,OAAO,CAAC,cAAc,CAAC,CAY3G"}
@@ -1,3 +1,4 @@
1
+ import { workflowNodeLimit } from '../../core/dist/index.js';
1
2
  import { freezeJson, jsonValue, MayuraError } from '../../core/dist/index.js';
2
3
  const identifier = /^[A-Za-z0-9][A-Za-z0-9._/-]{0,127}$/u;
3
4
  const capabilityIdentifier = /^[A-Za-z0-9][A-Za-z0-9._:/-]{0,127}$/u;
@@ -283,7 +284,14 @@ function run(value, expectedId) {
283
284
  }
284
285
  function workflow(value, expectedId) {
285
286
  const item = record(value);
286
- exact(item, ['format', 'definitionId', 'definitionVersion', 'runId', 'revision', 'status', 'nodes', 'steps']);
287
+ exact(item, ['format', 'definitionId', 'definitionVersion', 'runId', 'revision', 'status', 'nodes', 'steps', ...(Object.hasOwn(item, 'maxNodes') ? ['maxNodes'] : [])]);
288
+ let maximum;
289
+ try {
290
+ maximum = workflowNodeLimit(item['maxNodes']);
291
+ }
292
+ catch {
293
+ return fail();
294
+ }
287
295
  const format = item['format'];
288
296
  const definitionId = item['definitionId'];
289
297
  const definitionVersion = item['definitionVersion'];
@@ -291,7 +299,7 @@ function workflow(value, expectedId) {
291
299
  || typeof definitionVersion !== 'string' || !workflowVersion.test(definitionVersion) || item['runId'] !== expectedId
292
300
  || !Number.isSafeInteger(item['revision']) || item['revision'] < 1
293
301
  || !['running', 'waiting', 'paused', 'succeeded', 'failed', 'blocked', 'cancelled', 'outcome_unknown'].includes(String(item['status']))
294
- || !Array.isArray(item['nodes']) || item['nodes'].length < 1 || item['nodes'].length > 128
302
+ || !Array.isArray(item['nodes']) || item['nodes'].length < 1 || item['nodes'].length > maximum
295
303
  || !Array.isArray(item['steps']) || item['steps'].length !== item['nodes'].length)
296
304
  return fail();
297
305
  const allowedKinds = {
@@ -305,11 +313,11 @@ function workflow(value, expectedId) {
305
313
  const nodeId = source['id'];
306
314
  const kind = source['kind'];
307
315
  if (typeof nodeId !== 'string' || !workflowNodeIdentifier.test(nodeId) || nodes.has(nodeId) || !allowedKinds[format].has(kind)
308
- || !Array.isArray(source['dependsOn']) || source['dependsOn'].length > 127)
316
+ || !Array.isArray(source['dependsOn']) || source['dependsOn'].length > maximum - 1)
309
317
  return fail();
310
318
  const dependsOn = source['dependsOn'].map(value => { if (typeof value !== 'string' || !workflowNodeIdentifier.test(value))
311
319
  return fail(); return value; });
312
- if (new Set(dependsOn).size !== dependsOn.length || (edges += dependsOn.length) > 512)
320
+ if (new Set(dependsOn).size !== dependsOn.length || (edges += dependsOn.length) > (Number.isFinite(maximum) ? maximum : item['nodes'].length) * 4)
313
321
  return fail();
314
322
  nodes.set(nodeId, Object.freeze({ id: nodeId, kind, dependsOn: Object.freeze(dependsOn) }));
315
323
  }
@@ -361,7 +369,7 @@ function workflow(value, expectedId) {
361
369
  steps.set(stepId, Object.freeze({ id: stepId, kind, status, ...(childRunId === undefined ? {} : { childRunId: childRunId }),
362
370
  ...(approval === undefined ? {} : { approval }) }));
363
371
  }
364
- return Object.freeze({ format, definitionId, definitionVersion, runId: expectedId, revision: item['revision'],
372
+ return Object.freeze({ ...(item['maxNodes'] === undefined ? {} : { maxNodes: item['maxNodes'] }), format, definitionId, definitionVersion, runId: expectedId, revision: item['revision'],
365
373
  status: item['status'], nodes: Object.freeze([...nodes.values()]), steps: Object.freeze([...steps.values()]) });
366
374
  }
367
375
  /**