tcw-cli 1.3.0__tar.gz → 2.0.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 (120) hide show
  1. tcw_cli-2.0.0/PKG-INFO +537 -0
  2. tcw_cli-2.0.0/README.md +321 -0
  3. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/pyproject.toml +1 -1
  4. tcw_cli-2.0.0/tcw/__init__.py +1 -0
  5. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/cli.py +36 -0
  6. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/store/base.py +110 -2
  7. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/store/project.py +162 -4
  8. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/work/cli.py +342 -64
  9. tcw_cli-2.0.0/tcw/work/prompts/inbox.md +47 -0
  10. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/work/resolve.py +52 -6
  11. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/work/templates.py +1 -1
  12. tcw_cli-2.0.0/tcw_cli.egg-info/PKG-INFO +537 -0
  13. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw_cli.egg-info/SOURCES.txt +2 -0
  14. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_body_prompt.py +7 -7
  15. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_documentation_prompt.py +5 -5
  16. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_documentation_sync_wiring.py +2 -2
  17. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_documented_cli_surface.py +11 -3
  18. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_generate_hook.py +12 -3
  19. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_lifecycle_validation.py +33 -0
  20. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_plugin_manifests.py +28 -0
  21. tcw_cli-2.0.0/tests/test_project_overrides.py +381 -0
  22. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_project_registry.py +259 -1
  23. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_prompt_fallback.py +23 -8
  24. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_shipped_prompts.py +38 -5
  25. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_skill_lifecycle_parity.py +103 -20
  26. tcw_cli-2.0.0/tests/test_stage_verb.py +958 -0
  27. tcw_cli-1.3.0/PKG-INFO +0 -1813
  28. tcw_cli-1.3.0/README.md +0 -1597
  29. tcw_cli-1.3.0/tcw/__init__.py +0 -1
  30. tcw_cli-1.3.0/tcw_cli.egg-info/PKG-INFO +0 -1813
  31. tcw_cli-1.3.0/tests/test_stage_verb.py +0 -344
  32. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/LICENSE +0 -0
  33. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/setup.cfg +0 -0
  34. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/capabilities/__init__.py +0 -0
  35. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/capabilities/cli.py +0 -0
  36. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/refs.py +0 -0
  37. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/serve/__init__.py +0 -0
  38. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/serve/dist/client/assets/index-CXNiOIeg.css +0 -0
  39. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/serve/dist/client/assets/index-Dz5B7M8G.js +0 -0
  40. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/serve/dist/client/index.html +0 -0
  41. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/serve/dist/client/theme-init.js +0 -0
  42. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/serve/dist/server.cjs +0 -0
  43. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/serve/runtime.py +0 -0
  44. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/stdin.py +0 -0
  45. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/store/__init__.py +0 -0
  46. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/store/checkouts.py +0 -0
  47. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/store/fs.py +0 -0
  48. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/taxonomy/__init__.py +0 -0
  49. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/taxonomy/cli.py +0 -0
  50. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/validate.py +0 -0
  51. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/work/__init__.py +0 -0
  52. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/work/generate.py +0 -0
  53. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/work/hooks.py +0 -0
  54. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/work/projection.py +0 -0
  55. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/work/prompts/implement.md +0 -0
  56. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/work/prompts/plan.md +0 -0
  57. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/work/prompts/postmortem.md +0 -0
  58. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/work/prompts/request.md +0 -0
  59. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/work/prompts/spec.md +0 -0
  60. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/work/prompts/verify.md +0 -0
  61. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw/work/recursion.py +0 -0
  62. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw_cli.egg-info/dependency_links.txt +0 -0
  63. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw_cli.egg-info/entry_points.txt +0 -0
  64. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw_cli.egg-info/requires.txt +0 -0
  65. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tcw_cli.egg-info/top_level.txt +0 -0
  66. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_capabilities.py +0 -0
  67. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_capabilities_federation.py +0 -0
  68. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_capabilities_reset.py +0 -0
  69. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_capabilities_sidecar.py +0 -0
  70. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_capability_ref_wording.py +0 -0
  71. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_cut_version.py +0 -0
  72. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_documentation_config.py +0 -0
  73. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_environment_hardness.py +0 -0
  74. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_epic_completable.py +0 -0
  75. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_external_work_store.py +0 -0
  76. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_falsification_rule.py +0 -0
  77. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_inbox_title.py +0 -0
  78. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_lifecycle_baseline.py +0 -0
  79. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_lifecycle_hooks.py +0 -0
  80. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_lifecycle_inert.py +0 -0
  81. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_lifecycle_policy.py +0 -0
  82. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_multiproject.py +0 -0
  83. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_non_git_writes.py +0 -0
  84. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_projection.py +0 -0
  85. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_qualified_ref.py +0 -0
  86. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_recursion.py +0 -0
  87. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_refs.py +0 -0
  88. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_remote_session_setup.py +0 -0
  89. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_repo_lifecycle.py +0 -0
  90. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_resolve.py +0 -0
  91. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_retention.py +0 -0
  92. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_scaffold.py +0 -0
  93. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_serve.py +0 -0
  94. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_serve_descendants.py +0 -0
  95. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_serve_projection.py +0 -0
  96. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_serve_resolve.py +0 -0
  97. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_serve_runtime.py +0 -0
  98. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_serve_write.py +0 -0
  99. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_session_bootstrap.py +0 -0
  100. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_show_json.py +0 -0
  101. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_skill_flow.py +0 -0
  102. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_smoke.py +0 -0
  103. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_status_parity.py +0 -0
  104. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_stdin.py +0 -0
  105. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_stdin_cli.py +0 -0
  106. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_store_bounds.py +0 -0
  107. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_store_editor.py +0 -0
  108. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_store_nodes.py +0 -0
  109. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_store_provisioning.py +0 -0
  110. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_store_publication.py +0 -0
  111. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_subprocess_stdin.py +0 -0
  112. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_taxonomy.py +0 -0
  113. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_tombstone.py +0 -0
  114. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_unpushed_version_script.py +0 -0
  115. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_validate.py +0 -0
  116. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_validate_target.py +0 -0
  117. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_work.py +0 -0
  118. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_work_autocommit.py +0 -0
  119. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_work_review.py +0 -0
  120. {tcw_cli-1.3.0 → tcw_cli-2.0.0}/tests/test_work_tags.py +0 -0
tcw_cli-2.0.0/PKG-INFO ADDED
@@ -0,0 +1,537 @@
1
+ Metadata-Version: 2.4
2
+ Name: tcw-cli
3
+ Version: 2.0.0
4
+ Summary: Taxonomy · Capabilities · Work — a storage-abstracted framework for describing and evolving a software project.
5
+ License: Apache License
6
+ Version 2.0, January 2004
7
+ http://www.apache.org/licenses/
8
+
9
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
10
+
11
+ 1. Definitions.
12
+
13
+ "License" shall mean the terms and conditions for use, reproduction,
14
+ and distribution as defined by Sections 1 through 9 of this document.
15
+
16
+ "Licensor" shall mean the copyright owner or entity authorized by
17
+ the copyright owner that is granting the License.
18
+
19
+ "Legal Entity" shall mean the union of the acting entity and all
20
+ other entities that control, are controlled by, or are under common
21
+ control with that entity. For the purposes of this definition,
22
+ "control" means (i) the power, direct or indirect, to cause the
23
+ direction or management of such entity, whether by contract or
24
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
25
+ outstanding shares, or (iii) beneficial ownership of such entity.
26
+
27
+ "You" (or "Your") shall mean an individual or Legal Entity
28
+ exercising permissions granted by this License.
29
+
30
+ "Source" form shall mean the preferred form for making modifications,
31
+ including but not limited to software source code, documentation
32
+ source, and configuration files.
33
+
34
+ "Object" form shall mean any form resulting from mechanical
35
+ transformation or translation of a Source form, including but
36
+ not limited to compiled object code, generated documentation,
37
+ and conversions to other media types.
38
+
39
+ "Work" shall mean the work of authorship, whether in Source or
40
+ Object form, made available under the License, as indicated by a
41
+ copyright notice that is included in or attached to the work
42
+ (an example is provided in the Appendix below).
43
+
44
+ "Derivative Works" shall mean any work, whether in Source or Object
45
+ form, that is based on (or derived from) the Work and for which the
46
+ editorial revisions, annotations, elaborations, or other modifications
47
+ represent, as a whole, an original work of authorship. For the purposes
48
+ of this License, Derivative Works shall not include works that remain
49
+ separable from, or merely link (or bind by name) to the interfaces of,
50
+ the Work and Derivative Works thereof.
51
+
52
+ "Contribution" shall mean any work of authorship, including
53
+ the original version of the Work and any modifications or additions
54
+ to that Work or Derivative Works thereof, that is intentionally
55
+ submitted to Licensor for inclusion in the Work by the copyright owner
56
+ or by an individual or Legal Entity authorized to submit on behalf of
57
+ the copyright owner. For the purposes of this definition, "submitted"
58
+ means any form of electronic, verbal, or written communication sent
59
+ to the Licensor or its representatives, including but not limited to
60
+ communication on electronic mailing lists, source code control systems,
61
+ and issue tracking systems that are managed by, or on behalf of, the
62
+ Licensor for the purpose of discussing and improving the Work, but
63
+ excluding communication that is conspicuously marked or otherwise
64
+ designated in writing by the copyright owner as "Not a Contribution."
65
+
66
+ "Contributor" shall mean Licensor and any individual or Legal Entity
67
+ on behalf of whom a Contribution has been received by Licensor and
68
+ subsequently incorporated within the Work.
69
+
70
+ 2. Grant of Copyright License. Subject to the terms and conditions of
71
+ this License, each Contributor hereby grants to You a perpetual,
72
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
73
+ copyright license to reproduce, prepare Derivative Works of,
74
+ publicly display, publicly perform, sublicense, and distribute the
75
+ Work and such Derivative Works in Source or Object form.
76
+
77
+ 3. Grant of Patent License. Subject to the terms and conditions of
78
+ this License, each Contributor hereby grants to You a perpetual,
79
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
80
+ (except as stated in this section) patent license to make, have made,
81
+ use, offer to sell, sell, import, and otherwise transfer the Work,
82
+ where such license applies only to those patent claims licensable
83
+ by such Contributor that are necessarily infringed by their
84
+ Contribution(s) alone or by combination of their Contribution(s)
85
+ with the Work to which such Contribution(s) was submitted. If You
86
+ institute patent litigation against any entity (including a
87
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
88
+ or a Contribution incorporated within the Work constitutes direct
89
+ or contributory patent infringement, then any patent licenses
90
+ granted to You under this License for that Work shall terminate
91
+ as of the date such litigation is filed.
92
+
93
+ 4. Redistribution. You may reproduce and distribute copies of the
94
+ Work or Derivative Works thereof in any medium, with or without
95
+ modifications, and in Source or Object form, provided that You
96
+ meet the following conditions:
97
+
98
+ (a) You must give any other recipients of the Work or
99
+ Derivative Works a copy of this License; and
100
+
101
+ (b) You must cause any modified files to carry prominent notices
102
+ stating that You changed the files; and
103
+
104
+ (c) You must retain, in the Source form of any Derivative Works
105
+ that You distribute, all copyright, patent, trademark, and
106
+ attribution notices from the Source form of the Work,
107
+ excluding those notices that do not pertain to any part of
108
+ the Derivative Works; and
109
+
110
+ (d) If the Work includes a "NOTICE" text file as part of its
111
+ distribution, then any Derivative Works that You distribute must
112
+ include a readable copy of the attribution notices contained
113
+ within such NOTICE file, excluding those notices that do not
114
+ pertain to any part of the Derivative Works, in at least one
115
+ of the following places: within a NOTICE text file distributed
116
+ as part of the Derivative Works; within the Source form or
117
+ documentation, if provided along with the Derivative Works; or,
118
+ within a display generated by the Derivative Works, if and
119
+ wherever such third-party notices normally appear. The contents
120
+ of the NOTICE file are for informational purposes only and
121
+ do not modify the License. You may add Your own attribution
122
+ notices within Derivative Works that You distribute, alongside
123
+ or as an addendum to the NOTICE text from the Work, provided
124
+ that such additional attribution notices cannot be construed
125
+ as modifying the License.
126
+
127
+ You may add Your own copyright statement to Your modifications and
128
+ may provide additional or different license terms and conditions
129
+ for use, reproduction, or distribution of Your modifications, or
130
+ for any such Derivative Works as a whole, provided Your use,
131
+ reproduction, and distribution of the Work otherwise complies with
132
+ the conditions stated in this License.
133
+
134
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
135
+ any Contribution intentionally submitted for inclusion in the Work
136
+ by You to the Licensor shall be under the terms and conditions of
137
+ this License, without any additional terms or conditions.
138
+ Notwithstanding the above, nothing herein shall supersede or modify
139
+ the terms of any separate license agreement you may have executed
140
+ with Licensor regarding such Contributions.
141
+
142
+ 6. Trademarks. This License does not grant permission to use the trade
143
+ names, trademarks, service marks, or product names of the Licensor,
144
+ except as required for reasonable and customary use in describing the
145
+ origin of the Work and reproducing the content of the NOTICE file.
146
+
147
+ 7. Disclaimer of Warranty. Unless required by applicable law or
148
+ agreed to in writing, Licensor provides the Work (and each
149
+ Contributor provides its Contributions) on an "AS IS" BASIS,
150
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
151
+ implied, including, without limitation, any warranties or conditions
152
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
153
+ PARTICULAR PURPOSE. You are solely responsible for determining the
154
+ appropriateness of using or redistributing the Work and assume any
155
+ risks associated with Your exercise of permissions under this License.
156
+
157
+ 8. Limitation of Liability. In no event and under no legal theory,
158
+ whether in tort (including negligence), contract, or otherwise,
159
+ unless required by applicable law (such as deliberate and grossly
160
+ negligent acts) or agreed to in writing, shall any Contributor be
161
+ liable to You for damages, including any direct, indirect, special,
162
+ incidental, or consequential damages of any character arising as a
163
+ result of this License or out of the use or inability to use the
164
+ Work (including but not limited to damages for loss of goodwill,
165
+ work stoppage, computer failure or malfunction, or any and all
166
+ other commercial damages or losses), even if such Contributor
167
+ has been advised of the possibility of such damages.
168
+
169
+ 9. Accepting Warranty or Additional Liability. While redistributing
170
+ the Work or Derivative Works thereof, You may choose to offer,
171
+ and charge a fee for, acceptance of support, warranty, indemnity,
172
+ or other liability obligations and/or rights consistent with this
173
+ License. However, in accepting such obligations, You may act only
174
+ on Your own behalf and on Your sole responsibility, not on behalf
175
+ of any other Contributor, and only if You agree to indemnify,
176
+ defend, and hold each Contributor harmless for any liability
177
+ incurred by, or claims asserted against, such Contributor by reason
178
+ of your accepting any such warranty or additional liability.
179
+
180
+ END OF TERMS AND CONDITIONS
181
+
182
+ APPENDIX: How to apply the Apache License to your work.
183
+
184
+ To apply the Apache License to your work, attach the following
185
+ boilerplate notice, with the fields enclosed by brackets "[]"
186
+ replaced with your own identifying information. (Don't include
187
+ the brackets!) The text should be enclosed in the appropriate
188
+ comment syntax for the file format. We also recommend that a
189
+ file or class name and description of purpose be included on the
190
+ same "printed page" as the copyright notice for easier
191
+ identification within third-party archives.
192
+
193
+ Copyright [yyyy] [name of copyright owner]
194
+
195
+ Licensed under the Apache License, Version 2.0 (the "License");
196
+ you may not use this file except in compliance with the License.
197
+ You may obtain a copy of the License at
198
+
199
+ http://www.apache.org/licenses/LICENSE-2.0
200
+
201
+ Unless required by applicable law or agreed to in writing, software
202
+ distributed under the License is distributed on an "AS IS" BASIS,
203
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
204
+ See the License for the specific language governing permissions and
205
+ limitations under the License.
206
+
207
+ Requires-Python: >=3.11
208
+ Description-Content-Type: text/markdown
209
+ License-File: LICENSE
210
+ Requires-Dist: PyYAML>=6
211
+ Provides-Extra: dev
212
+ Requires-Dist: pytest; extra == "dev"
213
+ Requires-Dist: jsonschema; extra == "dev"
214
+ Requires-Dist: setuptools>=61; extra == "dev"
215
+ Dynamic: license-file
216
+
217
+ # TCW — Taxonomy · Capabilities · Work
218
+
219
+ TCW keeps three things about a software project inside the repository itself,
220
+ next to the code, through one command-line tool (`tcw`):
221
+
222
+ | Component | Answers | Lives in |
223
+ | ---------------- | ------------------------------------------------------- | -------------------- |
224
+ | **Taxonomy** | What things does this project deal with? | `docs/taxonomy/` |
225
+ | **Capabilities** | What can a user do with those things? | `docs/capabilities/` |
226
+ | **Work** | What are we changing, and where does each change stand? | `docs/work/` |
227
+
228
+ They link by one-directional pointers — a capability names the taxonomy terms it
229
+ involves, a work item names the capability it changes — and never copy each
230
+ other's content.
231
+
232
+ ---
233
+
234
+ ## The problem
235
+
236
+ Ask three people at a company with twenty repositories what one of those
237
+ repositories does, what a user can do with it, and what is being changed in it
238
+ right now. You get three different answers, assembled from four different places:
239
+ a ticket tracker that knows about work but not about the product, a wiki whose
240
+ glossary was last edited two years ago, a `FOLLOWUPS.md` that only grows, and
241
+ design documents that stopped matching the code some time back.
242
+
243
+ None of those places is wrong on purpose. They drift because none of them sits
244
+ next to the code, and nothing makes them move when the code moves.
245
+
246
+ TCW puts all three in the repository. One commit carries a code change and the
247
+ description of what it changed, and a reviewer sees both in the same diff.
248
+
249
+ ## What it looks like
250
+
251
+ Setting up one repository and taking a change through it:
252
+
253
+ ```sh
254
+ tcw init --id billing-service # marks this directory a TCW node
255
+
256
+ tcw taxonomy add Invoice "A bill issued to a customer."
257
+ tcw taxonomy add "PDF Export" --kind feature --vocab invoice
258
+
259
+ tcw capabilities add billing/invoices "Download an invoice as PDF"
260
+ tcw capabilities set billing/invoices --status Missing --field "Feature=pdf-export"
261
+
262
+ tcw work new "Export invoices as PDF" # → 2026-09-09-export-invoices-as-pdf
263
+ tcw work start 2026-09-09-export-invoices-as-pdf
264
+ # …write the code…
265
+ tcw work complete 2026-09-09-export-invoices-as-pdf --resolution done --confirm
266
+ tcw capabilities set billing/invoices --status Supported
267
+ ```
268
+
269
+ That leaves the whole model on disk — no database, no server, no account:
270
+
271
+ ```
272
+ docs/
273
+ ├── taxonomy/
274
+ │ ├── invoice/ meta.yaml, description.md
275
+ │ └── pdf-export/ meta.yaml, description.md ← a Feature, linked to invoice
276
+ ├── capabilities/
277
+ │ └── billing/invoices/ meta.yaml, description.md ← Status: Supported
278
+ └── work/
279
+ ├── inbox/ backlog/ active/ review/
280
+ ├── completed/2026-09-09-export-invoices-as-pdf/
281
+ └── discarded/
282
+ ```
283
+
284
+ **A work item's status is the folder it is in.** A transition is a `git mv`, the
285
+ board is `ls docs/work/active/`, and there is no separate ledger file to fall out
286
+ of step, double-count, or re-summarize. `tcw serve` renders all three axes as a
287
+ local web app if you would rather click than type.
288
+
289
+ ## Why many repositories is the case it is built for
290
+
291
+ Every repository keeps and owns its own taxonomy, capabilities, and board. What
292
+ TCW adds on top is one model across all of them:
293
+
294
+ - **Shared vocabulary, without a silent merge.** A repository can inherit
295
+ another's taxonomy. Terms stay namespaced by the project they came from, so an
296
+ inherited `acme/permission` never quietly becomes your `permission`.
297
+ - **Shared user stories, with local overrides.** A web frontend and a mobile app
298
+ driving the same server declare their common capabilities once, and each
299
+ overrides only what differs.
300
+ - **Work addressed across the graph.** An item in any registered project is
301
+ addressable as `<project-id>/<slug>`, and one epic can hold slices living in
302
+ several repositories and roll their status back up.
303
+ - **One board for the whole estate.** `tcw work list --include-descendants` and
304
+ `tcw serve` aggregate every registered repository's board into a single view,
305
+ and `tcw validate` checks them all in one pass and exits non-zero — so it works
306
+ as a CI gate.
307
+
308
+ Projects are identified by a canonical ID, never by a filesystem path. A checkout
309
+ holding only some of the repositories still works: the absent ones drop out of
310
+ the graph rather than breaking your commands.
311
+
312
+ ## What it deliberately refuses
313
+
314
+ No sprints, no story points, no burndown charts, no SLAs, no estimation ceremony.
315
+ Just items, statuses, legal transitions between them, and a definition-of-done
316
+ gate. The shorthand for the work component is a **"recursive, OS-native Jira"** —
317
+ recursive because projects nest inside one another, and OS-native because the
318
+ storage is folders and `git` rather than a service.
319
+
320
+ Four stances follow from that, and they are worth knowing before you adopt it:
321
+
322
+ - **State is the status, not a log.** Nothing is reconstructed from history.
323
+ - **Per-node, never global.** Each item, term, and capability owns one bounded
324
+ document, so nothing grows without limit.
325
+ - **Mechanism in the tool, judgment in the person or agent.** Legal transitions,
326
+ slug integrity, reference validity, and the definition-of-done gate are
327
+ enforced by the CLI, not left to a prose checklist somebody follows sometimes.
328
+ - **Co-located with the code it describes.** The documents live in the repository
329
+ and move in its commits and pull requests.
330
+
331
+ ## What adopting it costs
332
+
333
+ Worth knowing before you propose it to a team:
334
+
335
+ - **Everyone needs the CLI.** Python 3.11 or newer, and Node 22.12 for the
336
+ optional web viewer. It installs with `pipx`, or automatically as a Claude Code
337
+ or Codex plugin.
338
+ - **It does not replace a tracker for people outside the codebase.** There are no
339
+ notifications, no permissions model, no assignee workflow, no dashboards, and
340
+ no way to file or read an item without a checkout. Teams needing those keep
341
+ them, and use TCW for the parts that belong beside the code.
342
+ - **The descriptions are only as current as the discipline around them.** TCW
343
+ enforces structure — legal transitions, slug integrity, that every pointer
344
+ resolves — but nothing makes anyone write a good capability description. The
345
+ lifecycle bindings and agent skills exist to make that automatic rather than
346
+ remembered.
347
+ - **Adoption is per-repository and incremental.** A repository can adopt the work
348
+ component alone and add taxonomy and capabilities later, or never. There is no
349
+ central instance to stand up first, and no migration required to start.
350
+ - **Only filesystem storage exists today** — see
351
+ [Storage abstraction](#storage-abstraction-the-prime-directive).
352
+
353
+ ## Who it's for
354
+
355
+ - **A product spread across many repositories** that needs one description of
356
+ what it is and one board across all of it, without a central service to run.
357
+ - **Agent-driven development**, where a coding agent needs a legible, enforced
358
+ place to record what a project is and where its work stands — and where "told
359
+ to follow the rules" is not enough, because the invariants have to be held
360
+ mechanically.
361
+ - **Teams that want their glossary, feature inventory, and change log to move in
362
+ the same commits and pull requests as the code**, instead of in three drifting
363
+ external tools.
364
+ - **Anyone who wants a work tracker with no ceremony** that is just folders,
365
+ files, and `git`.
366
+
367
+ ## Storage abstraction (the prime directive)
368
+
369
+ TCW ships **filesystem-backed stores, and only those today.** Adapters for an
370
+ external tracker (Jira, a wiki, a graph database) and tracker synchronization are
371
+ designed for but not built; they are open items on TCW's own board.
372
+
373
+ What exists now is the separation that makes them addable later. The CLI talks to
374
+ abstract store interfaces (`TaxonomyStore`, `CapabilitiesStore`, `WorkStore`) and
375
+ the shipped adapters (`FsTaxonomyStore`, `FsCapabilitiesStore`, `FsWorkStore`)
376
+ realize them on the filesystem. Every operation must pass one test before it
377
+ enters the model:
378
+
379
+ > **"Could a non-filesystem store implement this operation, even if less
380
+ > elegantly?"**
381
+ > Yes → it belongs in the model (the abstract store interface). No → it is a
382
+ > filesystem-adapter detail, or it gets redesigned.
383
+
384
+ So the filesystem advantages — co-located documents, atomic commits, readable
385
+ diffs and pull requests, `mv` as a status transition — are layered on top rather
386
+ than assumed by the model. The full rules live in
387
+ [`docs/lifecycle/abstraction.md`](docs/lifecycle/abstraction.md), which TCW's own
388
+ repository binds to its `spec` and `plan` stages.
389
+
390
+ ---
391
+
392
+ ## Install
393
+
394
+ ### As a plugin (recommended)
395
+
396
+ In **Claude Code**:
397
+
398
+ ```
399
+ /plugin marketplace add brocef/TCW
400
+ /plugin install tcw
401
+ ```
402
+
403
+ Or, in the Claude **web app** or **desktop app**, open the plugin directory, add
404
+ `brocef/TCW` as a marketplace, and install `tcw` from it — no terminal needed.
405
+
406
+ **Then start a new session.** The plugin installs the `tcw` CLI at session start
407
+ by installing `tcw-cli` from PyPI with `pipx`, so one installed mid-session
408
+ cannot run until the next one begins. That first session needs network access. It
409
+ installs over an existing `pipx install tcw-cli` rather than beside it, and
410
+ leaves a development checkout (`pip install -e .`) alone. Run `/tcw-doctor` any
411
+ time `tcw` goes missing or looks wrong.
412
+
413
+ In **Codex** (skills only, no slash commands):
414
+
415
+ ```bash
416
+ codex plugin marketplace add brocef/TCW --ref main
417
+ codex plugin add tcw@tcw
418
+ ```
419
+
420
+ Codex has no session-start hook, so ask the agent to run the **`tcw-plugin`**
421
+ setup — it runs the same install script Claude runs automatically.
422
+
423
+ The plugin ships the agent skills, slash commands, and read-only review agents
424
+ listed under [Skills](#skills--the-judgment-layer).
425
+
426
+ ### As a Python package
427
+
428
+ ```sh
429
+ pipx install tcw-cli # recommended (isolated, on PATH)
430
+ pip install -e . # development install from a clone
431
+ ```
432
+
433
+ Use this when you want the CLI without an agent harness at all. The PyPI package
434
+ is named **`tcw-cli`** because `tcw` was taken by an unrelated project; the
435
+ command it installs is still `tcw`.
436
+
437
+ Requires **Python ≥ 3.11** (its only runtime dependency is PyYAML). `tcw serve`
438
+ additionally requires **Node.js ≥ 22.12**; every other command is Python-only.
439
+ Released wheels carry the prebuilt web assets, so there is no frontend build step
440
+ and no network needed after install.
441
+
442
+ ## Quickstart
443
+
444
+ ```sh
445
+ cd your-git-repo
446
+ tcw init --id my-project # scaffold all three components
447
+ tcw init --id my-project taxonomy work # …or just named components
448
+ tcw serve --no-open # browse all three locally
449
+ tcw validate # check this project and its descendants
450
+ tcw --help # init | serve | validate | taxonomy | capabilities | work
451
+ ```
452
+
453
+ `tcw init --id <project-id>` marks the **current directory** as a TCW node by
454
+ writing a `tcw-config.yaml` file carrying its canonical ID, then scaffolds the
455
+ `docs/<component>/` skeletons. It refuses to run outside a git repository,
456
+ because write transitions need git — but the node folder can sit anywhere inside
457
+ that repository, not only at its root, so one repository can hold several
458
+ projects. Each component group also has its own `init`: `tcw taxonomy init`,
459
+ `tcw capabilities init`, `tcw work init`.
460
+
461
+ To bootstrap a taxonomy or capabilities ledger on a project that already has a
462
+ codebase, run `/tcw-taxonomy-init` or `/tcw-capabilities-init` — the assistant
463
+ studies your code, proposes a first draft, refines it with you, and writes it.
464
+
465
+ ---
466
+
467
+ ## Documentation
468
+
469
+ | Document | Covers |
470
+ | -------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
471
+ | [The Work component](docs/guide/work.md) | The state machine, the command reference, tags, the definition-of-done gate, decomposition, and cross-repository epics |
472
+ | [Taxonomy and Capabilities](docs/guide/taxonomy-and-capabilities.md) | Declaring the nouns and the user stories, and federating both across projects |
473
+ | [Working across repositories](docs/guide/multi-repo.md) | Connecting projects, keeping a store in another repository, and obtaining what a checkout does not have |
474
+ | [Configuration](docs/guide/configuration.md) | `tcw-config.yaml`: lifecycle bindings, prompts, artifact templates, and documentation entries |
475
+ | [The local web viewer](docs/guide/web-viewer.md) | `tcw serve` |
476
+ | [Linking and validation](docs/guide/linking-and-validation.md) | `tcw://` references between objects, and `tcw validate` as a CI gate |
477
+ | [The abstraction rules](docs/lifecycle/abstraction.md) | The prime directive in full |
478
+ | [Releasing TCW](docs/releasing.md) | How this repository publishes itself — not needed to use TCW |
479
+
480
+ Every command group also has `--help`, and a `check` that validates its tree.
481
+
482
+ ---
483
+
484
+ ## Skills — the judgment layer
485
+
486
+ The CLI is the _mechanism_. Seven skills in [`skills/`](skills/) supply the
487
+ _judgment_ that drives it — the parts a deterministic tool cannot decide.
488
+
489
+ | Skill | What it does |
490
+ | ---------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
491
+ | [`tcw-work`](skills/tcw-work/SKILL.md) | Plans a request through spec and plan, drives implementation and verification, triages the inbox, runs the lifecycle, decomposes epics |
492
+ | [`tcw-capabilities`](skills/tcw-capabilities/SKILL.md) | The capability-delta planning check, contradiction detection, and the ledger flip at completion |
493
+ | [`tcw-taxonomy`](skills/tcw-taxonomy/SKILL.md) | Declaring vocabulary and features, linking them, and federating shared vocabulary |
494
+ | [`tcw-plugin`](skills/tcw-plugin/SKILL.md) | Installs and repairs the CLI; the source of the `/tcw-doctor` procedure |
495
+ | [`tcw-report`](skills/tcw-report/SKILL.md) | Reporting a `tcw` bug or suggestion upstream to [this project's issues](https://github.com/brocef/TCW/issues) |
496
+ | [`tcw-triage-issues`](skills/tcw-triage-issues/SKILL.md) | Sweeps **your** project's GitHub issues and turns the ones worth doing into work items |
497
+ | [`documentation-sync`](skills/documentation-sync/SKILL.md) | Keeps README, changelogs, release notes, and driving skills moving with the code that changes them |
498
+
499
+ They name `tcw` commands and never reimplement tool logic: mechanism stays in the
500
+ binary, judgment stays in the skills.
501
+
502
+ Two read-only review agents ship alongside them — `tcw-verifier` and
503
+ `tcw-post-mortem` — plus slash commands for each skill's main procedure
504
+ (`/tcw-plan-work`, `/tcw-drive-work-to-completion`, `/tcw-verify-work`,
505
+ `/tcw-process-inbox`, `/tcw-triage-issues`, `/tcw-audit-work-backlog`,
506
+ `/tcw-taxonomy-init`, `/tcw-capabilities-init`, `/tcw-docs-sync-setup`,
507
+ `/tcw-cut-version`, `/tcw-post-mortem`, `/tcw-doctor`).
508
+
509
+ ---
510
+
511
+ ## Status
512
+
513
+ TCW is used daily to manage its own development: this repository tracks all of
514
+ its own work through `docs/work/`.
515
+
516
+ **Built and in use.**
517
+
518
+ | Area | State |
519
+ | ----------------------- | ---------------------------------------------------------------------------------------------------- |
520
+ | The three axes | Taxonomy, capabilities, and work all ship with filesystem stores on a shared bounded-tree core |
521
+ | Cross-repository work | Connected projects, graph-wide addressing, epics, delegate/escalate, rollup, and isolating worktrees |
522
+ | Web viewer | `tcw serve` browses and edits all three axes, aggregating descendant boards |
523
+ | Lifecycle customization | Per-stage prompts, artifact templates, and pre-transition checks bound from `tcw-config.yaml` |
524
+ | Agent integration | A Claude Code and Codex plugin carrying skills, commands, and review agents |
525
+ | Tests | pytest over throwaway git repositories, plus Playwright end-to-end coverage of the viewer |
526
+
527
+ **Not built.** Store adapters for external trackers — Jira, a wiki, a graph
528
+ database — and synchronization with them. The abstract store interfaces they
529
+ would implement exist and are what every command already talks to, but no such
530
+ adapter ships today. They are open items on TCW's own backlog.
531
+
532
+ ## Further reading
533
+
534
+ - [`AGENTS.md`](AGENTS.md) — the working rules for contributing (read first).
535
+ - [`docs/lifecycle/abstraction.md`](docs/lifecycle/abstraction.md) — the prime directive in full.
536
+ - [`docs/plan/`](docs/plan/) — the per-component source-of-truth designs.
537
+ - `tcw work list` — what is currently being changed here.