agentloop-profiler 0.2.8__tar.gz → 0.2.10__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 (357) hide show
  1. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/PKG-INFO +6 -5
  2. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/README.md +5 -4
  3. agentloop_profiler-0.2.10/agentloop/ci_runs.py +104 -0
  4. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/client.py +21 -0
  5. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/doctor.py +16 -0
  6. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/findings.py +5 -2
  7. agentloop_profiler-0.2.10/agentloop/http_security.py +57 -0
  8. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/intervention_store.py +3 -3
  9. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/ranking.py +18 -2
  10. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/server.py +68 -2
  11. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/store.py +190 -65
  12. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/version.py +1 -1
  13. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop_profiler.egg-info/PKG-INFO +6 -5
  14. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop_profiler.egg-info/SOURCES.txt +14 -0
  15. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/dashboard/app.py +648 -265
  16. agentloop_profiler-0.2.10/dashboard/assets/agentloop-logo-dark.svg +1 -0
  17. agentloop_profiler-0.2.10/dashboard/assets/agentloop-logo-light.svg +1 -0
  18. agentloop_profiler-0.2.10/dashboard/assets/agentloop-mark.svg +1 -0
  19. agentloop_profiler-0.2.10/dashboard/theme.py +221 -0
  20. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/pyproject.toml +5 -2
  21. agentloop_profiler-0.2.10/tests/test_brand_colours.py +55 -0
  22. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_ci_evidence.py +29 -0
  23. agentloop_profiler-0.2.10/tests/test_ci_runs.py +107 -0
  24. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_dashboard_project_access.py +33 -2
  25. agentloop_profiler-0.2.10/tests/test_dashboard_queue_cache.py +76 -0
  26. agentloop_profiler-0.2.10/tests/test_dashboard_runs_dir.py +56 -0
  27. agentloop_profiler-0.2.10/tests/test_dashboard_scale.py +71 -0
  28. agentloop_profiler-0.2.10/tests/test_dashboard_theme.py +64 -0
  29. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_docs_site.py +11 -0
  30. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_doctor_autoinstrument.py +4 -0
  31. agentloop_profiler-0.2.10/tests/test_http_security.py +77 -0
  32. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_store_contract.py +81 -0
  33. agentloop_profiler-0.2.10/tests/test_store_init_cache.py +131 -0
  34. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/LICENSE +0 -0
  35. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/THIRD_PARTY_LICENSES.md +0 -0
  36. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/__init__.py +0 -0
  37. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/ablation_protocol.py +0 -0
  38. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/ablations.py +0 -0
  39. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/aggregate_cli.py +0 -0
  40. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/aggregate_stats.py +0 -0
  41. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/aggregates.py +0 -0
  42. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/audit.py +0 -0
  43. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/autoinstrument.py +0 -0
  44. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/batch_experiments.py +0 -0
  45. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/batching.py +0 -0
  46. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/budget_types.py +0 -0
  47. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/budgets.py +0 -0
  48. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/calibration.py +0 -0
  49. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/checkpoint_state.py +0 -0
  50. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/checkpoint_store.py +0 -0
  51. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/ci.py +0 -0
  52. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/cli.py +0 -0
  53. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/cli_paths.py +0 -0
  54. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/completion.py +0 -0
  55. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/completion_types.py +0 -0
  56. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/config.py +0 -0
  57. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/context_controls.py +0 -0
  58. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/context_experiments.py +0 -0
  59. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/context_types.py +0 -0
  60. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/costs.py +0 -0
  61. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/cursor_validation.py +0 -0
  62. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/decorators.py +0 -0
  63. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/demo.py +0 -0
  64. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/drift.py +0 -0
  65. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/drift_cli.py +0 -0
  66. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/drift_types.py +0 -0
  67. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/drift_windows.py +0 -0
  68. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/entrypoint.py +0 -0
  69. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/estimates.py +0 -0
  70. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/events.py +0 -0
  71. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/experiment_artifacts.py +0 -0
  72. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/experiment_observations.py +0 -0
  73. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/experiment_reports.py +0 -0
  74. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/experiment_types.py +0 -0
  75. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/experiments.py +0 -0
  76. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/exporters.py +0 -0
  77. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/finding_benchmark_types.py +0 -0
  78. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/finding_benchmarks.py +0 -0
  79. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/graph.py +0 -0
  80. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/harness.py +0 -0
  81. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/harness_bench/__init__.py +0 -0
  82. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/harness_bench/cli.py +0 -0
  83. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/harness_bench/drivers.py +0 -0
  84. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/harness_bench/offline.py +0 -0
  85. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/harness_evidence.py +0 -0
  86. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/harness_usage.py +0 -0
  87. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/html_report.py +0 -0
  88. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/improvement.py +0 -0
  89. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/improvement_cli.py +0 -0
  90. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/improvement_init.py +0 -0
  91. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/improvement_report.py +0 -0
  92. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/improvement_verifier.py +0 -0
  93. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/integrations/__init__.py +0 -0
  94. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/integrations/crewai.py +0 -0
  95. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/integrations/harbor/__init__.py +0 -0
  96. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/integrations/harbor/atif.py +0 -0
  97. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/integrations/harbor/atif_validation.py +0 -0
  98. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/integrations/harbor/cli.py +0 -0
  99. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/integrations/harbor/manifest.py +0 -0
  100. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/integrations/harbor/trial_evidence.py +0 -0
  101. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/integrations/harbor/trials.py +0 -0
  102. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/integrations/harbor/verifier.py +0 -0
  103. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/integrations/hermes.py +0 -0
  104. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/integrations/hermes_cli.py +0 -0
  105. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/integrations/hermes_recorder.py +0 -0
  106. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/integrations/langgraph.py +0 -0
  107. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/integrations/langgraph_harness.py +0 -0
  108. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/integrations/langgraph_recovery.py +0 -0
  109. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/integrations/omnigent/__init__.py +0 -0
  110. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/integrations/omnigent/cli.py +0 -0
  111. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/integrations/omnigent/evidence.py +0 -0
  112. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/integrations/omnigent/telemetry.py +0 -0
  113. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/integrations/openai.py +0 -0
  114. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/integrations/openai_agents.py +0 -0
  115. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/integrations/sdk.py +0 -0
  116. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/integrations/vercel_ai.py +0 -0
  117. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/interoperability/__init__.py +0 -0
  118. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/interoperability/artifacts.py +0 -0
  119. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/interoperability/cli.py +0 -0
  120. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/interoperability/cohort_evidence.py +0 -0
  121. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/interoperability/cohorts.py +0 -0
  122. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/interoperability/contracts.py +0 -0
  123. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/interoperability/coordination.py +0 -0
  124. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/interoperability/evidence.py +0 -0
  125. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/interoperability/otlp_jsonl.py +0 -0
  126. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/interoperability/otlp_validation.py +0 -0
  127. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/interoperability/registry.py +0 -0
  128. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/interoperability/validation.py +0 -0
  129. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/intervention_service.py +0 -0
  130. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/interventions.py +0 -0
  131. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/issues.py +0 -0
  132. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/judgment_adapters.py +0 -0
  133. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/judgment_benchmark_types.py +0 -0
  134. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/judgment_benchmarks.py +0 -0
  135. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/judgment_types.py +0 -0
  136. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/judgment_views.py +0 -0
  137. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/judgments.py +0 -0
  138. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/loop_guards.py +0 -0
  139. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/loop_types.py +0 -0
  140. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/markdown.py +0 -0
  141. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/metrics.py +0 -0
  142. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/migrations.py +0 -0
  143. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/model_routing.py +0 -0
  144. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/onboarding.py +0 -0
  145. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/operations.py +0 -0
  146. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/optimizer.py +0 -0
  147. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/otel.py +0 -0
  148. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/otel_ids.py +0 -0
  149. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/otel_semantics.py +0 -0
  150. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/parallelism.py +0 -0
  151. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/patches.py +0 -0
  152. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/plan_export.py +0 -0
  153. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/policy_promotion.py +0 -0
  154. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/promotion_evidence.py +0 -0
  155. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/promotion_types.py +0 -0
  156. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/quality.py +0 -0
  157. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/recovery_evidence.py +0 -0
  158. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/repetitions.py +0 -0
  159. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/replay.py +0 -0
  160. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/request_limits.py +0 -0
  161. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/retention.py +0 -0
  162. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/retention_types.py +0 -0
  163. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/reuse_experiments.py +0 -0
  164. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/routing_checks.py +0 -0
  165. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/routing_types.py +0 -0
  166. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/rules.py +0 -0
  167. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/runners/__init__.py +0 -0
  168. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/runners/_common.py +0 -0
  169. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/runners/claude_code.py +0 -0
  170. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/runners/codex.py +0 -0
  171. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/runtime.py +0 -0
  172. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/savings.py +0 -0
  173. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/scheduling_plan.py +0 -0
  174. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/scheduling_types.py +0 -0
  175. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/schema.py +0 -0
  176. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/semantic_rules.py +0 -0
  177. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/semantic_waste.py +0 -0
  178. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/semantic_waste_types.py +0 -0
  179. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/structural_experiments.py +0 -0
  180. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/structural_types.py +0 -0
  181. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/structured_quality.py +0 -0
  182. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/studies.py +0 -0
  183. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/study_statistics.py +0 -0
  184. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/substitution_evidence.py +0 -0
  185. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/substitution_export.py +0 -0
  186. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/substitution_reports.py +0 -0
  187. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/substitution_types.py +0 -0
  188. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/substitutions.py +0 -0
  189. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/timing.py +0 -0
  190. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/tokens.py +0 -0
  191. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/tool_scheduling.py +0 -0
  192. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/trace_sources.py +0 -0
  193. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/tracer.py +0 -0
  194. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/value.py +0 -0
  195. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/workflow_types.py +0 -0
  196. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop/workflows.py +0 -0
  197. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop_profiler.egg-info/dependency_links.txt +0 -0
  198. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop_profiler.egg-info/entry_points.txt +0 -0
  199. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop_profiler.egg-info/requires.txt +0 -0
  200. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/agentloop_profiler.egg-info/top_level.txt +0 -0
  201. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/dashboard/__init__.py +0 -0
  202. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/dashboard/access.py +0 -0
  203. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/dashboard/streamlit_compat.py +0 -0
  204. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/dashboard/trace_upload.py +0 -0
  205. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/dashboard/value_view.py +0 -0
  206. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/setup.cfg +0 -0
  207. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_ablations.py +0 -0
  208. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_aggregates.py +0 -0
  209. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_api_versioning.py +0 -0
  210. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_batch_data_pipeline.py +0 -0
  211. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_budgets.py +0 -0
  212. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_bump_version.py +0 -0
  213. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_calibration.py +0 -0
  214. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_capability_registry.py +0 -0
  215. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_checkpoint_recovery.py +0 -0
  216. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_ci_command.py +0 -0
  217. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_claude_code_runner.py +0 -0
  218. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_cli_output_paths.py +0 -0
  219. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_cli_store_commands.py +0 -0
  220. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_cli_trace_inputs.py +0 -0
  221. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_cli_upload.py +0 -0
  222. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_client.py +0 -0
  223. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_client_transport.py +0 -0
  224. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_codex_exec_runner.py +0 -0
  225. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_completion.py +0 -0
  226. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_context_controls.py +0 -0
  227. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_context_reuse_experiments.py +0 -0
  228. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_context_study.py +0 -0
  229. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_costs.py +0 -0
  230. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_crewai_integration.py +0 -0
  231. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_cursor_server.py +0 -0
  232. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_cursor_shape_validation.py +0 -0
  233. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_dashboard_input_validation.py +0 -0
  234. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_dashboard_quality.py +0 -0
  235. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_dashboard_semantic_waste.py +0 -0
  236. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_dashboard_structured_quality.py +0 -0
  237. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_dashboard_trace_upload.py +0 -0
  238. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_dashboard_value_view.py +0 -0
  239. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_dashboard_workflows.py +0 -0
  240. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_decorators.py +0 -0
  241. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_demo_cli.py +0 -0
  242. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_dependabot_config.py +0 -0
  243. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_diagnosis_api.py +0 -0
  244. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_distribution_metadata.py +0 -0
  245. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_drift.py +0 -0
  246. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_email_workflow.py +0 -0
  247. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_empirical_calibration.py +0 -0
  248. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_enforcement_conformance.py +0 -0
  249. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_estimates.py +0 -0
  250. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_evidence_workflow.py +0 -0
  251. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_experiments.py +0 -0
  252. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_exporters.py +0 -0
  253. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_external_cohorts.py +0 -0
  254. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_finding_benchmarks.py +0 -0
  255. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_finding_identity.py +0 -0
  256. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_finding_rules.py +0 -0
  257. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_first_use_cli.py +0 -0
  258. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_graph.py +0 -0
  259. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_guided_validation.py +0 -0
  260. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_guided_verifier.py +0 -0
  261. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_harbor_atif.py +0 -0
  262. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_harbor_trials.py +0 -0
  263. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_harness.py +0 -0
  264. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_harness_bench.py +0 -0
  265. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_harness_error_usage.py +0 -0
  266. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_harness_evidence.py +0 -0
  267. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_hermes_integration.py +0 -0
  268. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_hermes_replay_capture.py +0 -0
  269. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_hermes_repository_example.py +0 -0
  270. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_hermes_runtime_evidence.py +0 -0
  271. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_html_report.py +0 -0
  272. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_improvement.py +0 -0
  273. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_improvement_init.py +0 -0
  274. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_incident_triage.py +0 -0
  275. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_instrumentation_measurement.py +0 -0
  276. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_integration_conformance.py +0 -0
  277. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_interoperability_contracts.py +0 -0
  278. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_interventions.py +0 -0
  279. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_issues.py +0 -0
  280. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_judgment_adapters.py +0 -0
  281. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_judgment_benchmarks.py +0 -0
  282. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_judgment_evidence.py +0 -0
  283. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_judgment_provider_optional.py +0 -0
  284. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_judgments.py +0 -0
  285. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_langgraph_conformance.py +0 -0
  286. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_langgraph_harness.py +0 -0
  287. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_langgraph_integration.py +0 -0
  288. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_langgraph_recovery.py +0 -0
  289. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_loop_guards.py +0 -0
  290. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_markdown.py +0 -0
  291. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_markdown_exporters.py +0 -0
  292. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_marketplace_workflow.py +0 -0
  293. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_metrics.py +0 -0
  294. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_migrations.py +0 -0
  295. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_model_batching.py +0 -0
  296. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_model_routing.py +0 -0
  297. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_multiagent_coordination.py +0 -0
  298. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_non_agent_study.py +0 -0
  299. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_omnigent_telemetry.py +0 -0
  300. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_onboarding.py +0 -0
  301. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_openai_agents_integration.py +0 -0
  302. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_openai_integration.py +0 -0
  303. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_operations.py +0 -0
  304. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_optimizer.py +0 -0
  305. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_otel_ids.py +0 -0
  306. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_otel_interop.py +0 -0
  307. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_otlp_jsonl.py +0 -0
  308. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_parallelization_evidence.py +0 -0
  309. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_patch_plan.py +0 -0
  310. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_patch_source_scope.py +0 -0
  311. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_payment_review.py +0 -0
  312. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_policy_promotion.py +0 -0
  313. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_published_readme.py +0 -0
  314. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_python_support.py +0 -0
  315. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_quality.py +0 -0
  316. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_ranking.py +0 -0
  317. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_real_agent_study.py +0 -0
  318. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_real_calibration_study.py +0 -0
  319. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_real_harness_study.py +0 -0
  320. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_release_workflows.py +0 -0
  321. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_remote_cli_credentials.py +0 -0
  322. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_repetitions.py +0 -0
  323. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_replay.py +0 -0
  324. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_repository_policy_traversal.py +0 -0
  325. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_request_limits.py +0 -0
  326. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_research_example.py +0 -0
  327. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_retention.py +0 -0
  328. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_retry_recommendations.py +0 -0
  329. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_routing_study.py +0 -0
  330. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_rule_error_privacy.py +0 -0
  331. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_runtime.py +0 -0
  332. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_savings_aggregation.py +0 -0
  333. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_scheduling_study.py +0 -0
  334. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_semantic_findings.py +0 -0
  335. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_semantic_waste.py +0 -0
  336. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_server.py +0 -0
  337. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_standalone_notices.py +0 -0
  338. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_store.py +0 -0
  339. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_streaming_inventory.py +0 -0
  340. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_streamlit_compat.py +0 -0
  341. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_structural_experiments.py +0 -0
  342. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_structured_quality.py +0 -0
  343. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_structured_quality_evidence.py +0 -0
  344. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_studies.py +0 -0
  345. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_substitutions.py +0 -0
  346. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_telemetry_conformance.py +0 -0
  347. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_timing.py +0 -0
  348. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_token_provenance.py +0 -0
  349. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_tool_scheduling.py +0 -0
  350. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_trace_context.py +0 -0
  351. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_trace_failure_recording.py +0 -0
  352. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_trace_schema.py +0 -0
  353. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_usefulness_benchmark.py +0 -0
  354. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_value.py +0 -0
  355. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_vercel_ai_integration.py +0 -0
  356. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_workflow_storage.py +0 -0
  357. {agentloop_profiler-0.2.8 → agentloop_profiler-0.2.10}/tests/test_workflows.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentloop-profiler
3
- Version: 0.2.8
3
+ Version: 0.2.10
4
4
  Summary: Profiler and optimization layer for AI agent execution graphs
5
5
  Author: Dipesh Tharu Mahato
6
6
  License-Expression: Apache-2.0
@@ -484,7 +484,8 @@ docker compose -f deploy/docker-compose.yml up --detach
484
484
  CI runs this exact stack over HTTPS on every change. The
485
485
  [cloud deployment guide](https://dipeshbabu.github.io/agentloop/CLOUD_DEPLOY/)
486
486
  covers server setup, API keys, upgrades, backups, and managed platforms such as
487
- Cloud Run, App Runner, ECS and Azure Container Apps.
487
+ Cloud Run, App Runner, ECS and Azure Container Apps. Kubernetes manifests are in
488
+ `deploy/kubernetes/`; see the [Kubernetes guide](https://dipeshbabu.github.io/agentloop/KUBERNETES/).
488
489
 
489
490
  ## Dashboard and persistence
490
491
 
@@ -533,13 +534,13 @@ where the examples show `agentloop`.
533
534
  <summary>Download and verify a standalone executable</summary>
534
535
 
535
536
  Download the executable and `SHA256SUMS` from the same release. These examples use
536
- version 0.2.8. Change the version when choosing another release.
537
+ version 0.2.10. Change the version when choosing another release.
537
538
 
538
539
  Linux (Bash):
539
540
 
540
541
  ```bash
541
542
  set -euo pipefail
542
- version=0.2.8
543
+ version=0.2.10
543
544
  asset="agentloop-v${version}-linux-x86_64"
544
545
  curl --fail --location --remote-name "https://github.com/dipeshbabu/agentloop/releases/download/v${version}/${asset}"
545
546
  curl --fail --location --remote-name "https://github.com/dipeshbabu/agentloop/releases/download/v${version}/SHA256SUMS"
@@ -556,7 +557,7 @@ chmod +x "$asset"
556
557
  Windows PowerShell:
557
558
 
558
559
  ```powershell
559
- $Version = "0.2.8"
560
+ $Version = "0.2.10"
560
561
  $Asset = "agentloop-v$Version-windows-x86_64.exe"
561
562
  Invoke-WebRequest "https://github.com/dipeshbabu/agentloop/releases/download/v$Version/$Asset" -OutFile agentloop.exe
562
563
  Invoke-WebRequest "https://github.com/dipeshbabu/agentloop/releases/download/v$Version/SHA256SUMS" -OutFile SHA256SUMS
@@ -426,7 +426,8 @@ docker compose -f deploy/docker-compose.yml up --detach
426
426
  CI runs this exact stack over HTTPS on every change. The
427
427
  [cloud deployment guide](https://dipeshbabu.github.io/agentloop/CLOUD_DEPLOY/)
428
428
  covers server setup, API keys, upgrades, backups, and managed platforms such as
429
- Cloud Run, App Runner, ECS and Azure Container Apps.
429
+ Cloud Run, App Runner, ECS and Azure Container Apps. Kubernetes manifests are in
430
+ `deploy/kubernetes/`; see the [Kubernetes guide](https://dipeshbabu.github.io/agentloop/KUBERNETES/).
430
431
 
431
432
  ## Dashboard and persistence
432
433
 
@@ -475,13 +476,13 @@ where the examples show `agentloop`.
475
476
  <summary>Download and verify a standalone executable</summary>
476
477
 
477
478
  Download the executable and `SHA256SUMS` from the same release. These examples use
478
- version 0.2.8. Change the version when choosing another release.
479
+ version 0.2.10. Change the version when choosing another release.
479
480
 
480
481
  Linux (Bash):
481
482
 
482
483
  ```bash
483
484
  set -euo pipefail
484
- version=0.2.8
485
+ version=0.2.10
485
486
  asset="agentloop-v${version}-linux-x86_64"
486
487
  curl --fail --location --remote-name "https://github.com/dipeshbabu/agentloop/releases/download/v${version}/${asset}"
487
488
  curl --fail --location --remote-name "https://github.com/dipeshbabu/agentloop/releases/download/v${version}/SHA256SUMS"
@@ -498,7 +499,7 @@ chmod +x "$asset"
498
499
  Windows PowerShell:
499
500
 
500
501
  ```powershell
501
- $Version = "0.2.8"
502
+ $Version = "0.2.10"
502
503
  $Asset = "agentloop-v$Version-windows-x86_64.exe"
503
504
  Invoke-WebRequest "https://github.com/dipeshbabu/agentloop/releases/download/v$Version/$Asset" -OutFile agentloop.exe
504
505
  Invoke-WebRequest "https://github.com/dipeshbabu/agentloop/releases/download/v$Version/SHA256SUMS" -OutFile SHA256SUMS
@@ -0,0 +1,104 @@
1
+ """Group traces uploaded by CI into runs and pair each run's baseline and candidate.
2
+
3
+ The reusable comparison workflow labels uploaded traces with ``workflow_run``,
4
+ ``condition`` (``baseline`` or ``candidate``), ``commit``, ``ref`` and
5
+ ``repository``. These helpers read those labels back so a run's comparison can
6
+ be opened without picking traces by hand.
7
+ """
8
+
9
+ from __future__ import annotations
10
+
11
+ from typing import Any
12
+
13
+ from agentloop.store import MAX_PAGE_SIZE
14
+ from agentloop.tracer import AgentTrace
15
+
16
+ RUN_LABEL = "workflow_run"
17
+ CONDITION_LABEL = "condition"
18
+ CONDITIONS = ("baseline", "candidate")
19
+ CONTEXT_LABELS = ("repository", "commit", "ref")
20
+ DEFAULT_SCAN = 500
21
+
22
+
23
+ class CIRunNotFoundError(LookupError):
24
+ """The project has no complete baseline/candidate pair for a CI run."""
25
+
26
+
27
+ def _pages(store, project_id: str, *, label=None, scan: int = DEFAULT_SCAN):
28
+ cursor = None
29
+ seen = 0
30
+ while seen < scan:
31
+ page = store.list_traces_page(
32
+ project_id=project_id,
33
+ limit=min(MAX_PAGE_SIZE, scan - seen),
34
+ cursor=cursor,
35
+ label=label,
36
+ )
37
+ yield from page["items"]
38
+ seen += len(page["items"])
39
+ cursor = page["next_cursor"]
40
+ if not cursor or not page["items"]:
41
+ return
42
+
43
+
44
+ def list_ci_runs(store, project_id: str, *, scan: int = DEFAULT_SCAN) -> list[dict[str, Any]]:
45
+ """CI runs among a project's newest ``scan`` traces, newest run first.
46
+
47
+ Each run lists the newest baseline and candidate run IDs it uploaded (or
48
+ ``None``), its repository, commit and ref, and whether it can be compared.
49
+ """
50
+ if not isinstance(scan, int) or isinstance(scan, bool) or scan < 1:
51
+ raise ValueError("scan must be a positive number of traces")
52
+ runs: dict[str, dict[str, Any]] = {}
53
+ for item in _pages(store, project_id, scan=scan):
54
+ labels = item.get("labels") or {}
55
+ run = labels.get(RUN_LABEL)
56
+ if not isinstance(run, str) or not run:
57
+ continue
58
+ entry = runs.setdefault(
59
+ run,
60
+ {
61
+ RUN_LABEL: run,
62
+ **{name: None for name in CONTEXT_LABELS},
63
+ "baseline_run_id": None,
64
+ "candidate_run_id": None,
65
+ "latest_upload": item.get("created_at"),
66
+ "traces": 0,
67
+ },
68
+ )
69
+ entry["traces"] += 1
70
+ for name in CONTEXT_LABELS:
71
+ if entry[name] is None and isinstance(labels.get(name), str):
72
+ entry[name] = labels[name]
73
+ condition = labels.get(CONDITION_LABEL)
74
+ if condition in CONDITIONS and entry[f"{condition}_run_id"] is None:
75
+ # Listings are newest first, so the first match is the newest upload.
76
+ entry[f"{condition}_run_id"] = item["run_id"]
77
+ for entry in runs.values():
78
+ entry["comparable"] = bool(entry["baseline_run_id"] and entry["candidate_run_id"])
79
+ return list(runs.values())
80
+
81
+
82
+ def ci_run_pair(
83
+ store, project_id: str, workflow_run: str, *, scan: int = DEFAULT_SCAN
84
+ ) -> tuple[AgentTrace, AgentTrace]:
85
+ """Load the newest baseline and candidate traces uploaded by one CI run."""
86
+ found: dict[str, str] = {}
87
+ for item in _pages(store, project_id, label=(RUN_LABEL, workflow_run), scan=scan):
88
+ condition = (item.get("labels") or {}).get(CONDITION_LABEL)
89
+ if condition in CONDITIONS and condition not in found:
90
+ found[condition] = item["run_id"]
91
+ if len(found) == len(CONDITIONS):
92
+ break
93
+ missing = [condition for condition in CONDITIONS if condition not in found]
94
+ if missing:
95
+ raise CIRunNotFoundError(
96
+ f"CI run {workflow_run} has no {' or '.join(missing)} trace in this project"
97
+ )
98
+ traces = []
99
+ for condition in CONDITIONS:
100
+ trace = store.get_trace(run_id=found[condition], project_id=project_id)
101
+ if trace is None:
102
+ raise CIRunNotFoundError(f"The {condition} trace of CI run {workflow_run} was deleted")
103
+ traces.append(trace)
104
+ return traces[0], traces[1]
@@ -118,6 +118,27 @@ class AgentLoopClient:
118
118
  route += "?" + urllib.parse.urlencode(params)
119
119
  return self._request("GET", route)
120
120
 
121
+ def list_ci_runs(self, scan: int = 500) -> dict[str, Any]:
122
+ """CI runs among this key's project's newest uploads, by workflow_run label."""
123
+ return self._request("GET", "/ci-runs?" + urllib.parse.urlencode({"scan": scan}))
124
+
125
+ def compare_ci_run(
126
+ self,
127
+ workflow_run: str,
128
+ *,
129
+ min_latency_improvement_pct: float = 0.0,
130
+ min_cost_improvement_pct: float = 0.0,
131
+ ) -> dict[str, Any]:
132
+ """Replay comparison and PR Markdown for one CI run's baseline and candidate."""
133
+ params = urllib.parse.urlencode(
134
+ {
135
+ "min_latency_improvement_pct": min_latency_improvement_pct,
136
+ "min_cost_improvement_pct": min_cost_improvement_pct,
137
+ }
138
+ )
139
+ encoded = urllib.parse.quote(workflow_run, safe="")
140
+ return self._request("GET", f"/ci-runs/{encoded}/comparison?{params}")
141
+
121
142
  def usage_summary(self, project_id: str | None = None) -> dict[str, Any]:
122
143
  route = "/usage"
123
144
  if project_id:
@@ -112,9 +112,25 @@ def _is_local_origin(origin: str) -> bool:
112
112
 
113
113
  def _hosting_policy_checks() -> list[DoctorCheck]:
114
114
  """Checks for settings added for shared deployments (0.2.7 and newer)."""
115
+ from agentloop.http_security import API_DOCS_VARIABLE, api_docs_enabled
115
116
  from agentloop.request_limits import ENVIRONMENT_VARIABLE, max_request_bytes
116
117
 
117
118
  checks: list[DoctorCheck] = []
119
+ try:
120
+ docs = api_docs_enabled()
121
+ except ValueError as exc:
122
+ checks.append(_fail("api_docs", str(exc), f"Set {API_DOCS_VARIABLE}=false."))
123
+ else:
124
+ if docs:
125
+ checks.append(
126
+ _warn(
127
+ "api_docs",
128
+ "/docs, /redoc and /openapi.json describe every route publicly",
129
+ f"Set {API_DOCS_VARIABLE}=false on internet-facing API servers.",
130
+ )
131
+ )
132
+ else:
133
+ checks.append(_ok("api_docs", "interactive API docs disabled"))
118
134
  try:
119
135
  limit = max_request_bytes()
120
136
  except ValueError as exc:
@@ -64,8 +64,11 @@ class OptimizationFinding:
64
64
  return result
65
65
 
66
66
 
67
- def build_diagnosis(trace: Any, *, sort_by="priority", ranking_inputs=None) -> dict[str, Any]:
68
- plan = build_optimization_plan(trace)
67
+ def build_diagnosis(
68
+ trace: Any, *, sort_by="priority", ranking_inputs=None, report=None
69
+ ) -> dict[str, Any]:
70
+ """Diagnose a trace; pass ``report`` when the caller already built ``trace.report()``."""
71
+ plan = build_optimization_plan(trace, report)
69
72
  node_lookup = {node["node_id"]: node for node in plan.get("graph", {}).get("nodes", [])}
70
73
  findings = [
71
74
  _finding_from_card(card, plan, node_lookup=node_lookup)
@@ -0,0 +1,57 @@
1
+ """HTTP hardening for the AgentLoop API when no proxy adds it.
2
+
3
+ Responses can contain prompts, tool inputs and outputs, so every API response
4
+ asks clients and intermediaries not to store it or sniff its type. The
5
+ interactive schema pages can be switched off for internet-facing servers.
6
+ """
7
+
8
+ from __future__ import annotations
9
+
10
+ import os
11
+
12
+ API_DOCS_VARIABLE = "AGENTLOOP_API_DOCS"
13
+ _TRUE = {"1", "true", "yes", "on"}
14
+ _FALSE = {"0", "false", "no", "off"}
15
+
16
+ SECURITY_HEADERS: tuple[tuple[bytes, bytes], ...] = (
17
+ (b"x-content-type-options", b"nosniff"),
18
+ (b"referrer-policy", b"no-referrer"),
19
+ (b"cache-control", b"no-store"),
20
+ )
21
+
22
+
23
+ def api_docs_enabled(value: str | None = None) -> bool:
24
+ """Whether /docs, /redoc and /openapi.json are served (default: yes)."""
25
+ text = os.getenv(API_DOCS_VARIABLE) if value is None else value
26
+ if text is None or not text.strip():
27
+ return True
28
+ normalized = text.strip().lower()
29
+ if normalized in _TRUE:
30
+ return True
31
+ if normalized in _FALSE:
32
+ return False
33
+ raise ValueError(f"{API_DOCS_VARIABLE} must be true or false")
34
+
35
+
36
+ class SecurityHeadersMiddleware:
37
+ """ASGI middleware adding defensive headers unless a response sets its own."""
38
+
39
+ def __init__(self, app) -> None:
40
+ self.app = app
41
+
42
+ async def __call__(self, scope, receive, send):
43
+ if scope["type"] != "http":
44
+ await self.app(scope, receive, send)
45
+ return
46
+
47
+ async def send_with_headers(message):
48
+ if message["type"] == "http.response.start":
49
+ headers = list(message.get("headers", []))
50
+ present = {name.lower() for name, _ in headers}
51
+ headers.extend(
52
+ (name, value) for name, value in SECURITY_HEADERS if name not in present
53
+ )
54
+ message = {**message, "headers": headers}
55
+ await send(message)
56
+
57
+ await self.app(scope, receive, send_with_headers)
@@ -24,7 +24,7 @@ class InterventionStoreMixin:
24
24
  def get_finding_snapshot(
25
25
  self, run_id: str, finding_id: str, project_id: str = "default"
26
26
  ) -> dict[str, Any] | None:
27
- self.init()
27
+ self._ensure_init()
28
28
  with self._connect() as conn:
29
29
  row = conn.execute(
30
30
  self._intervention_sql(
@@ -39,7 +39,7 @@ class InterventionStoreMixin:
39
39
  def get_intervention(
40
40
  self, intervention_id: str, project_id: str = "default"
41
41
  ) -> dict[str, Any] | None:
42
- self.init()
42
+ self._ensure_init()
43
43
  with self._connect() as conn:
44
44
  row = conn.execute(
45
45
  self._intervention_sql(
@@ -57,7 +57,7 @@ class InterventionStoreMixin:
57
57
  )
58
58
  payload = validated.to_dict()
59
59
  serialized = canonical_json(payload)
60
- self.init()
60
+ self._ensure_init()
61
61
  with self._connect() as conn:
62
62
  if not self._postgres_interventions:
63
63
  conn.execute("BEGIN IMMEDIATE")
@@ -53,6 +53,10 @@ _EVIDENCE = {
53
53
  "semantic_judgment": 1,
54
54
  }
55
55
  _KEY = re.compile(r"[A-Za-z0-9_.:-]{1,96}\Z")
56
+ # A cluster's aggregate uses every member, but only the newest members are
57
+ # returned in full: each one carries its own ranking, so listing all of them
58
+ # made the queue grow by about 1.4 KB per stored finding.
59
+ MAX_LISTED_MEMBERS = 25
56
60
  ORDER = (
57
61
  "ready_to_test",
58
62
  "confidence",
@@ -506,6 +510,16 @@ def cluster_ranking(members, *, selection_cache=None):
506
510
  if not all(selection.optimal for selection in totals):
507
511
  reasons.add("opportunity_selection_approximate")
508
512
  _units(components)
513
+ # Members are already in (project, run, finding) order, and the sort is
514
+ # stable, so the listed sample does not depend on the input order.
515
+ newest = sorted(
516
+ range(len(members)),
517
+ key=lambda index: str(
518
+ members[index].get("updated_at") or members[index].get("created_at") or ""
519
+ ),
520
+ reverse=True,
521
+ )[:MAX_LISTED_MEMBERS]
522
+ listed = [(members[index], ranks[index]) for index in sorted(newest)]
509
523
  result.update(
510
524
  status="ready_to_test" if not reasons else "needs_evidence_or_review",
511
525
  reasons=sorted(reasons),
@@ -517,9 +531,11 @@ def cluster_ranking(members, *, selection_cache=None):
517
531
  "finding_id": member.get("finding_id"),
518
532
  "ranking": rank,
519
533
  }
520
- for member, rank in zip(members, ranks)
534
+ for member, rank in listed
521
535
  ],
522
- estimate_provenance=[rank["estimate_provenance"] for rank in ranks],
536
+ member_count=len(members),
537
+ members_truncated=len(members) > len(listed),
538
+ estimate_provenance=[rank["estimate_provenance"] for _, rank in listed],
523
539
  source_inputs={},
524
540
  selection={
525
541
  "optimal": all(selection.optimal for selection in totals),
@@ -7,8 +7,12 @@ from fastapi import APIRouter, Depends, FastAPI, Header, HTTPException, Query
7
7
  from fastapi.middleware.cors import CORSMiddleware
8
8
  from pydantic import BaseModel, ConfigDict, Field, field_validator
9
9
 
10
+ from agentloop.ci import build_ci_report, ci_report_to_markdown
11
+ from agentloop.ci_runs import DEFAULT_SCAN as DEFAULT_CI_SCAN
12
+ from agentloop.ci_runs import CIRunNotFoundError, ci_run_pair, list_ci_runs
10
13
  from agentloop.config import get_admin_api_key, get_api_key, get_cors_origins, require_api_key
11
14
  from agentloop.findings import build_diagnosis
15
+ from agentloop.http_security import SecurityHeadersMiddleware, api_docs_enabled
12
16
  from agentloop.intervention_service import create_stored_intervention
13
17
  from agentloop.interventions import (
14
18
  InterventionConflictError,
@@ -19,6 +23,7 @@ from agentloop.issues import build_issue_drafts
19
23
  from agentloop.optimizer import build_optimization_plan
20
24
  from agentloop.quality import QualityValidationError, build_quality_report
21
25
  from agentloop.ranking import RankingSort, sort_ranked
26
+ from agentloop.replay import ReplayGates, build_replay_report
22
27
  from agentloop.request_limits import RequestSizeLimitMiddleware, max_request_bytes
23
28
  from agentloop.schema import TraceValidationError, validate_elapsed_ms
24
29
  from agentloop.store import (
@@ -36,12 +41,16 @@ from agentloop.tracer import AgentTrace
36
41
  from agentloop.value import build_value_report
37
42
  from agentloop.version import __version__
38
43
 
44
+ _api_docs = api_docs_enabled()
39
45
  app = FastAPI(
40
46
  title="AgentLoop API",
41
47
  version=__version__,
42
48
  description="API v1 is served under /v1. The info version is the server package version. "
43
49
  "Unversioned application routes are deprecated aliases retained throughout 0.x; "
44
50
  "their earliest removal is 1.0 with release notice. Health/readiness aliases remain supported.",
51
+ docs_url="/docs" if _api_docs else None,
52
+ redoc_url="/redoc" if _api_docs else None,
53
+ openapi_url="/openapi.json" if _api_docs else None,
45
54
  )
46
55
  versioned = APIRouter(tags=["API v1"])
47
56
  legacy = APIRouter(deprecated=True, tags=["Deprecated aliases"])
@@ -60,6 +69,10 @@ if _cors_origins:
60
69
  allow_headers=["*"],
61
70
  )
62
71
 
72
+ # Added last so it is outermost: every response, including 413s and CORS
73
+ # preflights, carries the headers.
74
+ app.add_middleware(SecurityHeadersMiddleware)
75
+
63
76
 
64
77
  class TracePayload(BaseModel):
65
78
  name: str
@@ -115,10 +128,25 @@ class QualityReportPayload(BaseModel):
115
128
  return value
116
129
 
117
130
 
131
+ _STORES: dict[tuple[Any, ...], TraceStore] = {}
132
+
133
+
118
134
  def store() -> TraceStore:
135
+ """The store for the current configuration, migrated once rather than per request."""
119
136
  db = get_store()
120
- db.init()
121
- return db
137
+ key = (
138
+ type(db).__name__,
139
+ getattr(db, "path", None),
140
+ getattr(db, "dsn", None),
141
+ getattr(db, "password_file", None),
142
+ )
143
+ if key not in _STORES:
144
+ if len(_STORES) >= 16: # configuration only changes in tests
145
+ _STORES.clear()
146
+ _STORES[key] = db
147
+ cached = _STORES[key]
148
+ cached._ensure_init()
149
+ return cached
122
150
 
123
151
 
124
152
  def resolve_project(
@@ -546,6 +574,44 @@ def value_report(
546
574
  )
547
575
 
548
576
 
577
+ @versioned.get("/ci-runs")
578
+ def list_ci_runs_endpoint(
579
+ scan: int = Query(default=DEFAULT_CI_SCAN, ge=1, le=5000),
580
+ project_id: str = Depends(resolve_project),
581
+ db: TraceStore = Depends(store),
582
+ ) -> dict[str, Any]:
583
+ """CI runs among the project's newest uploads, grouped by the workflow_run label."""
584
+ return {"project_id": project_id, "runs": list_ci_runs(db, project_id, scan=scan)}
585
+
586
+
587
+ @versioned.get("/ci-runs/{workflow_run}/comparison")
588
+ def compare_ci_run(
589
+ workflow_run: str,
590
+ min_latency_improvement_pct: float = Query(default=0.0, ge=0),
591
+ min_cost_improvement_pct: float = Query(default=0.0, ge=0),
592
+ project_id: str = Depends(resolve_project),
593
+ db: TraceStore = Depends(store),
594
+ ) -> dict[str, Any]:
595
+ """Replay comparison of a CI run's newest baseline and candidate traces."""
596
+ try:
597
+ baseline, candidate = ci_run_pair(db, project_id, workflow_run)
598
+ except CIRunNotFoundError as exc:
599
+ raise HTTPException(status_code=404, detail=str(exc)) from None
600
+ gates = ReplayGates(
601
+ min_latency_improvement_pct=min_latency_improvement_pct,
602
+ min_cost_improvement_pct=min_cost_improvement_pct,
603
+ )
604
+ ci_report = build_ci_report(baseline, candidate, gates=gates)
605
+ return {
606
+ "project_id": project_id,
607
+ "workflow_run": workflow_run,
608
+ "baseline_run_id": baseline.run_id,
609
+ "candidate_run_id": candidate.run_id,
610
+ "replay": build_replay_report(baseline, candidate, gates=gates),
611
+ "markdown": ci_report_to_markdown(ci_report),
612
+ }
613
+
614
+
549
615
  @versioned.get("/usage")
550
616
  @legacy.get("/usage")
551
617
  def usage_summary(