CumulOps 0.20.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 (138) hide show
  1. cumulops-0.20.0/LICENSE +202 -0
  2. cumulops-0.20.0/PKG-INFO +200 -0
  3. cumulops-0.20.0/README.md +168 -0
  4. cumulops-0.20.0/pyproject.toml +59 -0
  5. cumulops-0.20.0/setup.cfg +4 -0
  6. cumulops-0.20.0/src/CumulOps.egg-info/PKG-INFO +200 -0
  7. cumulops-0.20.0/src/CumulOps.egg-info/SOURCES.txt +136 -0
  8. cumulops-0.20.0/src/CumulOps.egg-info/dependency_links.txt +1 -0
  9. cumulops-0.20.0/src/CumulOps.egg-info/entry_points.txt +2 -0
  10. cumulops-0.20.0/src/CumulOps.egg-info/requires.txt +4 -0
  11. cumulops-0.20.0/src/CumulOps.egg-info/top_level.txt +1 -0
  12. cumulops-0.20.0/src/compoundops/__init__.py +3 -0
  13. cumulops-0.20.0/src/compoundops/__main__.py +7 -0
  14. cumulops-0.20.0/src/compoundops/cli/__init__.py +0 -0
  15. cumulops-0.20.0/src/compoundops/cli/main.py +1011 -0
  16. cumulops-0.20.0/src/compoundops/diagnose/__init__.py +1 -0
  17. cumulops-0.20.0/src/compoundops/diagnose/collector.py +342 -0
  18. cumulops-0.20.0/src/compoundops/executor/__init__.py +0 -0
  19. cumulops-0.20.0/src/compoundops/executor/_proc.py +81 -0
  20. cumulops-0.20.0/src/compoundops/executor/base.py +23 -0
  21. cumulops-0.20.0/src/compoundops/executor/classify.py +144 -0
  22. cumulops-0.20.0/src/compoundops/executor/factory.py +152 -0
  23. cumulops-0.20.0/src/compoundops/executor/fake.py +65 -0
  24. cumulops-0.20.0/src/compoundops/executor/guarded.py +79 -0
  25. cumulops-0.20.0/src/compoundops/executor/local.py +39 -0
  26. cumulops-0.20.0/src/compoundops/executor/logging.py +28 -0
  27. cumulops-0.20.0/src/compoundops/executor/ssh.py +175 -0
  28. cumulops-0.20.0/src/compoundops/experience/__init__.py +0 -0
  29. cumulops-0.20.0/src/compoundops/experience/learn.py +187 -0
  30. cumulops-0.20.0/src/compoundops/experience/recall.py +164 -0
  31. cumulops-0.20.0/src/compoundops/experience/store.py +296 -0
  32. cumulops-0.20.0/src/compoundops/feedback/__init__.py +1 -0
  33. cumulops-0.20.0/src/compoundops/feedback/config.py +110 -0
  34. cumulops-0.20.0/src/compoundops/feedback/github.py +106 -0
  35. cumulops-0.20.0/src/compoundops/feedback/gitlab.py +79 -0
  36. cumulops-0.20.0/src/compoundops/feedback/service.py +233 -0
  37. cumulops-0.20.0/src/compoundops/feedback/transport.py +54 -0
  38. cumulops-0.20.0/src/compoundops/health/__init__.py +1 -0
  39. cumulops-0.20.0/src/compoundops/health/checker.py +271 -0
  40. cumulops-0.20.0/src/compoundops/manifest/__init__.py +0 -0
  41. cumulops-0.20.0/src/compoundops/manifest/detect.py +22 -0
  42. cumulops-0.20.0/src/compoundops/manifest/loader.py +565 -0
  43. cumulops-0.20.0/src/compoundops/manifest/template.py +41 -0
  44. cumulops-0.20.0/src/compoundops/manifest/templates/ai-service.yaml +103 -0
  45. cumulops-0.20.0/src/compoundops/manifest/templates/compose.yaml +48 -0
  46. cumulops-0.20.0/src/compoundops/manifest/templates/default.yaml +87 -0
  47. cumulops-0.20.0/src/compoundops/manifest/templates/empty.yaml +18 -0
  48. cumulops-0.20.0/src/compoundops/manifest/templates/ibmc.yaml +69 -0
  49. cumulops-0.20.0/src/compoundops/manifest/templates/mysql.yaml +69 -0
  50. cumulops-0.20.0/src/compoundops/manifest/templates/platform-cli.yaml +63 -0
  51. cumulops-0.20.0/src/compoundops/manifest/templates/postgres.yaml +68 -0
  52. cumulops-0.20.0/src/compoundops/manifest/templates/scripts.yaml +58 -0
  53. cumulops-0.20.0/src/compoundops/manifest/templates/web-service.yaml +57 -0
  54. cumulops-0.20.0/src/compoundops/manifest/templates/wrappers/ibmc-install-os.sh +29 -0
  55. cumulops-0.20.0/src/compoundops/manifest/templates/wrappers/ibmc-status.sh +15 -0
  56. cumulops-0.20.0/src/compoundops/manifest/templates/wrappers/mysql-backup.sh +20 -0
  57. cumulops-0.20.0/src/compoundops/manifest/templates/wrappers/mysql-status.sh +20 -0
  58. cumulops-0.20.0/src/compoundops/manifest/templates/wrappers/paas-deploy.sh +12 -0
  59. cumulops-0.20.0/src/compoundops/manifest/templates/wrappers/paas-logs.sh +6 -0
  60. cumulops-0.20.0/src/compoundops/manifest/templates/wrappers/paas-rollback.sh +7 -0
  61. cumulops-0.20.0/src/compoundops/manifest/templates/wrappers/paas-status.sh +12 -0
  62. cumulops-0.20.0/src/compoundops/manifest/templates/wrappers/postgres-backup.sh +17 -0
  63. cumulops-0.20.0/src/compoundops/manifest/templates/wrappers/postgres-status.sh +20 -0
  64. cumulops-0.20.0/src/compoundops/models/__init__.py +0 -0
  65. cumulops-0.20.0/src/compoundops/models/execution.py +66 -0
  66. cumulops-0.20.0/src/compoundops/models/experience.py +115 -0
  67. cumulops-0.20.0/src/compoundops/models/manifest.py +155 -0
  68. cumulops-0.20.0/src/compoundops/models/run.py +31 -0
  69. cumulops-0.20.0/src/compoundops/run/__init__.py +0 -0
  70. cumulops-0.20.0/src/compoundops/run/approvals.py +120 -0
  71. cumulops-0.20.0/src/compoundops/run/query.py +638 -0
  72. cumulops-0.20.0/src/compoundops/run/recorder.py +292 -0
  73. cumulops-0.20.0/src/compoundops/run/redactor.py +35 -0
  74. cumulops-0.20.0/src/compoundops/safety/__init__.py +0 -0
  75. cumulops-0.20.0/src/compoundops/safety/baseline.py +64 -0
  76. cumulops-0.20.0/src/compoundops/safety/policy.py +57 -0
  77. cumulops-0.20.0/src/compoundops/skill/SKILL.md +123 -0
  78. cumulops-0.20.0/src/compoundops/skill/__init__.py +0 -0
  79. cumulops-0.20.0/src/compoundops/skill/references/safety.md +35 -0
  80. cumulops-0.20.0/src/compoundops/skill/references/workflows.md +95 -0
  81. cumulops-0.20.0/src/compoundops/skillcheck.py +196 -0
  82. cumulops-0.20.0/src/compoundops/workflow/__init__.py +1 -0
  83. cumulops-0.20.0/src/compoundops/workflow/base.py +129 -0
  84. cumulops-0.20.0/src/compoundops/workflow/deploy.py +325 -0
  85. cumulops-0.20.0/src/compoundops/workflow/diagnose.py +88 -0
  86. cumulops-0.20.0/src/compoundops/workflow/health.py +45 -0
  87. cumulops-0.20.0/src/compoundops/workflow/inspect.py +92 -0
  88. cumulops-0.20.0/src/compoundops/workflow/rollback.py +72 -0
  89. cumulops-0.20.0/src/compoundops/workflow/run_task.py +109 -0
  90. cumulops-0.20.0/src/compoundops/workflow/testing.py +46 -0
  91. cumulops-0.20.0/src/compoundops/workflow/verify.py +67 -0
  92. cumulops-0.20.0/tests/test_approvals.py +244 -0
  93. cumulops-0.20.0/tests/test_cli.py +130 -0
  94. cumulops-0.20.0/tests/test_cli_diagnose.py +89 -0
  95. cumulops-0.20.0/tests/test_cli_feedback.py +133 -0
  96. cumulops-0.20.0/tests/test_cli_init_templates.py +370 -0
  97. cumulops-0.20.0/tests/test_cli_memory.py +140 -0
  98. cumulops-0.20.0/tests/test_cli_validate.py +75 -0
  99. cumulops-0.20.0/tests/test_cli_workflows.py +227 -0
  100. cumulops-0.20.0/tests/test_db_ops_doc.py +54 -0
  101. cumulops-0.20.0/tests/test_demo_examples.py +99 -0
  102. cumulops-0.20.0/tests/test_deploy_memory.py +206 -0
  103. cumulops-0.20.0/tests/test_detect.py +38 -0
  104. cumulops-0.20.0/tests/test_diagnose.py +442 -0
  105. cumulops-0.20.0/tests/test_evidence_capture.py +198 -0
  106. cumulops-0.20.0/tests/test_executor.py +198 -0
  107. cumulops-0.20.0/tests/test_experience_store.py +175 -0
  108. cumulops-0.20.0/tests/test_fake_executor.py +27 -0
  109. cumulops-0.20.0/tests/test_feedback_config.py +178 -0
  110. cumulops-0.20.0/tests/test_feedback_github.py +110 -0
  111. cumulops-0.20.0/tests/test_feedback_gitlab.py +134 -0
  112. cumulops-0.20.0/tests/test_feedback_service.py +290 -0
  113. cumulops-0.20.0/tests/test_health.py +217 -0
  114. cumulops-0.20.0/tests/test_ibmc_provision_doc.py +51 -0
  115. cumulops-0.20.0/tests/test_learn.py +122 -0
  116. cumulops-0.20.0/tests/test_manifest.py +589 -0
  117. cumulops-0.20.0/tests/test_manual_doc.py +67 -0
  118. cumulops-0.20.0/tests/test_manual_flags.py +81 -0
  119. cumulops-0.20.0/tests/test_multi_host.py +247 -0
  120. cumulops-0.20.0/tests/test_org_experiences.py +232 -0
  121. cumulops-0.20.0/tests/test_oss_hygiene.py +118 -0
  122. cumulops-0.20.0/tests/test_platform_integration_doc.py +51 -0
  123. cumulops-0.20.0/tests/test_quickstart_doc.py +69 -0
  124. cumulops-0.20.0/tests/test_recall.py +130 -0
  125. cumulops-0.20.0/tests/test_rollback.py +64 -0
  126. cumulops-0.20.0/tests/test_run_recorder.py +202 -0
  127. cumulops-0.20.0/tests/test_run_task.py +93 -0
  128. cumulops-0.20.0/tests/test_runs_audit.py +124 -0
  129. cumulops-0.20.0/tests/test_runs_cli.py +297 -0
  130. cumulops-0.20.0/tests/test_runs_multi.py +126 -0
  131. cumulops-0.20.0/tests/test_runs_query.py +422 -0
  132. cumulops-0.20.0/tests/test_safety.py +219 -0
  133. cumulops-0.20.0/tests/test_safety_baseline.py +142 -0
  134. cumulops-0.20.0/tests/test_skill_check.py +292 -0
  135. cumulops-0.20.0/tests/test_skill_install.py +148 -0
  136. cumulops-0.20.0/tests/test_ssh_executor.py +294 -0
  137. cumulops-0.20.0/tests/test_version_sync.py +25 -0
  138. cumulops-0.20.0/tests/test_workflows.py +447 -0
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,200 @@
1
+ Metadata-Version: 2.4
2
+ Name: CumulOps
3
+ Version: 0.20.0
4
+ Summary: Agentic delivery, operations & operational memory - a small toolkit driven by code agents
5
+ Author: kufeng76
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/kufeng76/compound-ops
8
+ Project-URL: Repository, https://github.com/kufeng76/compound-ops
9
+ Project-URL: Issues, https://github.com/kufeng76/compound-ops/issues
10
+ Project-URL: Changelog, https://github.com/kufeng76/compound-ops/releases
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Intended Audience :: System Administrators
14
+ Classifier: License :: OSI Approved :: Apache Software License
15
+ Classifier: Operating System :: POSIX
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Programming Language :: Python :: 3.14
22
+ Classifier: Topic :: Software Development :: Build Tools
23
+ Classifier: Topic :: Software Development :: Quality Assurance
24
+ Classifier: Topic :: System :: Systems Administration
25
+ Requires-Python: >=3.10
26
+ Description-Content-Type: text/markdown
27
+ License-File: LICENSE
28
+ Requires-Dist: PyYAML>=6
29
+ Provides-Extra: dev
30
+ Requires-Dist: pytest>=7; extra == "dev"
31
+ Dynamic: license-file
32
+
33
+ # CompoundOps
34
+
35
+ [![CI](https://github.com/kufeng76/compound-ops/actions/workflows/ci.yml/badge.svg)](https://github.com/kufeng76/compound-ops/actions/workflows/ci.yml)
36
+ [![PyPI](https://img.shields.io/pypi/v/cumulops)](https://pypi.org/project/CumulOps/)
37
+ [![Python](https://img.shields.io/pypi/pyversions/cumulops)](https://pypi.org/project/CumulOps/)
38
+ [![License: Apache-2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)
39
+
40
+ **Agentic delivery, operations & operational memory.** A small, embeddable
41
+ toolkit that lets a code agent (Claude Code, Codex, Cursor) run your project's
42
+ delivery and ops work behind hard safety rails — and turns every incident into
43
+ verified experience that blocks the next one.
44
+
45
+ > Would you let an agent deploy to production?
46
+ > With CompoundOps you can: the agent decides, the CLI executes behind
47
+ > READ / PLAN / APPLY gates, and yesterday's incident becomes tomorrow's
48
+ > preflight check.
49
+
50
+ ## Why
51
+
52
+ Agents can already run commands. What they lack is what operations demands: a
53
+ hard line between *looking* and *touching*, evidence instead of vibes, a record
54
+ of what was done — and memory, so the same outage does not happen twice.
55
+ CompoundOps supplies exactly those four things and nothing else. It is not a
56
+ DevOps platform: no server, no database, no UI. A manifest, a CLI and a skill;
57
+ your existing scripts do the work.
58
+
59
+ ## Quick start
60
+
61
+ ```bash
62
+ pip install cumulops
63
+ compoundops skill-install --host all # Claude Code, Codex and Cursor
64
+ git clone https://github.com/kufeng76/compound-ops && cd compound-ops/examples/image-search
65
+ sh demos/run-demo-c.sh # watch a repeat incident get blocked
66
+ ```
67
+
68
+ The package is published on PyPI as **CumulOps**; the command it installs is
69
+ `compoundops`.
70
+
71
+ Demo C is the whole idea in one script (under a minute, local files only): a
72
+ deploy fails, the agent diagnoses it from evidence, the fix is captured as an
73
+ experience, a human verifies it — and when the same fault recurs, the next
74
+ deploy is **blocked before anything runs**.
75
+
76
+ Then try it on your own project:
77
+
78
+ > Help me onboard this project with compoundops
79
+
80
+ The skill interviews you, drafts `.ops/project-ops.yaml` around the test /
81
+ deploy / rollback scripts you already have, and validates until it passes. New
82
+ here? The [ten-minute quickstart](docs/quickstart.md) goes from install to
83
+ your first health check.
84
+
85
+ ## The loop
86
+
87
+ ```
88
+ Task → Recall → Inspect → Preflight → Plan → (approve) → Execute → Verify →
89
+ Record → Learn → human review → Verified experience → next task's recall
90
+ ```
91
+
92
+ Every real task run through CompoundOps should make the next similar task
93
+ safer or faster. That loop — not feature count — is the product.
94
+
95
+ ## What you get
96
+
97
+ **Eight workflows**, one command each. Every one leaves a run record with its
98
+ commands, output and evidence under `.ops/runs/<run-id>/`.
99
+
100
+ | Command | What it does |
101
+ |---|---|
102
+ | `inspect` | OS, CPU, memory, disk, runtime, dependencies, services, ports |
103
+ | `health` | Per-service probes → `READY` / `DEGRADED` / `FAILED` with evidence |
104
+ | `verify` | Post-change checks: probes, dependencies, critical logs |
105
+ | `test` | Runs the project's own test command and records the result |
106
+ | `deploy` | Plan by default: recall → preflight → plan → approval → execute → verify |
107
+ | `rollback` | Plan-first, approval-gated rollback through your own script |
108
+ | `run` | Project-specific tasks (index builds, backfills) with the same gates |
109
+ | `diagnose` | Read-only evidence bundle for the agent to reason over |
110
+
111
+ **Safety in code, not in the prompt.** The CLI enforces three modes — `read`,
112
+ `plan`, `apply` — with a command classifier, redaction of secrets in every
113
+ record, and approval gates on protected environments: a protected apply also
114
+ needs a human-recorded approval bound to the plan's digest. `deploy` defaults
115
+ to plan mode, so a bare command can never change production.
116
+
117
+ **Operational memory.** A fix is captured with `learn` as a *candidate*
118
+ experience (Markdown with YAML frontmatter, reviewed in git). A human promotes
119
+ it with `experience verify`. From then on it is recalled before similar work,
120
+ and if it carries a machine-runnable `preflight_checks` entry, that check runs
121
+ before every deploy — a failing high-severity check blocks the deploy. An org
122
+ library lets one project's verified lessons protect another. Details:
123
+ [docs/experience-loop.md](docs/experience-loop.md).
124
+
125
+ **Host-agnostic.** The logic lives in the `compoundops` CLI; the skill is a
126
+ thin policy layer in the open Agent Skills format, so Claude Code, Codex and
127
+ Cursor all drive the same core.
128
+
129
+ ## What it is not
130
+
131
+ No web UI, no database, no vector store, no Kubernetes operator, no CMDB, no
132
+ monitoring platform — and it never replaces your test / deploy / rollback
133
+ scripts. CompoundOps wraps the automation you already have.
134
+
135
+ ## Documentation
136
+
137
+ - [Ten-minute quickstart](docs/quickstart.md) — install to first health check
138
+ - [Architecture](docs/architecture.md) — layering, module map, run records
139
+ - [Security model](docs/security-model.md) — modes, approval gates, redaction
140
+ - [Experience loop](docs/experience-loop.md) — the operational-memory design
141
+ - [中文文档](docs/quickstart-zh.md):[十分钟上手](docs/quickstart-zh.md) ·
142
+ [使用与操作手册](docs/manual-zh.md) · [团队推广 checklist](docs/adoption-checklist-zh.md) ·
143
+ [标杆案例](docs/benchmark-case-template-zh.md)
144
+
145
+ Manifest templates for common shapes ship with the CLI: `compose`, `scripts`,
146
+ `web-service`, `platform-cli` (PaaS or in-house ops platforms), `ibmc` (OS
147
+ provisioning over Huawei BMC), `mysql`, `postgres` and `ai-service` — see
148
+ `compoundops init --help`.
149
+
150
+ ## Feedback
151
+
152
+ Problems and improvement ideas about compoundops itself can be filed to the
153
+ project's issue tracker — by a human or automatically by the agent skill:
154
+
155
+ ```bash
156
+ compoundops feedback --title "deploy plan output lacks image digest" \
157
+ --body "..." --kind suggestion
158
+ ```
159
+
160
+ The command deduplicates by exact open-issue title (a match adds a +1 comment
161
+ instead of a new issue), appends an environment footer (version, OS, project)
162
+ and redacts known token shapes. On failure (offline, missing token) the draft
163
+ is saved under `~/.compoundops/feedback/outbox/` and the command still exits 0.
164
+
165
+ Feedback files GitHub issues by default (`kufeng76/compound-ops`) and needs a
166
+ token with Issues read/write on that repo: `export
167
+ COMPOUNDOPS_GITHUB_TOKEN=<token>`, or put `token:` in
168
+ `~/.compoundops/feedback.yaml`. Logged into the GitHub CLI? One line opts into
169
+ borrowing that login instead: `use_gh: true`. GitLab trackers stay supported
170
+ via `provider: gitlab`.
171
+
172
+ Found a security problem? Please report it privately — see
173
+ [SECURITY.md](SECURITY.md).
174
+
175
+ ## Principles
176
+
177
+ 1. Agent decides, tools execute.
178
+ 2. Evidence before diagnosis.
179
+ 3. Recall before important operations.
180
+ 4. Verify after every change.
181
+ 5. Production changes require explicit approval.
182
+ 6. One incident should make the next similar operation safer.
183
+ 7. Prefer existing project automation over inventing new automation.
184
+ 8. Small and embeddable: a manifest, a CLI, a skill — never a platform.
185
+
186
+ Development setup, test expectations and the pull-request flow are in
187
+ [CONTRIBUTING.md](CONTRIBUTING.md).
188
+
189
+ ## Repository layout
190
+
191
+ - `src/compoundops/` — the Python core and the `compoundops` CLI
192
+ - `src/compoundops/skill/` — the agent skill (`skills/` mirrors it for this repo)
193
+ - `src/compoundops/manifest/templates/` — the `init --template` manifests
194
+ - `examples/image-search/` — a simulated project; `sh demos/run-all.sh`
195
+ - `docs/` — design documents (English) and the Chinese guides
196
+ - `tests/` — the test suite: `uv sync --extra dev && uv run --extra dev pytest`
197
+
198
+ ## License
199
+
200
+ Apache-2.0 — see [LICENSE](LICENSE).
@@ -0,0 +1,168 @@
1
+ # CompoundOps
2
+
3
+ [![CI](https://github.com/kufeng76/compound-ops/actions/workflows/ci.yml/badge.svg)](https://github.com/kufeng76/compound-ops/actions/workflows/ci.yml)
4
+ [![PyPI](https://img.shields.io/pypi/v/cumulops)](https://pypi.org/project/CumulOps/)
5
+ [![Python](https://img.shields.io/pypi/pyversions/cumulops)](https://pypi.org/project/CumulOps/)
6
+ [![License: Apache-2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)
7
+
8
+ **Agentic delivery, operations & operational memory.** A small, embeddable
9
+ toolkit that lets a code agent (Claude Code, Codex, Cursor) run your project's
10
+ delivery and ops work behind hard safety rails — and turns every incident into
11
+ verified experience that blocks the next one.
12
+
13
+ > Would you let an agent deploy to production?
14
+ > With CompoundOps you can: the agent decides, the CLI executes behind
15
+ > READ / PLAN / APPLY gates, and yesterday's incident becomes tomorrow's
16
+ > preflight check.
17
+
18
+ ## Why
19
+
20
+ Agents can already run commands. What they lack is what operations demands: a
21
+ hard line between *looking* and *touching*, evidence instead of vibes, a record
22
+ of what was done — and memory, so the same outage does not happen twice.
23
+ CompoundOps supplies exactly those four things and nothing else. It is not a
24
+ DevOps platform: no server, no database, no UI. A manifest, a CLI and a skill;
25
+ your existing scripts do the work.
26
+
27
+ ## Quick start
28
+
29
+ ```bash
30
+ pip install cumulops
31
+ compoundops skill-install --host all # Claude Code, Codex and Cursor
32
+ git clone https://github.com/kufeng76/compound-ops && cd compound-ops/examples/image-search
33
+ sh demos/run-demo-c.sh # watch a repeat incident get blocked
34
+ ```
35
+
36
+ The package is published on PyPI as **CumulOps**; the command it installs is
37
+ `compoundops`.
38
+
39
+ Demo C is the whole idea in one script (under a minute, local files only): a
40
+ deploy fails, the agent diagnoses it from evidence, the fix is captured as an
41
+ experience, a human verifies it — and when the same fault recurs, the next
42
+ deploy is **blocked before anything runs**.
43
+
44
+ Then try it on your own project:
45
+
46
+ > Help me onboard this project with compoundops
47
+
48
+ The skill interviews you, drafts `.ops/project-ops.yaml` around the test /
49
+ deploy / rollback scripts you already have, and validates until it passes. New
50
+ here? The [ten-minute quickstart](docs/quickstart.md) goes from install to
51
+ your first health check.
52
+
53
+ ## The loop
54
+
55
+ ```
56
+ Task → Recall → Inspect → Preflight → Plan → (approve) → Execute → Verify →
57
+ Record → Learn → human review → Verified experience → next task's recall
58
+ ```
59
+
60
+ Every real task run through CompoundOps should make the next similar task
61
+ safer or faster. That loop — not feature count — is the product.
62
+
63
+ ## What you get
64
+
65
+ **Eight workflows**, one command each. Every one leaves a run record with its
66
+ commands, output and evidence under `.ops/runs/<run-id>/`.
67
+
68
+ | Command | What it does |
69
+ |---|---|
70
+ | `inspect` | OS, CPU, memory, disk, runtime, dependencies, services, ports |
71
+ | `health` | Per-service probes → `READY` / `DEGRADED` / `FAILED` with evidence |
72
+ | `verify` | Post-change checks: probes, dependencies, critical logs |
73
+ | `test` | Runs the project's own test command and records the result |
74
+ | `deploy` | Plan by default: recall → preflight → plan → approval → execute → verify |
75
+ | `rollback` | Plan-first, approval-gated rollback through your own script |
76
+ | `run` | Project-specific tasks (index builds, backfills) with the same gates |
77
+ | `diagnose` | Read-only evidence bundle for the agent to reason over |
78
+
79
+ **Safety in code, not in the prompt.** The CLI enforces three modes — `read`,
80
+ `plan`, `apply` — with a command classifier, redaction of secrets in every
81
+ record, and approval gates on protected environments: a protected apply also
82
+ needs a human-recorded approval bound to the plan's digest. `deploy` defaults
83
+ to plan mode, so a bare command can never change production.
84
+
85
+ **Operational memory.** A fix is captured with `learn` as a *candidate*
86
+ experience (Markdown with YAML frontmatter, reviewed in git). A human promotes
87
+ it with `experience verify`. From then on it is recalled before similar work,
88
+ and if it carries a machine-runnable `preflight_checks` entry, that check runs
89
+ before every deploy — a failing high-severity check blocks the deploy. An org
90
+ library lets one project's verified lessons protect another. Details:
91
+ [docs/experience-loop.md](docs/experience-loop.md).
92
+
93
+ **Host-agnostic.** The logic lives in the `compoundops` CLI; the skill is a
94
+ thin policy layer in the open Agent Skills format, so Claude Code, Codex and
95
+ Cursor all drive the same core.
96
+
97
+ ## What it is not
98
+
99
+ No web UI, no database, no vector store, no Kubernetes operator, no CMDB, no
100
+ monitoring platform — and it never replaces your test / deploy / rollback
101
+ scripts. CompoundOps wraps the automation you already have.
102
+
103
+ ## Documentation
104
+
105
+ - [Ten-minute quickstart](docs/quickstart.md) — install to first health check
106
+ - [Architecture](docs/architecture.md) — layering, module map, run records
107
+ - [Security model](docs/security-model.md) — modes, approval gates, redaction
108
+ - [Experience loop](docs/experience-loop.md) — the operational-memory design
109
+ - [中文文档](docs/quickstart-zh.md):[十分钟上手](docs/quickstart-zh.md) ·
110
+ [使用与操作手册](docs/manual-zh.md) · [团队推广 checklist](docs/adoption-checklist-zh.md) ·
111
+ [标杆案例](docs/benchmark-case-template-zh.md)
112
+
113
+ Manifest templates for common shapes ship with the CLI: `compose`, `scripts`,
114
+ `web-service`, `platform-cli` (PaaS or in-house ops platforms), `ibmc` (OS
115
+ provisioning over Huawei BMC), `mysql`, `postgres` and `ai-service` — see
116
+ `compoundops init --help`.
117
+
118
+ ## Feedback
119
+
120
+ Problems and improvement ideas about compoundops itself can be filed to the
121
+ project's issue tracker — by a human or automatically by the agent skill:
122
+
123
+ ```bash
124
+ compoundops feedback --title "deploy plan output lacks image digest" \
125
+ --body "..." --kind suggestion
126
+ ```
127
+
128
+ The command deduplicates by exact open-issue title (a match adds a +1 comment
129
+ instead of a new issue), appends an environment footer (version, OS, project)
130
+ and redacts known token shapes. On failure (offline, missing token) the draft
131
+ is saved under `~/.compoundops/feedback/outbox/` and the command still exits 0.
132
+
133
+ Feedback files GitHub issues by default (`kufeng76/compound-ops`) and needs a
134
+ token with Issues read/write on that repo: `export
135
+ COMPOUNDOPS_GITHUB_TOKEN=<token>`, or put `token:` in
136
+ `~/.compoundops/feedback.yaml`. Logged into the GitHub CLI? One line opts into
137
+ borrowing that login instead: `use_gh: true`. GitLab trackers stay supported
138
+ via `provider: gitlab`.
139
+
140
+ Found a security problem? Please report it privately — see
141
+ [SECURITY.md](SECURITY.md).
142
+
143
+ ## Principles
144
+
145
+ 1. Agent decides, tools execute.
146
+ 2. Evidence before diagnosis.
147
+ 3. Recall before important operations.
148
+ 4. Verify after every change.
149
+ 5. Production changes require explicit approval.
150
+ 6. One incident should make the next similar operation safer.
151
+ 7. Prefer existing project automation over inventing new automation.
152
+ 8. Small and embeddable: a manifest, a CLI, a skill — never a platform.
153
+
154
+ Development setup, test expectations and the pull-request flow are in
155
+ [CONTRIBUTING.md](CONTRIBUTING.md).
156
+
157
+ ## Repository layout
158
+
159
+ - `src/compoundops/` — the Python core and the `compoundops` CLI
160
+ - `src/compoundops/skill/` — the agent skill (`skills/` mirrors it for this repo)
161
+ - `src/compoundops/manifest/templates/` — the `init --template` manifests
162
+ - `examples/image-search/` — a simulated project; `sh demos/run-all.sh`
163
+ - `docs/` — design documents (English) and the Chinese guides
164
+ - `tests/` — the test suite: `uv sync --extra dev && uv run --extra dev pytest`
165
+
166
+ ## License
167
+
168
+ Apache-2.0 — see [LICENSE](LICENSE).
@@ -0,0 +1,59 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "CumulOps"
7
+ version = "0.20.0"
8
+ description = "Agentic delivery, operations & operational memory - a small toolkit driven by code agents"
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ authors = [{ name = "kufeng76" }]
12
+ license = { text = "Apache-2.0" }
13
+ dependencies = ["PyYAML>=6"]
14
+ classifiers = [
15
+ "Development Status :: 4 - Beta",
16
+ "Intended Audience :: Developers",
17
+ "Intended Audience :: System Administrators",
18
+ "License :: OSI Approved :: Apache Software License",
19
+ "Operating System :: POSIX",
20
+ "Programming Language :: Python :: 3",
21
+ "Programming Language :: Python :: 3.10",
22
+ "Programming Language :: Python :: 3.11",
23
+ "Programming Language :: Python :: 3.12",
24
+ "Programming Language :: Python :: 3.13",
25
+ "Programming Language :: Python :: 3.14",
26
+ "Topic :: Software Development :: Build Tools",
27
+ "Topic :: Software Development :: Quality Assurance",
28
+ "Topic :: System :: Systems Administration",
29
+ ]
30
+
31
+ [project.urls]
32
+ Homepage = "https://github.com/kufeng76/compound-ops"
33
+ Repository = "https://github.com/kufeng76/compound-ops"
34
+ Issues = "https://github.com/kufeng76/compound-ops/issues"
35
+ Changelog = "https://github.com/kufeng76/compound-ops/releases"
36
+
37
+ [project.scripts]
38
+ compoundops = "compoundops.cli.main:main"
39
+
40
+ [project.optional-dependencies]
41
+ dev = ["pytest>=7"]
42
+
43
+ [tool.setuptools.packages.find]
44
+ where = ["src"]
45
+
46
+ [tool.setuptools.package-data]
47
+ compoundops = ["manifest/templates/*.yaml", "manifest/templates/wrappers/*.sh", "skill/*.md", "skill/references/*.md"]
48
+
49
+ [tool.pytest.ini_options]
50
+ testpaths = ["tests"]
51
+ pythonpath = ["src"]
52
+
53
+ # Lint gate: bug-only rules parsed as the OLDEST supported Python, so syntax
54
+ # newer than 3.10 fails CI even when the dev machine runs a newer interpreter.
55
+ [tool.ruff]
56
+ target-version = "py310"
57
+
58
+ [tool.ruff.lint]
59
+ select = ["E9", "F63", "F7", "F82"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+