zeroth-core 0.1.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 (601) hide show
  1. zeroth_core-0.1.0/.agents/skills/progress-logger/SKILL.md +112 -0
  2. zeroth_core-0.1.0/.claude/launch.json +17 -0
  3. zeroth_core-0.1.0/.claude/settings.local.json +21 -0
  4. zeroth_core-0.1.0/.github/workflows/ci.yml +28 -0
  5. zeroth_core-0.1.0/.gitignore +29 -0
  6. zeroth_core-0.1.0/.planning/MILESTONES.md +23 -0
  7. zeroth_core-0.1.0/.planning/PROJECT.md +132 -0
  8. zeroth_core-0.1.0/.planning/REQUIREMENTS.md +180 -0
  9. zeroth_core-0.1.0/.planning/RETROSPECTIVE.md +63 -0
  10. zeroth_core-0.1.0/.planning/ROADMAP.md +207 -0
  11. zeroth_core-0.1.0/.planning/STATE.md +93 -0
  12. zeroth_core-0.1.0/.planning/codebase/ARCHITECTURE.md +386 -0
  13. zeroth_core-0.1.0/.planning/codebase/CONCERNS.md +197 -0
  14. zeroth_core-0.1.0/.planning/codebase/CONVENTIONS.md +295 -0
  15. zeroth_core-0.1.0/.planning/codebase/INTEGRATIONS.md +210 -0
  16. zeroth_core-0.1.0/.planning/codebase/STACK.md +128 -0
  17. zeroth_core-0.1.0/.planning/codebase/STRUCTURE.md +293 -0
  18. zeroth_core-0.1.0/.planning/codebase/TESTING.md +430 -0
  19. zeroth_core-0.1.0/.planning/config.json +38 -0
  20. zeroth_core-0.1.0/.planning/milestones/v1.1-MILESTONE-AUDIT.md +186 -0
  21. zeroth_core-0.1.0/.planning/milestones/v1.1-REQUIREMENTS.md +154 -0
  22. zeroth_core-0.1.0/.planning/milestones/v1.1-ROADMAP.md +419 -0
  23. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/11-config-postgres-storage/11-01-PLAN.md +479 -0
  24. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/11-config-postgres-storage/11-01-SUMMARY.md +104 -0
  25. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/11-config-postgres-storage/11-02-PLAN.md +366 -0
  26. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/11-config-postgres-storage/11-02-SUMMARY.md +118 -0
  27. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/11-config-postgres-storage/11-03-PLAN.md +437 -0
  28. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/11-config-postgres-storage/11-03-SUMMARY.md +156 -0
  29. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/11-config-postgres-storage/11-CONTEXT.md +125 -0
  30. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/11-config-postgres-storage/11-DISCUSSION-LOG.md +184 -0
  31. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/11-config-postgres-storage/11-RESEARCH.md +548 -0
  32. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/11-config-postgres-storage/11-VERIFICATION.md +112 -0
  33. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/12-real-llm-providers-retry/12-01-PLAN.md +310 -0
  34. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/12-real-llm-providers-retry/12-01-SUMMARY.md +106 -0
  35. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/12-real-llm-providers-retry/12-02-PLAN.md +340 -0
  36. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/12-real-llm-providers-retry/12-02-SUMMARY.md +114 -0
  37. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/12-real-llm-providers-retry/12-03-PLAN.md +523 -0
  38. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/12-real-llm-providers-retry/12-03-SUMMARY.md +78 -0
  39. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/12-real-llm-providers-retry/12-CONTEXT.md +121 -0
  40. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/12-real-llm-providers-retry/12-DISCUSSION-LOG.md +164 -0
  41. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/12-real-llm-providers-retry/12-RESEARCH.md +410 -0
  42. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/12-real-llm-providers-retry/12-VERIFICATION.md +118 -0
  43. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/13-regulus-economics-integration/13-01-PLAN.md +391 -0
  44. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/13-regulus-economics-integration/13-01-SUMMARY.md +123 -0
  45. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/13-regulus-economics-integration/13-02-PLAN.md +298 -0
  46. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/13-regulus-economics-integration/13-02-SUMMARY.md +105 -0
  47. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/13-regulus-economics-integration/13-03-PLAN.md +374 -0
  48. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/13-regulus-economics-integration/13-03-SUMMARY.md +122 -0
  49. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/13-regulus-economics-integration/13-CONTEXT.md +123 -0
  50. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/13-regulus-economics-integration/13-DISCUSSION-LOG.md +90 -0
  51. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/13-regulus-economics-integration/13-RESEARCH.md +514 -0
  52. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/13-regulus-economics-integration/13-VERIFICATION.md +116 -0
  53. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/14-memory-connectors-container-sandbox/14-01-PLAN.md +377 -0
  54. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/14-memory-connectors-container-sandbox/14-01-SUMMARY.md +106 -0
  55. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/14-memory-connectors-container-sandbox/14-02-PLAN.md +347 -0
  56. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/14-memory-connectors-container-sandbox/14-02-SUMMARY.md +87 -0
  57. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/14-memory-connectors-container-sandbox/14-03-PLAN.md +552 -0
  58. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/14-memory-connectors-container-sandbox/14-03-SUMMARY.md +108 -0
  59. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/14-memory-connectors-container-sandbox/14-04-PLAN.md +485 -0
  60. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/14-memory-connectors-container-sandbox/14-04-SUMMARY.md +133 -0
  61. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/14-memory-connectors-container-sandbox/14-05-PLAN.md +475 -0
  62. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/14-memory-connectors-container-sandbox/14-05-SUMMARY.md +124 -0
  63. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/14-memory-connectors-container-sandbox/14-CONTEXT.md +146 -0
  64. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/14-memory-connectors-container-sandbox/14-DISCUSSION-LOG.md +91 -0
  65. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/14-memory-connectors-container-sandbox/14-RESEARCH.md +575 -0
  66. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/14-memory-connectors-container-sandbox/14-VERIFICATION.md +165 -0
  67. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/15-webhooks-approval-sla/15-01-PLAN.md +422 -0
  68. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/15-webhooks-approval-sla/15-01-SUMMARY.md +96 -0
  69. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/15-webhooks-approval-sla/15-02-PLAN.md +511 -0
  70. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/15-webhooks-approval-sla/15-02-SUMMARY.md +90 -0
  71. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/15-webhooks-approval-sla/15-03-PLAN.md +541 -0
  72. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/15-webhooks-approval-sla/15-03-SUMMARY.md +136 -0
  73. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/15-webhooks-approval-sla/15-CONTEXT.md +126 -0
  74. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/15-webhooks-approval-sla/15-DISCUSSION-LOG.md +71 -0
  75. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/15-webhooks-approval-sla/15-RESEARCH.md +499 -0
  76. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/15-webhooks-approval-sla/15-VERIFICATION.md +122 -0
  77. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/16-distributed-dispatch-horizontal-scaling/16-01-PLAN.md +321 -0
  78. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/16-distributed-dispatch-horizontal-scaling/16-01-SUMMARY.md +132 -0
  79. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/16-distributed-dispatch-horizontal-scaling/16-02-PLAN.md +500 -0
  80. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/16-distributed-dispatch-horizontal-scaling/16-02-SUMMARY.md +120 -0
  81. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/16-distributed-dispatch-horizontal-scaling/16-03-PLAN.md +389 -0
  82. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/16-distributed-dispatch-horizontal-scaling/16-03-SUMMARY.md +99 -0
  83. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/16-distributed-dispatch-horizontal-scaling/16-CONTEXT.md +114 -0
  84. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/16-distributed-dispatch-horizontal-scaling/16-DISCUSSION-LOG.md +117 -0
  85. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/16-distributed-dispatch-horizontal-scaling/16-RESEARCH.md +415 -0
  86. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/16-distributed-dispatch-horizontal-scaling/16-VERIFICATION.md +116 -0
  87. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/17-deployment-packaging-operations/17-01-PLAN.md +249 -0
  88. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/17-deployment-packaging-operations/17-01-SUMMARY.md +104 -0
  89. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/17-deployment-packaging-operations/17-02-PLAN.md +307 -0
  90. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/17-deployment-packaging-operations/17-02-SUMMARY.md +104 -0
  91. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/17-deployment-packaging-operations/17-03-PLAN.md +511 -0
  92. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/17-deployment-packaging-operations/17-03-SUMMARY.md +101 -0
  93. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/17-deployment-packaging-operations/17-CONTEXT.md +123 -0
  94. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/17-deployment-packaging-operations/17-DISCUSSION-LOG.md +77 -0
  95. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/17-deployment-packaging-operations/17-RESEARCH.md +569 -0
  96. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/17-deployment-packaging-operations/17-VERIFICATION.md +127 -0
  97. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/18-cross-phase-integration-wiring/18-01-PLAN.md +357 -0
  98. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/18-cross-phase-integration-wiring/18-01-SUMMARY.md +118 -0
  99. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/18-cross-phase-integration-wiring/18-02-PLAN.md +291 -0
  100. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/18-cross-phase-integration-wiring/18-02-SUMMARY.md +97 -0
  101. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/18-cross-phase-integration-wiring/18-RESEARCH.md +322 -0
  102. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/18-cross-phase-integration-wiring/18-VERIFICATION.md +115 -0
  103. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/19-agent-node-llm-api-parity/.gitkeep +0 -0
  104. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/19-agent-node-llm-api-parity/19-01-PLAN.md +325 -0
  105. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/19-agent-node-llm-api-parity/19-01-SUMMARY.md +118 -0
  106. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/19-agent-node-llm-api-parity/19-02-PLAN.md +284 -0
  107. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/19-agent-node-llm-api-parity/19-02-SUMMARY.md +94 -0
  108. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/19-agent-node-llm-api-parity/19-03-PLAN.md +437 -0
  109. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/19-agent-node-llm-api-parity/19-03-SUMMARY.md +137 -0
  110. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/19-agent-node-llm-api-parity/19-CONTEXT.md +96 -0
  111. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/19-agent-node-llm-api-parity/19-RESEARCH.md +440 -0
  112. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/19-agent-node-llm-api-parity/19-VERIFICATION.md +114 -0
  113. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/20-bootstrap-integration-wiring/20-01-PLAN.md +363 -0
  114. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/20-bootstrap-integration-wiring/20-01-SUMMARY.md +121 -0
  115. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/20-bootstrap-integration-wiring/20-RESEARCH.md +256 -0
  116. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/20-bootstrap-integration-wiring/20-VERIFICATION.md +97 -0
  117. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/21-health-probe-fix-tech-debt/21-01-PLAN.md +280 -0
  118. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/21-health-probe-fix-tech-debt/21-01-SUMMARY.md +108 -0
  119. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/21-health-probe-fix-tech-debt/21-CONTEXT.md +102 -0
  120. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/21-health-probe-fix-tech-debt/21-DISCUSSION-LOG.md +69 -0
  121. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/21-health-probe-fix-tech-debt/21-RESEARCH.md +269 -0
  122. zeroth_core-0.1.0/.planning/milestones/v1.1-phases/21-health-probe-fix-tech-debt/21-VERIFICATION.md +74 -0
  123. zeroth_core-0.1.0/.planning/phases/10-studio-shell-workflow-authoring/10-CONTEXT.md +99 -0
  124. zeroth_core-0.1.0/.planning/phases/22-canvas-foundation-dev-infrastructure/22-01-PLAN.md +364 -0
  125. zeroth_core-0.1.0/.planning/phases/22-canvas-foundation-dev-infrastructure/22-01-SUMMARY.md +135 -0
  126. zeroth_core-0.1.0/.planning/phases/22-canvas-foundation-dev-infrastructure/22-02-PLAN.md +296 -0
  127. zeroth_core-0.1.0/.planning/phases/22-canvas-foundation-dev-infrastructure/22-02-SUMMARY.md +114 -0
  128. zeroth_core-0.1.0/.planning/phases/22-canvas-foundation-dev-infrastructure/22-03-PLAN.md +468 -0
  129. zeroth_core-0.1.0/.planning/phases/22-canvas-foundation-dev-infrastructure/22-03-SUMMARY.md +160 -0
  130. zeroth_core-0.1.0/.planning/phases/22-canvas-foundation-dev-infrastructure/22-04-PLAN.md +454 -0
  131. zeroth_core-0.1.0/.planning/phases/22-canvas-foundation-dev-infrastructure/22-04-SUMMARY.md +98 -0
  132. zeroth_core-0.1.0/.planning/phases/22-canvas-foundation-dev-infrastructure/22-05-PLAN.md +241 -0
  133. zeroth_core-0.1.0/.planning/phases/22-canvas-foundation-dev-infrastructure/22-05-SUMMARY.md +89 -0
  134. zeroth_core-0.1.0/.planning/phases/22-canvas-foundation-dev-infrastructure/22-06-PLAN.md +128 -0
  135. zeroth_core-0.1.0/.planning/phases/22-canvas-foundation-dev-infrastructure/22-06-SUMMARY.md +102 -0
  136. zeroth_core-0.1.0/.planning/phases/22-canvas-foundation-dev-infrastructure/22-CONTEXT.md +128 -0
  137. zeroth_core-0.1.0/.planning/phases/22-canvas-foundation-dev-infrastructure/22-DISCUSSION-LOG.md +181 -0
  138. zeroth_core-0.1.0/.planning/phases/22-canvas-foundation-dev-infrastructure/22-HUMAN-UAT.md +36 -0
  139. zeroth_core-0.1.0/.planning/phases/22-canvas-foundation-dev-infrastructure/22-RESEARCH.md +558 -0
  140. zeroth_core-0.1.0/.planning/phases/22-canvas-foundation-dev-infrastructure/22-UI-SPEC.md +334 -0
  141. zeroth_core-0.1.0/.planning/phases/22-canvas-foundation-dev-infrastructure/22-VERIFICATION.md +151 -0
  142. zeroth_core-0.1.0/.planning/phases/23-canvas-editing-ux/23-01-PLAN.md +289 -0
  143. zeroth_core-0.1.0/.planning/phases/23-canvas-editing-ux/23-01-SUMMARY.md +102 -0
  144. zeroth_core-0.1.0/.planning/phases/23-canvas-editing-ux/23-02-PLAN.md +268 -0
  145. zeroth_core-0.1.0/.planning/phases/23-canvas-editing-ux/23-02-SUMMARY.md +86 -0
  146. zeroth_core-0.1.0/.planning/phases/23-canvas-editing-ux/23-03-PLAN.md +350 -0
  147. zeroth_core-0.1.0/.planning/phases/23-canvas-editing-ux/23-03-SUMMARY.md +112 -0
  148. zeroth_core-0.1.0/.planning/phases/23-canvas-editing-ux/23-04-PLAN.md +483 -0
  149. zeroth_core-0.1.0/.planning/phases/23-canvas-editing-ux/23-04-SUMMARY.md +117 -0
  150. zeroth_core-0.1.0/.planning/phases/23-canvas-editing-ux/23-CONTEXT.md +139 -0
  151. zeroth_core-0.1.0/.planning/phases/23-canvas-editing-ux/23-DISCUSSION-LOG.md +89 -0
  152. zeroth_core-0.1.0/.planning/phases/23-canvas-editing-ux/23-RESEARCH.md +585 -0
  153. zeroth_core-0.1.0/.planning/phases/23-canvas-editing-ux/23-VERIFICATION.md +137 -0
  154. zeroth_core-0.1.0/.planning/phases/24-execution-ai-authoring/24-CONTEXT.md +233 -0
  155. zeroth_core-0.1.0/.planning/phases/24-execution-ai-authoring/24-DISCUSSION-LOG.md +463 -0
  156. zeroth_core-0.1.0/.planning/phases/24-execution-ai-authoring/24-UI-SPEC.md +277 -0
  157. zeroth_core-0.1.0/.planning/phases/27-ship-zeroth-as-pip-installable-library-zeroth-core/.gitkeep +0 -0
  158. zeroth_core-0.1.0/.planning/phases/27-ship-zeroth-as-pip-installable-library-zeroth-core/27-01-PLAN.md +186 -0
  159. zeroth_core-0.1.0/.planning/phases/27-ship-zeroth-as-pip-installable-library-zeroth-core/27-01-SUMMARY.md +86 -0
  160. zeroth_core-0.1.0/.planning/phases/27-ship-zeroth-as-pip-installable-library-zeroth-core/27-02-PLAN.md +150 -0
  161. zeroth_core-0.1.0/.planning/phases/27-ship-zeroth-as-pip-installable-library-zeroth-core/27-02-SUMMARY.md +93 -0
  162. zeroth_core-0.1.0/.planning/phases/27-ship-zeroth-as-pip-installable-library-zeroth-core/27-03-PLAN.md +244 -0
  163. zeroth_core-0.1.0/.planning/phases/27-ship-zeroth-as-pip-installable-library-zeroth-core/27-03-SUMMARY.md +108 -0
  164. zeroth_core-0.1.0/.planning/phases/27-ship-zeroth-as-pip-installable-library-zeroth-core/27-04-PLAN.md +210 -0
  165. zeroth_core-0.1.0/.planning/phases/27-ship-zeroth-as-pip-installable-library-zeroth-core/27-04-SUMMARY.md +103 -0
  166. zeroth_core-0.1.0/.planning/phases/27-ship-zeroth-as-pip-installable-library-zeroth-core/27-CONTEXT.md +253 -0
  167. zeroth_core-0.1.0/.planning/phases/27-ship-zeroth-as-pip-installable-library-zeroth-core/27-DISCUSSION-LOG.md +172 -0
  168. zeroth_core-0.1.0/.planning/phases/27-ship-zeroth-as-pip-installable-library-zeroth-core/27-RESEARCH.md +180 -0
  169. zeroth_core-0.1.0/.planning/phases/27-ship-zeroth-as-pip-installable-library-zeroth-core/artifacts/archive-github-publish.txt +18 -0
  170. zeroth_core-0.1.0/.planning/phases/27-ship-zeroth-as-pip-installable-library-zeroth-core/artifacts/archive-inventory.txt +5 -0
  171. zeroth_core-0.1.0/.planning/phases/27-ship-zeroth-as-pip-installable-library-zeroth-core/artifacts/archive-preflight.txt +39 -0
  172. zeroth_core-0.1.0/.planning/phases/27-ship-zeroth-as-pip-installable-library-zeroth-core/artifacts/archive-recovery-test.txt +24 -0
  173. zeroth_core-0.1.0/.planning/phases/27-ship-zeroth-as-pip-installable-library-zeroth-core/artifacts/interrogate-after.txt +128 -0
  174. zeroth_core-0.1.0/.planning/phases/27-ship-zeroth-as-pip-installable-library-zeroth-core/artifacts/interrogate-baseline.txt +128 -0
  175. zeroth_core-0.1.0/.planning/phases/27-ship-zeroth-as-pip-installable-library-zeroth-core/artifacts/pytest-27-03-targeted.txt +3 -0
  176. zeroth_core-0.1.0/.planning/phases/27-ship-zeroth-as-pip-installable-library-zeroth-core/artifacts/pytest-after-rename.log +3 -0
  177. zeroth_core-0.1.0/.planning/phases/27-ship-zeroth-as-pip-installable-library-zeroth-core/artifacts/pytest-before-rename.log +2410 -0
  178. zeroth_core-0.1.0/.planning/phases/27-ship-zeroth-as-pip-installable-library-zeroth-core/artifacts/rename-smoke-27-03.txt +31 -0
  179. zeroth_core-0.1.0/.planning/research/ARCHITECTURE.md +651 -0
  180. zeroth_core-0.1.0/.planning/research/FEATURES.md +379 -0
  181. zeroth_core-0.1.0/.planning/research/PITFALLS.md +428 -0
  182. zeroth_core-0.1.0/.planning/research/STACK.md +605 -0
  183. zeroth_core-0.1.0/.planning/research/SUMMARY.md +167 -0
  184. zeroth_core-0.1.0/.python-version +1 -0
  185. zeroth_core-0.1.0/AGENTS.md +35 -0
  186. zeroth_core-0.1.0/CLAUDE.md +43 -0
  187. zeroth_core-0.1.0/Dockerfile +57 -0
  188. zeroth_core-0.1.0/PKG-INFO +222 -0
  189. zeroth_core-0.1.0/PLAN.md +1698 -0
  190. zeroth_core-0.1.0/PROGRESS.md +1392 -0
  191. zeroth_core-0.1.0/README.md +188 -0
  192. zeroth_core-0.1.0/alembic.ini +3 -0
  193. zeroth_core-0.1.0/apps/studio/.dockerignore +5 -0
  194. zeroth_core-0.1.0/apps/studio/.gitignore +6 -0
  195. zeroth_core-0.1.0/apps/studio/Dockerfile +13 -0
  196. zeroth_core-0.1.0/apps/studio/index.html +16 -0
  197. zeroth_core-0.1.0/apps/studio/package-lock.json +3321 -0
  198. zeroth_core-0.1.0/apps/studio/package.json +33 -0
  199. zeroth_core-0.1.0/apps/studio/src/App.vue +96 -0
  200. zeroth_core-0.1.0/apps/studio/src/api/client.ts +25 -0
  201. zeroth_core-0.1.0/apps/studio/src/api/workflows.ts +76 -0
  202. zeroth_core-0.1.0/apps/studio/src/components/canvas/CanvasControls.vue +177 -0
  203. zeroth_core-0.1.0/apps/studio/src/components/canvas/CanvasMinimap.vue +40 -0
  204. zeroth_core-0.1.0/apps/studio/src/components/canvas/StudioCanvas.vue +113 -0
  205. zeroth_core-0.1.0/apps/studio/src/components/inspector/InspectorField.vue +128 -0
  206. zeroth_core-0.1.0/apps/studio/src/components/inspector/NodeInspector.vue +135 -0
  207. zeroth_core-0.1.0/apps/studio/src/components/nodes/AgentNode.vue +34 -0
  208. zeroth_core-0.1.0/apps/studio/src/components/nodes/ApprovalGateNode.vue +34 -0
  209. zeroth_core-0.1.0/apps/studio/src/components/nodes/BaseNode.vue +159 -0
  210. zeroth_core-0.1.0/apps/studio/src/components/nodes/ConditionBranchNode.vue +41 -0
  211. zeroth_core-0.1.0/apps/studio/src/components/nodes/DataMappingNode.vue +34 -0
  212. zeroth_core-0.1.0/apps/studio/src/components/nodes/EndNode.vue +34 -0
  213. zeroth_core-0.1.0/apps/studio/src/components/nodes/ExecutionUnitNode.vue +34 -0
  214. zeroth_core-0.1.0/apps/studio/src/components/nodes/MemoryResourceNode.vue +35 -0
  215. zeroth_core-0.1.0/apps/studio/src/components/nodes/StartNode.vue +33 -0
  216. zeroth_core-0.1.0/apps/studio/src/components/palette/NodePalette.vue +75 -0
  217. zeroth_core-0.1.0/apps/studio/src/components/palette/PaletteCategory.vue +101 -0
  218. zeroth_core-0.1.0/apps/studio/src/components/palette/PaletteItem.vue +68 -0
  219. zeroth_core-0.1.0/apps/studio/src/components/shell/AppHeader.vue +205 -0
  220. zeroth_core-0.1.0/apps/studio/src/components/shell/CanvasArea.vue +38 -0
  221. zeroth_core-0.1.0/apps/studio/src/components/shell/WorkflowRail.vue +257 -0
  222. zeroth_core-0.1.0/apps/studio/src/composables/useAutoLayout.ts +72 -0
  223. zeroth_core-0.1.0/apps/studio/src/composables/useCanvasActions.ts +26 -0
  224. zeroth_core-0.1.0/apps/studio/src/composables/useDragAndDrop.ts +26 -0
  225. zeroth_core-0.1.0/apps/studio/src/composables/useKeyboardShortcuts.ts +60 -0
  226. zeroth_core-0.1.0/apps/studio/src/composables/useNodeValidation.ts +71 -0
  227. zeroth_core-0.1.0/apps/studio/src/composables/usePortValidation.ts +24 -0
  228. zeroth_core-0.1.0/apps/studio/src/composables/useWorkflowPersistence.ts +81 -0
  229. zeroth_core-0.1.0/apps/studio/src/env.d.ts +7 -0
  230. zeroth_core-0.1.0/apps/studio/src/main.ts +8 -0
  231. zeroth_core-0.1.0/apps/studio/src/stores/canvas.ts +443 -0
  232. zeroth_core-0.1.0/apps/studio/src/stores/ui.ts +22 -0
  233. zeroth_core-0.1.0/apps/studio/src/stores/workflow.ts +94 -0
  234. zeroth_core-0.1.0/apps/studio/src/style.css +36 -0
  235. zeroth_core-0.1.0/apps/studio/src/types/nodes.ts +163 -0
  236. zeroth_core-0.1.0/apps/studio/src/types/workflow.ts +32 -0
  237. zeroth_core-0.1.0/apps/studio/tsconfig.json +25 -0
  238. zeroth_core-0.1.0/apps/studio/tsconfig.tsbuildinfo +1 -0
  239. zeroth_core-0.1.0/apps/studio/vite.config.ts +25 -0
  240. zeroth_core-0.1.0/apps/studio-mockups/editor-mockup.png +0 -0
  241. zeroth_core-0.1.0/apps/studio-mockups/index.html +15 -0
  242. zeroth_core-0.1.0/apps/studio-mockups/package-lock.json +1383 -0
  243. zeroth_core-0.1.0/apps/studio-mockups/package.json +20 -0
  244. zeroth_core-0.1.0/apps/studio-mockups/src/App.vue +7 -0
  245. zeroth_core-0.1.0/apps/studio-mockups/src/components/StudioEditorMockup.vue +254 -0
  246. zeroth_core-0.1.0/apps/studio-mockups/src/main.ts +6 -0
  247. zeroth_core-0.1.0/apps/studio-mockups/src/style.css +879 -0
  248. zeroth_core-0.1.0/apps/studio-mockups/tsconfig.json +16 -0
  249. zeroth_core-0.1.0/apps/studio-mockups/vite.config.ts +6 -0
  250. zeroth_core-0.1.0/dev_server.py +376 -0
  251. zeroth_core-0.1.0/docker/nginx/certs/.gitkeep +0 -0
  252. zeroth_core-0.1.0/docker/nginx/nginx.conf +26 -0
  253. zeroth_core-0.1.0/docker/nginx/studio.conf +42 -0
  254. zeroth_core-0.1.0/docker/regulus-sdk/.gitkeep +0 -0
  255. zeroth_core-0.1.0/docker/regulus-sdk/README.md +5 -0
  256. zeroth_core-0.1.0/docker-compose.yml +85 -0
  257. zeroth_core-0.1.0/docs/specs/n8n-canvas-editor-ui-spec.md +610 -0
  258. zeroth_core-0.1.0/docs/specs/n8n-editor-architecture.md +916 -0
  259. zeroth_core-0.1.0/docs/specs/phase-6-identity-access-model.md +68 -0
  260. zeroth_core-0.1.0/docs/specs/phase-7-governance-evidence.md +52 -0
  261. zeroth_core-0.1.0/docs/superpowers/plans/2026-03-27-live-research-audit.md +125 -0
  262. zeroth_core-0.1.0/docs/superpowers/plans/2026-04-10-zeroth-core-platform-split-plan.md +1353 -0
  263. zeroth_core-0.1.0/docs/superpowers/specs/2026-03-27-live-research-audit-design.md +179 -0
  264. zeroth_core-0.1.0/docs/superpowers/specs/2026-03-29-zeroth-studio-design.md +276 -0
  265. zeroth_core-0.1.0/docs/superpowers/specs/2026-04-10-zeroth-core-platform-split-design.md +809 -0
  266. zeroth_core-0.1.0/live_scenarios/README.md +56 -0
  267. zeroth_core-0.1.0/live_scenarios/__init__.py +1 -0
  268. zeroth_core-0.1.0/live_scenarios/research_audit/__init__.py +11 -0
  269. zeroth_core-0.1.0/live_scenarios/research_audit/bootstrap.py +825 -0
  270. zeroth_core-0.1.0/live_scenarios/research_audit/contracts.py +143 -0
  271. zeroth_core-0.1.0/live_scenarios/research_audit/normalize_evidence.py +47 -0
  272. zeroth_core-0.1.0/live_scenarios/research_audit/repo_search_cli.py +62 -0
  273. zeroth_core-0.1.0/live_scenarios/research_audit/run_queries.py +107 -0
  274. zeroth_core-0.1.0/live_scenarios/research_audit/run_server.py +42 -0
  275. zeroth_core-0.1.0/live_scenarios/research_audit/tools.py +137 -0
  276. zeroth_core-0.1.0/live_test.py +203 -0
  277. zeroth_core-0.1.0/phases/phase-10-studio-shell-workflow-authoring/artifacts/.gitkeep +1 -0
  278. zeroth_core-0.1.0/phases/phase-10-studio-shell-workflow-authoring/artifacts/build-10-02-editor-mockup-2026-03-31.txt +13 -0
  279. zeroth_core-0.1.0/phases/phase-5-integration/PROGRESS.md +253 -0
  280. zeroth_core-0.1.0/phases/phase-5-integration/artifacts/lint-after-merge-main-2026-03-27.txt +1 -0
  281. zeroth_core-0.1.0/phases/phase-5-integration/artifacts/lint-before-merge-main-2026-03-27.txt +1 -0
  282. zeroth_core-0.1.0/phases/phase-5-integration/artifacts/lint-live-scenario-2026-03-27.txt +1 -0
  283. zeroth_core-0.1.0/phases/phase-5-integration/artifacts/lint-live-scenario-push-2026-03-27.txt +1 -0
  284. zeroth_core-0.1.0/phases/phase-5-integration/artifacts/smoke-live-scenario-2026-03-27.txt +77 -0
  285. zeroth_core-0.1.0/phases/phase-5-integration/artifacts/test-full-after-merge-main-2026-03-27.txt +191 -0
  286. zeroth_core-0.1.0/phases/phase-5-integration/artifacts/test-full-before-merge-main-2026-03-27.txt +191 -0
  287. zeroth_core-0.1.0/phases/phase-5-integration/artifacts/test-live-scenario-green-2026-03-27.txt +15 -0
  288. zeroth_core-0.1.0/phases/phase-5-integration/artifacts/test-live-scenario-push-2026-03-27.txt +15 -0
  289. zeroth_core-0.1.0/phases/phase-5-integration/artifacts/test-live-scenario-red-2026-03-27.txt +57 -0
  290. zeroth_core-0.1.0/phases/phase-6-identity-governance/PLAN.md +96 -0
  291. zeroth_core-0.1.0/phases/phase-6-identity-governance/artifacts/.gitkeep +1 -0
  292. zeroth_core-0.1.0/phases/phase-6-identity-governance/artifacts/lint-6-service-live-suite-2026-03-27.txt +1 -0
  293. zeroth_core-0.1.0/phases/phase-6-identity-governance/artifacts/test-6-service-live-suite-2026-03-27.txt +80 -0
  294. zeroth_core-0.1.0/phases/phase-6-identity-governance/artifacts/test-6a-auth-green-2026-03-27.txt +14 -0
  295. zeroth_core-0.1.0/phases/phase-6-identity-governance/artifacts/test-6a-auth-red-2026-03-27.txt +81 -0
  296. zeroth_core-0.1.0/phases/phase-6-identity-governance/artifacts/test-6a-bearer-green-2026-03-27.txt +15 -0
  297. zeroth_core-0.1.0/phases/phase-6-identity-governance/artifacts/test-6a-bearer-red-2026-03-27.txt +24 -0
  298. zeroth_core-0.1.0/phases/phase-6-identity-governance/artifacts/test-6b-rbac-green-2026-03-27.txt +14 -0
  299. zeroth_core-0.1.0/phases/phase-6-identity-governance/artifacts/test-6c-tenant-green-2026-03-27.txt +13 -0
  300. zeroth_core-0.1.0/phases/phase-6-identity-governance/artifacts/test-6c-tenant-red-2026-03-27.txt +77 -0
  301. zeroth_core-0.1.0/phases/phase-7-transparent-governance/PLAN.md +91 -0
  302. zeroth_core-0.1.0/phases/phase-7-transparent-governance/artifacts/.gitkeep +1 -0
  303. zeroth_core-0.1.0/phases/phase-7-transparent-governance/artifacts/lint-7-phase-broader-2026-03-27.txt +1 -0
  304. zeroth_core-0.1.0/phases/phase-7-transparent-governance/artifacts/test-7-phase-broader-2026-03-27.txt +3 -0
  305. zeroth_core-0.1.0/phases/phase-7-transparent-governance/artifacts/test-7a-audit-api-green-2026-03-27.txt +2 -0
  306. zeroth_core-0.1.0/phases/phase-7-transparent-governance/artifacts/test-7a-audit-api-red-2026-03-27.txt +120 -0
  307. zeroth_core-0.1.0/phases/phase-7-transparent-governance/artifacts/test-7b-7d-green-2026-03-27.txt +2 -0
  308. zeroth_core-0.1.0/phases/phase-7-transparent-governance/artifacts/test-7b-7d-red-2026-03-27.txt +16 -0
  309. zeroth_core-0.1.0/phases/phase-8-runtime-security/PLAN.md +91 -0
  310. zeroth_core-0.1.0/phases/phase-8-runtime-security/artifacts/.gitkeep +1 -0
  311. zeroth_core-0.1.0/phases/phase-8-runtime-security/artifacts/lint-phase8-full-2026-03-27.txt +1 -0
  312. zeroth_core-0.1.0/phases/phase-8-runtime-security/artifacts/test-8a-sandbox-hardening-green-2026-03-27.txt +2 -0
  313. zeroth_core-0.1.0/phases/phase-8-runtime-security/artifacts/test-8a-sandbox-hardening-red-2026-03-27.txt +16 -0
  314. zeroth_core-0.1.0/phases/phase-8-runtime-security/artifacts/test-8b-runtime-enforcement-green-2026-03-27.txt +2 -0
  315. zeroth_core-0.1.0/phases/phase-8-runtime-security/artifacts/test-8c-secret-protection-green-2026-03-27.txt +2 -0
  316. zeroth_core-0.1.0/phases/phase-8-runtime-security/artifacts/test-phase8-baseline-2026-03-27.txt +68 -0
  317. zeroth_core-0.1.0/phases/phase-8-runtime-security/artifacts/test-phase8-full-2026-03-27.txt +5 -0
  318. zeroth_core-0.1.0/phases/phase-9-durable-control-plane/PLAN.md +87 -0
  319. zeroth_core-0.1.0/phases/phase-9-durable-control-plane/artifacts/.gitkeep +1 -0
  320. zeroth_core-0.1.0/pyproject.toml +87 -0
  321. zeroth_core-0.1.0/scripts/archive_monolith.sh +100 -0
  322. zeroth_core-0.1.0/scripts/publish_monolith_archive.sh +89 -0
  323. zeroth_core-0.1.0/scripts/rename_to_zeroth_core.py +266 -0
  324. zeroth_core-0.1.0/scripts/rewrite_zeroth_refs.sh +13 -0
  325. zeroth_core-0.1.0/scripts/verify_monolith_archive.sh +61 -0
  326. zeroth_core-0.1.0/src/zeroth/core/__init__.py +35 -0
  327. zeroth_core-0.1.0/src/zeroth/core/agent_runtime/__init__.py +98 -0
  328. zeroth_core-0.1.0/src/zeroth/core/agent_runtime/errors.py +57 -0
  329. zeroth_core-0.1.0/src/zeroth/core/agent_runtime/mcp.py +126 -0
  330. zeroth_core-0.1.0/src/zeroth/core/agent_runtime/models.py +212 -0
  331. zeroth_core-0.1.0/src/zeroth/core/agent_runtime/prompt.py +192 -0
  332. zeroth_core-0.1.0/src/zeroth/core/agent_runtime/provider.py +324 -0
  333. zeroth_core-0.1.0/src/zeroth/core/agent_runtime/response_format.py +52 -0
  334. zeroth_core-0.1.0/src/zeroth/core/agent_runtime/retry.py +69 -0
  335. zeroth_core-0.1.0/src/zeroth/core/agent_runtime/runner.py +516 -0
  336. zeroth_core-0.1.0/src/zeroth/core/agent_runtime/thread_store.py +224 -0
  337. zeroth_core-0.1.0/src/zeroth/core/agent_runtime/tools.py +301 -0
  338. zeroth_core-0.1.0/src/zeroth/core/agent_runtime/validation.py +66 -0
  339. zeroth_core-0.1.0/src/zeroth/core/approvals/__init__.py +25 -0
  340. zeroth_core-0.1.0/src/zeroth/core/approvals/models.py +116 -0
  341. zeroth_core-0.1.0/src/zeroth/core/approvals/repository.py +176 -0
  342. zeroth_core-0.1.0/src/zeroth/core/approvals/service.py +482 -0
  343. zeroth_core-0.1.0/src/zeroth/core/approvals/sla_checker.py +75 -0
  344. zeroth_core-0.1.0/src/zeroth/core/audit/__init__.py +41 -0
  345. zeroth_core-0.1.0/src/zeroth/core/audit/evidence.py +29 -0
  346. zeroth_core-0.1.0/src/zeroth/core/audit/models.py +183 -0
  347. zeroth_core-0.1.0/src/zeroth/core/audit/repository.py +149 -0
  348. zeroth_core-0.1.0/src/zeroth/core/audit/sanitizer.py +68 -0
  349. zeroth_core-0.1.0/src/zeroth/core/audit/timeline.py +30 -0
  350. zeroth_core-0.1.0/src/zeroth/core/audit/verifier.py +94 -0
  351. zeroth_core-0.1.0/src/zeroth/core/conditions/__init__.py +32 -0
  352. zeroth_core-0.1.0/src/zeroth/core/conditions/binding.py +42 -0
  353. zeroth_core-0.1.0/src/zeroth/core/conditions/branch.py +246 -0
  354. zeroth_core-0.1.0/src/zeroth/core/conditions/errors.py +23 -0
  355. zeroth_core-0.1.0/src/zeroth/core/conditions/evaluator.py +250 -0
  356. zeroth_core-0.1.0/src/zeroth/core/conditions/models.py +150 -0
  357. zeroth_core-0.1.0/src/zeroth/core/conditions/recorder.py +32 -0
  358. zeroth_core-0.1.0/src/zeroth/core/config/__init__.py +9 -0
  359. zeroth_core-0.1.0/src/zeroth/core/config/settings.py +188 -0
  360. zeroth_core-0.1.0/src/zeroth/core/contracts/__init__.py +25 -0
  361. zeroth_core-0.1.0/src/zeroth/core/contracts/errors.py +39 -0
  362. zeroth_core-0.1.0/src/zeroth/core/contracts/registry.py +436 -0
  363. zeroth_core-0.1.0/src/zeroth/core/demos/__init__.py +0 -0
  364. zeroth_core-0.1.0/src/zeroth/core/demos/format_script.py +27 -0
  365. zeroth_core-0.1.0/src/zeroth/core/demos/qa_models.py +41 -0
  366. zeroth_core-0.1.0/src/zeroth/core/deployments/__init__.py +13 -0
  367. zeroth_core-0.1.0/src/zeroth/core/deployments/models.py +49 -0
  368. zeroth_core-0.1.0/src/zeroth/core/deployments/provenance.py +107 -0
  369. zeroth_core-0.1.0/src/zeroth/core/deployments/repository.py +185 -0
  370. zeroth_core-0.1.0/src/zeroth/core/deployments/service.py +172 -0
  371. zeroth_core-0.1.0/src/zeroth/core/dispatch/__init__.py +25 -0
  372. zeroth_core-0.1.0/src/zeroth/core/dispatch/arq_wakeup.py +107 -0
  373. zeroth_core-0.1.0/src/zeroth/core/dispatch/lease.py +279 -0
  374. zeroth_core-0.1.0/src/zeroth/core/dispatch/worker.py +376 -0
  375. zeroth_core-0.1.0/src/zeroth/core/econ/__init__.py +26 -0
  376. zeroth_core-0.1.0/src/zeroth/core/econ/adapter.py +100 -0
  377. zeroth_core-0.1.0/src/zeroth/core/econ/budget.py +75 -0
  378. zeroth_core-0.1.0/src/zeroth/core/econ/client.py +47 -0
  379. zeroth_core-0.1.0/src/zeroth/core/econ/cost.py +37 -0
  380. zeroth_core-0.1.0/src/zeroth/core/econ/models.py +34 -0
  381. zeroth_core-0.1.0/src/zeroth/core/execution_units/__init__.py +144 -0
  382. zeroth_core-0.1.0/src/zeroth/core/execution_units/adapters.py +196 -0
  383. zeroth_core-0.1.0/src/zeroth/core/execution_units/constraints.py +48 -0
  384. zeroth_core-0.1.0/src/zeroth/core/execution_units/errors.py +35 -0
  385. zeroth_core-0.1.0/src/zeroth/core/execution_units/integrity.py +90 -0
  386. zeroth_core-0.1.0/src/zeroth/core/execution_units/io.py +285 -0
  387. zeroth_core-0.1.0/src/zeroth/core/execution_units/models.py +295 -0
  388. zeroth_core-0.1.0/src/zeroth/core/execution_units/runner.py +691 -0
  389. zeroth_core-0.1.0/src/zeroth/core/execution_units/sandbox.py +793 -0
  390. zeroth_core-0.1.0/src/zeroth/core/execution_units/sidecar_client.py +57 -0
  391. zeroth_core-0.1.0/src/zeroth/core/execution_units/validator.py +356 -0
  392. zeroth_core-0.1.0/src/zeroth/core/graph/__init__.py +39 -0
  393. zeroth_core-0.1.0/src/zeroth/core/graph/diff.py +413 -0
  394. zeroth_core-0.1.0/src/zeroth/core/graph/errors.py +13 -0
  395. zeroth_core-0.1.0/src/zeroth/core/graph/models.py +393 -0
  396. zeroth_core-0.1.0/src/zeroth/core/graph/repository.py +237 -0
  397. zeroth_core-0.1.0/src/zeroth/core/graph/serialization.py +27 -0
  398. zeroth_core-0.1.0/src/zeroth/core/graph/storage.py +44 -0
  399. zeroth_core-0.1.0/src/zeroth/core/graph/validation.py +591 -0
  400. zeroth_core-0.1.0/src/zeroth/core/graph/validation_errors.py +127 -0
  401. zeroth_core-0.1.0/src/zeroth/core/graph/versioning.py +35 -0
  402. zeroth_core-0.1.0/src/zeroth/core/guardrails/__init__.py +12 -0
  403. zeroth_core-0.1.0/src/zeroth/core/guardrails/config.py +27 -0
  404. zeroth_core-0.1.0/src/zeroth/core/guardrails/dead_letter.py +61 -0
  405. zeroth_core-0.1.0/src/zeroth/core/guardrails/rate_limit.py +145 -0
  406. zeroth_core-0.1.0/src/zeroth/core/identity/__init__.py +17 -0
  407. zeroth_core-0.1.0/src/zeroth/core/identity/models.py +66 -0
  408. zeroth_core-0.1.0/src/zeroth/core/mappings/__init__.py +29 -0
  409. zeroth_core-0.1.0/src/zeroth/core/mappings/errors.py +13 -0
  410. zeroth_core-0.1.0/src/zeroth/core/mappings/executor.py +110 -0
  411. zeroth_core-0.1.0/src/zeroth/core/mappings/models.py +92 -0
  412. zeroth_core-0.1.0/src/zeroth/core/mappings/validator.py +93 -0
  413. zeroth_core-0.1.0/src/zeroth/core/memory/__init__.py +29 -0
  414. zeroth_core-0.1.0/src/zeroth/core/memory/chroma_connector.py +131 -0
  415. zeroth_core-0.1.0/src/zeroth/core/memory/connectors.py +184 -0
  416. zeroth_core-0.1.0/src/zeroth/core/memory/elastic_connector.py +117 -0
  417. zeroth_core-0.1.0/src/zeroth/core/memory/factory.py +217 -0
  418. zeroth_core-0.1.0/src/zeroth/core/memory/models.py +44 -0
  419. zeroth_core-0.1.0/src/zeroth/core/memory/pgvector_connector.py +168 -0
  420. zeroth_core-0.1.0/src/zeroth/core/memory/redis_kv.py +111 -0
  421. zeroth_core-0.1.0/src/zeroth/core/memory/redis_thread.py +117 -0
  422. zeroth_core-0.1.0/src/zeroth/core/memory/registry.py +167 -0
  423. zeroth_core-0.1.0/src/zeroth/core/migrations/__init__.py +0 -0
  424. zeroth_core-0.1.0/src/zeroth/core/migrations/env.py +27 -0
  425. zeroth_core-0.1.0/src/zeroth/core/migrations/versions/001_initial_schema.py +294 -0
  426. zeroth_core-0.1.0/src/zeroth/core/migrations/versions/002_add_cost_fields.py +29 -0
  427. zeroth_core-0.1.0/src/zeroth/core/migrations/versions/003_add_webhooks_and_sla.py +102 -0
  428. zeroth_core-0.1.0/src/zeroth/core/migrations/versions/004_add_skip_locked_index.py +32 -0
  429. zeroth_core-0.1.0/src/zeroth/core/migrations/versions/__init__.py +0 -0
  430. zeroth_core-0.1.0/src/zeroth/core/observability/__init__.py +15 -0
  431. zeroth_core-0.1.0/src/zeroth/core/observability/correlation.py +30 -0
  432. zeroth_core-0.1.0/src/zeroth/core/observability/metrics.py +82 -0
  433. zeroth_core-0.1.0/src/zeroth/core/observability/queue_gauge.py +31 -0
  434. zeroth_core-0.1.0/src/zeroth/core/orchestrator/__init__.py +18 -0
  435. zeroth_core-0.1.0/src/zeroth/core/orchestrator/runtime.py +921 -0
  436. zeroth_core-0.1.0/src/zeroth/core/policy/__init__.py +27 -0
  437. zeroth_core-0.1.0/src/zeroth/core/policy/guard.py +197 -0
  438. zeroth_core-0.1.0/src/zeroth/core/policy/models.py +79 -0
  439. zeroth_core-0.1.0/src/zeroth/core/policy/registry.py +57 -0
  440. zeroth_core-0.1.0/src/zeroth/core/runs/__init__.py +35 -0
  441. zeroth_core-0.1.0/src/zeroth/core/runs/models.py +181 -0
  442. zeroth_core-0.1.0/src/zeroth/core/runs/repository.py +964 -0
  443. zeroth_core-0.1.0/src/zeroth/core/sandbox_sidecar/__init__.py +9 -0
  444. zeroth_core-0.1.0/src/zeroth/core/sandbox_sidecar/app.py +53 -0
  445. zeroth_core-0.1.0/src/zeroth/core/sandbox_sidecar/executor.py +201 -0
  446. zeroth_core-0.1.0/src/zeroth/core/sandbox_sidecar/models.py +60 -0
  447. zeroth_core-0.1.0/src/zeroth/core/secrets/__init__.py +6 -0
  448. zeroth_core-0.1.0/src/zeroth/core/secrets/provider.py +68 -0
  449. zeroth_core-0.1.0/src/zeroth/core/secrets/redaction.py +33 -0
  450. zeroth_core-0.1.0/src/zeroth/core/service/__init__.py +17 -0
  451. zeroth_core-0.1.0/src/zeroth/core/service/admin_api.py +160 -0
  452. zeroth_core-0.1.0/src/zeroth/core/service/app.py +280 -0
  453. zeroth_core-0.1.0/src/zeroth/core/service/approval_api.py +255 -0
  454. zeroth_core-0.1.0/src/zeroth/core/service/audit_api.py +401 -0
  455. zeroth_core-0.1.0/src/zeroth/core/service/auth.py +215 -0
  456. zeroth_core-0.1.0/src/zeroth/core/service/authorization.py +124 -0
  457. zeroth_core-0.1.0/src/zeroth/core/service/bootstrap.py +419 -0
  458. zeroth_core-0.1.0/src/zeroth/core/service/contracts_api.py +240 -0
  459. zeroth_core-0.1.0/src/zeroth/core/service/cost_api.py +84 -0
  460. zeroth_core-0.1.0/src/zeroth/core/service/entrypoint.py +66 -0
  461. zeroth_core-0.1.0/src/zeroth/core/service/health.py +180 -0
  462. zeroth_core-0.1.0/src/zeroth/core/service/run_api.py +391 -0
  463. zeroth_core-0.1.0/src/zeroth/core/service/studio_api.py +299 -0
  464. zeroth_core-0.1.0/src/zeroth/core/service/studio_schemas.py +97 -0
  465. zeroth_core-0.1.0/src/zeroth/core/service/webhook_api.py +241 -0
  466. zeroth_core-0.1.0/src/zeroth/core/storage/__init__.py +35 -0
  467. zeroth_core-0.1.0/src/zeroth/core/storage/async_postgres.py +94 -0
  468. zeroth_core-0.1.0/src/zeroth/core/storage/async_sqlite.py +83 -0
  469. zeroth_core-0.1.0/src/zeroth/core/storage/database.py +34 -0
  470. zeroth_core-0.1.0/src/zeroth/core/storage/factory.py +39 -0
  471. zeroth_core-0.1.0/src/zeroth/core/storage/json.py +65 -0
  472. zeroth_core-0.1.0/src/zeroth/core/storage/redis.py +249 -0
  473. zeroth_core-0.1.0/src/zeroth/core/storage/sqlite.py +178 -0
  474. zeroth_core-0.1.0/src/zeroth/core/webhooks/__init__.py +39 -0
  475. zeroth_core-0.1.0/src/zeroth/core/webhooks/delivery.py +141 -0
  476. zeroth_core-0.1.0/src/zeroth/core/webhooks/models.py +134 -0
  477. zeroth_core-0.1.0/src/zeroth/core/webhooks/repository.py +374 -0
  478. zeroth_core-0.1.0/src/zeroth/core/webhooks/service.py +109 -0
  479. zeroth_core-0.1.0/src/zeroth/core/webhooks/signing.py +22 -0
  480. zeroth_core-0.1.0/tests/__init__.py +0 -0
  481. zeroth_core-0.1.0/tests/agent_runtime/__init__.py +1 -0
  482. zeroth_core-0.1.0/tests/agent_runtime/test_agent_runtime.py +158 -0
  483. zeroth_core-0.1.0/tests/agent_runtime/test_runner_integration.py +166 -0
  484. zeroth_core-0.1.0/tests/agent_runtime/test_runner_tools.py +97 -0
  485. zeroth_core-0.1.0/tests/agent_runtime/test_thread_store.py +100 -0
  486. zeroth_core-0.1.0/tests/agent_runtime/test_tools.py +98 -0
  487. zeroth_core-0.1.0/tests/approvals/__init__.py +1 -0
  488. zeroth_core-0.1.0/tests/approvals/test_service.py +118 -0
  489. zeroth_core-0.1.0/tests/audit/test_audit_repository.py +184 -0
  490. zeroth_core-0.1.0/tests/conditions/__init__.py +1 -0
  491. zeroth_core-0.1.0/tests/conditions/test_branch.py +175 -0
  492. zeroth_core-0.1.0/tests/conditions/test_evaluator.py +59 -0
  493. zeroth_core-0.1.0/tests/conditions/test_recorder.py +26 -0
  494. zeroth_core-0.1.0/tests/conftest.py +124 -0
  495. zeroth_core-0.1.0/tests/contracts/__init__.py +1 -0
  496. zeroth_core-0.1.0/tests/contracts/test_registry.py +141 -0
  497. zeroth_core-0.1.0/tests/deployments/__init__.py +1 -0
  498. zeroth_core-0.1.0/tests/deployments/test_service.py +240 -0
  499. zeroth_core-0.1.0/tests/dispatch/__init__.py +0 -0
  500. zeroth_core-0.1.0/tests/dispatch/test_arq_wakeup.py +90 -0
  501. zeroth_core-0.1.0/tests/dispatch/test_integration.py +221 -0
  502. zeroth_core-0.1.0/tests/dispatch/test_lease.py +276 -0
  503. zeroth_core-0.1.0/tests/dispatch/test_recovery.py +136 -0
  504. zeroth_core-0.1.0/tests/dispatch/test_worker.py +397 -0
  505. zeroth_core-0.1.0/tests/execution_units/__init__.py +1 -0
  506. zeroth_core-0.1.0/tests/execution_units/test_adapters.py +101 -0
  507. zeroth_core-0.1.0/tests/execution_units/test_integrity.py +156 -0
  508. zeroth_core-0.1.0/tests/execution_units/test_io.py +219 -0
  509. zeroth_core-0.1.0/tests/execution_units/test_manifest.py +98 -0
  510. zeroth_core-0.1.0/tests/execution_units/test_runner.py +269 -0
  511. zeroth_core-0.1.0/tests/execution_units/test_sandbox.py +272 -0
  512. zeroth_core-0.1.0/tests/execution_units/test_sandbox_hardening.py +141 -0
  513. zeroth_core-0.1.0/tests/execution_units/test_sidecar_client.py +160 -0
  514. zeroth_core-0.1.0/tests/graph/__init__.py +1 -0
  515. zeroth_core-0.1.0/tests/graph/test_models.py +164 -0
  516. zeroth_core-0.1.0/tests/graph/test_repository.py +111 -0
  517. zeroth_core-0.1.0/tests/graph/test_validation.py +304 -0
  518. zeroth_core-0.1.0/tests/guardrails/__init__.py +0 -0
  519. zeroth_core-0.1.0/tests/guardrails/test_dead_letter.py +82 -0
  520. zeroth_core-0.1.0/tests/guardrails/test_rate_limit.py +82 -0
  521. zeroth_core-0.1.0/tests/live_scenarios/conftest.py +15 -0
  522. zeroth_core-0.1.0/tests/live_scenarios/test_research_audit.py +370 -0
  523. zeroth_core-0.1.0/tests/mappings/__init__.py +1 -0
  524. zeroth_core-0.1.0/tests/mappings/test_executor.py +71 -0
  525. zeroth_core-0.1.0/tests/mappings/test_validator.py +58 -0
  526. zeroth_core-0.1.0/tests/memory/test_chroma.py +195 -0
  527. zeroth_core-0.1.0/tests/memory/test_connectors.py +141 -0
  528. zeroth_core-0.1.0/tests/memory/test_elastic.py +199 -0
  529. zeroth_core-0.1.0/tests/memory/test_factory.py +436 -0
  530. zeroth_core-0.1.0/tests/memory/test_pgvector.py +247 -0
  531. zeroth_core-0.1.0/tests/memory/test_redis_kv.py +275 -0
  532. zeroth_core-0.1.0/tests/memory/test_redis_thread.py +271 -0
  533. zeroth_core-0.1.0/tests/memory/test_resolver.py +114 -0
  534. zeroth_core-0.1.0/tests/observability/__init__.py +0 -0
  535. zeroth_core-0.1.0/tests/observability/test_correlation.py +47 -0
  536. zeroth_core-0.1.0/tests/observability/test_metrics.py +56 -0
  537. zeroth_core-0.1.0/tests/orchestrator/test_memory_budget_wiring.py +167 -0
  538. zeroth_core-0.1.0/tests/orchestrator/test_runtime.py +590 -0
  539. zeroth_core-0.1.0/tests/policy/test_guard.py +121 -0
  540. zeroth_core-0.1.0/tests/policy/test_runtime_enforcement.py +345 -0
  541. zeroth_core-0.1.0/tests/runs/__init__.py +1 -0
  542. zeroth_core-0.1.0/tests/runs/conftest.py +17 -0
  543. zeroth_core-0.1.0/tests/runs/test_models.py +65 -0
  544. zeroth_core-0.1.0/tests/runs/test_repository.py +166 -0
  545. zeroth_core-0.1.0/tests/sandbox_sidecar/__init__.py +0 -0
  546. zeroth_core-0.1.0/tests/sandbox_sidecar/test_app.py +158 -0
  547. zeroth_core-0.1.0/tests/secrets/test_data_protection.py +127 -0
  548. zeroth_core-0.1.0/tests/secrets/test_provider.py +54 -0
  549. zeroth_core-0.1.0/tests/service/helpers.py +337 -0
  550. zeroth_core-0.1.0/tests/service/test_admin_api.py +304 -0
  551. zeroth_core-0.1.0/tests/service/test_app.py +129 -0
  552. zeroth_core-0.1.0/tests/service/test_approval_api.py +217 -0
  553. zeroth_core-0.1.0/tests/service/test_audit_api.py +152 -0
  554. zeroth_core-0.1.0/tests/service/test_auth_api.py +92 -0
  555. zeroth_core-0.1.0/tests/service/test_bearer_auth.py +155 -0
  556. zeroth_core-0.1.0/tests/service/test_contract_api.py +270 -0
  557. zeroth_core-0.1.0/tests/service/test_durable_dispatch.py +128 -0
  558. zeroth_core-0.1.0/tests/service/test_e2e_phase4.py +187 -0
  559. zeroth_core-0.1.0/tests/service/test_e2e_phase5.py +873 -0
  560. zeroth_core-0.1.0/tests/service/test_evidence_api.py +179 -0
  561. zeroth_core-0.1.0/tests/service/test_guardrails_api.py +103 -0
  562. zeroth_core-0.1.0/tests/service/test_metrics_endpoint.py +112 -0
  563. zeroth_core-0.1.0/tests/service/test_rbac_api.py +99 -0
  564. zeroth_core-0.1.0/tests/service/test_run_api.py +408 -0
  565. zeroth_core-0.1.0/tests/service/test_tenant_isolation.py +129 -0
  566. zeroth_core-0.1.0/tests/service/test_thread_api.py +179 -0
  567. zeroth_core-0.1.0/tests/storage/__init__.py +1 -0
  568. zeroth_core-0.1.0/tests/storage/conftest.py +15 -0
  569. zeroth_core-0.1.0/tests/storage/test_json.py +51 -0
  570. zeroth_core-0.1.0/tests/storage/test_redis.py +105 -0
  571. zeroth_core-0.1.0/tests/storage/test_sqlite.py +73 -0
  572. zeroth_core-0.1.0/tests/test_api_versioning.py +87 -0
  573. zeroth_core-0.1.0/tests/test_approval_sla.py +382 -0
  574. zeroth_core-0.1.0/tests/test_async_database.py +102 -0
  575. zeroth_core-0.1.0/tests/test_config.py +62 -0
  576. zeroth_core-0.1.0/tests/test_cost_api.py +121 -0
  577. zeroth_core-0.1.0/tests/test_econ_adapter.py +201 -0
  578. zeroth_core-0.1.0/tests/test_econ_budget.py +225 -0
  579. zeroth_core-0.1.0/tests/test_econ_models.py +107 -0
  580. zeroth_core-0.1.0/tests/test_health_probes.py +281 -0
  581. zeroth_core-0.1.0/tests/test_litellm_adapter.py +144 -0
  582. zeroth_core-0.1.0/tests/test_litellm_adapter_forwarding.py +173 -0
  583. zeroth_core-0.1.0/tests/test_live_llm.py +74 -0
  584. zeroth_core-0.1.0/tests/test_mcp_integration.py +231 -0
  585. zeroth_core-0.1.0/tests/test_phase27_docstring_tooling.py +24 -0
  586. zeroth_core-0.1.0/tests/test_phase27_rename_scripts.py +96 -0
  587. zeroth_core-0.1.0/tests/test_postgres_backend.py +126 -0
  588. zeroth_core-0.1.0/tests/test_provider_request_extensions.py +185 -0
  589. zeroth_core-0.1.0/tests/test_retry_backoff.py +88 -0
  590. zeroth_core-0.1.0/tests/test_runner_api_parity.py +217 -0
  591. zeroth_core-0.1.0/tests/test_runner_mcp_wiring.py +240 -0
  592. zeroth_core-0.1.0/tests/test_smoke.py +4 -0
  593. zeroth_core-0.1.0/tests/test_studio_api.py +217 -0
  594. zeroth_core-0.1.0/tests/test_webhook_api.py +237 -0
  595. zeroth_core-0.1.0/tests/test_webhook_delivery.py +172 -0
  596. zeroth_core-0.1.0/tests/test_webhook_event_emission.py +230 -0
  597. zeroth_core-0.1.0/tests/test_webhook_models.py +257 -0
  598. zeroth_core-0.1.0/tests/test_webhook_repository.py +340 -0
  599. zeroth_core-0.1.0/tests/test_webhook_service.py +169 -0
  600. zeroth_core-0.1.0/uv.lock +3391 -0
  601. zeroth_core-0.1.0/zeroth.yaml +13 -0
@@ -0,0 +1,112 @@
1
+ ---
2
+ name: progress-logger
3
+ description: >
4
+ MANDATORY skill that enforces progress logging on every implementation
5
+ iteration. Use this skill whenever you are implementing, modifying, fixing,
6
+ or completing ANY task that maps to a phase in the Zeroth project. This skill
7
+ must fire BEFORE you report completion and AFTER every meaningful unit of work.
8
+ Trigger on: finishing a task, completing a checklist item, passing or failing
9
+ tests, creating or modifying deliverables, hitting a blocker, or changing
10
+ approach. If you are doing implementation work in this project, this skill
11
+ applies — no exceptions.
12
+ disable-model-invocation: false
13
+ user-invocable: true
14
+ allowed-tools: Bash, Read, Glob, Grep, Edit, Write
15
+ argument-hint: "[phase/task completed or status update]"
16
+ ---
17
+
18
+ # Progress Logger
19
+
20
+ Every implementation iteration must update `PROGRESS.md` (root) and, when
21
+ applicable, produce artifacts in the relevant phase's `artifacts/` directory.
22
+
23
+ ## File Layout
24
+
25
+ ```
26
+ PROGRESS.md ← single source of truth for all progress + log
27
+ phases/phase-1-foundation/PLAN.md ← detailed requirements (read only when working on Phase 1)
28
+ phases/phase-1-foundation/artifacts/ ← test output, evidence
29
+ phases/phase-2-execution/PLAN.md
30
+ phases/phase-2-execution/artifacts/
31
+ phases/phase-3-control/PLAN.md
32
+ phases/phase-3-control/artifacts/
33
+ phases/phase-4-deployment/PLAN.md
34
+ phases/phase-4-deployment/artifacts/
35
+ phases/phase-5-integration/PLAN.md
36
+ phases/phase-5-integration/artifacts/
37
+ ```
38
+
39
+ An agent assigned to task "2E" only needs to read:
40
+ 1. The 2E section of `PROGRESS.md` (to see current state)
41
+ 2. `phases/phase-2-execution/PLAN.md` (for detailed requirements)
42
+
43
+ Do NOT read `PLAN.md` (root) — it is the master spec, not an implementation guide.
44
+
45
+ ## The Protocol
46
+
47
+ ### Step 1 — Read Current State
48
+
49
+ Read the relevant section of `PROGRESS.md` to see what's done, in-progress, or blocked.
50
+ If you need detailed requirements, read the phase's `PLAN.md`.
51
+
52
+ ### Step 2 — Update Checkboxes in PROGRESS.md
53
+
54
+ Edit `PROGRESS.md`:
55
+
56
+ 1. **Completed** — change `[ ]` to `[x]` for tasks you finished
57
+ 2. **In-progress** — change `[ ]` to `[~]` for tasks you started but haven't finished
58
+ 3. **Blocked** — change `[ ]` to `[-]` and add a note explaining the blocker
59
+ 4. **Artifacts** — only mark `**Artifact:**` lines `[x]` when evidence exists
60
+
61
+ Rules:
62
+ - Never mark `[x]` unless the code exists AND compiles/runs
63
+ - Never mark an artifact `[x]` unless the file is in `artifacts/` or tests pass
64
+ - If you deviated from the plan, add a `> **Note:**` line under the task
65
+ - Update after each completed item, not in batches
66
+
67
+ ### Step 3 — Append to the Log
68
+
69
+ Append an entry to the `## Log` section at the bottom of `PROGRESS.md`:
70
+
71
+ ```markdown
72
+ ### YYYY-MM-DD HH:MM — [brief title]
73
+ **Phase/Tasks:** 1A, 2E, etc.
74
+ **Status:** completed | in-progress | blocked
75
+ **What:** [concrete changes — files created/modified, functions implemented]
76
+ **Tests:** [pass/fail/not run]
77
+ **Artifacts:** [files added to phases/phase-N-*/artifacts/]
78
+ **Blockers:** [none or description]
79
+ **Next:** [what should happen next]
80
+ ```
81
+
82
+ ### Step 4 — Produce Artifacts (when applicable)
83
+
84
+ When an `**Artifact:**` line requires evidence:
85
+
86
+ - **Test results:** `phases/phase-N-*/artifacts/test-{task}-{date}.txt`
87
+ - **Validation reports:** `phases/phase-N-*/artifacts/validation-{desc}.json`
88
+ - **Build evidence:** `phases/phase-N-*/artifacts/build-{desc}.txt`
89
+
90
+ Capture output even on failure — failed artifacts are valid evidence.
91
+
92
+ ## Anti-Patterns
93
+
94
+ | Bad | Good |
95
+ |-----|------|
96
+ | Mark done without code existing | Only mark done when code is saved and works |
97
+ | Skip artifact production | Capture test output when artifact checklist requires it |
98
+ | Vague log ("worked on models") | Specific log ("defined Graph model in src/models/graph.py, 11 fields, serialization test passes") |
99
+ | Batch updates at end of session | Update after each completed item |
100
+ | Mark artifact done without file | Artifact checkbox = file exists in artifacts/ |
101
+ | Read root PLAN.md to start working | Read only the phase PLAN.md you need |
102
+ | Read all PROGRESS.md sections | Read only the section for your task |
103
+
104
+ ## Example
105
+
106
+ After implementing the Graph model and passing serialization tests:
107
+
108
+ 1. Read 1A section of `PROGRESS.md`
109
+ 2. Mark "Define canonical Graph model" as `[x]`
110
+ 3. Mark "Artifact: serialization round-trip tests pass" as `[x]`
111
+ 4. Save test output to `phases/phase-1-foundation/artifacts/test-1a-graph-serialization-2026-03-18.txt`
112
+ 5. Append log entry with what was done, test results, next steps
@@ -0,0 +1,17 @@
1
+ {
2
+ "version": "0.0.1",
3
+ "configurations": [
4
+ {
5
+ "name": "studio-mockups",
6
+ "runtimeExecutable": "npm",
7
+ "runtimeArgs": ["--prefix", "apps/studio-mockups", "run", "dev"],
8
+ "port": 5173
9
+ },
10
+ {
11
+ "name": "zeroth-api",
12
+ "runtimeExecutable": "uv",
13
+ "runtimeArgs": ["run", "uvicorn", "zeroth.service.app:app", "--reload", "--port", "8000"],
14
+ "port": 8000
15
+ }
16
+ ]
17
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(uv pip:*)",
5
+ "Bash(uv run:*)",
6
+ "Bash(tee .planning/phases/27-ship-zeroth-as-pip-installable-library-zeroth-core/artifacts/interrogate-after.txt)",
7
+ "Bash(git add:*)",
8
+ "Bash(git commit --no-verify -m ':*)",
9
+ "Bash(git push:*)",
10
+ "Bash(gh repo:*)",
11
+ "Bash(uv build:*)",
12
+ "Bash(gh run:*)",
13
+ "Read(//Users/dondoe/coding/regulus/sdk/python/**)",
14
+ "Bash(rm -rf dist/)",
15
+ "Read(//Users/dondoe/coding/governai/**)",
16
+ "Read(//Users/dondoe/coding/governai/.claude/worktrees/agent-a67b37fb/.github/workflows/**)",
17
+ "Bash(docker info:*)",
18
+ "Bash(grep:*)"
19
+ ]
20
+ }
21
+ }
@@ -0,0 +1,28 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+
7
+ jobs:
8
+ verify:
9
+ runs-on: ubuntu-latest
10
+
11
+ steps:
12
+ - name: Checkout
13
+ uses: actions/checkout@v4
14
+
15
+ - name: Install uv
16
+ uses: astral-sh/setup-uv@v5
17
+
18
+ - name: Set up Python
19
+ uses: actions/setup-python@v5
20
+ with:
21
+ python-version: "3.12"
22
+
23
+ - name: Run repo checks
24
+ run: |
25
+ uv sync --all-groups
26
+ uv run ruff check src tests
27
+ uv run pytest -v --no-header -ra
28
+ uv run interrogate src/zeroth/core
@@ -0,0 +1,29 @@
1
+ # Python-generated files
2
+ __pycache__/
3
+ *.py[oc]
4
+ build/
5
+ dist/
6
+ wheels/
7
+ *.egg-info
8
+
9
+ # Virtual environments
10
+ .venv
11
+ node_modules/
12
+
13
+ # Local git worktrees
14
+ .worktrees/
15
+
16
+ # Local brainstorming/visual companion state
17
+ .superpowers/
18
+
19
+ # Generated local state for live scenarios
20
+ live_scenarios/*.sqlite3
21
+ zeroth.db
22
+ zeroth.db-shm
23
+ zeroth.db-wal
24
+ zeroth_dev.db
25
+ zeroth_dev.db-shm
26
+ zeroth_dev.db-wal
27
+ zeroth_live.db
28
+ zeroth_live.db-shm
29
+ zeroth_live.db-wal
@@ -0,0 +1,23 @@
1
+ # Milestones
2
+
3
+ ## v1.1 Production Readiness (Shipped: 2026-04-09)
4
+
5
+ **Phases:** 11 (Phases 11-21) | **Plans:** 30 | **Timeline:** 4 days
6
+ **Stats:** 168 commits, 350 files changed, +47,444 / -3,273 lines
7
+
8
+ **Key accomplishments:**
9
+
10
+ - Real LLM provider integration via LiteLLM routing to 100+ models with exponential backoff retry and token usage audit
11
+ - Regulus economics: per-call cost events, per-tenant budget enforcement with fail-open, cost REST endpoints
12
+ - 8 memory connector types (Redis KV/thread, pgvector, ChromaDB, Elasticsearch, 3 in-memory) bridged to GovernAI v0.3.0 protocol
13
+ - Docker sandbox sidecar architecture with per-execution network isolation
14
+ - Durable webhooks with HMAC signing, dead-letter store, and approval SLA escalation policies
15
+ - Production deployment: multi-stage Dockerfile, 6-service docker-compose, Nginx TLS termination, health probes
16
+ - Native LLM API parity: tool schemas, structured output, model parameters, MCP server connections
17
+ - Postgres storage backend with Alembic migrations, ARQ wakeup, horizontal worker scaling via SKIP LOCKED
18
+
19
+ **Tech debt at completion:** 8 cosmetic items (stale comments, dead code, duplicate fields, documentation staleness) — 0 blockers
20
+
21
+ **Archive:** `milestones/v1.1-ROADMAP.md`, `milestones/v1.1-REQUIREMENTS.md`, `milestones/v1.1-MILESTONE-AUDIT.md`, `milestones/v1.1-phases/`
22
+
23
+ ---
@@ -0,0 +1,132 @@
1
+ # Zeroth
2
+
3
+ ## What This Is
4
+
5
+ Zeroth is a governed medium-code platform for building, running, and deploying production-grade multi-agent systems as standalone API services. The platform provides graph-based orchestration, typed contracts, sandboxed execution, human approvals, per-node audit trails, identity/RBAC, tenant isolation, deployment provenance, durable dispatch, real LLM provider integration (100+ models via LiteLLM), token economics via Regulus, external memory backends, and containerized deployment with health probes.
6
+
7
+ ## Core Value
8
+
9
+ Teams can author and operate governed multi-agent workflows without sacrificing production controls, auditability, or deployment rigor.
10
+
11
+ ## Current Milestone: v3.0 Core Library Extraction, Studio Split & Documentation
12
+
13
+ **Goal:** Ship Zeroth as a pip-installable Python library (`zeroth-core`) with in-depth usage documentation covering every major subsystem, while moving the Vue Studio UI into a separate repo so the two evolve independently.
14
+
15
+ **Target features:**
16
+ - `zeroth-core` PyPI distribution containing the full Python codebase under `zeroth.core.*` namespace (full rename, zero deletions, all functionality preserved)
17
+ - `econ-instrumentation-sdk` published to PyPI to replace the local file-path dependency
18
+ - `zeroth-studio` separate public repo containing the Vue 3 + Vue Flow frontend, depending on `zeroth-core` via HTTP API only — v2.0 phases 24-26 continue there
19
+ - Complete, in-depth documentation for every `zeroth-core` subsystem: getting started, core concepts, per-module guides (graph, orchestrator, agents, execution units, memory, contracts, runs, conditions, mappings, policy, approvals, audit, secrets, identity, guardrails, dispatch, economics, storage, service), HTTP & Python API references, integration recipes, deployment guide, migration guide
20
+ - Full multi-layer archive of the existing monolithic repo (tarball + bare mirror + GitHub archive)
21
+
22
+ **Pivot context:** v2.0 Zeroth Studio phases 22-23 are shipped; phases 24-26 (Execution & AI Authoring, Governance Visualization, Versioning & Collaboration) are **not cancelled** — they move to the new `zeroth-studio` repo with their own roadmap. This milestone is a packaging and structural change, not a scope reduction. Most of Phase 0 (preservation) and significant progress on Phase 1 (core library extraction) have been completed ad-hoc prior to formalizing this milestone.
23
+
24
+ ## Prior Milestone: v2.0 Zeroth Studio (partially shipped)
25
+
26
+ **Status:** Phases 22-23 shipped (2026-04-09). Phases 24-26 deferred to `zeroth-studio` separate repo as part of v3.0 milestone pivot.
27
+
28
+ **Goal:** Build a visual workflow authoring UI for governed multi-agent systems, using Vue 3 + Vue Flow, informed by n8n's canvas patterns but reimplemented for Zeroth's governance-first domain model.
29
+
30
+ ## Current State
31
+
32
+ **Shipped:** v1.1 Production Readiness (2026-04-09)
33
+ **Codebase:** ~22K LOC source + ~18K LOC tests (Python)
34
+ **Tech stack:** Python / FastAPI / Pydantic / SQLAlchemy / Alembic / LiteLLM / ARQ / Docker
35
+ **Frontend stack (v2.0):** Vue 3 / Vite / Pinia / Vue Flow / dagre / CodeMirror 6
36
+
37
+ The platform is production-viable: real LLM providers, economic controls, external memory, durable webhooks, horizontal scaling, and containerized deployment are all wired and verified. v2.0 adds Studio UI for visual workflow authoring. Phase 22 complete — Studio foundation in place with interactive canvas, graph authoring API, and Docker deployment.
38
+
39
+ ## Requirements
40
+
41
+ ### Validated
42
+
43
+ - ✓ Governed workflow graph modeling, validation, and versioning — v1.0
44
+ - ✓ Runtime orchestration, approvals, memory, and deployment-bound service APIs — v1.0
45
+ - ✓ Identity, governance evidence, runtime hardening, and durable control-plane foundations — v1.0
46
+ - ✓ Unified pydantic-settings config and async Postgres storage backend — v1.1
47
+ - ✓ Real LLM provider adapters (OpenAI, Anthropic via LiteLLM) with retry and token audit — v1.1
48
+ - ✓ Regulus economics: cost events, cost attribution, budget enforcement, cost REST endpoints — v1.1
49
+ - ✓ External memory connectors (Redis KV/thread, pgvector, ChromaDB, Elasticsearch) with GovernAI protocol — v1.1
50
+ - ✓ Container sandbox sidecar architecture — v1.1
51
+ - ✓ Durable webhooks with HMAC signing, retry, dead-letter store — v1.1
52
+ - ✓ Approval SLA timeouts with escalation policies — v1.1
53
+ - ✓ Distributed dispatch with ARQ wakeup and horizontal worker scaling — v1.1
54
+ - ✓ Containerized deployment (Dockerfile, docker-compose, Nginx TLS, health probes) — v1.1
55
+ - ✓ API versioning (/v1/), OpenAPI spec, TLS/HTTPS support — v1.1
56
+ - ✓ Native LLM API parity: tool schemas, structured output, model params, MCP servers — v1.1
57
+
58
+ ### Active (v3.0)
59
+
60
+ - [ ] Extract all Python code into `zeroth-core` PyPI-installable library under `zeroth.core.*` namespace
61
+ - [ ] Publish `econ-instrumentation-sdk` (Regulus SDK) to PyPI
62
+ - [ ] Move Vue Studio frontend to separate public `zeroth-studio` repo with independent CI
63
+ - [ ] Write in-depth documentation for every `zeroth-core` subsystem (getting started, core concepts, subsystem guides, API references, integration recipes, deployment, migration)
64
+ - [ ] Multi-layer archive of monolithic repo (tarball, bare mirror, GitHub `rrrozhd/zeroth-archive`)
65
+
66
+ ### Deferred to `zeroth-studio` repo (v2.0 phases 24-26)
67
+
68
+ - [ ] Canvas execution & AI authoring (WebSocket real-time updates, per-node results, model selector, prompt editor, tool attachment)
69
+ - [ ] Governance visualization (approval gates, audit trail, sandbox badges, RBAC-aware canvas, cost/budget display)
70
+ - [ ] Graph versioning & collaborative presence indicators
71
+
72
+ ### Out of Scope
73
+
74
+ - Mobile apps — web-based platform only
75
+ - Judge/evaluation subsystem — preserved as extension point per original PLAN.md
76
+ - Runtime architecture rewrite — production backend is solid, next work is Studio UI
77
+ - Real-time streaming — async invocation model sufficient
78
+ - Custom LLM hosting — integrates with hosted providers only
79
+ - LLM response caching / model routing optimization — deferred to future economics milestone
80
+ - Model fallback chains / streaming responses — deferred to future provider milestone
81
+
82
+ ## Context
83
+
84
+ Mature Python backend with 280+ tests, lint clean, broad pytest coverage. GovernAI v0.3.0-dev pinned from GitHub for memory, secrets, capability policy, agent spec, and tool manifest modules. Regulus companion service provides LLM economics telemetry. All v1.1 requirements verified via milestone audit with zero gaps.
85
+
86
+ **v2.0 design reference:** n8n's frontend (SUL-licensed, not forkable) studied for canvas patterns, shell layout, and inspector UX. MIT libraries adopted directly: @vue-flow/core, @dagrejs/dagre, CodeMirror 6. Our canvas must be governance-aware (approval gates, audit decorators, sandbox indicators, RBAC) — a clean reimplementation, not a port.
87
+
88
+ ## Key Decisions
89
+
90
+ | Decision | Rationale | Outcome |
91
+ |----------|-----------|---------|
92
+ | GovernAI pinned to GitHub commit, not PyPI | v0.3.0 unreleased but has needed memory/secrets/policy modules | ✓ Good |
93
+ | Regulus integrated via SDK, not embedded | Separation of concerns — economics is a companion service | ✓ Good — fail-open pattern works well |
94
+ | Postgres as production storage, SQLite retained for dev/test | Production needs vs developer experience | ✓ Good — dual backend via env var |
95
+ | Studio UI deferred to v2.0 | Backend must be production-viable before adding frontend | ✓ Good — v1.1 shipped solid |
96
+ | Vue 3 + Vue Flow for Studio | Same stack as n8n reference; Vue Flow is purpose-built for Vue, MIT-licensed | — Pending |
97
+ | n8n as design reference only | SUL license prevents forking; tight coupling to n8n backend makes extraction impractical | ✓ Good |
98
+ | LiteLLM as provider abstraction layer | Routes to 100+ models without per-provider adapters | ✓ Good — unified retry/token capture |
99
+ | Worktree isolation for parallel phase development | Independent progress on subsystems | ⚠️ Revisit — creates integration wiring gaps |
100
+ | Bootstrap wiring as dedicated integration phase | Connects independently developed subsystems | ✓ Good — effective gap closure pattern |
101
+ | v3.0 pivot: extract core as pip-installable library before completing Studio | User needs backend library for embedding in their own apps/services; current structure couples UI and backend in one repo | — Pending |
102
+ | Take EVERYTHING into `zeroth.core.*` (no core/platform file split) | Pragmatic: a pure rename avoids refactoring cascade from broken `__init__.py` re-exports; some core functionality requires optional deps to actually use, which is fine | — Pending |
103
+ | PEP 420 namespace `zeroth.core.*` (no top-level `zeroth/__init__.py`) | Leaves room for future sibling packages to share the `zeroth.*` namespace without import collisions | — Pending |
104
+ | Studio UI moves to separate public repo rather than staying in a monorepo | Independent release cadence, simpler CI, clearer separation of backend library vs frontend app | — Pending |
105
+
106
+ ## Constraints
107
+
108
+ - **Tech stack**: Python/FastAPI/Pydantic backend — all new work integrates with existing foundation
109
+ - **GovernAI**: Pinned to git+https://github.com/rrrozhd/governai.git@7452de4 — use new v0.3.0 modules where applicable
110
+ - **Regulus**: SDK-level integration preferred — Regulus backend runs as companion service, not embedded
111
+ - **Backward compatibility**: Existing tests must continue passing through all changes
112
+ - **Architecture**: Modular monolith — new capabilities are new modules, not separate services (except Regulus backend)
113
+
114
+ ## Evolution
115
+
116
+ This document evolves at phase transitions and milestone boundaries.
117
+
118
+ **After each phase transition** (via `/gsd:transition`):
119
+ 1. Requirements invalidated? Move to Out of Scope with reason
120
+ 2. Requirements validated? Move to Validated with phase reference
121
+ 3. New requirements emerged? Add to Active
122
+ 4. Decisions to log? Add to Key Decisions
123
+ 5. "What This Is" still accurate? Update if drifted
124
+
125
+ **After each milestone** (via `/gsd:complete-milestone`):
126
+ 1. Full review of all sections
127
+ 2. Core Value check — still the right priority?
128
+ 3. Audit Out of Scope — reasons still valid?
129
+ 4. Update Context with current state
130
+
131
+ ---
132
+ *Last updated: 2026-04-10 — Milestone v3.0 initialized; pivoting to core library extraction and Studio repo split.*
@@ -0,0 +1,180 @@
1
+ # Requirements: Zeroth
2
+
3
+ **Defined:** 2026-04-09 (v2.0) · **Updated:** 2026-04-10 (v3.0 milestone)
4
+ **Core Value:** Teams can author and operate governed multi-agent workflows without sacrificing production controls, auditability, or deployment rigor.
5
+
6
+ ## v3.0 Requirements — Core Library Extraction, Studio Split & Documentation
7
+
8
+ v3.0 is a packaging and documentation milestone. No new runtime features. Deliverables: ship `zeroth-core` on PyPI under the `zeroth.core.*` namespace, move the Vue Studio to its own public repo, write in-depth documentation for every subsystem, and formalize the monolith archive.
9
+
10
+ ### Packaging (PKG)
11
+
12
+ - [ ] **PKG-01**: `econ-instrumentation-sdk` (Regulus SDK) is published to PyPI with a stable version, replacing the current local file-path dependency
13
+ - [ ] **PKG-02**: `zeroth-core` is published to PyPI as a pip-installable library and `pip install zeroth-core` succeeds in a clean virtualenv
14
+ - [ ] **PKG-03**: `pyproject.toml` declares optional-dependency extras for every swappable backend (`[memory-pg]`, `[memory-chroma]`, `[memory-es]`, `[dispatch]`, `[sandbox]`, `[all]`), with each extra verified installable and documented
15
+ - [ ] **PKG-04**: Repository root contains `CHANGELOG.md` (keepachangelog format), `LICENSE`, and `CONTRIBUTING.md` suitable for a public PyPI release
16
+ - [ ] **PKG-05**: PyPI releases are published via GitHub Actions using trusted publisher (OIDC), not a long-lived API token
17
+ - [ ] **PKG-06**: Installing `zeroth-core` from a clean environment and running the Getting Started hello example works end-to-end (acceptance test for the whole packaging stack)
18
+
19
+ ### Namespace Rename (RENAME)
20
+
21
+ - [ ] **RENAME-01**: All Python source is relocated from `zeroth.*` to `zeroth.core.*` with zero deletions and zero functional changes (pure rename)
22
+ - [ ] **RENAME-02**: The package is a PEP 420 namespace package — no top-level `zeroth/__init__.py` — so future sibling packages (`zeroth.studio`, `zeroth.ext.*`) can coexist under `zeroth.*`
23
+ - [ ] **RENAME-03**: All internal imports, string references, entry points, and console scripts point at the new `zeroth.core.*` paths
24
+ - [ ] **RENAME-04**: The existing test suite (280+ tests) passes against the renamed package with no skips or regressions
25
+ - [ ] **RENAME-05**: Docstring coverage on the public surface of `zeroth.core.*` reaches ≥90% (measured by `interrogate`) with a consistent style (Google-style)
26
+
27
+ ### Documentation Content (DOCS)
28
+
29
+ - [ ] **DOCS-01**: Landing page presents a 10-line hello-world, install snippet, and a "Choose your path" split between embedding as a library and running as a governed service
30
+ - [ ] **DOCS-02**: Getting Started is a single linear 3-section tutorial (install → first graph with one agent/tool/LLM → run in service mode with an approval gate), reaching first working output in under 5 minutes and completing in under 30
31
+ - [ ] **DOCS-03**: Every major `zeroth.core.*` subsystem has a Concept page (what it is, why it exists, mental model, where it fits) — covering graph, orchestrator, agents, execution units, memory, contracts, runs, conditions, mappings, policy, approvals, audit, secrets, identity, guardrails, dispatch, economics, storage, service, threads
32
+ - [ ] **DOCS-04**: Every major subsystem has a Usage Guide (Overview → Minimal example → Common patterns → Pitfalls → Reference cross-link) paired with its Concept page
33
+ - [ ] **DOCS-05**: A Governance Walkthrough tutorial shows an end-to-end run where an approval gate stops execution, an auditor reviews the trail, and a policy blocks a tool call (Zeroth's differentiator vs. LangGraph/CrewAI)
34
+ - [ ] **DOCS-06**: A Cookbook section contains at least 10 cross-subsystem recipes at launch (examples: add a human approval step, attach pgvector memory to a node, cap a run's budget with Regulus, sandbox a Python execution unit, retry a failed webhook from the DLQ)
35
+ - [ ] **DOCS-07**: Python API Reference is auto-generated from docstrings via mkdocstrings + Griffe for the full public surface
36
+ - [ ] **DOCS-08**: HTTP API Reference is rendered from the FastAPI OpenAPI spec and published alongside the Python reference
37
+ - [ ] **DOCS-09**: Configuration Reference is auto-generated from pydantic-settings schemas and documents every env var, default, and secret
38
+ - [ ] **DOCS-10**: Deployment Guide covers local dev, docker-compose, standalone service mode, embedded-in-host-app mode, and deployments with/without the Regulus companion service
39
+ - [ ] **DOCS-11**: Migration Guide explains how to move from the monolithic `zeroth.*` layout to `zeroth.core.*` (import rename pattern, econ SDK path swap, env var changes, Docker image retag)
40
+ - [ ] **DOCS-12**: An `examples/` directory at the repo root contains runnable `.py` files (not notebooks) exercising the main subsystems, and CI smoke-tests each on every main commit
41
+
42
+ ### Documentation Site Infrastructure (SITE)
43
+
44
+ - [ ] **SITE-01**: Documentation is built with mkdocs-material using explicit Diátaxis IA (Tutorials / How-to Guides / Concepts / Reference as four top-level sections)
45
+ - [ ] **SITE-02**: A GitHub Actions workflow builds and deploys the docs site to a public URL on every commit to `main`
46
+ - [ ] **SITE-03**: Pull request previews deploy a rendered version of the changed docs so reviewers see the output before merge
47
+ - [ ] **SITE-04**: The docs site includes built-in search and an automatically generated site map
48
+
49
+ ### Studio Repo Split (STUDIO)
50
+
51
+ - [ ] **STUDIO-01**: A new public repository `rrrozhd/zeroth-studio` contains the Vue 3 + Vue Flow frontend with its full git history preserved (subtree or filter-repo)
52
+ - [ ] **STUDIO-02**: `zeroth-studio` has its own independent CI pipeline (lint, typecheck, build, test) passing on its default branch
53
+ - [ ] **STUDIO-03**: `zeroth-studio` consumes `zeroth-core` only via HTTP/OpenAPI — no Python imports, no shared source tree
54
+ - [ ] **STUDIO-04**: Both repositories' READMEs cross-link to each other, and a cross-repo compatibility matrix (`zeroth-studio` version ↔ `zeroth-core` version) is documented and maintained in at least one of them
55
+ - [ ] **STUDIO-05**: The frontend types used by `zeroth-studio` are generated from the `zeroth-core` OpenAPI spec via `openapi-typescript`, keeping the two in sync without manual edits
56
+
57
+ ### Monolith Archive (ARCHIVE)
58
+
59
+ - [ ] **ARCHIVE-01**: A multi-layer archive of the pre-split monolithic repo exists and is documented: local tarball, local bare mirror, and GitHub repository `rrrozhd/zeroth-archive`
60
+ - [ ] **ARCHIVE-02**: All 36 worktree branches, both stashes, and the detached-HEAD worktree from the ad-hoc split work are preserved in the archive and recoverable
61
+ - [ ] **ARCHIVE-03**: The archive repository carries a visible "this repo is archived — see rrrozhd/zeroth-core and rrrozhd/zeroth-studio" notice in its README and repo description
62
+
63
+ ## Deferred to v0.2.x of `zeroth-core`
64
+
65
+ Tracked but out of scope for v3.0 milestone completion. Will be opened as new phases once a first external user has validated the core library.
66
+
67
+ - [ ] **FUTURE-01**: LibCST codemod (`python -m zeroth.core.codemods.rename_from_monolith`) that automatically rewrites `zeroth.*` imports to `zeroth.core.*` in consumer codebases
68
+ - [ ] **FUTURE-02**: HTTP/curl tabs added inline to every subsystem usage guide (initially Python-only)
69
+ - [ ] **FUTURE-03**: Extension-point guides — "Writing a custom memory connector", "Writing a custom LLM provider", "Writing a custom execution unit", "Writing a custom judge"
70
+ - [ ] **FUTURE-04**: Docstring coverage badge in README
71
+ - [ ] **FUTURE-05**: Governance case studies (real-world workflows with captured audit trails)
72
+ - [ ] **FUTURE-06**: Algolia DocSearch (if docs traffic warrants it)
73
+
74
+ ## Deferred to `zeroth-studio` repo (v2.0 phases 24-26)
75
+
76
+ These requirements are **not cancelled** — they continue in the new `zeroth-studio` repo after the split and will be roadmapped there separately.
77
+
78
+ - [ ] **API-02** (from v2.0): Studio receives real-time updates via WebSocket (execution status, validation, presence)
79
+ - [ ] **API-04** (from v2.0): Studio can trigger workflow execution and receive per-node status updates
80
+ - [ ] **AUTH-01** through **AUTH-05** (from v2.0): Canvas execution & AI authoring (model selector, prompt editor, tool attachment, data-flow tooltips, per-node results)
81
+ - [ ] **GOV-01** through **GOV-07** (from v2.0): Governance visualization (approval gates, audit trails, sandbox badges, RBAC-aware canvas, cost/budget display, env switching)
82
+ - [ ] **COLLAB-01**, **COLLAB-02** (from v2.0): Graph version diff view, collaborative presence indicators
83
+
84
+ ## Out of Scope
85
+
86
+ Explicitly excluded for v3.0. Documented to prevent scope creep.
87
+
88
+ | Feature | Reason |
89
+ |---------|--------|
90
+ | Multi-version docs site with version dropdown (`mike` plugin) | Pre-1.0 — API still shifts, stale versions confuse more than help. Revisit at 1.0. |
91
+ | Translations / multi-language docs | FastAPI has 12 language maintainers; we have one team. Translations rot faster than code. |
92
+ | Hand-written API reference for every class | 22K LOC — impractical and goes stale on day one. Use mkdocstrings instead. |
93
+ | Jupyter notebook examples | Hard to version-control, diff, and CI-test. Use plain `.py` files. |
94
+ | Video tutorials / screencasts | Expensive to produce, impossible to update in place, SEO/search unfriendly. |
95
+ | Public Discord/Slack community at launch | Pre-1.0 support burden. GitHub Issues + Discussions only. |
96
+ | "Awesome Zeroth" curated extension list | No ecosystem exists yet — would look abandoned. |
97
+ | Core/platform file-level split | Superseded by the pure-rename decision — the cascading `__init__.py` breakage isn't worth it. |
98
+ | Monorepo consolidation of `zeroth-core` + `zeroth-studio` | Directly contradicts the intentional split decision. |
99
+ | Runtime feature work (new subsystems, new integrations) | v3.0 is packaging and docs only. New runtime work goes to v3.1+. |
100
+
101
+ ## Traceability
102
+
103
+ Which phases cover which requirements. Updated after roadmap creation.
104
+
105
+ | Requirement | Phase | Status |
106
+ |-------------|-------|--------|
107
+ | PKG-01 | Phase 28 | Pending |
108
+ | PKG-02 | Phase 28 | Pending |
109
+ | PKG-03 | Phase 28 | Pending |
110
+ | PKG-04 | Phase 28 | Pending |
111
+ | PKG-05 | Phase 28 | Pending |
112
+ | PKG-06 | Phase 28 | Pending |
113
+ | RENAME-01 | Phase 27 | Pending |
114
+ | RENAME-02 | Phase 27 | Pending |
115
+ | RENAME-03 | Phase 27 | Pending |
116
+ | RENAME-04 | Phase 27 | Pending |
117
+ | RENAME-05 | Phase 27 | Pending |
118
+ | DOCS-01 | Phase 30 | Pending |
119
+ | DOCS-02 | Phase 30 | Pending |
120
+ | DOCS-03 | Phase 31 | Pending |
121
+ | DOCS-04 | Phase 31 | Pending |
122
+ | DOCS-05 | Phase 30 | Pending |
123
+ | DOCS-06 | Phase 31 | Pending |
124
+ | DOCS-07 | Phase 32 | Pending |
125
+ | DOCS-08 | Phase 32 | Pending |
126
+ | DOCS-09 | Phase 32 | Pending |
127
+ | DOCS-10 | Phase 32 | Pending |
128
+ | DOCS-11 | Phase 32 | Pending |
129
+ | DOCS-12 | Phase 31 | Pending |
130
+ | SITE-01 | Phase 30 | Pending |
131
+ | SITE-02 | Phase 30 | Pending |
132
+ | SITE-03 | Phase 30 | Pending |
133
+ | SITE-04 | Phase 30 | Pending |
134
+ | STUDIO-01 | Phase 29 | Pending |
135
+ | STUDIO-02 | Phase 29 | Pending |
136
+ | STUDIO-03 | Phase 29 | Pending |
137
+ | STUDIO-04 | Phase 29 | Pending |
138
+ | STUDIO-05 | Phase 29 | Pending |
139
+ | ARCHIVE-01 | Phase 27 | Pending |
140
+ | ARCHIVE-02 | Phase 27 | Pending |
141
+ | ARCHIVE-03 | Phase 27 | Pending |
142
+
143
+ **Coverage:**
144
+ - v3.0 requirements: 34 total
145
+ - Mapped to phases: 34
146
+ - Unmapped: 0
147
+
148
+ ---
149
+
150
+ ## v2.0 Requirements (Zeroth Studio — partially shipped)
151
+
152
+ Phases 22–23 shipped in v2.0. Phases 24–26 deferred to the new `zeroth-studio` repo — see "Deferred to `zeroth-studio` repo" above. v2.0 REQ-IDs are preserved for history but not re-mapped in v3.0.
153
+
154
+ ### Canvas Foundation
155
+
156
+ - [x] **CANV-01** · [x] **CANV-02** · [x] **CANV-03** · [x] **CANV-04** · [x] **CANV-05** · [x] **CANV-06** · [x] **CANV-07** · [x] **CANV-08** · [x] **CANV-09** · [x] **CANV-10**
157
+
158
+ ### Graph Authoring API
159
+
160
+ - [x] **API-01** · [x] **API-03** · [ ] **API-02** (→ zeroth-studio) · [ ] **API-04** (→ zeroth-studio)
161
+
162
+ ### Governance Visualization
163
+
164
+ - [ ] **GOV-01** … **GOV-07** (→ zeroth-studio)
165
+
166
+ ### AI Authoring
167
+
168
+ - [ ] **AUTH-01** … **AUTH-05** (→ zeroth-studio) · [x] **AUTH-06**
169
+
170
+ ### Versioning & Collaboration
171
+
172
+ - [ ] **COLLAB-01** · [ ] **COLLAB-02** (→ zeroth-studio)
173
+
174
+ ### Deployment & Infrastructure
175
+
176
+ - [x] **INFRA-01** · [x] **INFRA-02**
177
+
178
+ ---
179
+
180
+ *Requirements last updated: 2026-04-10 after v3.0 milestone kickoff.*
@@ -0,0 +1,63 @@
1
+ # Project Retrospective
2
+
3
+ *A living document updated after each milestone. Lessons feed forward into future planning.*
4
+
5
+ ## Milestone: v1.1 — Production Readiness
6
+
7
+ **Shipped:** 2026-04-09
8
+ **Phases:** 11 | **Plans:** 30
9
+
10
+ ### What Was Built
11
+ - Real LLM provider integration via LiteLLM with exponential backoff retry and token usage capture
12
+ - Regulus economics: per-call cost events, per-tenant budget enforcement, cost REST endpoints
13
+ - 8 memory connector types (3 in-memory, 2 Redis, 3 vector/search) bridged to GovernAI v0.3.0 protocol
14
+ - Docker sandbox sidecar with per-execution network isolation
15
+ - Durable webhooks with HMAC signing, dead-letter store, and approval SLA escalation
16
+ - Production deployment: multi-stage Dockerfile, 6-service docker-compose, Nginx TLS, health probes
17
+ - Native LLM API parity: tool schemas, structured output, model params, MCP server connections
18
+ - Postgres storage backend with Alembic migrations, ARQ wakeup, horizontal worker scaling
19
+
20
+ ### What Worked
21
+ - Phase-based parallel development with worktree isolation allowed independent progress on 11 phases
22
+ - Gap closure phases (18, 20, 21) effectively caught integration issues post-merge
23
+ - Milestone audit workflow identified real integration gaps (INT-01, INT-02, INT-03) that would have been missed
24
+ - GovernAI protocol alignment kept memory connectors interchangeable across all backends
25
+
26
+ ### What Was Inefficient
27
+ - Some ROADMAP.md plan checkboxes drifted from actual completion status (11-02, 12-01, 13-02 unchecked despite work complete)
28
+ - SUMMARY.md frontmatter `requirements_completed` was inconsistently populated across ~20 requirements
29
+ - Phase 18 marked "In Progress" in ROADMAP despite verification passing — documentation staleness accumulated
30
+ - 3 gap closure phases (18, 20, 21) needed after initial 8 phases — integration wiring should be considered earlier
31
+
32
+ ### Patterns Established
33
+ - Milestone audit (requirement/integration/flow cross-reference) as gate before completion
34
+ - Gap closure phases numbered sequentially after initial phases rather than inserted
35
+ - Tech debt tracked as non-blocking audit items separate from requirement gaps
36
+ - Bootstrap wiring as dedicated phase pattern for connecting independently developed subsystems
37
+
38
+ ### Key Lessons
39
+ 1. Worktree-isolated parallel development creates merge/wiring gaps — plan an integration wiring phase from the start
40
+ 2. Documentation metadata (checkboxes, frontmatter) needs automated verification, not manual tracking
41
+ 3. Audit-driven gap closure is effective but reactive — proactive integration testing between phases would be cheaper
42
+ 4. Fail-open patterns (budget enforcement when Regulus is down) are the right default for optional companion services
43
+
44
+ ### Cost Observations
45
+ - 168 commits across 4 days
46
+ - 350 files changed, +47,444 / -3,273 lines
47
+ - Codebase: 21,928 LOC source + 18,035 LOC tests
48
+
49
+ ---
50
+
51
+ ## Cross-Milestone Trends
52
+
53
+ ### Process Evolution
54
+
55
+ | Milestone | Phases | Plans | Key Change |
56
+ |-----------|--------|-------|------------|
57
+ | v1.0 | 9 | 13 | Foundation: graph, orchestration, governance, deployment |
58
+ | v1.1 | 11 | 30 | Production hardening: real providers, economics, infra, deployment |
59
+
60
+ ### Top Lessons (Verified Across Milestones)
61
+
62
+ 1. Phase-based planning with explicit success criteria prevents scope creep
63
+ 2. Integration wiring between independently developed subsystems needs its own phase