mgmradar 0.36.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 (836) hide show
  1. mgmradar-0.36.0/.dockerignore +18 -0
  2. mgmradar-0.36.0/.env.example +298 -0
  3. mgmradar-0.36.0/.github/workflows/ci.yml +125 -0
  4. mgmradar-0.36.0/.github/workflows/deploy.yml +192 -0
  5. mgmradar-0.36.0/.github/workflows/release.yml +278 -0
  6. mgmradar-0.36.0/.gitignore +45 -0
  7. mgmradar-0.36.0/.opencode/commands/opsx-apply.md +177 -0
  8. mgmradar-0.36.0/.opencode/commands/opsx-archive.md +219 -0
  9. mgmradar-0.36.0/.opencode/commands/opsx-explore.md +165 -0
  10. mgmradar-0.36.0/.opencode/commands/opsx-propose.md +115 -0
  11. mgmradar-0.36.0/.opencode/commands/opsx-sync.md +215 -0
  12. mgmradar-0.36.0/.opencode/commands/opsx-update.md +82 -0
  13. mgmradar-0.36.0/.opencode/plugins/discord-alert-triage/.gitignore +1 -0
  14. mgmradar-0.36.0/.opencode/plugins/discord-alert-triage/README.md +108 -0
  15. mgmradar-0.36.0/.opencode/plugins/discord-alert-triage/config.example.json +13 -0
  16. mgmradar-0.36.0/.opencode/plugins/discord-alert-triage/index.js +766 -0
  17. mgmradar-0.36.0/.opencode/plugins/discord-alert-triage/package.json +7 -0
  18. mgmradar-0.36.0/.opencode/skills/commit-and-changelog/SKILL.md +288 -0
  19. mgmradar-0.36.0/.opencode/skills/openspec-apply-change/SKILL.md +185 -0
  20. mgmradar-0.36.0/.opencode/skills/openspec-archive-change/SKILL.md +180 -0
  21. mgmradar-0.36.0/.opencode/skills/openspec-explore/SKILL.md +252 -0
  22. mgmradar-0.36.0/.opencode/skills/openspec-propose/SKILL.md +123 -0
  23. mgmradar-0.36.0/.opencode/skills/openspec-sync-specs/SKILL.md +223 -0
  24. mgmradar-0.36.0/.opencode/skills/openspec-update-change/SKILL.md +90 -0
  25. mgmradar-0.36.0/AGENTS.md +15 -0
  26. mgmradar-0.36.0/ANSIBLE.md +560 -0
  27. mgmradar-0.36.0/CHANGELOG.md +1021 -0
  28. mgmradar-0.36.0/Dockerfile +27 -0
  29. mgmradar-0.36.0/PKG-INFO +258 -0
  30. mgmradar-0.36.0/README.md +218 -0
  31. mgmradar-0.36.0/ansible/.ansible-lint +5 -0
  32. mgmradar-0.36.0/ansible/ansible.cfg +11 -0
  33. mgmradar-0.36.0/ansible/group_vars/all/vars.yml.example +124 -0
  34. mgmradar-0.36.0/ansible/group_vars/all/vault.yml.example +65 -0
  35. mgmradar-0.36.0/ansible/inventory/hosts.yml.example +10 -0
  36. mgmradar-0.36.0/ansible/requirements.yml +8 -0
  37. mgmradar-0.36.0/ansible/roles/mgmradar/defaults/main.yml +180 -0
  38. mgmradar-0.36.0/ansible/roles/mgmradar/handlers/main.yml +6 -0
  39. mgmradar-0.36.0/ansible/roles/mgmradar/tasks/app.yml +269 -0
  40. mgmradar-0.36.0/ansible/roles/mgmradar/tasks/docker.yml +45 -0
  41. mgmradar-0.36.0/ansible/roles/mgmradar/tasks/firewall.yml +12 -0
  42. mgmradar-0.36.0/ansible/roles/mgmradar/tasks/housekeeping.yml +70 -0
  43. mgmradar-0.36.0/ansible/roles/mgmradar/tasks/main.yml +54 -0
  44. mgmradar-0.36.0/ansible/roles/mgmradar/tasks/tunnel.yml +77 -0
  45. mgmradar-0.36.0/ansible/roles/mgmradar/templates/cloudflared.service.j2 +18 -0
  46. mgmradar-0.36.0/ansible/roles/mgmradar/templates/env.j2 +169 -0
  47. mgmradar-0.36.0/ansible/roles/mgmradar/templates/housekeeping.env.j2 +18 -0
  48. mgmradar-0.36.0/ansible/roles/mgmradar/templates/mgmradar-housekeeping.service.j2 +13 -0
  49. mgmradar-0.36.0/ansible/roles/mgmradar/templates/mgmradar-housekeeping.timer.j2 +11 -0
  50. mgmradar-0.36.0/ansible/site.yml +7 -0
  51. mgmradar-0.36.0/config/billing.yaml +77 -0
  52. mgmradar-0.36.0/config/plans.yaml +60 -0
  53. mgmradar-0.36.0/deploy/README.md +119 -0
  54. mgmradar-0.36.0/deploy/cdn.md +62 -0
  55. mgmradar-0.36.0/deploy/compose.yaml +111 -0
  56. mgmradar-0.36.0/deploy/config/README.md +14 -0
  57. mgmradar-0.36.0/docs/accuracy.md +98 -0
  58. mgmradar-0.36.0/docs/agents.md +665 -0
  59. mgmradar-0.36.0/docs/api.md +1025 -0
  60. mgmradar-0.36.0/docs/architecture.md +113 -0
  61. mgmradar-0.36.0/docs/archive.md +124 -0
  62. mgmradar-0.36.0/docs/authentication.md +550 -0
  63. mgmradar-0.36.0/docs/billing.md +1030 -0
  64. mgmradar-0.36.0/docs/calibration.md +153 -0
  65. mgmradar-0.36.0/docs/email.md +327 -0
  66. mgmradar-0.36.0/docs/faq.md +117 -0
  67. mgmradar-0.36.0/docs/growth/README.md +84 -0
  68. mgmradar-0.36.0/docs/growth/channel-gate.md +60 -0
  69. mgmradar-0.36.0/docs/growth/checklist-2026-12.md +80 -0
  70. mgmradar-0.36.0/docs/growth/checklist-template.md +99 -0
  71. mgmradar-0.36.0/docs/growth/community-log.md +52 -0
  72. mgmradar-0.36.0/docs/growth/decision-memo.md +110 -0
  73. mgmradar-0.36.0/docs/growth/execution-log.md +60 -0
  74. mgmradar-0.36.0/docs/growth/licensing-watch.md +60 -0
  75. mgmradar-0.36.0/docs/growth/listing-audit.md +74 -0
  76. mgmradar-0.36.0/docs/growth/playbook.md +305 -0
  77. mgmradar-0.36.0/docs/growth/review-log.md +60 -0
  78. mgmradar-0.36.0/docs/growth/review-requests.md +187 -0
  79. mgmradar-0.36.0/docs/integrations/README.md +83 -0
  80. mgmradar-0.36.0/docs/integrations/home-assistant.md +161 -0
  81. mgmradar-0.36.0/docs/integrations/mcp-host.md +173 -0
  82. mgmradar-0.36.0/docs/integrations/scripts.md +262 -0
  83. mgmradar-0.36.0/docs/licensing.md +102 -0
  84. mgmradar-0.36.0/docs/mcp-discoverability.md +189 -0
  85. mgmradar-0.36.0/docs/mcp-listings.md +118 -0
  86. mgmradar-0.36.0/docs/mcp.md +622 -0
  87. mgmradar-0.36.0/docs/mgm-radar-api-icon.png +0 -0
  88. mgmradar-0.36.0/docs/nowcast-decision-criteria.md +132 -0
  89. mgmradar-0.36.0/docs/nowcast-spike.md +223 -0
  90. mgmradar-0.36.0/docs/oauth-chatgpt-spike.md +119 -0
  91. mgmradar-0.36.0/docs/oauth-consent-ux-spike.md +73 -0
  92. mgmradar-0.36.0/docs/oauth-metrics.md +126 -0
  93. mgmradar-0.36.0/docs/openapi.json +6719 -0
  94. mgmradar-0.36.0/docs/operations.md +1686 -0
  95. mgmradar-0.36.0/docs/paid-listing-decision.md +64 -0
  96. mgmradar-0.36.0/docs/performance.md +117 -0
  97. mgmradar-0.36.0/docs/pricing-decision.md +111 -0
  98. mgmradar-0.36.0/docs/pricing.md +210 -0
  99. mgmradar-0.36.0/docs/quickstart.md +122 -0
  100. mgmradar-0.36.0/docs/rain-alerts.md +293 -0
  101. mgmradar-0.36.0/docs/reference-comparison.md +133 -0
  102. mgmradar-0.36.0/docs/releasing.md +387 -0
  103. mgmradar-0.36.0/docs/retention.md +137 -0
  104. mgmradar-0.36.0/docs/routes.md +239 -0
  105. mgmradar-0.36.0/docs/runbook-rain-alerts.md +226 -0
  106. mgmradar-0.36.0/docs/self-hosting.md +214 -0
  107. mgmradar-0.36.0/docs/soak-report.md +160 -0
  108. mgmradar-0.36.0/docs/source.md +114 -0
  109. mgmradar-0.36.0/docs/validation-plan.md +103 -0
  110. mgmradar-0.36.0/docs/x402-decision.md +610 -0
  111. mgmradar-0.36.0/evals/README.md +135 -0
  112. mgmradar-0.36.0/evals/__init__.py +16 -0
  113. mgmradar-0.36.0/evals/cases.yaml +1262 -0
  114. mgmradar-0.36.0/evals/models.py +254 -0
  115. mgmradar-0.36.0/evals/providers.py +693 -0
  116. mgmradar-0.36.0/evals/runner.py +265 -0
  117. mgmradar-0.36.0/evals/scoring.py +486 -0
  118. mgmradar-0.36.0/openspec/changes/add-local-stdio-mcp-package/.openspec.yaml +2 -0
  119. mgmradar-0.36.0/openspec/changes/add-local-stdio-mcp-package/design.md +334 -0
  120. mgmradar-0.36.0/openspec/changes/add-local-stdio-mcp-package/proposal.md +87 -0
  121. mgmradar-0.36.0/openspec/changes/add-local-stdio-mcp-package/specs/local-mcp-package/spec.md +232 -0
  122. mgmradar-0.36.0/openspec/changes/add-local-stdio-mcp-package/specs/remote-mcp-server/spec.md +51 -0
  123. mgmradar-0.36.0/openspec/changes/add-local-stdio-mcp-package/specs/single-channel-documentation/spec.md +70 -0
  124. mgmradar-0.36.0/openspec/changes/add-local-stdio-mcp-package/tasks.md +78 -0
  125. mgmradar-0.36.0/openspec/changes/add-local-stdio-mcp-package/verification.md +207 -0
  126. mgmradar-0.36.0/openspec/changes/add-nowcast-api-prototype/.openspec.yaml +2 -0
  127. mgmradar-0.36.0/openspec/changes/add-nowcast-api-prototype/design.md +320 -0
  128. mgmradar-0.36.0/openspec/changes/add-nowcast-api-prototype/gate-evidence.md +108 -0
  129. mgmradar-0.36.0/openspec/changes/add-nowcast-api-prototype/proposal.md +97 -0
  130. mgmradar-0.36.0/openspec/changes/add-nowcast-api-prototype/specs/agent-readable-openapi/spec.md +63 -0
  131. mgmradar-0.36.0/openspec/changes/add-nowcast-api-prototype/specs/api-access-and-metering/spec.md +77 -0
  132. mgmradar-0.36.0/openspec/changes/add-nowcast-api-prototype/specs/nowcast-api/spec.md +460 -0
  133. mgmradar-0.36.0/openspec/changes/add-nowcast-api-prototype/specs/radar-frame-serving/spec.md +57 -0
  134. mgmradar-0.36.0/openspec/changes/add-nowcast-api-prototype/specs/single-channel-documentation/spec.md +57 -0
  135. mgmradar-0.36.0/openspec/changes/add-nowcast-api-prototype/tasks.md +42 -0
  136. mgmradar-0.36.0/openspec/changes/add-second-country-adapter/.openspec.yaml +2 -0
  137. mgmradar-0.36.0/openspec/changes/add-second-country-adapter/design.md +367 -0
  138. mgmradar-0.36.0/openspec/changes/add-second-country-adapter/proposal.md +98 -0
  139. mgmradar-0.36.0/openspec/changes/add-second-country-adapter/specs/mgm-radar-ingestion/spec.md +148 -0
  140. mgmradar-0.36.0/openspec/changes/add-second-country-adapter/specs/public-discovery-access/spec.md +119 -0
  141. mgmradar-0.36.0/openspec/changes/add-second-country-adapter/specs/radar-frame-processing/spec.md +169 -0
  142. mgmradar-0.36.0/openspec/changes/add-second-country-adapter/specs/second-country-source-adapter/spec.md +473 -0
  143. mgmradar-0.36.0/openspec/changes/add-second-country-adapter/specs/single-channel-documentation/spec.md +90 -0
  144. mgmradar-0.36.0/openspec/changes/add-second-country-adapter/tasks.md +91 -0
  145. mgmradar-0.36.0/openspec/changes/archive/2026-11-09-expose-rate-limit-quota-headers/.openspec.yaml +2 -0
  146. mgmradar-0.36.0/openspec/changes/archive/2026-11-09-expose-rate-limit-quota-headers/design.md +148 -0
  147. mgmradar-0.36.0/openspec/changes/archive/2026-11-09-expose-rate-limit-quota-headers/proposal.md +65 -0
  148. mgmradar-0.36.0/openspec/changes/archive/2026-11-09-expose-rate-limit-quota-headers/specs/api-limit-headers/spec.md +106 -0
  149. mgmradar-0.36.0/openspec/changes/archive/2026-11-09-expose-rate-limit-quota-headers/tasks.md +28 -0
  150. mgmradar-0.36.0/openspec/changes/archive/2026-11-09-gate-history-add-latest-endpoints/.openspec.yaml +2 -0
  151. mgmradar-0.36.0/openspec/changes/archive/2026-11-09-gate-history-add-latest-endpoints/design.md +177 -0
  152. mgmradar-0.36.0/openspec/changes/archive/2026-11-09-gate-history-add-latest-endpoints/proposal.md +95 -0
  153. mgmradar-0.36.0/openspec/changes/archive/2026-11-09-gate-history-add-latest-endpoints/specs/history-entitlement-gating/spec.md +179 -0
  154. mgmradar-0.36.0/openspec/changes/archive/2026-11-09-gate-history-add-latest-endpoints/specs/latest-frame-access/spec.md +79 -0
  155. mgmradar-0.36.0/openspec/changes/archive/2026-11-09-gate-history-add-latest-endpoints/tasks.md +45 -0
  156. mgmradar-0.36.0/openspec/changes/archive/2026-11-09-public-discovery-endpoints/.openspec.yaml +2 -0
  157. mgmradar-0.36.0/openspec/changes/archive/2026-11-09-public-discovery-endpoints/design.md +152 -0
  158. mgmradar-0.36.0/openspec/changes/archive/2026-11-09-public-discovery-endpoints/proposal.md +51 -0
  159. mgmradar-0.36.0/openspec/changes/archive/2026-11-09-public-discovery-endpoints/specs/public-discovery-access/spec.md +145 -0
  160. mgmradar-0.36.0/openspec/changes/archive/2026-11-09-public-discovery-endpoints/tasks.md +34 -0
  161. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-bbox-snapshot-endpoint/.openspec.yaml +2 -0
  162. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-bbox-snapshot-endpoint/README.md +3 -0
  163. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-bbox-snapshot-endpoint/design.md +210 -0
  164. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-bbox-snapshot-endpoint/proposal.md +83 -0
  165. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-bbox-snapshot-endpoint/specs/history-entitlement-gating/spec.md +38 -0
  166. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-bbox-snapshot-endpoint/specs/radar-snapshots/spec.md +222 -0
  167. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-bbox-snapshot-endpoint/tasks.md +39 -0
  168. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-idempotency-keys/.openspec.yaml +2 -0
  169. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-idempotency-keys/design.md +228 -0
  170. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-idempotency-keys/proposal.md +74 -0
  171. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-idempotency-keys/specs/request-idempotency/spec.md +191 -0
  172. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-idempotency-keys/tasks.md +46 -0
  173. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-place-resolution/.openspec.yaml +2 -0
  174. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-place-resolution/design.md +200 -0
  175. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-place-resolution/proposal.md +70 -0
  176. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-place-resolution/specs/place-resolution/spec.md +213 -0
  177. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-place-resolution/tasks.md +43 -0
  178. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-rain-summary-block/.openspec.yaml +2 -0
  179. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-rain-summary-block/README.md +3 -0
  180. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-rain-summary-block/design.md +184 -0
  181. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-rain-summary-block/proposal.md +63 -0
  182. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-rain-summary-block/specs/rain-summary/spec.md +170 -0
  183. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-rain-summary-block/tasks.md +29 -0
  184. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-openapi-agent-quality-pass/.openspec.yaml +2 -0
  185. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-openapi-agent-quality-pass/design.md +191 -0
  186. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-openapi-agent-quality-pass/proposal.md +61 -0
  187. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-openapi-agent-quality-pass/specs/agent-readable-openapi/spec.md +147 -0
  188. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-openapi-agent-quality-pass/tasks.md +45 -0
  189. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-spike-optical-flow-nowcast/.openspec.yaml +2 -0
  190. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-spike-optical-flow-nowcast/design.md +291 -0
  191. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-spike-optical-flow-nowcast/proposal.md +75 -0
  192. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-spike-optical-flow-nowcast/specs/nowcast-skill-evaluation/spec.md +205 -0
  193. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-spike-optical-flow-nowcast/tasks.md +46 -0
  194. mgmradar-0.36.0/openspec/changes/archive/2026-11-10-spike-optical-flow-nowcast/validation.md +35 -0
  195. mgmradar-0.36.0/openspec/changes/archive/2026-11-11-add-remote-mcp-server/.openspec.yaml +2 -0
  196. mgmradar-0.36.0/openspec/changes/archive/2026-11-11-add-remote-mcp-server/design.md +270 -0
  197. mgmradar-0.36.0/openspec/changes/archive/2026-11-11-add-remote-mcp-server/proposal.md +99 -0
  198. mgmradar-0.36.0/openspec/changes/archive/2026-11-11-add-remote-mcp-server/specs/remote-mcp-server/spec.md +436 -0
  199. mgmradar-0.36.0/openspec/changes/archive/2026-11-11-add-remote-mcp-server/tasks.md +59 -0
  200. mgmradar-0.36.0/openspec/changes/archive/2026-11-18-add-transactional-email/.openspec.yaml +2 -0
  201. mgmradar-0.36.0/openspec/changes/archive/2026-11-18-add-transactional-email/design.md +84 -0
  202. mgmradar-0.36.0/openspec/changes/archive/2026-11-18-add-transactional-email/proposal.md +56 -0
  203. mgmradar-0.36.0/openspec/changes/archive/2026-11-18-add-transactional-email/specs/transactional-email/spec.md +254 -0
  204. mgmradar-0.36.0/openspec/changes/archive/2026-11-18-add-transactional-email/tasks.md +48 -0
  205. mgmradar-0.36.0/openspec/changes/archive/2026-11-19-add-customers-subscriptions-api-keys/.openspec.yaml +2 -0
  206. mgmradar-0.36.0/openspec/changes/archive/2026-11-19-add-customers-subscriptions-api-keys/design.md +70 -0
  207. mgmradar-0.36.0/openspec/changes/archive/2026-11-19-add-customers-subscriptions-api-keys/proposal.md +88 -0
  208. mgmradar-0.36.0/openspec/changes/archive/2026-11-19-add-customers-subscriptions-api-keys/specs/api-limit-headers/spec.md +29 -0
  209. mgmradar-0.36.0/openspec/changes/archive/2026-11-19-add-customers-subscriptions-api-keys/specs/customer-subscriptions/spec.md +73 -0
  210. mgmradar-0.36.0/openspec/changes/archive/2026-11-19-add-customers-subscriptions-api-keys/specs/subscription-usage/spec.md +69 -0
  211. mgmradar-0.36.0/openspec/changes/archive/2026-11-19-add-customers-subscriptions-api-keys/tasks.md +62 -0
  212. mgmradar-0.36.0/openspec/changes/archive/2026-11-19-tighten-customer-subscription-invariants/.openspec.yaml +2 -0
  213. mgmradar-0.36.0/openspec/changes/archive/2026-11-19-tighten-customer-subscription-invariants/design.md +103 -0
  214. mgmradar-0.36.0/openspec/changes/archive/2026-11-19-tighten-customer-subscription-invariants/proposal.md +59 -0
  215. mgmradar-0.36.0/openspec/changes/archive/2026-11-19-tighten-customer-subscription-invariants/specs/customer-subscriptions/spec.md +84 -0
  216. mgmradar-0.36.0/openspec/changes/archive/2026-11-19-tighten-customer-subscription-invariants/specs/subscription-usage/spec.md +25 -0
  217. mgmradar-0.36.0/openspec/changes/archive/2026-11-19-tighten-customer-subscription-invariants/tasks.md +18 -0
  218. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-admin-cli/.openspec.yaml +2 -0
  219. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-admin-cli/design.md +196 -0
  220. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-admin-cli/proposal.md +76 -0
  221. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-admin-cli/specs/admin-cli/spec.md +324 -0
  222. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-admin-cli/specs/ops-customer-management/spec.md +66 -0
  223. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-admin-cli/tasks.md +54 -0
  224. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-api-key-lifecycle/.openspec.yaml +2 -0
  225. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-api-key-lifecycle/README.md +3 -0
  226. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-api-key-lifecycle/design.md +247 -0
  227. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-api-key-lifecycle/proposal.md +88 -0
  228. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-api-key-lifecycle/specs/api-credential-resolution/spec.md +47 -0
  229. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-api-key-lifecycle/specs/api-key-lifecycle/spec.md +228 -0
  230. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-api-key-lifecycle/specs/customer-subscriptions/spec.md +71 -0
  231. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-api-key-lifecycle/specs/ops-customer-management/spec.md +42 -0
  232. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-api-key-lifecycle/specs/transactional-email/spec.md +46 -0
  233. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-api-key-lifecycle/tasks.md +73 -0
  234. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-mcp-ops-visibility/.openspec.yaml +2 -0
  235. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-mcp-ops-visibility/design.md +257 -0
  236. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-mcp-ops-visibility/proposal.md +98 -0
  237. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-mcp-ops-visibility/specs/mcp-ops-visibility/spec.md +327 -0
  238. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-mcp-ops-visibility/tasks.md +51 -0
  239. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-ops-customer-management/.openspec.yaml +2 -0
  240. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-ops-customer-management/design.md +191 -0
  241. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-ops-customer-management/proposal.md +82 -0
  242. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-ops-customer-management/specs/customer-subscriptions/spec.md +73 -0
  243. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-ops-customer-management/specs/ops-customer-management/spec.md +327 -0
  244. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-ops-customer-management/tasks.md +67 -0
  245. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-portal-magic-link-auth/.openspec.yaml +2 -0
  246. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-portal-magic-link-auth/design.md +311 -0
  247. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-portal-magic-link-auth/proposal.md +70 -0
  248. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-portal-magic-link-auth/specs/portal-auth/spec.md +389 -0
  249. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-portal-magic-link-auth/tasks.md +76 -0
  250. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-bootstrap-mgm-radar-api/.openspec.yaml +4 -0
  251. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-bootstrap-mgm-radar-api/README.md +3 -0
  252. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-bootstrap-mgm-radar-api/design.md +238 -0
  253. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-bootstrap-mgm-radar-api/proposal.md +43 -0
  254. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-bootstrap-mgm-radar-api/specs/api-access-and-metering/spec.md +118 -0
  255. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-bootstrap-mgm-radar-api/specs/mgm-radar-ingestion/spec.md +102 -0
  256. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-bootstrap-mgm-radar-api/specs/radar-frame-processing/spec.md +110 -0
  257. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-bootstrap-mgm-radar-api/specs/radar-frame-serving/spec.md +147 -0
  258. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-bootstrap-mgm-radar-api/specs/radar-history-archive/spec.md +129 -0
  259. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-bootstrap-mgm-radar-api/tasks.md +102 -0
  260. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-remove-rapidapi-channel/.openspec.yaml +2 -0
  261. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-remove-rapidapi-channel/design.md +202 -0
  262. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-remove-rapidapi-channel/proposal.md +97 -0
  263. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-remove-rapidapi-channel/specs/agent-readable-openapi/spec.md +33 -0
  264. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-remove-rapidapi-channel/specs/api-access-and-metering/spec.md +59 -0
  265. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-remove-rapidapi-channel/specs/api-credential-resolution/spec.md +22 -0
  266. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-remove-rapidapi-channel/specs/customer-subscriptions/spec.md +25 -0
  267. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-remove-rapidapi-channel/specs/history-entitlement-gating/spec.md +29 -0
  268. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-remove-rapidapi-channel/specs/latest-frame-access/spec.md +28 -0
  269. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-remove-rapidapi-channel/specs/public-discovery-access/spec.md +72 -0
  270. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-remove-rapidapi-channel/specs/remote-mcp-server/spec.md +57 -0
  271. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-remove-rapidapi-channel/tasks.md +114 -0
  272. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-resolve-api-credentials/.openspec.yaml +2 -0
  273. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-resolve-api-credentials/design.md +129 -0
  274. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-resolve-api-credentials/proposal.md +47 -0
  275. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-resolve-api-credentials/specs/api-credential-resolution/spec.md +232 -0
  276. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-resolve-api-credentials/specs/api-limit-headers/spec.md +62 -0
  277. mgmradar-0.36.0/openspec/changes/archive/2026-11-20-resolve-api-credentials/tasks.md +60 -0
  278. mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-billing-reconciliation/.openspec.yaml +3 -0
  279. mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-billing-reconciliation/README.md +3 -0
  280. mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-billing-reconciliation/design.md +560 -0
  281. mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-billing-reconciliation/proposal.md +81 -0
  282. mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-billing-reconciliation/specs/billing-reconciliation/spec.md +382 -0
  283. mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-billing-reconciliation/specs/billing-webhooks/spec.md +38 -0
  284. mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-billing-reconciliation/tasks.md +119 -0
  285. mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-polar-billing-adapter/.openspec.yaml +2 -0
  286. mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-polar-billing-adapter/design.md +398 -0
  287. mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-polar-billing-adapter/proposal.md +101 -0
  288. mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-polar-billing-adapter/specs/billing-checkout/spec.md +133 -0
  289. mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-polar-billing-adapter/specs/billing-provider-boundary/spec.md +165 -0
  290. mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-polar-billing-adapter/specs/billing-webhooks/spec.md +261 -0
  291. mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-polar-billing-adapter/specs/portal-auth/spec.md +36 -0
  292. mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-polar-billing-adapter/tasks.md +78 -0
  293. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-add-lifecycle-notifications/.openspec.yaml +2 -0
  294. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-add-lifecycle-notifications/design.md +484 -0
  295. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-add-lifecycle-notifications/proposal.md +88 -0
  296. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-add-lifecycle-notifications/specs/lifecycle-notifications/spec.md +408 -0
  297. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-add-lifecycle-notifications/specs/transactional-email/spec.md +67 -0
  298. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-add-lifecycle-notifications/tasks.md +114 -0
  299. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-add-self-serve-signup/.openspec.yaml +2 -0
  300. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-add-self-serve-signup/design.md +486 -0
  301. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-add-self-serve-signup/proposal.md +98 -0
  302. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-add-self-serve-signup/specs/account-upgrade/spec.md +166 -0
  303. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-add-self-serve-signup/specs/billing-checkout/spec.md +106 -0
  304. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-add-self-serve-signup/specs/self-serve-signup/spec.md +328 -0
  305. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-add-self-serve-signup/tasks.md +45 -0
  306. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-build-customer-portal/.openspec.yaml +2 -0
  307. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-build-customer-portal/design.md +271 -0
  308. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-build-customer-portal/proposal.md +80 -0
  309. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-build-customer-portal/specs/billing-provider-boundary/spec.md +104 -0
  310. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-build-customer-portal/specs/customer-portal/spec.md +344 -0
  311. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-build-customer-portal/tasks.md +42 -0
  312. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-hide-billing-from-public-openapi/.openspec.yaml +2 -0
  313. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-hide-billing-from-public-openapi/design.md +124 -0
  314. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-hide-billing-from-public-openapi/proposal.md +70 -0
  315. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-hide-billing-from-public-openapi/specs/billing-checkout/spec.md +28 -0
  316. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-hide-billing-from-public-openapi/specs/billing-webhooks/spec.md +24 -0
  317. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-hide-billing-from-public-openapi/tasks.md +28 -0
  318. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-rewrite-single-channel-docs/.openspec.yaml +2 -0
  319. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-rewrite-single-channel-docs/design.md +222 -0
  320. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-rewrite-single-channel-docs/proposal.md +94 -0
  321. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-rewrite-single-channel-docs/specs/agent-readable-openapi/spec.md +47 -0
  322. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-rewrite-single-channel-docs/specs/api-credential-resolution/spec.md +30 -0
  323. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-rewrite-single-channel-docs/specs/single-channel-documentation/spec.md +188 -0
  324. mgmradar-0.36.0/openspec/changes/archive/2026-11-22-rewrite-single-channel-docs/tasks.md +42 -0
  325. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-host-housekeeping/.openspec.yaml +2 -0
  326. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-host-housekeeping/design.md +133 -0
  327. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-host-housekeeping/proposal.md +57 -0
  328. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-host-housekeeping/specs/host-housekeeping/spec.md +126 -0
  329. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-host-housekeeping/tasks.md +26 -0
  330. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-rain-threshold-alerts/.openspec.yaml +2 -0
  331. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-rain-threshold-alerts/design.md +360 -0
  332. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-rain-threshold-alerts/proposal.md +85 -0
  333. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-rain-threshold-alerts/specs/api-access-and-metering/spec.md +47 -0
  334. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-rain-threshold-alerts/specs/rain-alerts/spec.md +696 -0
  335. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-rain-threshold-alerts/specs/single-channel-documentation/spec.md +114 -0
  336. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-rain-threshold-alerts/specs/subscription-usage/spec.md +73 -0
  337. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-rain-threshold-alerts/tasks.md +71 -0
  338. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-route-rain-query/.openspec.yaml +2 -0
  339. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-route-rain-query/design.md +126 -0
  340. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-route-rain-query/evidence.md +245 -0
  341. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-route-rain-query/proposal.md +43 -0
  342. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-route-rain-query/specs/agent-readable-openapi/spec.md +44 -0
  343. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-route-rain-query/specs/api-access-and-metering/spec.md +69 -0
  344. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-route-rain-query/specs/history-entitlement-gating/spec.md +37 -0
  345. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-route-rain-query/specs/radar-frame-serving/spec.md +34 -0
  346. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-route-rain-query/specs/rain-summary/spec.md +114 -0
  347. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-route-rain-query/specs/route-rain-query/spec.md +213 -0
  348. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-route-rain-query/specs/single-channel-documentation/spec.md +39 -0
  349. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-route-rain-query/tasks.md +40 -0
  350. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-instrument-agent-channel-usage/.openspec.yaml +2 -0
  351. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-instrument-agent-channel-usage/design.md +255 -0
  352. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-instrument-agent-channel-usage/proposal.md +89 -0
  353. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-instrument-agent-channel-usage/specs/agent-channel-analytics/spec.md +448 -0
  354. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-instrument-agent-channel-usage/specs/mcp-ops-visibility/spec.md +151 -0
  355. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-instrument-agent-channel-usage/specs/subscription-usage/spec.md +86 -0
  356. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-instrument-agent-channel-usage/tasks.md +41 -0
  357. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-modernize-customer-portal/.openspec.yaml +2 -0
  358. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-modernize-customer-portal/design.md +352 -0
  359. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-modernize-customer-portal/proposal.md +102 -0
  360. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-modernize-customer-portal/specs/customer-portal/spec.md +438 -0
  361. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-modernize-customer-portal/specs/portal-auth/spec.md +98 -0
  362. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-modernize-customer-portal/specs/self-serve-signup/spec.md +125 -0
  363. mgmradar-0.36.0/openspec/changes/archive/2026-11-29-modernize-customer-portal/tasks.md +63 -0
  364. mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/.openspec.yaml +2 -0
  365. mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/design.md +364 -0
  366. mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/evidence.md +560 -0
  367. mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/proposal.md +104 -0
  368. mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/specs/admin-cli/spec.md +43 -0
  369. mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/specs/api-access-and-metering/spec.md +89 -0
  370. mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/specs/customer-portal/spec.md +47 -0
  371. mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/specs/mcp-oauth/spec.md +452 -0
  372. mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/specs/mcp-ops-visibility/spec.md +73 -0
  373. mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/specs/portal-auth/spec.md +82 -0
  374. mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/specs/remote-mcp-server/spec.md +135 -0
  375. mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/specs/self-serve-signup/spec.md +57 -0
  376. mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/specs/single-channel-documentation/spec.md +106 -0
  377. mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/specs/subscription-usage/spec.md +39 -0
  378. mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/tasks.md +119 -0
  379. mgmradar-0.36.0/openspec/changes/document-nowcast-accuracy/.openspec.yaml +2 -0
  380. mgmradar-0.36.0/openspec/changes/document-nowcast-accuracy/design.md +182 -0
  381. mgmradar-0.36.0/openspec/changes/document-nowcast-accuracy/gate-status.md +87 -0
  382. mgmradar-0.36.0/openspec/changes/document-nowcast-accuracy/proposal.md +83 -0
  383. mgmradar-0.36.0/openspec/changes/document-nowcast-accuracy/specs/api-access-and-metering/spec.md +90 -0
  384. mgmradar-0.36.0/openspec/changes/document-nowcast-accuracy/specs/nowcast-accuracy-publication/spec.md +285 -0
  385. mgmradar-0.36.0/openspec/changes/document-nowcast-accuracy/specs/nowcast-api/spec.md +89 -0
  386. mgmradar-0.36.0/openspec/changes/document-nowcast-accuracy/specs/single-channel-documentation/spec.md +109 -0
  387. mgmradar-0.36.0/openspec/changes/document-nowcast-accuracy/tasks.md +89 -0
  388. mgmradar-0.36.0/openspec/changes/evaluate-x402-pay-per-call/.openspec.yaml +2 -0
  389. mgmradar-0.36.0/openspec/changes/evaluate-x402-pay-per-call/design.md +417 -0
  390. mgmradar-0.36.0/openspec/changes/evaluate-x402-pay-per-call/proposal.md +43 -0
  391. mgmradar-0.36.0/openspec/changes/evaluate-x402-pay-per-call/specs/api-access-and-metering/spec.md +120 -0
  392. mgmradar-0.36.0/openspec/changes/evaluate-x402-pay-per-call/specs/x402-evaluation/spec.md +488 -0
  393. mgmradar-0.36.0/openspec/changes/evaluate-x402-pay-per-call/tasks.md +59 -0
  394. mgmradar-0.36.0/openspec/changes/offer-historical-data-packs/.openspec.yaml +2 -0
  395. mgmradar-0.36.0/openspec/changes/offer-historical-data-packs/design.md +576 -0
  396. mgmradar-0.36.0/openspec/changes/offer-historical-data-packs/proposal.md +96 -0
  397. mgmradar-0.36.0/openspec/changes/offer-historical-data-packs/specs/billing-checkout/spec.md +150 -0
  398. mgmradar-0.36.0/openspec/changes/offer-historical-data-packs/specs/billing-provider-boundary/spec.md +122 -0
  399. mgmradar-0.36.0/openspec/changes/offer-historical-data-packs/specs/billing-webhooks/spec.md +46 -0
  400. mgmradar-0.36.0/openspec/changes/offer-historical-data-packs/specs/historical-data-packs/spec.md +387 -0
  401. mgmradar-0.36.0/openspec/changes/offer-historical-data-packs/specs/history-entitlement-gating/spec.md +36 -0
  402. mgmradar-0.36.0/openspec/changes/offer-historical-data-packs/specs/radar-history-archive/spec.md +196 -0
  403. mgmradar-0.36.0/openspec/changes/offer-historical-data-packs/specs/single-channel-documentation/spec.md +171 -0
  404. mgmradar-0.36.0/openspec/changes/offer-historical-data-packs/tasks.md +56 -0
  405. mgmradar-0.36.0/openspec/changes/publish-mcp-registry-listings/.openspec.yaml +2 -0
  406. mgmradar-0.36.0/openspec/changes/publish-mcp-registry-listings/design.md +244 -0
  407. mgmradar-0.36.0/openspec/changes/publish-mcp-registry-listings/proposal.md +76 -0
  408. mgmradar-0.36.0/openspec/changes/publish-mcp-registry-listings/specs/mcp-registry-listing/spec.md +293 -0
  409. mgmradar-0.36.0/openspec/changes/publish-mcp-registry-listings/specs/single-channel-documentation/spec.md +44 -0
  410. mgmradar-0.36.0/openspec/changes/publish-mcp-registry-listings/tasks.md +40 -0
  411. mgmradar-0.36.0/openspec/changes/release-direct-channel-smoke-test/.openspec.yaml +6 -0
  412. mgmradar-0.36.0/openspec/changes/release-direct-channel-smoke-test/design.md +141 -0
  413. mgmradar-0.36.0/openspec/changes/release-direct-channel-smoke-test/evidence.md +117 -0
  414. mgmradar-0.36.0/openspec/changes/release-direct-channel-smoke-test/proposal.md +81 -0
  415. mgmradar-0.36.0/openspec/changes/release-direct-channel-smoke-test/tasks.md +57 -0
  416. mgmradar-0.36.0/openspec/changes/run-quiet-growth-loop/.openspec.yaml +2 -0
  417. mgmradar-0.36.0/openspec/changes/run-quiet-growth-loop/design.md +158 -0
  418. mgmradar-0.36.0/openspec/changes/run-quiet-growth-loop/proposal.md +90 -0
  419. mgmradar-0.36.0/openspec/changes/run-quiet-growth-loop/specs/quiet-growth/spec.md +497 -0
  420. mgmradar-0.36.0/openspec/changes/run-quiet-growth-loop/specs/single-channel-documentation/spec.md +98 -0
  421. mgmradar-0.36.0/openspec/changes/run-quiet-growth-loop/tasks.md +73 -0
  422. mgmradar-0.36.0/openspec/config.yaml +39 -0
  423. mgmradar-0.36.0/openspec/specs/account-upgrade/spec.md +168 -0
  424. mgmradar-0.36.0/openspec/specs/admin-cli/spec.md +367 -0
  425. mgmradar-0.36.0/openspec/specs/agent-channel-analytics/spec.md +448 -0
  426. mgmradar-0.36.0/openspec/specs/agent-readable-openapi/spec.md +212 -0
  427. mgmradar-0.36.0/openspec/specs/api-access-and-metering/spec.md +307 -0
  428. mgmradar-0.36.0/openspec/specs/api-credential-resolution/spec.md +295 -0
  429. mgmradar-0.36.0/openspec/specs/api-key-lifecycle/spec.md +178 -0
  430. mgmradar-0.36.0/openspec/specs/api-limit-headers/spec.md +138 -0
  431. mgmradar-0.36.0/openspec/specs/billing-checkout/spec.md +221 -0
  432. mgmradar-0.36.0/openspec/specs/billing-provider-boundary/spec.md +271 -0
  433. mgmradar-0.36.0/openspec/specs/billing-reconciliation/spec.md +384 -0
  434. mgmradar-0.36.0/openspec/specs/billing-webhooks/spec.md +276 -0
  435. mgmradar-0.36.0/openspec/specs/customer-portal/spec.md +750 -0
  436. mgmradar-0.36.0/openspec/specs/customer-subscriptions/spec.md +214 -0
  437. mgmradar-0.36.0/openspec/specs/history-entitlement-gating/spec.md +253 -0
  438. mgmradar-0.36.0/openspec/specs/host-housekeeping/spec.md +126 -0
  439. mgmradar-0.36.0/openspec/specs/latest-frame-access/spec.md +81 -0
  440. mgmradar-0.36.0/openspec/specs/lifecycle-notifications/spec.md +410 -0
  441. mgmradar-0.36.0/openspec/specs/mcp-oauth/spec.md +452 -0
  442. mgmradar-0.36.0/openspec/specs/mcp-ops-visibility/spec.md +520 -0
  443. mgmradar-0.36.0/openspec/specs/mgm-radar-ingestion/spec.md +104 -0
  444. mgmradar-0.36.0/openspec/specs/nowcast-skill-evaluation/spec.md +207 -0
  445. mgmradar-0.36.0/openspec/specs/ops-customer-management/spec.md +369 -0
  446. mgmradar-0.36.0/openspec/specs/place-resolution/spec.md +215 -0
  447. mgmradar-0.36.0/openspec/specs/portal-auth/spec.md +563 -0
  448. mgmradar-0.36.0/openspec/specs/public-discovery-access/spec.md +163 -0
  449. mgmradar-0.36.0/openspec/specs/radar-frame-processing/spec.md +112 -0
  450. mgmradar-0.36.0/openspec/specs/radar-frame-serving/spec.md +181 -0
  451. mgmradar-0.36.0/openspec/specs/radar-history-archive/spec.md +131 -0
  452. mgmradar-0.36.0/openspec/specs/radar-snapshots/spec.md +224 -0
  453. mgmradar-0.36.0/openspec/specs/rain-alerts/spec.md +696 -0
  454. mgmradar-0.36.0/openspec/specs/rain-summary/spec.md +284 -0
  455. mgmradar-0.36.0/openspec/specs/remote-mcp-server/spec.md +533 -0
  456. mgmradar-0.36.0/openspec/specs/request-idempotency/spec.md +193 -0
  457. mgmradar-0.36.0/openspec/specs/route-rain-query/spec.md +211 -0
  458. mgmradar-0.36.0/openspec/specs/self-serve-signup/spec.md +453 -0
  459. mgmradar-0.36.0/openspec/specs/single-channel-documentation/spec.md +388 -0
  460. mgmradar-0.36.0/openspec/specs/subscription-usage/spec.md +280 -0
  461. mgmradar-0.36.0/openspec/specs/transactional-email/spec.md +324 -0
  462. mgmradar-0.36.0/packages/mgmradar-mcp/README.md +18 -0
  463. mgmradar-0.36.0/packages/mgmradar-mcp/pyproject.toml +23 -0
  464. mgmradar-0.36.0/packages/mgmradar-mcp/src/mgmradar_mcp/__init__.py +5 -0
  465. mgmradar-0.36.0/packages/mgmradar-mcp/src/mgmradar_mcp/__main__.py +18 -0
  466. mgmradar-0.36.0/pyproject.toml +145 -0
  467. mgmradar-0.36.0/registry/listing.yaml +172 -0
  468. mgmradar-0.36.0/registry/schema/2025-12-11/server.schema.json +574 -0
  469. mgmradar-0.36.0/scripts/benchmark.py +173 -0
  470. mgmradar-0.36.0/scripts/build_localities_dataset.py +281 -0
  471. mgmradar-0.36.0/scripts/build_places_dataset.py +373 -0
  472. mgmradar-0.36.0/scripts/check_no_marketplace_refs.sh +53 -0
  473. mgmradar-0.36.0/scripts/check_pypi_names.py +162 -0
  474. mgmradar-0.36.0/scripts/housekeeping.py +1023 -0
  475. mgmradar-0.36.0/scripts/load_test.py +120 -0
  476. mgmradar-0.36.0/scripts/migrate_api_key_lifecycle.py +233 -0
  477. mgmradar-0.36.0/scripts/migrate_to_subscriptions.py +567 -0
  478. mgmradar-0.36.0/scripts/nowcast_backtest.py +381 -0
  479. mgmradar-0.36.0/scripts/reference_check.py +397 -0
  480. mgmradar-0.36.0/scripts/route_demo.py +134 -0
  481. mgmradar-0.36.0/scripts/seed_demo.py +125 -0
  482. mgmradar-0.36.0/scripts/seed_nowcast_fixture.py +168 -0
  483. mgmradar-0.36.0/scripts/smoke_mcp_stdio.py +260 -0
  484. mgmradar-0.36.0/scripts/smoke_test.py +142 -0
  485. mgmradar-0.36.0/scripts/sync_deploy_secrets.py +542 -0
  486. mgmradar-0.36.0/scripts/sync_mcp_listing.py +1031 -0
  487. mgmradar-0.36.0/server.json +26 -0
  488. mgmradar-0.36.0/spike-log.jsonl +6 -0
  489. mgmradar-0.36.0/src/README.md +18 -0
  490. mgmradar-0.36.0/src/mgmradar/__init__.py +8 -0
  491. mgmradar-0.36.0/src/mgmradar/access/__init__.py +1 -0
  492. mgmradar-0.36.0/src/mgmradar/access/auth.py +189 -0
  493. mgmradar-0.36.0/src/mgmradar/access/cache.py +179 -0
  494. mgmradar-0.36.0/src/mgmradar/access/key_issuance.py +230 -0
  495. mgmradar-0.36.0/src/mgmradar/access/ratelimit.py +120 -0
  496. mgmradar-0.36.0/src/mgmradar/alerts/__init__.py +23 -0
  497. mgmradar-0.36.0/src/mgmradar/alerts/evaluate.py +159 -0
  498. mgmradar-0.36.0/src/mgmradar/alerts/models.py +284 -0
  499. mgmradar-0.36.0/src/mgmradar/alerts/service.py +1254 -0
  500. mgmradar-0.36.0/src/mgmradar/alerts/signing.py +160 -0
  501. mgmradar-0.36.0/src/mgmradar/alerts/store.py +1194 -0
  502. mgmradar-0.36.0/src/mgmradar/alerts/validation.py +276 -0
  503. mgmradar-0.36.0/src/mgmradar/alerts/webhook.py +163 -0
  504. mgmradar-0.36.0/src/mgmradar/alerts/worker.py +157 -0
  505. mgmradar-0.36.0/src/mgmradar/api/__init__.py +1 -0
  506. mgmradar-0.36.0/src/mgmradar/api/alert_routes.py +608 -0
  507. mgmradar-0.36.0/src/mgmradar/api/app.py +315 -0
  508. mgmradar-0.36.0/src/mgmradar/api/billing_routes.py +319 -0
  509. mgmradar-0.36.0/src/mgmradar/api/deps.py +408 -0
  510. mgmradar-0.36.0/src/mgmradar/api/email_routes.py +157 -0
  511. mgmradar-0.36.0/src/mgmradar/api/errors.py +156 -0
  512. mgmradar-0.36.0/src/mgmradar/api/idempotency.py +163 -0
  513. mgmradar-0.36.0/src/mgmradar/api/llms.py +248 -0
  514. mgmradar-0.36.0/src/mgmradar/api/middleware.py +259 -0
  515. mgmradar-0.36.0/src/mgmradar/api/ops_routes.py +202 -0
  516. mgmradar-0.36.0/src/mgmradar/api/routes.py +2423 -0
  517. mgmradar-0.36.0/src/mgmradar/api/schemas.py +539 -0
  518. mgmradar-0.36.0/src/mgmradar/api/services.py +606 -0
  519. mgmradar-0.36.0/src/mgmradar/archive/__init__.py +1 -0
  520. mgmradar-0.36.0/src/mgmradar/archive/exports.py +591 -0
  521. mgmradar-0.36.0/src/mgmradar/archive/listing.py +149 -0
  522. mgmradar-0.36.0/src/mgmradar/archive/series.py +107 -0
  523. mgmradar-0.36.0/src/mgmradar/archive/signing.py +40 -0
  524. mgmradar-0.36.0/src/mgmradar/billing/__init__.py +247 -0
  525. mgmradar-0.36.0/src/mgmradar/billing/apply.py +189 -0
  526. mgmradar-0.36.0/src/mgmradar/billing/catalog.py +296 -0
  527. mgmradar-0.36.0/src/mgmradar/billing/checkout.py +144 -0
  528. mgmradar-0.36.0/src/mgmradar/billing/entitlements.py +227 -0
  529. mgmradar-0.36.0/src/mgmradar/billing/errors.py +36 -0
  530. mgmradar-0.36.0/src/mgmradar/billing/events.py +152 -0
  531. mgmradar-0.36.0/src/mgmradar/billing/health.py +147 -0
  532. mgmradar-0.36.0/src/mgmradar/billing/polar.py +831 -0
  533. mgmradar-0.36.0/src/mgmradar/billing/reconcile.py +679 -0
  534. mgmradar-0.36.0/src/mgmradar/billing/webhooks.py +406 -0
  535. mgmradar-0.36.0/src/mgmradar/billing/welcome.py +113 -0
  536. mgmradar-0.36.0/src/mgmradar/channels/__init__.py +25 -0
  537. mgmradar-0.36.0/src/mgmradar/channels/errors.py +32 -0
  538. mgmradar-0.36.0/src/mgmradar/channels/markdown.py +129 -0
  539. mgmradar-0.36.0/src/mgmradar/channels/reports.py +515 -0
  540. mgmradar-0.36.0/src/mgmradar/channels/taxonomy.py +115 -0
  541. mgmradar-0.36.0/src/mgmradar/channels/weeks.py +53 -0
  542. mgmradar-0.36.0/src/mgmradar/cli.py +1286 -0
  543. mgmradar-0.36.0/src/mgmradar/config.py +841 -0
  544. mgmradar-0.36.0/src/mgmradar/email/__init__.py +1 -0
  545. mgmradar-0.36.0/src/mgmradar/email/address.py +14 -0
  546. mgmradar-0.36.0/src/mgmradar/email/console.py +43 -0
  547. mgmradar-0.36.0/src/mgmradar/email/provider.py +40 -0
  548. mgmradar-0.36.0/src/mgmradar/email/render.py +50 -0
  549. mgmradar-0.36.0/src/mgmradar/email/resend.py +164 -0
  550. mgmradar-0.36.0/src/mgmradar/email/service.py +274 -0
  551. mgmradar-0.36.0/src/mgmradar/email/templates/cancellation.html +20 -0
  552. mgmradar-0.36.0/src/mgmradar/email/templates/cancellation.subject.txt +1 -0
  553. mgmradar-0.36.0/src/mgmradar/email/templates/cancellation.txt +14 -0
  554. mgmradar-0.36.0/src/mgmradar/email/templates/payment_failed.html +19 -0
  555. mgmradar-0.36.0/src/mgmradar/email/templates/payment_failed.subject.txt +1 -0
  556. mgmradar-0.36.0/src/mgmradar/email/templates/payment_failed.txt +15 -0
  557. mgmradar-0.36.0/src/mgmradar/email/templates/portal_login.html +14 -0
  558. mgmradar-0.36.0/src/mgmradar/email/templates/portal_login.subject.txt +1 -0
  559. mgmradar-0.36.0/src/mgmradar/email/templates/portal_login.txt +6 -0
  560. mgmradar-0.36.0/src/mgmradar/email/templates/quota_warning_100.html +16 -0
  561. mgmradar-0.36.0/src/mgmradar/email/templates/quota_warning_100.subject.txt +1 -0
  562. mgmradar-0.36.0/src/mgmradar/email/templates/quota_warning_100.txt +8 -0
  563. mgmradar-0.36.0/src/mgmradar/email/templates/quota_warning_80.html +21 -0
  564. mgmradar-0.36.0/src/mgmradar/email/templates/quota_warning_80.subject.txt +1 -0
  565. mgmradar-0.36.0/src/mgmradar/email/templates/quota_warning_80.txt +15 -0
  566. mgmradar-0.36.0/src/mgmradar/email/templates/signup_duplicate.html +15 -0
  567. mgmradar-0.36.0/src/mgmradar/email/templates/signup_duplicate.subject.txt +1 -0
  568. mgmradar-0.36.0/src/mgmradar/email/templates/signup_duplicate.txt +15 -0
  569. mgmradar-0.36.0/src/mgmradar/email/templates/signup_verification.html +14 -0
  570. mgmradar-0.36.0/src/mgmradar/email/templates/signup_verification.subject.txt +1 -0
  571. mgmradar-0.36.0/src/mgmradar/email/templates/signup_verification.txt +9 -0
  572. mgmradar-0.36.0/src/mgmradar/email/templates/test.html +11 -0
  573. mgmradar-0.36.0/src/mgmradar/email/templates/test.subject.txt +1 -0
  574. mgmradar-0.36.0/src/mgmradar/email/templates/test.txt +7 -0
  575. mgmradar-0.36.0/src/mgmradar/email/templates/welcome.html +16 -0
  576. mgmradar-0.36.0/src/mgmradar/email/templates/welcome.subject.txt +1 -0
  577. mgmradar-0.36.0/src/mgmradar/email/templates/welcome.txt +13 -0
  578. mgmradar-0.36.0/src/mgmradar/errors.py +169 -0
  579. mgmradar-0.36.0/src/mgmradar/ingest/__init__.py +1 -0
  580. mgmradar-0.36.0/src/mgmradar/ingest/lock.py +77 -0
  581. mgmradar-0.36.0/src/mgmradar/ingest/pipeline.py +419 -0
  582. mgmradar-0.36.0/src/mgmradar/ingest/poller.py +97 -0
  583. mgmradar-0.36.0/src/mgmradar/ingest/scan.py +71 -0
  584. mgmradar-0.36.0/src/mgmradar/ingest/source.py +175 -0
  585. mgmradar-0.36.0/src/mgmradar/internal.py +58 -0
  586. mgmradar-0.36.0/src/mgmradar/mcp/__init__.py +21 -0
  587. mgmradar-0.36.0/src/mgmradar/mcp/activity.py +526 -0
  588. mgmradar-0.36.0/src/mgmradar/mcp/auth.py +655 -0
  589. mgmradar-0.36.0/src/mgmradar/mcp/budget.py +114 -0
  590. mgmradar-0.36.0/src/mgmradar/mcp/client.py +205 -0
  591. mgmradar-0.36.0/src/mgmradar/mcp/constants.py +31 -0
  592. mgmradar-0.36.0/src/mgmradar/mcp/credentials.py +111 -0
  593. mgmradar-0.36.0/src/mgmradar/mcp/errors.py +218 -0
  594. mgmradar-0.36.0/src/mgmradar/mcp/freshness.py +53 -0
  595. mgmradar-0.36.0/src/mgmradar/mcp/http.py +238 -0
  596. mgmradar-0.36.0/src/mgmradar/mcp/interfaces.py +105 -0
  597. mgmradar-0.36.0/src/mgmradar/mcp/locations.py +115 -0
  598. mgmradar-0.36.0/src/mgmradar/mcp/registry.py +424 -0
  599. mgmradar-0.36.0/src/mgmradar/mcp/resolvers.py +86 -0
  600. mgmradar-0.36.0/src/mgmradar/mcp/results.py +185 -0
  601. mgmradar-0.36.0/src/mgmradar/mcp/server.py +169 -0
  602. mgmradar-0.36.0/src/mgmradar/mcp/stdio.py +174 -0
  603. mgmradar-0.36.0/src/mgmradar/mcp/tools.py +750 -0
  604. mgmradar-0.36.0/src/mgmradar/notifications/__init__.py +5 -0
  605. mgmradar-0.36.0/src/mgmradar/notifications/policy.py +83 -0
  606. mgmradar-0.36.0/src/mgmradar/notifications/service.py +713 -0
  607. mgmradar-0.36.0/src/mgmradar/notifications/unsubscribe.py +73 -0
  608. mgmradar-0.36.0/src/mgmradar/nowcast/__init__.py +7 -0
  609. mgmradar-0.36.0/src/mgmradar/nowcast/advect.py +100 -0
  610. mgmradar-0.36.0/src/mgmradar/nowcast/archive.py +92 -0
  611. mgmradar-0.36.0/src/mgmradar/nowcast/cases.py +289 -0
  612. mgmradar-0.36.0/src/mgmradar/nowcast/fields.py +93 -0
  613. mgmradar-0.36.0/src/mgmradar/nowcast/metrics.py +163 -0
  614. mgmradar-0.36.0/src/mgmradar/nowcast/motion.py +317 -0
  615. mgmradar-0.36.0/src/mgmradar/nowcast/regimes.py +67 -0
  616. mgmradar-0.36.0/src/mgmradar/nowcast/reporting.py +724 -0
  617. mgmradar-0.36.0/src/mgmradar/nowcast/runner.py +423 -0
  618. mgmradar-0.36.0/src/mgmradar/nowcast/stats.py +195 -0
  619. mgmradar-0.36.0/src/mgmradar/nowcast/verify.py +201 -0
  620. mgmradar-0.36.0/src/mgmradar/oauth/__init__.py +1 -0
  621. mgmradar-0.36.0/src/mgmradar/oauth/assertion.py +329 -0
  622. mgmradar-0.36.0/src/mgmradar/oauth/authorize.py +277 -0
  623. mgmradar-0.36.0/src/mgmradar/oauth/client_auth.py +222 -0
  624. mgmradar-0.36.0/src/mgmradar/oauth/client_secrets.py +42 -0
  625. mgmradar-0.36.0/src/mgmradar/oauth/codes.py +183 -0
  626. mgmradar-0.36.0/src/mgmradar/oauth/consent.py +499 -0
  627. mgmradar-0.36.0/src/mgmradar/oauth/constants.py +55 -0
  628. mgmradar-0.36.0/src/mgmradar/oauth/digests.py +18 -0
  629. mgmradar-0.36.0/src/mgmradar/oauth/metadata.py +138 -0
  630. mgmradar-0.36.0/src/mgmradar/oauth/metrics.py +93 -0
  631. mgmradar-0.36.0/src/mgmradar/oauth/redirects.py +28 -0
  632. mgmradar-0.36.0/src/mgmradar/oauth/registration.py +358 -0
  633. mgmradar-0.36.0/src/mgmradar/oauth/retention.py +75 -0
  634. mgmradar-0.36.0/src/mgmradar/oauth/revocation.py +153 -0
  635. mgmradar-0.36.0/src/mgmradar/oauth/tokens.py +357 -0
  636. mgmradar-0.36.0/src/mgmradar/oauth/verification.py +187 -0
  637. mgmradar-0.36.0/src/mgmradar/ops/__init__.py +1 -0
  638. mgmradar-0.36.0/src/mgmradar/ops/admin.py +812 -0
  639. mgmradar-0.36.0/src/mgmradar/ops/admin_routes.py +612 -0
  640. mgmradar-0.36.0/src/mgmradar/ops/alerts.py +119 -0
  641. mgmradar-0.36.0/src/mgmradar/ops/customers.py +685 -0
  642. mgmradar-0.36.0/src/mgmradar/ops/dashboard.py +1585 -0
  643. mgmradar-0.36.0/src/mgmradar/ops/guard.py +111 -0
  644. mgmradar-0.36.0/src/mgmradar/ops/health.py +57 -0
  645. mgmradar-0.36.0/src/mgmradar/ops/logging.py +98 -0
  646. mgmradar-0.36.0/src/mgmradar/ops/metrics.py +117 -0
  647. mgmradar-0.36.0/src/mgmradar/ops/metrics_server.py +59 -0
  648. mgmradar-0.36.0/src/mgmradar/ops/oauth.py +97 -0
  649. mgmradar-0.36.0/src/mgmradar/ops/pages.py +1002 -0
  650. mgmradar-0.36.0/src/mgmradar/ops/quarantine.py +38 -0
  651. mgmradar-0.36.0/src/mgmradar/ops/redaction.py +62 -0
  652. mgmradar-0.36.0/src/mgmradar/ops/status.py +86 -0
  653. mgmradar-0.36.0/src/mgmradar/places/__init__.py +58 -0
  654. mgmradar-0.36.0/src/mgmradar/places/data/tr_localities.json +1 -0
  655. mgmradar-0.36.0/src/mgmradar/places/data/tr_localities.manifest.json +33 -0
  656. mgmradar-0.36.0/src/mgmradar/places/data/tr_places.json +16897 -0
  657. mgmradar-0.36.0/src/mgmradar/places/data/tr_places.manifest.json +18 -0
  658. mgmradar-0.36.0/src/mgmradar/places/index.py +280 -0
  659. mgmradar-0.36.0/src/mgmradar/places/localities.py +262 -0
  660. mgmradar-0.36.0/src/mgmradar/places/models.py +69 -0
  661. mgmradar-0.36.0/src/mgmradar/places/normalize.py +59 -0
  662. mgmradar-0.36.0/src/mgmradar/places/resolve.py +457 -0
  663. mgmradar-0.36.0/src/mgmradar/plans.py +259 -0
  664. mgmradar-0.36.0/src/mgmradar/portal/__init__.py +1 -0
  665. mgmradar-0.36.0/src/mgmradar/portal/account.py +672 -0
  666. mgmradar-0.36.0/src/mgmradar/portal/cookies.py +71 -0
  667. mgmradar-0.36.0/src/mgmradar/portal/guard.py +198 -0
  668. mgmradar-0.36.0/src/mgmradar/portal/middleware.py +71 -0
  669. mgmradar-0.36.0/src/mgmradar/portal/pages.py +1579 -0
  670. mgmradar-0.36.0/src/mgmradar/portal/return_path.py +149 -0
  671. mgmradar-0.36.0/src/mgmradar/portal/routes.py +450 -0
  672. mgmradar-0.36.0/src/mgmradar/portal/service.py +306 -0
  673. mgmradar-0.36.0/src/mgmradar/portal/view.py +492 -0
  674. mgmradar-0.36.0/src/mgmradar/process/__init__.py +1 -0
  675. mgmradar-0.36.0/src/mgmradar/process/artifacts.py +54 -0
  676. mgmradar-0.36.0/src/mgmradar/process/calibration.py +315 -0
  677. mgmradar-0.36.0/src/mgmradar/process/classify.py +155 -0
  678. mgmradar-0.36.0/src/mgmradar/process/decode.py +47 -0
  679. mgmradar-0.36.0/src/mgmradar/process/legend.py +136 -0
  680. mgmradar-0.36.0/src/mgmradar/process/pipeline.py +405 -0
  681. mgmradar-0.36.0/src/mgmradar/process/rain.py +32 -0
  682. mgmradar-0.36.0/src/mgmradar/process/reader.py +104 -0
  683. mgmradar-0.36.0/src/mgmradar/process/render.py +212 -0
  684. mgmradar-0.36.0/src/mgmradar/process/route.py +855 -0
  685. mgmradar-0.36.0/src/mgmradar/process/sample.py +74 -0
  686. mgmradar-0.36.0/src/mgmradar/process/summary.py +91 -0
  687. mgmradar-0.36.0/src/mgmradar/process/validate.py +54 -0
  688. mgmradar-0.36.0/src/mgmradar/signup/__init__.py +1 -0
  689. mgmradar-0.36.0/src/mgmradar/signup/cookies.py +71 -0
  690. mgmradar-0.36.0/src/mgmradar/signup/pages.py +438 -0
  691. mgmradar-0.36.0/src/mgmradar/signup/routes.py +465 -0
  692. mgmradar-0.36.0/src/mgmradar/signup/service.py +578 -0
  693. mgmradar-0.36.0/src/mgmradar/store/__init__.py +1 -0
  694. mgmradar-0.36.0/src/mgmradar/store/db.py +5244 -0
  695. mgmradar-0.36.0/src/mgmradar/store/keys.py +47 -0
  696. mgmradar-0.36.0/src/mgmradar/store/models.py +987 -0
  697. mgmradar-0.36.0/src/mgmradar/store/objects.py +258 -0
  698. mgmradar-0.36.0/src/mgmradar/timeutil.py +112 -0
  699. mgmradar-0.36.0/src/mgmradar/web/__init__.py +11 -0
  700. mgmradar-0.36.0/src/mgmradar/web/components.py +400 -0
  701. mgmradar-0.36.0/src/mgmradar/web/html.py +37 -0
  702. mgmradar-0.36.0/src/mgmradar/web/layout.py +231 -0
  703. mgmradar-0.36.0/src/mgmradar/web/links.py +110 -0
  704. mgmradar-0.36.0/src/mgmradar/web/messages.py +117 -0
  705. mgmradar-0.36.0/src/mgmradar/web/panels.py +38 -0
  706. mgmradar-0.36.0/src/mgmradar/web/theme.py +319 -0
  707. mgmradar-0.36.0/tests/README.md +20 -0
  708. mgmradar-0.36.0/tests/conftest.py +325 -0
  709. mgmradar-0.36.0/tests/fixtures/golden.jpg +0 -0
  710. mgmradar-0.36.0/tests/golden/synthetic_frame.json +30 -0
  711. mgmradar-0.36.0/tests/htmltools.py +180 -0
  712. mgmradar-0.36.0/tests/nowcast_fixtures.py +133 -0
  713. mgmradar-0.36.0/tests/signup_support.py +234 -0
  714. mgmradar-0.36.0/tests/test_access.py +612 -0
  715. mgmradar-0.36.0/tests/test_account_upgrade.py +252 -0
  716. mgmradar-0.36.0/tests/test_admin_cli.py +945 -0
  717. mgmradar-0.36.0/tests/test_agent_surface.py +295 -0
  718. mgmradar-0.36.0/tests/test_api.py +1037 -0
  719. mgmradar-0.36.0/tests/test_api_key_lifecycle.py +778 -0
  720. mgmradar-0.36.0/tests/test_billing_catalog.py +334 -0
  721. mgmradar-0.36.0/tests/test_billing_checkout.py +418 -0
  722. mgmradar-0.36.0/tests/test_billing_entitlements.py +139 -0
  723. mgmradar-0.36.0/tests/test_billing_health.py +157 -0
  724. mgmradar-0.36.0/tests/test_billing_import_boundary.py +118 -0
  725. mgmradar-0.36.0/tests/test_billing_polar.py +641 -0
  726. mgmradar-0.36.0/tests/test_billing_reconcile.py +599 -0
  727. mgmradar-0.36.0/tests/test_billing_reconcile_cli.py +204 -0
  728. mgmradar-0.36.0/tests/test_billing_store.py +398 -0
  729. mgmradar-0.36.0/tests/test_billing_sync_store.py +244 -0
  730. mgmradar-0.36.0/tests/test_billing_webhook.py +489 -0
  731. mgmradar-0.36.0/tests/test_billing_webhook_retry.py +262 -0
  732. mgmradar-0.36.0/tests/test_channel_analytics.py +532 -0
  733. mgmradar-0.36.0/tests/test_channel_attribution.py +252 -0
  734. mgmradar-0.36.0/tests/test_channel_cli.py +267 -0
  735. mgmradar-0.36.0/tests/test_channel_config.py +67 -0
  736. mgmradar-0.36.0/tests/test_channel_e2e.py +117 -0
  737. mgmradar-0.36.0/tests/test_channel_ops.py +173 -0
  738. mgmradar-0.36.0/tests/test_channel_store.py +238 -0
  739. mgmradar-0.36.0/tests/test_channel_taxonomy.py +132 -0
  740. mgmradar-0.36.0/tests/test_check_pypi_names.py +114 -0
  741. mgmradar-0.36.0/tests/test_config.py +469 -0
  742. mgmradar-0.36.0/tests/test_credentials.py +829 -0
  743. mgmradar-0.36.0/tests/test_e2e.py +103 -0
  744. mgmradar-0.36.0/tests/test_email.py +747 -0
  745. mgmradar-0.36.0/tests/test_email_verification.py +258 -0
  746. mgmradar-0.36.0/tests/test_evals.py +186 -0
  747. mgmradar-0.36.0/tests/test_exports.py +295 -0
  748. mgmradar-0.36.0/tests/test_golden.py +77 -0
  749. mgmradar-0.36.0/tests/test_history_gating.py +428 -0
  750. mgmradar-0.36.0/tests/test_housekeeping.py +563 -0
  751. mgmradar-0.36.0/tests/test_html_surfaces.py +325 -0
  752. mgmradar-0.36.0/tests/test_idempotency.py +549 -0
  753. mgmradar-0.36.0/tests/test_ingest.py +465 -0
  754. mgmradar-0.36.0/tests/test_key_issuer.py +71 -0
  755. mgmradar-0.36.0/tests/test_mcp_activity.py +278 -0
  756. mgmradar-0.36.0/tests/test_mcp_credentials.py +109 -0
  757. mgmradar-0.36.0/tests/test_mcp_http.py +297 -0
  758. mgmradar-0.36.0/tests/test_mcp_listing.py +336 -0
  759. mgmradar-0.36.0/tests/test_mcp_oauth.py +367 -0
  760. mgmradar-0.36.0/tests/test_mcp_oauth_e2e.py +660 -0
  761. mgmradar-0.36.0/tests/test_mcp_oauth_tools.py +237 -0
  762. mgmradar-0.36.0/tests/test_mcp_server.py +1054 -0
  763. mgmradar-0.36.0/tests/test_mcp_stdio.py +165 -0
  764. mgmradar-0.36.0/tests/test_mcp_stdio_e2e.py +455 -0
  765. mgmradar-0.36.0/tests/test_mcp_tool_parity.py +141 -0
  766. mgmradar-0.36.0/tests/test_migration.py +525 -0
  767. mgmradar-0.36.0/tests/test_notification_cli.py +145 -0
  768. mgmradar-0.36.0/tests/test_notification_store.py +281 -0
  769. mgmradar-0.36.0/tests/test_notification_templates.py +61 -0
  770. mgmradar-0.36.0/tests/test_notification_webhook.py +103 -0
  771. mgmradar-0.36.0/tests/test_notifications.py +425 -0
  772. mgmradar-0.36.0/tests/test_nowcast_advect.py +79 -0
  773. mgmradar-0.36.0/tests/test_nowcast_cases.py +121 -0
  774. mgmradar-0.36.0/tests/test_nowcast_fields.py +51 -0
  775. mgmradar-0.36.0/tests/test_nowcast_metrics.py +114 -0
  776. mgmradar-0.36.0/tests/test_nowcast_motion.py +63 -0
  777. mgmradar-0.36.0/tests/test_nowcast_regimes.py +52 -0
  778. mgmradar-0.36.0/tests/test_nowcast_runner.py +134 -0
  779. mgmradar-0.36.0/tests/test_nowcast_stats.py +95 -0
  780. mgmradar-0.36.0/tests/test_oauth_authorize.py +500 -0
  781. mgmradar-0.36.0/tests/test_oauth_bridge.py +639 -0
  782. mgmradar-0.36.0/tests/test_oauth_cli.py +275 -0
  783. mgmradar-0.36.0/tests/test_oauth_codes.py +451 -0
  784. mgmradar-0.36.0/tests/test_oauth_consent.py +576 -0
  785. mgmradar-0.36.0/tests/test_oauth_metadata.py +174 -0
  786. mgmradar-0.36.0/tests/test_oauth_metrics.py +263 -0
  787. mgmradar-0.36.0/tests/test_oauth_protocol_errors.py +523 -0
  788. mgmradar-0.36.0/tests/test_oauth_registration.py +365 -0
  789. mgmradar-0.36.0/tests/test_oauth_retention.py +307 -0
  790. mgmradar-0.36.0/tests/test_oauth_retention_cli.py +124 -0
  791. mgmradar-0.36.0/tests/test_oauth_return_path.py +468 -0
  792. mgmradar-0.36.0/tests/test_oauth_revoke.py +388 -0
  793. mgmradar-0.36.0/tests/test_oauth_store.py +685 -0
  794. mgmradar-0.36.0/tests/test_oauth_token.py +702 -0
  795. mgmradar-0.36.0/tests/test_oauth_token_lifecycle.py +369 -0
  796. mgmradar-0.36.0/tests/test_oauth_verify.py +392 -0
  797. mgmradar-0.36.0/tests/test_openapi_contract.py +453 -0
  798. mgmradar-0.36.0/tests/test_ops.py +96 -0
  799. mgmradar-0.36.0/tests/test_ops_access_gate.py +191 -0
  800. mgmradar-0.36.0/tests/test_ops_admin_routes.py +930 -0
  801. mgmradar-0.36.0/tests/test_ops_customers.py +703 -0
  802. mgmradar-0.36.0/tests/test_ops_dashboard.py +501 -0
  803. mgmradar-0.36.0/tests/test_ops_guard.py +294 -0
  804. mgmradar-0.36.0/tests/test_ops_oauth.py +273 -0
  805. mgmradar-0.36.0/tests/test_ops_store.py +648 -0
  806. mgmradar-0.36.0/tests/test_places.py +293 -0
  807. mgmradar-0.36.0/tests/test_portal_account.py +422 -0
  808. mgmradar-0.36.0/tests/test_portal_cli.py +85 -0
  809. mgmradar-0.36.0/tests/test_portal_connected_apps.py +447 -0
  810. mgmradar-0.36.0/tests/test_portal_cookies.py +68 -0
  811. mgmradar-0.36.0/tests/test_portal_flows.py +440 -0
  812. mgmradar-0.36.0/tests/test_portal_guard.py +282 -0
  813. mgmradar-0.36.0/tests/test_portal_guidance.py +70 -0
  814. mgmradar-0.36.0/tests/test_portal_routes.py +1064 -0
  815. mgmradar-0.36.0/tests/test_portal_service.py +364 -0
  816. mgmradar-0.36.0/tests/test_portal_store.py +152 -0
  817. mgmradar-0.36.0/tests/test_portal_view.py +364 -0
  818. mgmradar-0.36.0/tests/test_processing.py +541 -0
  819. mgmradar-0.36.0/tests/test_public_discovery.py +214 -0
  820. mgmradar-0.36.0/tests/test_rain_alerts_api.py +447 -0
  821. mgmradar-0.36.0/tests/test_rain_alerts_config.py +234 -0
  822. mgmradar-0.36.0/tests/test_rain_alerts_core.py +571 -0
  823. mgmradar-0.36.0/tests/test_rain_alerts_e2e.py +255 -0
  824. mgmradar-0.36.0/tests/test_rain_alerts_pipeline.py +805 -0
  825. mgmradar-0.36.0/tests/test_release_workflow.py +112 -0
  826. mgmradar-0.36.0/tests/test_route.py +1031 -0
  827. mgmradar-0.36.0/tests/test_signup.py +374 -0
  828. mgmradar-0.36.0/tests/test_signup_cli.py +69 -0
  829. mgmradar-0.36.0/tests/test_signup_store.py +162 -0
  830. mgmradar-0.36.0/tests/test_smoke_mcp_stdio.py +83 -0
  831. mgmradar-0.36.0/tests/test_subscriptions.py +338 -0
  832. mgmradar-0.36.0/tests/test_summary.py +116 -0
  833. mgmradar-0.36.0/tests/test_sync_deploy_secrets.py +142 -0
  834. mgmradar-0.36.0/tests/test_unsubscribe.py +123 -0
  835. mgmradar-0.36.0/tests/test_web_links.py +39 -0
  836. mgmradar-0.36.0/tests/test_welcome.py +133 -0
@@ -0,0 +1,18 @@
1
+ .git
2
+ .github
3
+ .opencode
4
+ .venv
5
+ venv
6
+ __pycache__
7
+ *.py[cod]
8
+ .pytest_cache
9
+ .ruff_cache
10
+ .mypy_cache
11
+ data
12
+ artifacts
13
+ .env
14
+ openspec
15
+ tests
16
+ docs
17
+ *.db
18
+ *.npz
@@ -0,0 +1,298 @@
1
+ # Runtime
2
+ MGMRADAR_ENV=development
3
+ MGMRADAR_BASE_URL=http://localhost:8000
4
+ # Public origin of the deployment. It becomes the OpenAPI server entry, the
5
+ # base for portal links, and one of the ops/MCP host allowlist origins.
6
+ # Leave empty to fall back to MGMRADAR_BASE_URL.
7
+ MGMRADAR_PUBLIC_BASE_URL=
8
+ DATA_DIR=./data
9
+
10
+ # Storage (local disk is the default single-host deployment; s3 is optional)
11
+ STORAGE_BACKEND=local
12
+ STORAGE_LOCAL_ROOT=./data/objects
13
+ S3_ENDPOINT=
14
+ S3_REGION=
15
+ S3_BUCKET=
16
+ S3_ACCESS_KEY_ID=
17
+ S3_SECRET_ACCESS_KEY=
18
+
19
+ # Index database (sqlite for the single-host deployment, postgresql optional)
20
+ DATABASE_URL=sqlite:///./data/mgmradar.db
21
+ DB_BUSY_TIMEOUT_MS=5000
22
+
23
+ # Upstream source adapter
24
+ SOURCE_ADAPTER=mgm
25
+ MGM_BASE_URL=https://www.mgm.gov.tr/FTPDATA/uzal/radar/comp
26
+ MGM_FRAME_COUNT=15
27
+ # How long a frame stays recoverable at its source URL. 0 = derive from
28
+ # MGM_FRAME_COUNT * SOURCE_CADENCE_MINUTES (15 * 10 = 150 minutes).
29
+ SOURCE_WINDOW_MINUTES=0
30
+ INGEST_INTERVAL_SECONDS=120
31
+ HTTP_TIMEOUT_SECONDS=15
32
+ HTTP_RETRIES=3
33
+ FRAME_STALE_AFTER_MINUTES=30
34
+ FRAME_DOWN_AFTER_MINUTES=60
35
+
36
+ # Calibration and rendering
37
+ CALIBRATION_VERSION=mgm-eq-1+legend-1
38
+ PROCESSING_VERSION=classify-1+zr-mp-1
39
+ ECHO_FRACTION_MAX=0.75
40
+ RENDER_MAX_WIDTH=1024
41
+ TILE_MAX_ZOOM=8
42
+
43
+ # Authentication and plans
44
+ # How long a resolved credential is cached in each process. Revocation and
45
+ # rotation are immediate in the process that performs them and become visible
46
+ # to other processes within this many seconds. 0 disables the cache; maximum 60.
47
+ API_KEY_CACHE_TTL_SECONDS=10
48
+ # First-party portal links returned in quota errors. Keep them on the deployment
49
+ # origin so a self-hosted instance never sends customers to another deployment.
50
+ UPGRADE_URL=http://localhost:8000/portal#plan
51
+ DOCS_URL=http://localhost:8000/portal#usage
52
+ PLANS_CONFIG=./config/plans.yaml
53
+
54
+ # Billing (Polar)
55
+ # Disabled by default. When enabled, the provider name, access token, webhook
56
+ # secret, API version, and the active environment's product ids are required in
57
+ # production. Sandbox and production are separate organizations with separate
58
+ # tokens, secrets, and product ids; POLAR_ENVIRONMENT must match MGMRADAR_ENV
59
+ # (production/production, everything else/sandbox). Never commit the token or
60
+ # secret; store both in the deployment secret store.
61
+ BILLING_ENABLED=false
62
+ BILLING_PROVIDER=polar
63
+ BILLING_PRODUCTS_CONFIG=./config/billing.yaml
64
+ POLAR_ACCESS_TOKEN=
65
+ POLAR_WEBHOOK_SECRET=
66
+ POLAR_ENVIRONMENT=sandbox
67
+ # Pinned Polar API version sent as the Polar-Version header.
68
+ POLAR_API_VERSION=2027-01
69
+
70
+ # Rate limiting (leave empty to use in-process counters)
71
+ REDIS_URL=
72
+ RATE_LIMIT_BURST_MULTIPLIER=2
73
+ # Anonymous per-IP limit for /v1/meta, /v1/status, and /v1/coverage.geojson only.
74
+ PUBLIC_RATE_LIMIT_PER_MINUTE=60
75
+ PUBLIC_RATE_LIMIT_BURST=20
76
+ MAX_BATCH_POINTS=500
77
+ MAX_RESPONSE_BYTES=8388608
78
+
79
+ # Routes (POST /v1/route)
80
+ ROUTE_DEFAULT_SPACING_M=1000
81
+ ROUTE_MIN_SPACING_M=100
82
+ ROUTE_MAX_SPACING_M=10000
83
+ ROUTE_MAX_VERTICES=100
84
+ ROUTE_MAX_LENGTH_KM=2000
85
+ ROUTE_MAX_BBOX_DEG2=400
86
+ ROUTE_MAX_SAMPLES=2000
87
+ ROUTE_MAX_ENCODED_POLYLINE_CHARS=20000
88
+
89
+ # Exports
90
+ EXPORT_MAX_BBOX_DEG2=25
91
+ EXPORT_MAX_DAYS=31
92
+ EXPORT_MAX_CELLS=2000000
93
+ EXPORT_MAX_CONCURRENT_PER_KEY=1
94
+ EXPORT_URL_TTL_MINUTES=60
95
+ EXPORT_RETENTION_DAYS=30
96
+ EXPORT_SIGNING_SECRET=replace-with-a-long-random-string
97
+
98
+ # Archive and retention
99
+ HISTORY_WINDOW_HOURS=3
100
+ SERIES_MAX_SAMPLES=1000
101
+ FRAMES_MAX_LIMIT=1000
102
+ RAW_RETENTION_DAYS=0
103
+ RENDER_RETENTION_DAYS=30
104
+ TILE_RETENTION_DAYS=7
105
+ USAGE_RETENTION_MONTHS=24
106
+ # Privacy-safe channel attribution (direct REST, MCP, other). Retention must be
107
+ # at least CHANNEL_FUNNEL_WINDOW_DAYS + 7 so one cohort can mature before its
108
+ # first-call rows are pruned. Both settings are independent of billing retention.
109
+ CHANNEL_ANALYTICS_RETENTION_DAYS=90
110
+ CHANNEL_FUNNEL_WINDOW_DAYS=30
111
+
112
+ # Observability
113
+ LOG_LEVEL=INFO
114
+ METRICS_ENABLED=true
115
+ # Discord webhook URL, or any endpoint that accepts the generic alert JSON.
116
+ # Create it in the target channel: Channel settings -> Integrations -> Webhooks.
117
+ ALERT_WEBHOOK_URL=
118
+ ALERT_COOLDOWN_SECONDS=900
119
+
120
+ # Rain threshold alerts (customer webhooks). Plan limits live in
121
+ # config/plans.yaml. Keep ALERTS_ENABLED=false until the worker is deployed and
122
+ # the smoke check passes.
123
+ ALERTS_ENABLED=false
124
+ # Master secret for webhook signatures and unsubscribe tokens. Required in
125
+ # production when alerts are enabled; generate at least 32 random bytes with
126
+ # python -c 'import secrets; print(secrets.token_urlsafe(32))'.
127
+ ALERT_SIGNING_SECRET=
128
+ ALERT_MAX_FRAME_AGE_SECONDS=1800
129
+ ALERT_MAX_GAP_SECONDS=1800
130
+ ALERT_MAX_ATTEMPTS=5
131
+ ALERT_SEND_TIMEOUT_SECONDS=5
132
+ ALERT_RESPONSE_BODY_LIMIT=4096
133
+ ALERT_DELIVERIES_PER_SECOND=20
134
+ ALERT_TEST_LIMIT_PER_HOUR=3
135
+ ALERT_DELIVERY_RETENTION_DAYS=30
136
+ ALERT_EVENT_RETENTION_DAYS=90
137
+ ALERT_JOB_RETENTION_DAYS=7
138
+ # Optional explicit egress proxy for alert webhooks. Empty disables environment
139
+ # proxy discovery so a delivery never traverses an unexpected proxy.
140
+ ALERT_EGRESS_PROXY=
141
+
142
+ # Transactional email. See docs/email.md. console writes .eml files and sends nothing.
143
+ EMAIL_PROVIDER=console
144
+ # resend: API key from the Resend dashboard (re_...)
145
+ EMAIL_API_TOKEN=
146
+ EMAIL_FROM_ADDRESS=
147
+ EMAIL_FROM_NAME=MGM Radar
148
+ EMAIL_REPLY_TO=
149
+ EMAIL_DEV_DIR=./data/email
150
+ EMAIL_MAX_ATTEMPTS=5
151
+ EMAIL_SEND_TIMEOUT_SECONDS=10
152
+ # Alert when a due message is this many minutes past its attempt (worker stopped).
153
+ EMAIL_BACKLOG_ALERT_MINUTES=15
154
+ # Resend webhook signing secret (whsec_...), from the webhook's details page
155
+ EMAIL_WEBHOOK_SIGNING_SECRET=
156
+ # HMAC key for one-click unsubscribe links. Required in production; generate
157
+ # at least 32 random bytes.
158
+ EMAIL_UNSUBSCRIBE_SECRET=
159
+
160
+ # Lifecycle notification sweep
161
+ NOTIFY_SWEEP_INTERVAL_SECONDS=300
162
+ NOTIFY_WELCOME_LOOKBACK_DAYS=7
163
+ NOTIFY_CLAIM_LEASE_SECONDS=600
164
+ NOTIFY_LOG_RETENTION_DAYS=400
165
+
166
+ # Operations dashboard (served by the API at /ops; no extra process)
167
+ OPS_DASHBOARD_ENABLED=true
168
+ # token: break-glass OPS_TOKEN flow. cloudflare: SSO via Cloudflare Access.
169
+ OPS_AUTH_MODE=token
170
+ # token mode only. Generate with: openssl rand -hex 32
171
+ OPS_TOKEN=
172
+ # cloudflare mode: the public hostname(s) allowed to serve /ops, e.g. ops.example.com
173
+ OPS_ALLOWED_HOSTS=
174
+ # cloudflare mode: team domain for the sign-out link, e.g. myteam.cloudflareaccess.com
175
+ OPS_TEAM_DOMAIN=
176
+ OPS_SAMPLE_INTERVAL_SECONDS=60
177
+ OPS_HISTORY_DAYS=30
178
+ DISK_ALERT_PERCENT=80
179
+ DISK_CRITICAL_PERCENT=90
180
+
181
+ # Customer portal (magic-link authentication at /portal)
182
+ # Required in production and must be at least 32 random bytes. Generate with:
183
+ # python -c 'import secrets; print(secrets.token_urlsafe(32))'
184
+ # Empty outside production generates a per-process secret, so sessions do not
185
+ # survive a restart. Set it in .env to keep development sessions stable.
186
+ PORTAL_SESSION_SECRET=
187
+ PORTAL_LOGIN_TOKEN_TTL_MINUTES=15
188
+ PORTAL_SESSION_IDLE_TTL_MINUTES=10080
189
+ PORTAL_SESSION_ABSOLUTE_TTL_HOURS=720
190
+ PORTAL_LOGIN_EMAIL_LIMIT_PER_HOUR=5
191
+ PORTAL_LOGIN_IP_LIMIT_PER_HOUR=20
192
+ PORTAL_CSRF_TTL_MINUTES=120
193
+ PORTAL_LOGIN_MIN_DURATION_MS=300
194
+ # Header/footer destinations. Docs and API reference fall back to this
195
+ # deployment's /docs; status and MCP fall back to /portal/status and
196
+ # /portal/mcp. Empty optional links are omitted, and duplicate URLs render once.
197
+ PORTAL_DOCS_URL=
198
+ PORTAL_API_REFERENCE_URL=
199
+ PORTAL_STATUS_URL=
200
+ PORTAL_QUICKSTART_URL=
201
+ PORTAL_MCP_URL=
202
+ PORTAL_SUPPORT_URL=https://app.velosophic.life/support
203
+ PORTAL_TERMS_URL=https://mgm-radar.velosophic.life/terms
204
+ PORTAL_ACCEPTABLE_USE_URL=https://mgm-radar.velosophic.life/acceptable-use
205
+ PORTAL_PRIVACY_URL=https://mgm-radar.velosophic.life/privacy
206
+ PORTAL_LICENSING_URL=https://mgm-radar.velosophic.life/licensing
207
+
208
+ # Self-serve signup and paid upgrade. Keep SIGNUP_ENABLED=false until the
209
+ # sender domain and email worker are ready. In production, enabling signup
210
+ # requires EMAIL_PROVIDER=resend, EMAIL_API_TOKEN, and EMAIL_FROM_ADDRESS.
211
+ SIGNUP_ENABLED=true
212
+ SIGNUP_PER_IP_PER_DAY=3
213
+ SIGNUP_GLOBAL_PER_DAY=100
214
+ # Independent switch for new paid checkouts; portal sign-in stays available.
215
+ CHECKOUT_ENABLED=true
216
+
217
+ # HTTP
218
+ CORS_ORIGINS=*
219
+ TRUST_FORWARDED_FOR=true
220
+
221
+ # Remote MCP server (Streamable HTTP at /mcp)
222
+ # Keep disabled until the endpoint has been verified on the host.
223
+ MCP_ENABLED=false
224
+ # Comma-separated Host header allowlist. Empty derives it from
225
+ # MGMRADAR_PUBLIC_BASE_URL and MGMRADAR_BASE_URL; localhost is added in development.
226
+ MCP_ALLOWED_HOSTS=
227
+ # Comma-separated browser Origin allowlist. Empty uses CORS_ORIGINS.
228
+ MCP_ALLOWED_ORIGINS=
229
+ MCP_TOOL_TIMEOUT_SECONDS=30
230
+ MCP_SERIES_MAX_SAMPLES=200
231
+ MCP_COMPARE_MAX_PLACES=50
232
+ MCP_SNAPSHOT_DEFAULT_WIDTH=768
233
+ MCP_SNAPSHOT_MIN_WIDTH=256
234
+ MCP_SNAPSHOT_MAX_WIDTH=1024
235
+ # Observation freshness bands published in every MCP result. Defaults are
236
+ # derived from the 10-minute source cadence (one, two, and three cycles); the
237
+ # last threshold matches FRAME_STALE_AFTER_MINUTES. Must be strictly increasing.
238
+ MCP_FRESHNESS_FRESH_SECONDS=600
239
+ MCP_FRESHNESS_SLIGHTLY_STALE_SECONDS=1200
240
+ MCP_FRESHNESS_STALE_SECONDS=1800
241
+ # Process-local MCP activity shown in /ops. A session is connected while its
242
+ # GET stream is open or it was last seen inside this window. The registry is
243
+ # bounded and prunes closed or idle records after the retention window.
244
+ MCP_CONNECTION_IDLE_SECONDS=300
245
+ MCP_ACTIVITY_MAX_CONNECTIONS=4096
246
+ MCP_ACTIVITY_RETENTION_HOURS=24
247
+
248
+ # OAuth 2.1 authorization server for the remote MCP server.
249
+ # Disabled by default. When enabled, MCP_ENABLED must be true and the issuer
250
+ # must be the deployment's public HTTPS origin. Localhost HTTP is accepted
251
+ # outside production only. Rollback is OAUTH_ENABLED=false plus a restart:
252
+ # discovery returns 404, API-key traffic is unchanged, OAuth tokens can no
253
+ # longer be used, and no table is dropped.
254
+ OAUTH_ENABLED=false
255
+ # Public issuer origin. Empty uses MGMRADAR_PUBLIC_BASE_URL, or
256
+ # MGMRADAR_BASE_URL outside production. No path, trailing slash, query, or
257
+ # fragment. This is a stable identifier: changing it changes the resource and
258
+ # requires every client to re-register and re-consent. Pin it explicitly in
259
+ # production instead of depending on a base-URL edit.
260
+ OAUTH_ISSUER=
261
+ # Exact MCP resource URL. Empty uses <issuer>/mcp; a configured value must match.
262
+ OAUTH_RESOURCE=
263
+ # Opaque token lifetimes. Public clients get a long-lived access token and no
264
+ # refresh token in v1. Refresh tokens are static (not rotated) in v1.
265
+ OAUTH_ACCESS_TOKEN_TTL_MINUTES=60
266
+ OAUTH_PUBLIC_ACCESS_TOKEN_TTL_DAYS=30
267
+ OAUTH_REFRESH_TOKEN_TTL_DAYS=30
268
+ OAUTH_CODE_TTL_MINUTES=10
269
+ # The consent request must survive the magic-link round trip; the login token
270
+ # defaults to 15 minutes.
271
+ OAUTH_REQUEST_TTL_MINUTES=30
272
+ # Dynamic clients with no consent, token, code, or request are removed after
273
+ # this window by `mgmradar cleanup-oauth` (run from host housekeeping). A client
274
+ # with any remaining consent, token, code, or request row is never removed;
275
+ # expired material is pruned first and revoked consents stay in place.
276
+ OAUTH_UNUSED_CLIENT_DAYS=90
277
+ # Dynamic client registration and the redirect URI host allowlist. Entries are
278
+ # bare hostnames: no scheme, port, path, or wildcard. When disabled,
279
+ # POST /oauth/register returns 404 and the metadata omits the registration
280
+ # endpoint. v1 has no operator client-creation command, so only clients
281
+ # registered before the toggle can connect; keep this enabled unless a
282
+ # pre-registration path is added.
283
+ OAUTH_DCR_ENABLED=true
284
+ OAUTH_REDIRECT_HOSTS=chatgpt.com,chat.openai.com,claude.ai,localhost,127.0.0.1
285
+ # Requests per minute per client IP for each OAuth endpoint.
286
+ OAUTH_REGISTER_RATE_LIMIT_PER_MINUTE=10
287
+ OAUTH_AUTHORIZE_RATE_LIMIT_PER_MINUTE=60
288
+ OAUTH_CONSENT_RATE_LIMIT_PER_MINUTE=60
289
+ OAUTH_TOKEN_RATE_LIMIT_PER_MINUTE=120
290
+ OAUTH_REVOKE_RATE_LIMIT_PER_MINUTE=60
291
+ # Short-lived HMAC assertion between /mcp and /v1. The key is derived from
292
+ # PORTAL_SESSION_SECRET unless OAUTH_ASSERTION_SECRET is set (at least 32
293
+ # bytes); the derived key is domain-separated from the portal session key.
294
+ # Rotating the assertion key only invalidates assertions already in flight (at
295
+ # most the TTL below); it does not revoke OAuth tokens. Keep it stable across
296
+ # restarts and restore the same value with a database backup.
297
+ OAUTH_ASSERTION_TTL_SECONDS=60
298
+ OAUTH_ASSERTION_SECRET=
@@ -0,0 +1,125 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ workflow_call:
8
+
9
+ permissions:
10
+ contents: read
11
+ pull-requests: read
12
+
13
+ jobs:
14
+ test:
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+ - uses: actions/setup-python@v5
19
+ with:
20
+ python-version: "3.12"
21
+ cache: pip
22
+ - name: Install
23
+ run: |
24
+ python -m pip install --upgrade pip
25
+ pip install -e ".[dev]"
26
+ - name: MCP listing
27
+ run: python scripts/sync_mcp_listing.py --check
28
+ - name: Lint
29
+ run: ruff check src tests evals scripts/sync_mcp_listing.py
30
+ - name: Format
31
+ run: ruff format --check src tests evals scripts/sync_mcp_listing.py
32
+ - name: Type check
33
+ run: mypy src
34
+ - name: MCP evaluation corpus
35
+ run: python -m evals.runner --provider scripted --validate-only
36
+ - name: Retired channel gate
37
+ run: ./scripts/check_no_marketplace_refs.sh
38
+ - name: Tests
39
+ run: pytest --cov=mgmradar --cov-report=term-missing
40
+
41
+ package:
42
+ name: Local stdio package
43
+ runs-on: ubuntu-latest
44
+ steps:
45
+ - uses: actions/checkout@v4
46
+ - uses: actions/setup-python@v5
47
+ with:
48
+ python-version: "3.12"
49
+ cache: pip
50
+ - name: Install
51
+ run: |
52
+ python -m pip install --upgrade pip
53
+ pip install -e ".[dev]"
54
+ - name: Lint launcher
55
+ run: |
56
+ ruff check src tests packages/mgmradar-mcp/src \
57
+ scripts/smoke_mcp_stdio.py scripts/check_pypi_names.py
58
+ ruff format --check src tests packages/mgmradar-mcp/src \
59
+ scripts/smoke_mcp_stdio.py scripts/check_pypi_names.py
60
+ - name: Type-check launcher
61
+ run: |
62
+ MYPYPATH=src mypy packages/mgmradar-mcp/src \
63
+ scripts/smoke_mcp_stdio.py scripts/check_pypi_names.py
64
+ - name: Build both distributions
65
+ run: |
66
+ python -m build --outdir dist .
67
+ python -m build --outdir dist packages/mgmradar-mcp
68
+ - name: Inspect launcher wheel
69
+ run: |
70
+ python - <<'PY'
71
+ import glob
72
+ import zipfile
73
+ from pathlib import Path
74
+
75
+ wheel = Path(glob.glob("dist/mgmradar_mcp-*.whl")[0])
76
+ with zipfile.ZipFile(wheel) as archive:
77
+ names = archive.namelist()
78
+ payload = [name for name in names if name.startswith("mgmradar_mcp/")]
79
+ assert sorted(payload) == ["mgmradar_mcp/__init__.py", "mgmradar_mcp/__main__.py"]
80
+ metadata = archive.read(
81
+ next(name for name in names if name.endswith("METADATA"))
82
+ ).decode()
83
+ assert "Requires-Dist: mgmradar" in metadata
84
+ entry_points = archive.read(
85
+ next(name for name in names if name.endswith("entry_points.txt"))
86
+ ).decode()
87
+ assert "mgmradar-mcp = mgmradar_mcp.__main__:main" in entry_points
88
+ print(f"launcher wheel contains only the launcher: {wheel.name}")
89
+ PY
90
+ - name: Install the pair in a clean environment
91
+ run: |
92
+ python -m venv "$RUNNER_TEMP/install"
93
+ "$RUNNER_TEMP/install/bin/pip" install --upgrade pip
94
+ "$RUNNER_TEMP/install/bin/pip" install dist/mgmradar-*.whl
95
+ "$RUNNER_TEMP/install/bin/pip" install --no-deps dist/mgmradar_mcp-*.whl
96
+ cd "$RUNNER_TEMP"
97
+ "$RUNNER_TEMP/install/bin/mgmradar-mcp" --version
98
+ "$RUNNER_TEMP/install/bin/mgmradar-mcp" --help
99
+ - name: Verify installed versions match
100
+ run: |
101
+ python - <<'PY'
102
+ import os
103
+ import subprocess
104
+
105
+ binary = os.path.join(
106
+ os.environ["RUNNER_TEMP"], "install", "bin", "mgmradar-mcp"
107
+ )
108
+ output = subprocess.check_output([binary, "--version"], text=True)
109
+ lines = output.splitlines()
110
+ launcher = lines[0].split()[1]
111
+ core = lines[1].split()[1]
112
+ assert launcher == core, f"launcher {launcher} != core {core}"
113
+ print(output)
114
+ PY
115
+
116
+ semantic-pr-title:
117
+ name: Conventional PR title
118
+ if: github.event_name == 'pull_request'
119
+ runs-on: ubuntu-latest
120
+ permissions:
121
+ pull-requests: read
122
+ steps:
123
+ - uses: amannn/action-semantic-pull-request@v5
124
+ env:
125
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,192 @@
1
+ name: Deploy
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ tag:
7
+ description: Git tag to deploy, or "latest" for the newest release tag
8
+ required: true
9
+ default: latest
10
+ type: string
11
+
12
+ permissions:
13
+ contents: read
14
+
15
+ concurrency:
16
+ group: deploy-production
17
+ cancel-in-progress: false
18
+
19
+ jobs:
20
+ deploy:
21
+ name: Deploy ${{ inputs.tag }}
22
+ runs-on: ubuntu-latest
23
+ environment:
24
+ name: production
25
+ url: ${{ vars.APP_BASE_URL }}
26
+ steps:
27
+ - name: Check out repository
28
+ uses: actions/checkout@v4
29
+ with:
30
+ fetch-depth: 0
31
+ ref: ${{ inputs.tag == 'latest' && 'main' || inputs.tag }}
32
+
33
+ - name: Resolve release tag
34
+ id: release
35
+ run: |
36
+ set -euo pipefail
37
+ if [ "${{ inputs.tag }}" = "latest" ]; then
38
+ git fetch --tags --force
39
+ tag="$(git tag --list 'v*' --sort=-v:refname | head -n 1)"
40
+ else
41
+ tag="${{ inputs.tag }}"
42
+ fi
43
+ if [ -z "$tag" ]; then
44
+ echo "No release tag found to deploy." >&2
45
+ exit 1
46
+ fi
47
+ git checkout --force "$tag"
48
+ echo "tag=$tag" >> "$GITHUB_OUTPUT"
49
+ echo "version=${tag#v}" >> "$GITHUB_OUTPUT"
50
+ echo "Deploying \`$tag\` to production." >> "$GITHUB_STEP_SUMMARY"
51
+
52
+ - name: Validate deployment configuration
53
+ env:
54
+ ANSIBLE_INVENTORY: ${{ secrets.ANSIBLE_INVENTORY }}
55
+ ANSIBLE_VARS: ${{ secrets.ANSIBLE_VARS }}
56
+ DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
57
+ DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
58
+ run: |
59
+ set -euo pipefail
60
+ missing=()
61
+ [ -n "${DEPLOY_SSH_KEY:-}" ] || missing+=(DEPLOY_SSH_KEY)
62
+ if [ -z "${ANSIBLE_INVENTORY:-}" ] && [ -z "${DEPLOY_HOST:-}" ]; then
63
+ missing+=(DEPLOY_HOST)
64
+ fi
65
+ [ -n "${ANSIBLE_VARS:-}" ] || missing+=(ANSIBLE_VARS)
66
+ if [ "${#missing[@]}" -gt 0 ]; then
67
+ echo "Missing required deployment secrets: ${missing[*]}" >&2
68
+ exit 1
69
+ fi
70
+
71
+ - name: Set up Python
72
+ uses: actions/setup-python@v5
73
+ with:
74
+ python-version: "3.12"
75
+
76
+ - name: Install Ansible
77
+ run: |
78
+ python -m pip install --upgrade pip
79
+ pip install "ansible-core>=2.19,<3"
80
+ ansible-galaxy collection install -r ansible/requirements.yml
81
+
82
+ - name: Configure SSH
83
+ env:
84
+ DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
85
+ DEPLOY_PORT: ${{ secrets.DEPLOY_PORT || '22' }}
86
+ DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
87
+ DEPLOY_KNOWN_HOSTS: ${{ secrets.DEPLOY_KNOWN_HOSTS }}
88
+ run: |
89
+ set -euo pipefail
90
+ install -d -m 700 "$HOME/.ssh"
91
+ printf '%s\n' "$DEPLOY_SSH_KEY" > "$HOME/.ssh/deploy_key"
92
+ chmod 600 "$HOME/.ssh/deploy_key"
93
+ if [ -n "${DEPLOY_KNOWN_HOSTS:-}" ]; then
94
+ printf '%s\n' "$DEPLOY_KNOWN_HOSTS" > "$HOME/.ssh/known_hosts"
95
+ elif [ -n "${DEPLOY_HOST:-}" ]; then
96
+ ssh-keyscan -p "$DEPLOY_PORT" "$DEPLOY_HOST" >> "$HOME/.ssh/known_hosts"
97
+ else
98
+ echo "Set DEPLOY_HOST or DEPLOY_KNOWN_HOSTS so the runner can verify the host key." >&2
99
+ exit 1
100
+ fi
101
+
102
+ - name: Verify SSH access
103
+ env:
104
+ ANSIBLE_INVENTORY: ${{ secrets.ANSIBLE_INVENTORY }}
105
+ DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
106
+ DEPLOY_USER: ${{ secrets.DEPLOY_USER || 'root' }}
107
+ DEPLOY_PORT: ${{ secrets.DEPLOY_PORT || '22' }}
108
+ run: |
109
+ set -euo pipefail
110
+ if [ -z "${ANSIBLE_INVENTORY:-}" ]; then
111
+ ssh -i "$HOME/.ssh/deploy_key" \
112
+ -p "$DEPLOY_PORT" \
113
+ -o BatchMode=yes \
114
+ -o ConnectTimeout=10 \
115
+ "$DEPLOY_USER@$DEPLOY_HOST" true
116
+ fi
117
+
118
+ - name: Write Ansible inventory and variables
119
+ env:
120
+ ANSIBLE_INVENTORY: ${{ secrets.ANSIBLE_INVENTORY }}
121
+ ANSIBLE_VARS: ${{ secrets.ANSIBLE_VARS }}
122
+ ANSIBLE_VAULT: ${{ secrets.ANSIBLE_VAULT }}
123
+ ANSIBLE_VAULT_PASSWORD: ${{ secrets.ANSIBLE_VAULT_PASSWORD }}
124
+ ANSIBLE_BECOME_PASSWORD: ${{ secrets.ANSIBLE_BECOME_PASSWORD }}
125
+ DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
126
+ DEPLOY_USER: ${{ secrets.DEPLOY_USER || 'root' }}
127
+ DEPLOY_PORT: ${{ secrets.DEPLOY_PORT || '22' }}
128
+ run: |
129
+ set -euo pipefail
130
+ install -d -m 700 ansible/inventory ansible/group_vars/all
131
+
132
+ if [ -n "${ANSIBLE_INVENTORY:-}" ]; then
133
+ printf '%s\n' "$ANSIBLE_INVENTORY" > ansible/inventory/hosts.yml
134
+ else
135
+ cat > ansible/inventory/hosts.yml <<EOF
136
+ all:
137
+ children:
138
+ mgmradar:
139
+ hosts:
140
+ mgmradar-prod:
141
+ ansible_host: ${DEPLOY_HOST:?DEPLOY_HOST secret is required}
142
+ ansible_user: ${DEPLOY_USER}
143
+ ansible_port: ${DEPLOY_PORT}
144
+ ansible_ssh_private_key_file: $HOME/.ssh/deploy_key
145
+ EOF
146
+ fi
147
+
148
+ if [ -z "${ANSIBLE_VARS:-}" ]; then
149
+ echo "The ANSIBLE_VARS secret is required. Copy ansible/group_vars/all/vars.yml into it." >&2
150
+ exit 1
151
+ fi
152
+ printf '%s\n' "$ANSIBLE_VARS" > ansible/group_vars/all/vars.yml
153
+
154
+ if [ -n "${ANSIBLE_VAULT:-}" ]; then
155
+ printf '%s\n' "$ANSIBLE_VAULT" > ansible/group_vars/all/vault.yml
156
+ fi
157
+
158
+ if [ -n "${ANSIBLE_VAULT_PASSWORD:-}" ]; then
159
+ printf '%s\n' "$ANSIBLE_VAULT_PASSWORD" > "$RUNNER_TEMP/vault-password"
160
+ chmod 600 "$RUNNER_TEMP/vault-password"
161
+ fi
162
+
163
+ if [ -n "${ANSIBLE_BECOME_PASSWORD:-}" ]; then
164
+ printf '%s\n' "$ANSIBLE_BECOME_PASSWORD" > "$RUNNER_TEMP/become-password"
165
+ chmod 600 "$RUNNER_TEMP/become-password"
166
+ fi
167
+
168
+ - name: Deploy with Ansible
169
+ working-directory: ansible
170
+ env:
171
+ ANSIBLE_FORCE_COLOR: "1"
172
+ ANSIBLE_HOST_KEY_CHECKING: "True"
173
+ run: |
174
+ set -euo pipefail
175
+ args=(site.yml -e "app_version=${{ steps.release.outputs.tag }}" -e "compose_build=true")
176
+ if [ -f "$RUNNER_TEMP/vault-password" ]; then
177
+ args+=(--vault-password-file "$RUNNER_TEMP/vault-password")
178
+ fi
179
+ if [ -f "$RUNNER_TEMP/become-password" ]; then
180
+ args+=(--become-password-file "$RUNNER_TEMP/become-password")
181
+ fi
182
+ ansible-playbook "${args[@]}"
183
+
184
+ - name: Summarize deployment
185
+ run: |
186
+ {
187
+ echo "## Deployment"
188
+ echo
189
+ echo "- Version: \`${{ steps.release.outputs.version }}\`"
190
+ echo "- Tag: \`${{ steps.release.outputs.tag }}\`"
191
+ echo "- Endpoint: ${{ vars.APP_BASE_URL }}"
192
+ } >> "$GITHUB_STEP_SUMMARY"