langgraph-api 0.17.2__tar.gz → 0.18.0__tar.gz

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 (354) hide show
  1. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/Makefile +30 -21
  2. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/PKG-INFO +5 -3
  3. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/REPORTS.md +32 -11
  4. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/capacity-ci.js +40 -3
  5. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/capacity-ci.test.js +40 -0
  6. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/continuous/uv.lock +3 -3
  7. langgraph_api-0.18.0/benchmark/cpu-probe.js +55 -0
  8. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/daily-report.js +29 -9
  9. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/daily-report.test.js +50 -0
  10. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/delta-report.js +23 -14
  11. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/delta-report.test.js +29 -6
  12. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/history.js +64 -0
  13. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/history.test.js +52 -1
  14. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/package.json +2 -2
  15. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/ramp.js +5 -0
  16. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/staircase.py +8 -0
  17. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/staircase_step_k6.js +3 -0
  18. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/yarn.lock +11 -11
  19. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/constraints.txt +1 -1
  20. langgraph_api-0.18.0/langgraph_api/__init__.py +1 -0
  21. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/api/__init__.py +12 -13
  22. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/api/a2a.py +93 -10
  23. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/api/event_streaming.py +1 -1
  24. langgraph_api-0.18.0/langgraph_api/api/mcp/__init__.py +21 -0
  25. langgraph_api-0.18.0/langgraph_api/api/mcp/_call_thread.py +220 -0
  26. langgraph_api-0.18.0/langgraph_api/api/mcp/_calls.py +20 -0
  27. langgraph_api-0.18.0/langgraph_api/api/mcp/_constants.py +25 -0
  28. langgraph_api-0.18.0/langgraph_api/api/mcp/_digest.py +11 -0
  29. langgraph_api-0.18.0/langgraph_api/api/mcp/_elicitation.py +684 -0
  30. langgraph_api-0.18.0/langgraph_api/api/mcp/_forms.py +318 -0
  31. langgraph_api-0.18.0/langgraph_api/api/mcp/_origins.py +52 -0
  32. langgraph_api-0.18.0/langgraph_api/api/mcp/_outcome.py +64 -0
  33. langgraph_api-0.18.0/langgraph_api/api/mcp/_pauses.py +276 -0
  34. langgraph_api-0.18.0/langgraph_api/api/mcp/_request_state.py +109 -0
  35. langgraph_api-0.18.0/langgraph_api/api/mcp/_routes.py +35 -0
  36. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/api/mcp/_sanitizers.py +43 -0
  37. langgraph_api-0.18.0/langgraph_api/api/mcp/_sdk.py +40 -0
  38. langgraph_api-0.18.0/langgraph_api/api/mcp/_server.py +66 -0
  39. langgraph_api-0.18.0/langgraph_api/api/mcp/_tools.py +217 -0
  40. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/api/meta.py +15 -4
  41. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/api/openapi.py +2 -3
  42. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/api/runs.py +33 -14
  43. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/api/threads.py +28 -22
  44. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/cli.py +8 -1
  45. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/config/__init__.py +52 -12
  46. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/config/schemas.py +14 -0
  47. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/cron_scheduler.py +2 -2
  48. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/errors.py +16 -0
  49. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/event_streaming/service.py +33 -20
  50. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/event_streaming/session.py +10 -0
  51. langgraph_api-0.18.0/langgraph_api/executor/__init__.py +9 -0
  52. langgraph_api-0.18.0/langgraph_api/executor/__main__.py +395 -0
  53. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/feature_flags.py +1 -0
  54. langgraph_api-0.18.0/langgraph_api/go_prometheus_metrics.py +52 -0
  55. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/graph.py +12 -2
  56. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/grpc/client.py +8 -0
  57. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/grpc/ops/__init__.py +16 -16
  58. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/grpc/ops/assistants.py +3 -0
  59. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/grpc/ops/runs.py +201 -3
  60. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/grpc/ops/threads.py +72 -22
  61. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/js/client.mts +96 -51
  62. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/js/global.d.ts +1 -0
  63. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/js/package.json +20 -20
  64. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/js/remote.py +219 -54
  65. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/js/yarn.lock +496 -546
  66. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/logging.py +7 -1
  67. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/metadata.py +12 -1
  68. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/metrics_collector.py +27 -1
  69. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/metrics_otlp.py +49 -1
  70. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/models/run.py +18 -14
  71. langgraph_api-0.18.0/langgraph_api/operator_routes.py +223 -0
  72. langgraph_api-0.18.0/langgraph_api/priority_settings.py +248 -0
  73. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/queue_entrypoint.py +18 -2
  74. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/route.py +3 -20
  75. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/schema.py +36 -0
  76. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/self_hosted_logs.py +3 -1
  77. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/self_hosted_metrics.py +92 -4
  78. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/server.py +39 -51
  79. langgraph_api-0.18.0/langgraph_api/sse.py +171 -0
  80. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/stream.py +45 -33
  81. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/stream_v2.py +1 -0
  82. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/timing/__init__.py +16 -0
  83. langgraph_api-0.18.0/langgraph_api/timing/startup.py +184 -0
  84. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/timing/timer.py +16 -2
  85. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/utils/__init__.py +4 -2
  86. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/utils/headers.py +5 -0
  87. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/validation.py +26 -5
  88. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/webhook.py +16 -0
  89. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/worker.py +29 -6
  90. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/worker_runtime.py +1 -1
  91. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/__init__.py +4 -4
  92. langgraph_api-0.18.0/langgraph_grpc_common/proto/core_api_pb2.py +298 -0
  93. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/core_api_pb2.pyi +198 -6
  94. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/core_api_pb2_grpc.py +88 -0
  95. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/core_api_pb2_grpc.pyi +24 -0
  96. langgraph_api-0.18.0/langgraph_grpc_common/proto/orchestrator_pb2.py +53 -0
  97. langgraph_api-0.17.2/langgraph_grpc_common/proto/runner_pb2.pyi → langgraph_api-0.18.0/langgraph_grpc_common/proto/orchestrator_pb2.pyi +47 -9
  98. langgraph_api-0.18.0/langgraph_grpc_common/proto/orchestrator_pb2_grpc.py +110 -0
  99. langgraph_api-0.18.0/langgraph_grpc_common/proto/orchestrator_pb2_grpc.pyi +88 -0
  100. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/store.py +25 -2
  101. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/openapi.json +97 -13
  102. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/pyproject.toml +5 -3
  103. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/uv.lock +325 -18
  104. langgraph_api-0.17.2/langgraph_api/__init__.py +0 -1
  105. langgraph_api-0.17.2/langgraph_api/api/mcp/__init__.py +0 -14
  106. langgraph_api-0.17.2/langgraph_api/api/mcp/_constants.py +0 -19
  107. langgraph_api-0.17.2/langgraph_api/api/mcp/_handlers.py +0 -415
  108. langgraph_api-0.17.2/langgraph_api/api/mcp/_models.py +0 -29
  109. langgraph_api-0.17.2/langgraph_api/api/mcp/_routes.py +0 -34
  110. langgraph_api-0.17.2/langgraph_api/runner/__init__.py +0 -10
  111. langgraph_api-0.17.2/langgraph_api/runner/__main__.py +0 -275
  112. langgraph_api-0.17.2/langgraph_api/sse.py +0 -136
  113. langgraph_api-0.17.2/langgraph_grpc_common/proto/core_api_pb2.py +0 -288
  114. langgraph_api-0.17.2/langgraph_grpc_common/proto/runner_pb2.py +0 -50
  115. langgraph_api-0.17.2/langgraph_grpc_common/proto/runner_pb2_grpc.py +0 -108
  116. langgraph_api-0.17.2/langgraph_grpc_common/proto/runner_pb2_grpc.pyi +0 -73
  117. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/.gitignore +0 -0
  118. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/LICENSE +0 -0
  119. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/README.md +0 -0
  120. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/.gitignore +0 -0
  121. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/Makefile +0 -0
  122. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/README.md +0 -0
  123. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/benchmark-runners/assistant.ts +0 -0
  124. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/benchmark-runners/benchmark-runner.ts +0 -0
  125. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/benchmark-runners/benchmark_profiles.ts +0 -0
  126. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/benchmark-runners/benchmarks.ts +0 -0
  127. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/benchmark-runners/cancel_first_second_completes.ts +0 -0
  128. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/benchmark-runners/classify-error.test.js +0 -0
  129. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/benchmark-runners/classify-error.ts +0 -0
  130. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/benchmark-runners/delta-turns-lib.test.js +0 -0
  131. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/benchmark-runners/delta-turns-lib.ts +0 -0
  132. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/benchmark-runners/delta_turns.ts +0 -0
  133. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/benchmark-runners/enqueued_runs_order.ts +0 -0
  134. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/benchmark-runners/interrupt_resume.ts +0 -0
  135. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/benchmark-runners/log-failure.ts +0 -0
  136. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/benchmark-runners/meta_workload.ts +0 -0
  137. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/benchmark-runners/store.ts +0 -0
  138. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/benchmark-runners/stream_write.ts +0 -0
  139. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/benchmark-runners/thread.ts +0 -0
  140. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/benchmark-runners/thread_runs_metadata_search.ts +0 -0
  141. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/benchmark-runners/threads_search_metadata.ts +0 -0
  142. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/benchmark-runners/types.ts +0 -0
  143. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/benchmark-runners/wait_write.ts +0 -0
  144. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/clean-cli.js +0 -0
  145. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/clean.js +0 -0
  146. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/continuous/README.md +0 -0
  147. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/continuous/pyproject.toml +0 -0
  148. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/continuous/runner.py +0 -0
  149. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/graphs.js +0 -0
  150. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/host-v2.js +0 -0
  151. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/host-v2.test.js +0 -0
  152. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/multer.test.js +0 -0
  153. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/reporting/dd_reporting.py +0 -0
  154. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/runner-descriptions.js +0 -0
  155. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/server-metrics.js +0 -0
  156. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/server-metrics.test.js +0 -0
  157. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/slack.js +0 -0
  158. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/tsconfig.json +0 -0
  159. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/update-revision.js +0 -0
  160. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/benchmark/weather.js +0 -0
  161. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/custom_store.sql +0 -0
  162. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/forbidden.txt +0 -0
  163. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/hatch_build.py +0 -0
  164. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/healthcheck.py +0 -0
  165. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph-cloud-debugging-20260210132856.zip +0 -0
  166. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/_checkpointer/__init__.py +0 -0
  167. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/_checkpointer/_adapter.py +0 -0
  168. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/_checkpointer/protocol.py +0 -0
  169. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/_factory_utils.py +0 -0
  170. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/api/a2ui.py +0 -0
  171. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/api/a2ui_schemas/README.md +0 -0
  172. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/api/a2ui_schemas/client_capabilities.json +0 -0
  173. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/api/a2ui_schemas/client_data_model.json +0 -0
  174. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/api/a2ui_schemas/client_to_server.json +0 -0
  175. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/api/a2ui_schemas/server_to_client.json +0 -0
  176. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/api/assistants.py +0 -0
  177. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/api/profile.py +0 -0
  178. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/api/store.py +0 -0
  179. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/api/ui.py +0 -0
  180. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/asgi_transport.py +0 -0
  181. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/asyncio.py +0 -0
  182. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/auth/__init__.py +0 -0
  183. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/auth/custom.py +0 -0
  184. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/auth/errors.py +0 -0
  185. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/auth/langsmith/__init__.py +0 -0
  186. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/auth/langsmith/backend.py +0 -0
  187. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/auth/langsmith/client.py +0 -0
  188. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/auth/middleware.py +0 -0
  189. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/auth/noop.py +0 -0
  190. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/auth/studio_user.py +0 -0
  191. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/beacon_data_plane_jwt_auth.py +0 -0
  192. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/cache.py +0 -0
  193. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/command.py +0 -0
  194. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/config/_parse.py +0 -0
  195. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/drain.py +0 -0
  196. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/encryption/__init__.py +0 -0
  197. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/encryption/aes_json.py +0 -0
  198. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/encryption/context.py +0 -0
  199. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/encryption/custom.py +0 -0
  200. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/encryption/middleware.py +0 -0
  201. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/encryption/shared.py +0 -0
  202. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/event_streaming/__init__.py +0 -0
  203. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/event_streaming/capabilities.py +0 -0
  204. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/event_streaming/constants.py +0 -0
  205. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/event_streaming/event_normalizers.py +0 -0
  206. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/event_streaming/namespace.py +0 -0
  207. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/event_streaming/state_normalizers.py +0 -0
  208. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/event_streaming/types.py +0 -0
  209. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/grpc/__init__.py +0 -0
  210. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/grpc/generated/core_api_pb2.pyi +0 -0
  211. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/grpc/ops/cache.py +0 -0
  212. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/grpc/ops/crons.py +0 -0
  213. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/grpc/server.py +0 -0
  214. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/grpc/servicers/__init__.py +0 -0
  215. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/grpc/servicers/checkpointer.py +0 -0
  216. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/grpc/servicers/encryption.py +0 -0
  217. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/http.py +0 -0
  218. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/http_metrics.py +0 -0
  219. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/http_metrics_utils.py +0 -0
  220. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/js/.gitignore +0 -0
  221. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/js/.prettierrc +0 -0
  222. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/js/.yarnclean +0 -0
  223. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/js/__init__.py +0 -0
  224. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/js/base.py +0 -0
  225. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/js/build.mts +0 -0
  226. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/js/client.http.mts +0 -0
  227. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/js/errors.py +0 -0
  228. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/js/schema.py +0 -0
  229. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/js/src/auth-mutations.mts +0 -0
  230. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/js/src/graph.mts +0 -0
  231. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/js/src/load.hooks.mjs +0 -0
  232. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/js/src/preload.mjs +0 -0
  233. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/js/src/utils/experiment-tracing.mts +0 -0
  234. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/js/src/utils/files.mts +0 -0
  235. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/js/src/utils/importMap.mts +0 -0
  236. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/js/src/utils/pythonSchemas.mts +0 -0
  237. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/js/src/utils/serde.mts +0 -0
  238. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/js/sse.py +0 -0
  239. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/js/traceblock.mts +0 -0
  240. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/js/tsconfig.json +0 -0
  241. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/js/ui.py +0 -0
  242. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/lc_security/__init__.py +0 -0
  243. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/lc_security/exceptions.py +0 -0
  244. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/lc_security/policy.py +0 -0
  245. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/lc_security/transport.py +0 -0
  246. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/middleware/__init__.py +0 -0
  247. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/middleware/ensure_store.py +0 -0
  248. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/middleware/http_logger.py +0 -0
  249. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/middleware/private_network.py +0 -0
  250. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/middleware/request_id.py +0 -0
  251. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/models/__init__.py +0 -0
  252. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/otel_context.py +0 -0
  253. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/patch.py +0 -0
  254. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/release_tags.py +0 -0
  255. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/serde.py +0 -0
  256. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/state.py +0 -0
  257. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/store.py +0 -0
  258. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/timing/profiler.py +0 -0
  259. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/traceblock.py +0 -0
  260. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/tracing_session.py +0 -0
  261. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/tunneling/cloudflare.py +0 -0
  262. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/utils/cache.py +0 -0
  263. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/utils/config.py +0 -0
  264. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/utils/errors.py +0 -0
  265. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/utils/extract.py +0 -0
  266. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/utils/future.py +0 -0
  267. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/utils/network.py +0 -0
  268. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/utils/retriable_client.py +0 -0
  269. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/utils/stream_codec.py +0 -0
  270. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_api/utils/uuids.py +0 -0
  271. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/__init__.py +0 -0
  272. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/checkpointer.py +0 -0
  273. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/conversion/__init__.py +0 -0
  274. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/conversion/_compat.py +0 -0
  275. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/conversion/checkpoint.py +0 -0
  276. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/conversion/config.py +0 -0
  277. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/conversion/durability.py +0 -0
  278. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/conversion/store.py +0 -0
  279. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/conversion/struct.py +0 -0
  280. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/conversion/value.py +0 -0
  281. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/checkpointer_pb2.py +0 -0
  282. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/checkpointer_pb2.pyi +0 -0
  283. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/checkpointer_pb2_grpc.py +0 -0
  284. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/checkpointer_pb2_grpc.pyi +0 -0
  285. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/encryption_pb2.py +0 -0
  286. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/encryption_pb2.pyi +0 -0
  287. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/encryption_pb2_grpc.py +0 -0
  288. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/encryption_pb2_grpc.pyi +0 -0
  289. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/engine_common_pb2.py +0 -0
  290. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/engine_common_pb2.pyi +0 -0
  291. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/engine_common_pb2_grpc.py +0 -0
  292. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/engine_common_pb2_grpc.pyi +0 -0
  293. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_cancel_run_action_pb2.py +0 -0
  294. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_cancel_run_action_pb2.pyi +0 -0
  295. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_cancel_run_action_pb2_grpc.py +0 -0
  296. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_cancel_run_action_pb2_grpc.pyi +0 -0
  297. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_control_signal_pb2.py +0 -0
  298. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_control_signal_pb2.pyi +0 -0
  299. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_control_signal_pb2_grpc.py +0 -0
  300. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_control_signal_pb2_grpc.pyi +0 -0
  301. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_cron_on_run_completed_pb2.py +0 -0
  302. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_cron_on_run_completed_pb2.pyi +0 -0
  303. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_cron_on_run_completed_pb2_grpc.py +0 -0
  304. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_cron_on_run_completed_pb2_grpc.pyi +0 -0
  305. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_durability_pb2.py +0 -0
  306. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_durability_pb2.pyi +0 -0
  307. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_durability_pb2_grpc.py +0 -0
  308. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_durability_pb2_grpc.pyi +0 -0
  309. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_multitask_strategy_pb2.py +0 -0
  310. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_multitask_strategy_pb2.pyi +0 -0
  311. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_multitask_strategy_pb2_grpc.py +0 -0
  312. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_multitask_strategy_pb2_grpc.pyi +0 -0
  313. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_run_status_pb2.py +0 -0
  314. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_run_status_pb2.pyi +0 -0
  315. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_run_status_pb2_grpc.py +0 -0
  316. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_run_status_pb2_grpc.pyi +0 -0
  317. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_stream_mode_pb2.py +0 -0
  318. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_stream_mode_pb2.pyi +0 -0
  319. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_stream_mode_pb2_grpc.py +0 -0
  320. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_stream_mode_pb2_grpc.pyi +0 -0
  321. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_thread_status_pb2.py +0 -0
  322. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_thread_status_pb2.pyi +0 -0
  323. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_thread_status_pb2_grpc.py +0 -0
  324. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_thread_status_pb2_grpc.pyi +0 -0
  325. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_thread_stream_mode_pb2.py +0 -0
  326. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_thread_stream_mode_pb2.pyi +0 -0
  327. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_thread_stream_mode_pb2_grpc.py +0 -0
  328. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/enum_thread_stream_mode_pb2_grpc.pyi +0 -0
  329. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/errors_pb2.py +0 -0
  330. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/errors_pb2.pyi +0 -0
  331. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/errors_pb2_grpc.py +0 -0
  332. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/errors_pb2_grpc.pyi +0 -0
  333. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/store_pb2.py +0 -0
  334. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/store_pb2.pyi +0 -0
  335. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/store_pb2_grpc.py +0 -0
  336. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/proto/store_pb2_grpc.pyi +0 -0
  337. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_grpc_common/serde.py +0 -0
  338. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_license/__init__.py +0 -0
  339. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_license/validation.py +0 -0
  340. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_runtime/__init__.py +0 -0
  341. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_runtime/checkpoint.py +0 -0
  342. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_runtime/database.py +0 -0
  343. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_runtime/encryption.py +0 -0
  344. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_runtime/lifespan.py +0 -0
  345. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_runtime/metrics.py +0 -0
  346. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_runtime/ops.py +0 -0
  347. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_runtime/queue.py +0 -0
  348. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_runtime/retry.py +0 -0
  349. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_runtime/routes.py +0 -0
  350. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/langgraph_runtime/store.py +0 -0
  351. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/logging.json +0 -0
  352. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/scripts/build_wheel.py +0 -0
  353. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/scripts/create_license.py +0 -0
  354. {langgraph_api-0.17.2 → langgraph_api-0.18.0}/scripts/run_a2a_tck.py +0 -0
@@ -67,6 +67,7 @@ START_TARGET ?= start-license-oss
67
67
  TEST_TARGET ?= test-license-oss
68
68
  SERVER_HEALTH_URL ?= http://127.0.0.1:9123/ok
69
69
  SERVER_START_TIMEOUT_SECS ?= 30
70
+ SERVER_STOP_TIMEOUT_SECS ?= 10
70
71
 
71
72
  ifeq ($(LANGGRAPH_HTTP),fastapi)
72
73
  HTTP_CONFIG := {"app": "./tests/graphs/my_router.py:app", "disable_mcp": false, "disable_a2a": false, "mount_prefix": "/my-cool/api"}
@@ -107,9 +108,11 @@ endif
107
108
 
108
109
  REVISION ?= $(shell git rev-parse --short HEAD)
109
110
  LANGGRAPH_ENCRYPTION ?=
111
+ # The servers' priority callback, off by default; tests/graphs/custom_priority.py to test it.
112
+ LANGGRAPH_PRIORITY ?=
110
113
 
111
114
  test-license-oss:
112
- LANGGRAPH_RUNTIME_EDITION=inmem LANGGRAPH_WEBHOOKS='$(LANGGRAPH_WEBHOOKS)' LANGGRAPH_HTTP='$(HTTP_CONFIG)' LANGGRAPH_STORE='$(STORE_CONFIG)' LANGGRAPH_CHECKPOINTER='$(CHECKPOINTER_CONFIG)' LANGGRAPH_ENCRYPTION='$(LANGGRAPH_ENCRYPTION)' REDIS_URI=_FAKE DATABASE_URI=:memory: MIGRATIONS_PATH=__inmem__ uv run pytest -v $(PYTEST_ROOT_ARGS) $(XDIST_ARGS) $(TEST)
115
+ LANGGRAPH_PRIORITY='$(LANGGRAPH_PRIORITY)' LANGGRAPH_RUNTIME_EDITION=inmem LANGGRAPH_WEBHOOKS='$(LANGGRAPH_WEBHOOKS)' LANGGRAPH_HTTP='$(HTTP_CONFIG)' LANGGRAPH_STORE='$(STORE_CONFIG)' LANGGRAPH_CHECKPOINTER='$(CHECKPOINTER_CONFIG)' LANGGRAPH_ENCRYPTION='$(LANGGRAPH_ENCRYPTION)' REDIS_URI=_FAKE DATABASE_URI=:memory: MIGRATIONS_PATH=__inmem__ uv run pytest -v $(PYTEST_ROOT_ARGS) $(XDIST_ARGS) $(TEST)
113
116
 
114
117
  test-watch-oss:
115
118
  LANGGRAPH_RUNTIME_EDITION=inmem LANGGRAPH_WEBHOOKS='$(LANGGRAPH_WEBHOOKS)' LANGGRAPH_HTTP='$(HTTP_CONFIG)' LANGGRAPH_ENCRYPTION='$(LANGGRAPH_ENCRYPTION)' REDIS_URI=_FAKE DATABASE_URI=:memory: MIGRATIONS_PATH=__inmem__ uv run --no-sync ptw . -- -x -vv --ff --capture=no $(TEST)
@@ -126,16 +129,25 @@ test-auth:
126
129
  LANGGRAPH_RUNTIME_EDITION=inmem LANGGRAPH_AUTH='{"path": "./tests/graphs/fastapi_jwt_auth.py:auth"}' REDIS_URI=_FAKE DATABASE_URI=:memory: MIGRATIONS_PATH=__inmem__ uv run pytest -v $(PYTEST_ROOT_ARGS) $(XDIST_ARGS) $(AUTH_TEST)
127
130
 
128
131
  test-with-server:
129
- @bash -euo pipefail -c '$(MAKE) $(START_TARGET) LANGGRAPH_HTTP='\''$(LANGGRAPH_HTTP)'\'' & \
130
- pid=$$!; \
132
+ @bash -euo pipefail -c 'set -m; \
133
+ $(MAKE) $(START_TARGET) LANGGRAPH_HTTP='\''$(LANGGRAPH_HTTP)'\'' & \
134
+ server_pgid=$$!; \
135
+ set +m; \
131
136
  cleanup() { \
132
- if [ -r /proc/$$pid/winpid ]; then \
133
- taskkill //F //T //PID "$$(cat /proc/$$pid/winpid)" >/dev/null 2>&1 || true; \
134
- else \
135
- kill $$pid >/dev/null 2>&1 || true; \
137
+ if [ -r /proc/$$server_pgid/winpid ]; then \
138
+ taskkill //F //T //PID "$$(cat /proc/$$server_pgid/winpid)" >/dev/null 2>&1 || true; \
139
+ return 0; \
136
140
  fi; \
141
+ kill -- -$$server_pgid 2>/dev/null || return 0; \
142
+ for i in $$(seq 1 $(SERVER_STOP_TIMEOUT_SECS)); do \
143
+ kill -0 -- -$$server_pgid 2>/dev/null || return 0; \
144
+ sleep 1; \
145
+ done; \
146
+ kill -KILL -- -$$server_pgid 2>/dev/null || true; \
137
147
  }; \
138
148
  trap cleanup EXIT; \
149
+ trap "exit 130" INT; \
150
+ trap "exit 143" TERM; \
139
151
  for i in $$(seq 1 $(SERVER_START_TIMEOUT_SECS)); do \
140
152
  if curl -sf "$(SERVER_HEALTH_URL)" >/dev/null; then \
141
153
  break; \
@@ -190,6 +202,7 @@ LANGSMITH_TRACING ?= false
190
202
  start:
191
203
  LANGGRAPH_DISABLE_FILE_PERSISTENCE=$(LANGGRAPH_DISABLE_FILE_PERSISTENCE) \
192
204
  LANGGRAPH_WEBHOOKS='$(LANGGRAPH_WEBHOOKS)' \
205
+ LANGGRAPH_PRIORITY='$(LANGGRAPH_PRIORITY)' \
193
206
  LANGGRAPH_HTTP='$(HTTP_CONFIG)' \
194
207
  LANGGRAPH_RUNTIME_EDITION=inmem \
195
208
  LANGGRAPH_AES_KEY='$(LANGGRAPH_AES_KEY)' \
@@ -373,26 +386,22 @@ start-test-a2a-tck-watch:
373
386
  "$(MAKE) start" \
374
387
  "sleep $(TCK_STARTUP_DELAY) && npx nodemon --watch langgraph_api/api/a2a.py --ext py --exec '$(MAKE) test-a2a-tck-must'"
375
388
 
376
- # MCP Conformance Test targets
377
- # Uses the official MCP conformance test suite (https://github.com/modelcontextprotocol/conformance)
378
- # Requires a running server: make start (in another terminal)
379
-
389
+ MCP_CONFORMANCE := npx @modelcontextprotocol/conformance@0.2.0-alpha.12
380
390
  MCP_CONFORMANCE_URL ?= http://localhost:9123/mcp
381
- MCP_CONFORMANCE_SUITE ?= active
382
- MCP_CONFORMANCE_BASELINE ?= ../mcp-conformance-baseline.yml
383
- MCP_STARTUP_DELAY ?= 10
391
+ MCP_CONFORMANCE_REVISIONS := 2025-11-25 2026-07-28
384
392
 
385
393
  test-mcp-conformance:
386
- npx @modelcontextprotocol/conformance@0.1.13 server \
394
+ $(MAKE) -k $(addprefix test-mcp-conformance-,$(MCP_CONFORMANCE_REVISIONS))
395
+
396
+ test-mcp-conformance-%:
397
+ $(MCP_CONFORMANCE) server \
387
398
  --url $(MCP_CONFORMANCE_URL) \
388
- --suite $(MCP_CONFORMANCE_SUITE) \
389
- --expected-failures $(MCP_CONFORMANCE_BASELINE) \
399
+ --requirements $* \
400
+ --expected-failures ../mcp-conformance-baseline-$*.yml \
390
401
  --verbose
391
402
 
392
403
  start-test-mcp-conformance:
393
- npx concurrently -k -s first \
394
- "$(MAKE) start" \
395
- "sleep $(MCP_STARTUP_DELAY) && $(MAKE) test-mcp-conformance"
404
+ $(MAKE) test-with-server TEST_TARGET=test-mcp-conformance
396
405
 
397
406
  list-mcp-scenarios:
398
- npx @modelcontextprotocol/conformance list --server
407
+ $(MCP_CONFORMANCE) list --server
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langgraph-api
3
- Version: 0.17.2
3
+ Version: 0.18.0
4
4
  Author-email: Will Fu-Hinthorn <will@langchain.dev>, Josh Rogers <josh@langchain.dev>, Parker Rule <parker@langchain.dev>
5
5
  License: Elastic-2.0
6
6
  License-File: LICENSE
@@ -13,19 +13,21 @@ Requires-Dist: grpcio-tools==1.81.1
13
13
  Requires-Dist: grpcio<1.82.0,>=1.81.0
14
14
  Requires-Dist: httptools>=0.5.0; platform_system != 'Windows'
15
15
  Requires-Dist: httpx>=0.25.0
16
- Requires-Dist: jsonschema-rs<0.45,>=0.20.0
16
+ Requires-Dist: jsonschema-rs<0.45,>=0.35.0
17
17
  Requires-Dist: langchain-core>=0.3.64
18
18
  Requires-Dist: langchain-protocol<0.1,>=0.0.18
19
19
  Requires-Dist: langgraph-checkpoint<5,>=3.0.1
20
- Requires-Dist: langgraph-runtime-inmem<0.38.0.dev0,>=0.37.0.dev0
20
+ Requires-Dist: langgraph-runtime-inmem<0.39.0.dev0,>=0.38.0.dev0
21
21
  Requires-Dist: langgraph-sdk>=0.4.4
22
22
  Requires-Dist: langgraph<2,>=0.4.10
23
23
  Requires-Dist: langsmith[otel]>=0.6.3
24
+ Requires-Dist: mcp<3,>=2.3.0
24
25
  Requires-Dist: opentelemetry-api>=0.0.1
25
26
  Requires-Dist: opentelemetry-exporter-otlp-proto-http>=0.0.1
26
27
  Requires-Dist: opentelemetry-exporter-prometheus<0.67,>=0.63b1
27
28
  Requires-Dist: opentelemetry-sdk>=0.0.1
28
29
  Requires-Dist: orjson>=3.9.7
30
+ Requires-Dist: packaging>=23.2
29
31
  Requires-Dist: prometheus-client>=0.0.1
30
32
  Requires-Dist: protobuf<7.0.0,>=6.32.1
31
33
  Requires-Dist: pyjwt>=2.15.0
@@ -16,13 +16,27 @@ in the same channel is separate and not covered here.
16
16
  - **Failed / Errors / Regressed / Bottlenecks** lines only appear when there is
17
17
  something to say, worst first.
18
18
  - **Regressed / Improved.** A figure is flagged only when it leaves its own
19
- usual range over the recent nights: the 9 before tonight for the daily and
20
- delta reports, the last 7 for capacity, where ▲ better and ▼ worse also
21
- mark the cell in the table. The usual range is half the spread
19
+ usual range over the recent nights: the 9 latest on tonight's CPUs for the
20
+ daily and delta reports, the 7 latest on tonight's CPUs for capacity, where
21
+ ▲ better and ▼ worse also mark the cell in the table. The usual range is half the spread
22
22
  between the best and worst of those nights, and never less than 10%, so a
23
23
  series that swings 40% night to night is not flagged for moving 15%.
24
24
  Flags start once five nights of history exist; until then the post says how
25
25
  many it has.
26
+ - **Machines.** Staging hands out machines with CPUs of different
27
+ generations, and the oldest (Intel Broadwell) runs the same code about 1.5x
28
+ slower than AMD Rome. After each run, 20 short runs ask the benchmark graph
29
+ which CPU its workers are on (capacity asks after every step and keeps every
30
+ worker it saw), so the check never warms a deployment before it is timed. The first line of the daily reports names it
31
+ (`cpus differ by runner` when the paths got different ones), a `New machine:`
32
+ line says when a path or tier moved since the night before, and flags only
33
+ compare nights on the same CPUs, so a night on a slower machine starts its
34
+ own baseline instead of reading as a regression. A deployment with several
35
+ workers is labeled `mostly amd rome` when at least three in four ran on it,
36
+ and by every CPU it saw otherwise, so a night with one slow worker in ten is
37
+ not compared with a night with nine; the daily and delta threads give the
38
+ counts.
39
+ Nights from before this check only compare with each other.
26
40
  - **The thread** holds the full numbers: per-run or per-cell detail and
27
41
  improvements with before and after values; the daily threads also give the
28
42
  load that ran.
@@ -47,12 +61,12 @@ server version staging is on, which is the API version in the first line.
47
61
  |---|---|---|---|
48
62
  | `wait` | `wait_write` | start a run and wait for its result (`POST /runs/wait`): run execution and checkpointing | 1,000 |
49
63
  | `stream` | `stream_write` | start a run and read its event stream to the end (`POST /runs/stream`) | 1,000 |
50
- | `search` | `threads_search` | create two threads, set their metadata, then search for them by it: database and metadata search | 300 |
64
+ | `search` | `threads_search_metadata` | create two threads, set their metadata, then search for them by it: database and metadata search | 300 |
51
65
 
52
66
  Tables use the one-word row names so they fit a phone; the lines above the
53
67
  table use the runner names.
54
68
 
55
- `threads_search` does not delete the threads it creates; the deployment's
69
+ `threads_search_metadata` does not delete the threads it creates; the deployment's
56
70
  60-minute thread TTL removes them, so each night searches a table of about
57
71
  that run's threads, not a growing history.
58
72
 
@@ -61,8 +75,8 @@ that run's threads, not a growing history.
61
75
  - `p95 s`: 95% of iterations finished within this many seconds tonight. When
62
76
  it left its usual range, the Regressed or Improved line says so, with the
63
77
  before and after.
64
- - `last 10`: p95 over the same 10 nights the flags use, oldest on the left,
65
- tonight on the right. Taller is slower. Each row has its own scale, so a full
78
+ - `last 10`: p95 over tonight and the 9 nights before it on any CPU, oldest on
79
+ the left, tonight on the right; the flags use only the nights on tonight's CPU. Taller is slower. Each row has its own scale, so a full
66
80
  bar means that runner's slowest night of the ten, not a number of seconds:
67
81
  compare a row with itself, not with the row below. The bars never stretch
68
82
  small noise to full height, so a real step stands out.
@@ -84,7 +98,11 @@ it is shown but never flagged).
84
98
 
85
99
  The daily benchmark against a second deployment that scales to zero when
86
100
  idle. Scheduled runs redeploy it first, so the first minute includes the cold
87
- start; a manual run skips the redeploy unless it is asked for. 200 users per
101
+ start; a manual run skips the redeploy unless it is asked for. Its pods must
102
+ run on their cell's application machines (host-backend's
103
+ `HOST_DEV_ZERO_REQUIRED_CELL_POOL_PROJECT_IDS`, set for this deployment and the
104
+ serverless capacity one); other scale-to-zero deployments only prefer them and
105
+ also land on Redis machines or in another cell. 200 users per
88
106
  path instead of the daily's 1,000 (300 for search), and the pass bar is p95
89
107
  under 25 s to allow for the cold start. Read it like the [daily benchmark](#daily-benchmark).
90
108
 
@@ -94,7 +112,8 @@ under 25 s to allow for the cold start. Read it like the [daily benchmark](#dail
94
112
  before it breaks its latency target, and what runs out first?
95
113
 
96
114
  **How it runs.** Two staging deployments, one dedicated and one serverless,
97
- are resized to each tier (L, M, S) in turn. For each tier and path, k6 sends a
115
+ get a new revision on scheduled runs and are then resized to each tier
116
+ (L, M, S) in turn. For each tier and path, k6 sends a
98
117
  fixed request rate regardless of how fast the server answers (an "open
99
118
  model", the way real traffic arrives), and raises it every 60 s: dedicated by
100
119
  50 req/s starting at 50, serverless by 5 starting at 10.
@@ -118,7 +137,8 @@ number.
118
137
  **Thread.** Improvements with before and after values, then per deployment
119
138
  two small tables grouped by tier: peak CPU as % of the pod's request, and pods
120
139
  at the start and end of the cell. Both cover the whole cell, including steps
121
- that failed. Last, the request rate actually served at the top step.
140
+ that failed. Then the request rate actually served at the top step, and the
141
+ CPU each tier ran on (`Machines:`, per path where a tier's paths differ).
122
142
 
123
143
  ## Delta channel
124
144
 
@@ -162,7 +182,8 @@ what the run returned.
162
182
 
163
183
  **Thread.** Turn, write, read and data at turns 350, 700, 1050 and 1400, with
164
184
  `gain`: how many times better delta is (`same` within 15%, below `1.0x` when
165
- delta is worse). Then the run's size, failures and correctness checks.
185
+ delta is worse). Then the run's size, failures, correctness checks and the
186
+ CPUs the workers ran on.
166
187
 
167
188
  ## Changing a report
168
189
 
@@ -22,9 +22,11 @@ import { RUNNERS } from "./daily-report.js";
22
22
  import {
23
23
  MIN_HISTORY_NIGHTS,
24
24
  cellKey,
25
+ cpuSignature,
25
26
  flaggedChange,
26
27
  formatMove,
27
28
  loadCapacityHistory,
29
+ sameCpu,
28
30
  } from "./history.js";
29
31
  import { runnerColumnName, runnerShortName } from "./runner-descriptions.js";
30
32
  import { cellWindow, peakCpu, podRange, summarizeServerMetrics } from "./server-metrics.js";
@@ -229,15 +231,33 @@ function indexCells(deployments, summaries) {
229
231
  return byDeployment;
230
232
  }
231
233
 
232
- function pastNights(deployment, tier, runner, summary, history) {
234
+ function sameExecutorNights(deployment, tier, runner, summary, history) {
233
235
  const executor = summary?.config?.k6Executor ?? "constant-vus";
234
236
  // Nights measured in users and nights measured in req/s are different
235
237
  // scales; only the same executor is a baseline.
236
238
  return (history[cellKey({ deploymentSlug: deployment.slug, computeTier: tier, benchmarkType: runner })] ?? [])
237
- .filter((night) => (night.executor ?? "constant-vus") === executor)
239
+ .filter((night) => (night.executor ?? "constant-vus") === executor);
240
+ }
241
+
242
+ // The baseline stays a week of nights on tonight's cpu; the workflow fetches more so a week can be found.
243
+ const PAST_NIGHTS = 7;
244
+
245
+ function pastNights(deployment, tier, runner, summary, history) {
246
+ return sameCpu(sameExecutorNights(deployment, tier, runner, summary, history), summary?.serverCpus)
247
+ .slice(0, PAST_NIGHTS)
238
248
  .map((night) => night.capacityVUs);
239
249
  }
240
250
 
251
+ /** Tonight's CPUs against the newest comparable night's, when both are known and differ. */
252
+ function newMachine(row, history) {
253
+ if (!row.summary || row.summary.error) return null;
254
+ const tonight = cpuSignature(row.summary.serverCpus);
255
+ const before = cpuSignature(sameExecutorNights(row.deployment, row.tier, row.runner, row.summary, history)[0]?.serverCpus);
256
+ return tonight && before && tonight !== before
257
+ ? `${deploymentName(row.deployment)} ${tierLabel(row.deployment, row.tier)} on ${tonight} (was ${before})`
258
+ : null;
259
+ }
260
+
241
261
  function analyseDeployment(deployment, cells, history) {
242
262
  const rows = [];
243
263
  let nights = 0;
@@ -404,12 +424,16 @@ export function formatAggregateTable(
404
424
  if (reasons.size > 0) lines.push(`*Why:* ${[...reasons].join(" · ")}`);
405
425
  if (regressed.length > 0) lines.push(`*Regressed:* ${regressed.map((row) => moveLine(row, unit)).join(" · ")}`);
406
426
  if (bottlenecks.length > 0) lines.push(`*Bottlenecks:* ${bottlenecks.join(" · ")}`);
427
+ // A tier's runners share its pods, so one line per tier.
428
+ const moved = [...new Set(rows.map((row) => newMachine(row, history)).filter(Boolean))];
429
+ if (moved.length > 0) lines.push(`*New machine:* ${moved.join(" · ")} · compared only with nights on the same cpu`);
407
430
  for (const warning of allWarnings) lines.push(`:warning: ${warning}`);
408
431
 
409
432
  for (const { deployment, rows: deploymentRows, nights } of analysed) {
410
433
  lines.push("", ...capacityTable(deployment, deploymentRows, unitFor(executorOf(deploymentRows.map((r) => r.summary).filter(Boolean)))));
411
434
  if (nights < MIN_HISTORY_NIGHTS) {
412
- lines.push(`_${nights} of ${MIN_HISTORY_NIGHTS} nights of history, no change flags yet_`);
435
+ const cpuKnown = deploymentRows.some((row) => cpuSignature(row.summary?.serverCpus));
436
+ lines.push(`_${nights} of ${MIN_HISTORY_NIGHTS} nights of history${cpuKnown ? " on this cpu" : ""}, no change flags yet_`);
413
437
  }
414
438
  }
415
439
  return lines.join("\n");
@@ -473,6 +497,17 @@ function serverTable(deployment, cells, kind) {
473
497
  return lines.join("\n");
474
498
  }
475
499
 
500
+ /** "Machines: L amd rome · M intel broadwell", per runner only where a tier's runners differ. */
501
+ function machines(deployment, cells) {
502
+ const parts = [];
503
+ for (const tier of deployment.tiers) {
504
+ const cpus = RUNNERS.map((r) => cpuSignature(cells[tier]?.[r]?.serverCpus) ?? "-");
505
+ if (cpus.every((cpu) => cpu === "-")) continue;
506
+ parts.push(`${tierLabel(deployment, tier)} ${cpus.every((cpu) => cpu === cpus[0]) ? cpus[0] : cpus.join(" / ")}`);
507
+ }
508
+ return parts.length > 0 ? `Machines: ${parts.join(" · ")}` : null;
509
+ }
510
+
476
511
  export function formatServerView(deployments, summaries) {
477
512
  const byDeployment = indexCells(deployments, summaries);
478
513
  const blocks = [];
@@ -484,6 +519,7 @@ export function formatServerView(deployments, summaries) {
484
519
  .map((tier) => `${tierLabel(deployment, tier)} ${RUNNERS.map((r) => servedRate(cells[tier]?.[r])).join(" / ")}`)
485
520
  .join(" · ");
486
521
  const servedLine = `Runs/sec actually served at the top step, as ${RUNNERS.map(runnerColumnName).join(" / ")}: ${served}`;
522
+ const machinesLine = machines(deployment, cells);
487
523
  // The served rate is k6's; the pod and CPU tables are the dashboard's, which is best effort.
488
524
  const cpu = serverTable(deployment, cells, "cpu");
489
525
  const pods = serverTable(deployment, cells, "pods");
@@ -493,6 +529,7 @@ export function formatServerView(deployments, summaries) {
493
529
  cpu ? `_CPU, % of request_\n${cpu}` : null,
494
530
  pods ? `_Pods, start → end_\n${pods}` : null,
495
531
  servedLine,
532
+ machinesLine,
496
533
  ]
497
534
  .filter(Boolean)
498
535
  .join("\n"),
@@ -440,3 +440,43 @@ test("a crashed cell's multi-line error keeps its detail on the Why line", () =>
440
440
  const table = formatAggregateTable(deployments, [buildErrorSummary({ deploymentSlug: "dep", computeTier: "TIER_A", benchmarkType: "wait_write" }, error)]);
441
441
  assert.match(table, /^\*Why:\* PATCH \/resource-tiers failed: 409 \{ "detail": "Unable to resize the deployment database\." \}$/m);
442
442
  });
443
+
444
+ const ROME = { "AuthenticAMD 143/49": 1 };
445
+ const BROADWELL = { "GenuineIntel 6/79": 1 };
446
+ const nightsOn = (serverCpus, ...values) => nights(...values).map((night) => ({ ...night, serverCpus }));
447
+
448
+ test("a cell that moved to an older cpu says so and is not compared with the faster cpu's nights", () => {
449
+ const deployments = [{ slug: "serverless", name: "Serverless", tiers: ["SERVERLESS_M"] }];
450
+ const tonight = (targetVUs, serverCpus) => ({
451
+ capacity: { targetVUs },
452
+ serverCpus,
453
+ config: { deploymentSlug: "serverless", computeTier: "SERVERLESS_M", benchmarkType: "wait_write", k6Executor: "constant-arrival-rate" },
454
+ });
455
+ const history = { "serverless|SERVERLESS_M|wait_write": nightsOn(ROME, 40, 40, 40, 40, 40) };
456
+
457
+ const moved = formatAggregateTable(deployments, [tonight(25, BROADWELL)], [], NIGHT, history);
458
+ assert.doesNotMatch(moved, /Regressed:/, "against the rome nights this would be -37%");
459
+ assert.match(moved, /^\*New machine:\* Serverless M on intel broadwell \(was amd rome\) · compared only with nights on the same cpu$/m);
460
+ assert.match(moved, /^_0 of 5 nights of history on this cpu, no change flags yet_$/m);
461
+
462
+ const stayed = formatAggregateTable(deployments, [tonight(25, ROME)], [], NIGHT, history);
463
+ assert.match(stayed, /^\*Regressed:\* Serverless M wait 40 → 25 req\/s \(-37%\)$/m, "the same drop on the same cpu is still a regression");
464
+ assert.doesNotMatch(stayed, /New machine/);
465
+ });
466
+
467
+ test("the thread names each tier's cpu, per runner only where they differ", () => {
468
+ const deployments = [{ slug: "serverless", name: "Serverless", tiers: ["SERVERLESS_L", "SERVERLESS_S"] }];
469
+ const cell = (tier, benchmarkType, serverCpus) => ({
470
+ capacity: { targetVUs: 30, successfulRunsPerSec: 29.5 },
471
+ serverCpus,
472
+ config: { deploymentSlug: "serverless", computeTier: tier, benchmarkType, k6Executor: "constant-arrival-rate" },
473
+ });
474
+ const view = formatServerView(deployments, [
475
+ cell("SERVERLESS_L", "wait_write", ROME),
476
+ cell("SERVERLESS_L", "stream_write", ROME),
477
+ cell("SERVERLESS_L", "threads_search_metadata", ROME),
478
+ cell("SERVERLESS_S", "wait_write", BROADWELL),
479
+ cell("SERVERLESS_S", "stream_write", ROME),
480
+ ]);
481
+ assert.match(view, /^Machines: L amd rome · S intel broadwell \/ amd rome \/ -$/m);
482
+ });
@@ -25,11 +25,11 @@ wheels = [
25
25
 
26
26
  [[package]]
27
27
  name = "certifi"
28
- version = "2025.11.12"
28
+ version = "2026.10.19"
29
29
  source = { registry = "https://pypi.org/simple" }
30
- sdist = { url = "https://files.pythonhosted.org/packages/a2/8c/58f469717fa48465e4a50c014a0400602d3c437d7c0c468e17ada824da3a/certifi-2025.11.12.tar.gz", hash = "sha256:d8ab5478f2ecd78af242878415affce761ca6bc54a22a27e026d7c25357c3316", size = 160538, upload-time = "2025-11-12T02:54:51.517Z" }
30
+ sdist = { url = "https://files.pythonhosted.org/packages/a6/bd/1436c50cc46699de0230fbaacc1d1de7bfec413176099949e9d5112e88f2/certifi-2026.10.19.tar.gz", hash = "sha256:035c1e85572b141bf1c3a3eff0e33a8eb74917522f2559075ff8d2fea780a1ae", size = 137598, upload-time = "2026-10-20T02:24:16.604Z" }
31
31
  wheels = [
32
- { url = "https://files.pythonhosted.org/packages/70/7d/9bc192684cea499815ff478dfcdc13835ddf401365057044fb721ec6bddb/certifi-2025.11.12-py3-none-any.whl", hash = "sha256:97de8790030bbd5c2d96b7ec782fc2f7820ef8dba6db909ccf95449f2d062d4b", size = 159438, upload-time = "2025-11-12T02:54:49.735Z" },
32
+ { url = "https://files.pythonhosted.org/packages/c4/51/29046e48f693c54e5b7412216d447a1d8362c9653148d98c02cdf65fa733/certifi-2026.10.19-py3-none-any.whl", hash = "sha256:42d35340cc5b9ba78e818ddbff0c5b1c2b779de448a340fd1b989f5fa8670e1b", size = 136464, upload-time = "2026-10-20T02:24:15.072Z" },
33
33
  ]
34
34
 
35
35
  [[package]]
@@ -0,0 +1,55 @@
1
+ /*
2
+ * Which CPUs the deployment's workers run on, asked of the benchmark graph:
3
+ * every run returns the `host` and `host_cpu` of the worker that ran it.
4
+ * Staging hands out machines of several CPU generations and the oldest runs the
5
+ * same code about 1.5x slower, so the reports only compare nights that ran on
6
+ * the same kind. Callers ask from handleSummary, after the measured scenario,
7
+ * so the probe never warms a fresh scale-to-zero deployment before its cold
8
+ * start is timed, and it sees the workers a deployment added under load.
9
+ */
10
+ import http from 'k6/http';
11
+
12
+ // A dedicated deployment spreads runs over up to ten workers; twenty runs see most of them.
13
+ const PROBE_RUNS = 20;
14
+ // After an overloaded staircase step a run waits behind the backlog; the summary should not wait with it.
15
+ const PROBE_BUDGET_MS = 30000;
16
+
17
+ /** `{ "<host>": "<vendor family/model>" }` for each worker that answered. */
18
+ export function probeServerCpus(baseUrl, apiKey) {
19
+ const headers = { 'Content-Type': 'application/json' };
20
+ if (apiKey) headers['x-api-key'] = apiKey;
21
+ const body = JSON.stringify({
22
+ assistant_id: 'benchmark',
23
+ input: {},
24
+ context: { steps: 1, expand: 1 },
25
+ config: { recursion_limit: 3 },
26
+ });
27
+ const deadline = Date.now() + PROBE_BUDGET_MS;
28
+ const cpuByHost = {};
29
+ for (let i = 0; i < PROBE_RUNS && Date.now() < deadline; i++) {
30
+ const response = http.post(`${baseUrl}/runs/wait`, body, {
31
+ headers,
32
+ timeout: Math.max(1000, deadline - Date.now()),
33
+ // Not part of the measurement, so a failed probe must not count against http_req_failed.
34
+ responseCallback: http.expectedStatuses({ min: 100, max: 599 }),
35
+ });
36
+ if (response.status !== 200) continue;
37
+ let output;
38
+ try {
39
+ output = response.json();
40
+ } catch (error) {
41
+ continue;
42
+ }
43
+ if (typeof output?.host === 'string' && typeof output?.host_cpu === 'string') {
44
+ cpuByHost[output.host] = output.host_cpu;
45
+ }
46
+ }
47
+ return cpuByHost;
48
+ }
49
+
50
+ /** `{ "<vendor family/model>": workers seen }`, or null when no worker answered. */
51
+ export function countByCpu(cpuByHost) {
52
+ const counts = {};
53
+ for (const cpu of Object.values(cpuByHost ?? {})) counts[cpu] = (counts[cpu] ?? 0) + 1;
54
+ return Object.keys(counts).length > 0 ? counts : null;
55
+ }
@@ -8,7 +8,7 @@ import { existsSync, readdirSync, readFileSync, statSync } from 'node:fs';
8
8
  import path from 'node:path';
9
9
  import { fileURLToPath } from 'node:url';
10
10
 
11
- import { MIN_HISTORY_NIGHTS, compare, flaggedChange, formatDelta, formatMove, loadDailyHistory, sparkline } from './history.js';
11
+ import { MIN_HISTORY_NIGHTS, compare, cpuSignature, describeCpus, flaggedChange, formatDelta, formatMove, loadDailyHistory, sameCpu, sparkline } from './history.js';
12
12
  import { runnerColumnName, runnerShortName } from './runner-descriptions.js';
13
13
  import { dotFor, footer, postReport } from './slack.js';
14
14
 
@@ -235,12 +235,29 @@ function failureReason(run) {
235
235
  return `step finished as \`${run.stepOutcome}\``;
236
236
  }
237
237
 
238
- /** The flag baseline stays at a week; the older nights only draw the trend. */
239
- /** Nights in the table's trend, tonight included. The flags compare against the other nights, so both mean the same window. */
238
+ /** Nights in the table's trend, tonight included. The flags compare with as many past nights, taken from those on tonight's CPU. */
240
239
  export const NIGHTS = 10;
241
240
 
242
241
  const baseline = (run) => (run.history ?? []).slice(0, NIGHTS - 1);
243
242
 
243
+ // The trend draws every night; the flags compare only nights on tonight's CPU.
244
+ const comparable = (run) => sameCpu(run.history ?? [], run.summary?.metrics?.serverCpus).slice(0, NIGHTS - 1);
245
+
246
+ const cpuOf = (run) => cpuSignature(run.summary?.metrics?.serverCpus);
247
+
248
+ /** Tonight's CPUs against the newest past night's, when both are known and differ. */
249
+ function newMachine(run) {
250
+ const tonight = cpuOf(run);
251
+ const before = cpuSignature(run.history?.[0]?.serverCpus);
252
+ return tonight && before && tonight !== before ? `${runName(run)} on ${tonight} (was ${before})` : null;
253
+ }
254
+
255
+ function cpuClause(runs) {
256
+ const known = runs.map(cpuOf).filter(Boolean);
257
+ if (known.length === 0) return '';
258
+ return known.every((cpu) => cpu === known[0]) ? ` · ${known[0]}` : ' · cpus differ by runner';
259
+ }
260
+
244
261
  function p95Of(metrics) {
245
262
  return succeeded(metrics) && isNumber(metrics?.p95Duration) ? metrics.p95Duration : null;
246
263
  }
@@ -281,7 +298,7 @@ export function buildDigest(runs, context = {}) {
281
298
  } = context;
282
299
 
283
300
  const changesByRun = new Map(
284
- runs.map((run) => [run, run.summary?.metrics ? figureChanges(run.summary.metrics, baseline(run)) : []])
301
+ runs.map((run) => [run, run.summary?.metrics ? figureChanges(run.summary.metrics, comparable(run)) : []])
285
302
  );
286
303
  const unhealthy = runs.filter((run) => !isHealthy({ stepOutcome: run.stepOutcome, metrics: run.summary?.metrics }));
287
304
  const withErrors = runs.filter((run) => hasErrors(run.summary?.metrics));
@@ -295,7 +312,7 @@ export function buildDigest(runs, context = {}) {
295
312
  if (moved.length > 0) list.push(`${runName(run)} ${moved.map((c, i) => (i === 0 ? `${c.label} ${c.move}` : `${c.label} ${roundedDelta(c.deltaPct)}`)).join(', ')}`);
296
313
  }
297
314
  }
298
- const nights = Math.max(0, ...runs.map((run) => baseline(run).length));
315
+ const nights = Math.max(0, ...runs.map((run) => comparable(run).length));
299
316
  const checked = nights >= MIN_HISTORY_NIGHTS;
300
317
  const tools = runs.map((run) => [run, toolLine(run.summary?.metrics)]).filter(([, line]) => line);
301
318
 
@@ -312,7 +329,7 @@ export function buildDigest(runs, context = {}) {
312
329
  const date = now.toLocaleDateString('en-US', { month: 'short', day: 'numeric', timeZone: 'UTC' });
313
330
  const passed = runs.length - unhealthy.length;
314
331
  const lines = [
315
- `${dot} *Daily Benchmark${titleSuffix} · ${date}*${manual ? ' · manual run' : ''}${apiVersion ? ` · API ${apiVersion}` : ''} · ${passed} of ${runs.length} passed · ${clauses.join(' · ')}`,
332
+ `${dot} *Daily Benchmark${titleSuffix} · ${date}*${manual ? ' · manual run' : ''}${apiVersion ? ` · API ${apiVersion}` : ''}${cpuClause(runs)} · ${passed} of ${runs.length} passed · ${clauses.join(' · ')}`,
316
333
  ];
317
334
  if (unhealthy.length > 0) {
318
335
  lines.push(`*Failed:* ${unhealthy.map((run) => `${runName(run)}: ${failureReason(run)}`).join(' · ')}`);
@@ -333,10 +350,12 @@ export function buildDigest(runs, context = {}) {
333
350
  );
334
351
  }
335
352
  if (regressed.length > 0) lines.push(`*Regressed:* ${regressed.join(' · ')}`);
353
+ const moved = runs.map(newMachine).filter(Boolean);
354
+ if (moved.length > 0) lines.push(`*New machine:* ${moved.join(' · ')} · compared only with nights on the same cpu`);
336
355
  for (const [run, line] of tools) lines.push(`:warning: ${runName(run)}: ${line}`);
337
356
 
338
357
  lines.push(...digestTable(runs));
339
- if (!checked) lines.push(`_${nights} of ${MIN_HISTORY_NIGHTS} nights of history, no change flags yet_`);
358
+ if (!checked) lines.push(`_${nights} of ${MIN_HISTORY_NIGHTS} nights of history${runs.some(cpuOf) ? ' on this cpu' : ''}, no change flags yet_`);
340
359
  lines.push(footer(docsAnchor, artifactUrl));
341
360
 
342
361
  return { text: lines.join('\n'), thread: [perRunDetail(runs, changesByRun, improved, loadSentence(runs))] };
@@ -365,9 +384,10 @@ function perRunDetail(runs, changesByRun, improved, load) {
365
384
  lines.push(`${runName(run)}: ${noResults(run)}`);
366
385
  continue;
367
386
  }
368
- const counts = `${count(metrics.totalRuns)} runs, ${count(metrics.failedRuns)} failed`;
387
+ const cpus = describeCpus(metrics.serverCpus);
388
+ const counts = `${count(metrics.totalRuns)} runs, ${count(metrics.failedRuns)} failed${cpus ? ` · ${cpus}` : ''}`;
369
389
  const changes = changesByRun.get(run);
370
- const nights = baseline(run).length;
390
+ const nights = comparable(run).length;
371
391
  const drift =
372
392
  changes.length > 0
373
393
  ? `vs ${nights} nights: ${changes.map((c) => `${c.label} ${formatDelta(c.deltaPct)}${c.flagged ? ` ${c.arrow}` : ''}`).join(' · ')}`
@@ -516,3 +516,53 @@ test('every table line in the channel message and the thread fits a phone', () =
516
516
  assert.ok(widestCodeLine(text) <= PHONE_WIDTH, `channel table is ${widestCodeLine(text)} wide`);
517
517
  assert.ok(widestCodeLine(thread[0]) <= PHONE_WIDTH, `thread table is ${widestCodeLine(thread[0])} wide`);
518
518
  });
519
+
520
+ const ROME = { 'AuthenticAMD 143/49': 1 };
521
+ const BROADWELL = { 'GenuineIntel 6/79': 1 };
522
+ const on = (serverCpus) => () => ({ serverCpus });
523
+
524
+ test('a slow night on an older cpu is compared only with nights on that cpu, so it is no regression', () => {
525
+ const past = [...nights([9.6, 9.9, 10.2], on(BROADWELL)), ...nights([4.5, 4.5, 4.5, 4.5, 4.5, 4.5], on(ROME))];
526
+ const tonight = { ...healthyMetrics, p95Duration: 10.1, serverCpus: BROADWELL };
527
+ const { text, thread } = buildDigest([run('wait_write', { summary: { metrics: tonight }, history: past })], base);
528
+ assert.match(text, /^🟢 \*Daily Benchmark · Aug 17\* · API 0\.14\.0 · intel broadwell · 1 of 1 passed · all quiet$/m);
529
+ assert.doesNotMatch(text, /Regressed:/, 'against the rome nights this would be +124%');
530
+ assert.match(text, /^_3 of 5 nights of history on this cpu, no change flags yet_$/m);
531
+ assert.match(thread[0], /^wait_write: 133,000 runs, 0 failed · intel broadwell · vs 3 nights: /m);
532
+ });
533
+
534
+ test('a regression on the same cpu is still flagged', () => {
535
+ const past = nights([4.5, 4.5, 4.5, 4.5, 4.5, 4.5], on(ROME));
536
+ const { text } = buildDigest([run('wait_write', { summary: { metrics: { ...healthyMetrics, p95Duration: 9.0, serverCpus: ROME } }, history: past })], base);
537
+ assert.match(text, /^\*Regressed:\* wait_write p95 4\.5 → 9\.0 s \(\+100%\)$/m);
538
+ });
539
+
540
+ test('a night on a different cpu than the night before says so instead of flagging', () => {
541
+ const past = nights([4.5, 4.5, 4.5, 4.5, 4.5, 4.5], on(ROME));
542
+ const { text } = buildDigest([run('stream_write', { summary: { metrics: { ...healthyMetrics, p95Duration: 9.0, serverCpus: BROADWELL } }, history: past })], base);
543
+ assert.match(text, /^\*New machine:\* stream_write on intel broadwell \(was amd rome\) · compared only with nights on the same cpu$/m);
544
+ assert.doesNotMatch(text, /Regressed:/);
545
+ assert.match(text, /^_0 of 5 nights of history on this cpu, no change flags yet_$/m);
546
+ assert.match(text, /^stream\s+9\.0 [▁-█]+$/m, 'the trend still draws every night');
547
+ });
548
+
549
+ test('nights before the probe keep comparing with each other', () => {
550
+ const past = nights([4.5, 4.5, 4.5, 4.5, 4.5, 4.5]);
551
+ const { text } = buildDigest([run('wait_write', { summary: { metrics: { ...healthyMetrics, p95Duration: 9.0 } }, history: past })], base);
552
+ assert.match(text, /^\*Regressed:\* wait_write p95 4\.5 → 9\.0 s/m);
553
+ assert.doesNotMatch(text, /New machine|intel|amd/);
554
+ });
555
+
556
+ test('runners on different cpus say so in the header and name their cpu in the thread', () => {
557
+ const mixed = { 'AuthenticAMD 143/49': 6, 'GenuineIntel 6/79': 4 };
558
+ const runs = [
559
+ run('wait_write', { summary: { metrics: { ...healthyMetrics, serverCpus: BROADWELL } } }),
560
+ run('stream_write', { summary: { metrics: { ...healthyMetrics, serverCpus: mixed } } }),
561
+ ];
562
+ const { text, thread } = buildDigest(runs, base);
563
+ assert.match(text, /· API 0\.14\.0 · cpus differ by runner · 2 of 2 passed/);
564
+ assert.match(thread[0], /^wait_write: 133,000 runs, 0 failed · intel broadwell · /m);
565
+ assert.match(thread[0], /^stream_write: 133,000 runs, 0 failed · 6 amd rome, 4 intel broadwell · /m);
566
+ const same = buildDigest([runs[1]], base).text;
567
+ assert.match(same, /· API 0\.14\.0 · amd rome \+ intel broadwell · 1 of 1 passed/);
568
+ });