checkwright 0.28.0 → 0.29.0

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 (66) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +4 -2
  3. package/package.json +5 -3
  4. package/payload/artifact/aarch64-apple-darwin/checkwright-gates +0 -0
  5. package/payload/artifact/aarch64-apple-darwin/checkwright-gates.sha256 +1 -1
  6. package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe +0 -0
  7. package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -1
  8. package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates +0 -0
  9. package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
  10. package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates +0 -0
  11. package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates.sha256 +1 -1
  12. package/payload/artifact/x86_64-apple-darwin/checkwright-gates +0 -0
  13. package/payload/artifact/x86_64-apple-darwin/checkwright-gates.sha256 +1 -1
  14. package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe +0 -0
  15. package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -1
  16. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
  17. package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
  18. package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates +0 -0
  19. package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates.sha256 +1 -1
  20. package/payload/canon-kit/LICENSE +202 -0
  21. package/payload/canon-kit/README.md +4 -0
  22. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/README.md +9 -0
  23. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/SPEC-family.md +10 -0
  24. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/SPEC-only.md +5 -0
  25. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +3 -0
  26. package/payload/canon-kit/gate-tests/check-spec-pointer/bad/scripts/canon-config.knobs +4 -0
  27. package/payload/canon-kit/gate-tests/check-spec-pointer/good/README.md +4 -2
  28. package/payload/canon-kit/gate-tests/check-spec-pointer/good/SPEC-family.md +10 -0
  29. package/payload/canon-kit/gate-tests/check-spec-pointer/good/scripts/canon-config.knobs +2 -0
  30. package/payload/context-kit/LICENSE +202 -0
  31. package/payload/context-kit/README.md +4 -0
  32. package/payload/delegation-kit/LICENSE +202 -0
  33. package/payload/delegation-kit/README.md +4 -0
  34. package/payload/doctrine-kit/LICENSE +202 -0
  35. package/payload/doctrine-kit/README.md +4 -0
  36. package/payload/drift-kit/LICENSE +202 -0
  37. package/payload/drift-kit/README.md +4 -0
  38. package/payload/evidence-kit/LICENSE +202 -0
  39. package/payload/evidence-kit/README.md +4 -0
  40. package/payload/gate-sdk/LICENSE +202 -0
  41. package/payload/gate-sdk/README.md +1 -1
  42. package/payload/guard-kit/LICENSE +202 -0
  43. package/payload/guard-kit/README.md +4 -0
  44. package/payload/lifecycle-kit/LICENSE +202 -0
  45. package/payload/lifecycle-kit/README.md +6 -1
  46. package/payload/lifecycle-kit/checks/check-merge-attrs.gate +1 -1
  47. package/payload/lifecycle-kit/gate-tests/capture-linked-worktree.test.sh +14 -5
  48. package/payload/lifecycle-kit/gate-tests/check-dispatch-entry.test.sh +8 -2
  49. package/payload/lifecycle-kit/gate-tests/check-merge-attrs/bad/.gitattributes +1 -0
  50. package/payload/lifecycle-kit/gate-tests/check-merge-attrs/good/.gitattributes +1 -0
  51. package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +2 -1
  52. package/payload/lifecycle-kit/templates/consult.md +9 -7
  53. package/payload/lifecycle-kit/templates/lead.md +7 -3
  54. package/payload/lifecycle-kit/templates/stages/close.md +2 -2
  55. package/payload/lifecycle-kit/templates/stages/scope.md +1 -1
  56. package/payload/queue-kit/LICENSE +202 -0
  57. package/payload/queue-kit/README.md +4 -0
  58. package/payload/site-kit/LICENSE +202 -0
  59. package/payload/site-kit/README.md +4 -0
  60. package/recipes/openspec/canon-config.knobs +3 -0
  61. package/recipes/openspec/unregister.list +1 -0
  62. package/recipes/openspec-lifecycle/lifecycle-config.knobs +4 -0
  63. package/recipes/openspec-lifecycle/unregister.list +1 -0
  64. package/recipes/speckit/canon-config.knobs +3 -0
  65. package/recipes/speckit/gate-sdk-config.knobs +2 -0
  66. package/recipes/speckit/unregister.list +1 -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.
@@ -64,3 +64,7 @@ Run this arm the same way:
64
64
  gates="${GATE_SDK_NATIVE_BIN:-./scripts/checkwright-gates}"
65
65
  "$gates" --run-guard-tests # decision-table over the generic ruleset
66
66
  ```
67
+
68
+ ## License
69
+
70
+ Apache-2.0. The license text is `LICENSE`, beside this file in an installed copy and at the repository root in the source tree.
@@ -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.
@@ -54,7 +54,7 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
54
54
 
55
55
  3. Adopt `templates/stages/*.md` in your agent-skill directory (e.g. `.claude/commands/`): by default make each skill a binding shim that references the template ([SPEC.md §templates/stages/](https://checkwright.dev/lifecycle-kit/SPEC#templatesstages)) — it tracks the kit, so a re-vendor reaches it and the shim gates hold it thin. Or, as the sanctioned fork, copy each in and fill its named slots (`*<slot-name: …>*`) with your project's ritual — you then own the ritual prose, upgrades don't reach it, and the shim gates don't cover it (kept for legitimate structural divergence).
56
56
 
57
- 4. Point your always-loaded agent file at the machine — run `--install-lifecycle` on the gate binary `GATE_SDK_NATIVE_BIN` names. It writes a marker-bounded registration block (the state machine, the stage roster as skill invocations, the SPEC link) into the file `LIFECYCLE_KIT_AGENT_FILE` names, the roster derived from your config so a reshape (step 5) flows in on a re-run. `check-lifecycle-registration` (step 1) holds the block in lockstep. The same run also writes the merge-attribute block into `.gitattributes` — a `merge=iteration-scoped` line per per-iteration state surface (these resolve to the arriving branch at a merge — [SPEC.md §Multi-operator semantics](https://checkwright.dev/lifecycle-kit/SPEC#multi-operator-semantics)) and a `merge=union` line for the committed gap inbox (its append-only bullets must survive a concurrent merge — [SPEC.md §The committed gap inbox](https://checkwright.dev/lifecycle-kit/SPEC#the-committed-gap-inbox)) — and registers the keep-ours driver in your clone's git config (per-clone, the `--install-hooks` opt-in class; the git-native union driver needs no such step). `check-merge-attrs` (step 1) holds the block in parity with the derived supersede and union sets.
57
+ 4. Point your always-loaded agent file at the machine — run `--install-lifecycle` on the gate binary `GATE_SDK_NATIVE_BIN` names. It writes a marker-bounded registration block (the state machine, the stage roster as skill invocations, the SPEC link) into the file `LIFECYCLE_KIT_AGENT_FILE` names, the roster derived from your config so a reshape (step 5) flows in on a re-run. `check-lifecycle-registration` (step 1) holds the block in lockstep. The same run also writes the merge-attribute block into `.gitattributes` — a `merge=iteration-scoped` line per per-iteration state surface (these resolve to the arriving branch at a merge — [SPEC.md §Multi-operator semantics](https://checkwright.dev/lifecycle-kit/SPEC#multi-operator-semantics)) and a `merge=union` line for each committed inbox (their append-only bullets must survive a concurrent merge — [SPEC.md §The committed gap inbox](https://checkwright.dev/lifecycle-kit/SPEC#the-committed-gap-inbox), [§The consult inbox](https://checkwright.dev/lifecycle-kit/SPEC#the-consult-inbox)) — and registers the keep-ours driver in your clone's git config (per-clone, the `--install-hooks` opt-in class; the git-native union driver needs no such step). `check-merge-attrs` (step 1) holds the block in parity with the derived supersede and union sets.
58
58
 
59
59
  5. Optional — narrow the hand-edit window: register `bash gate-sdk/bin/run-gates.sh --hook workflow-state-guard` as a `PreToolUse(Write|Edit)` hook (guard-kit's `templates/settings-hooks.json` carries the block). It refuses an agent write to the stage-stamp file, whose only sanctioned writer is the `--enter-stage` arm — the gates that would catch a hand-stamp all fire at commit, and an uncommitted one moves the cursor for a whole session ([SPEC.md §check-stage-evidence](https://checkwright.dev/lifecycle-kit/SPEC#check-stage-evidence)). With `LIFECYCLE_KIT_STAGE_SESSION_TYPES` set, it also refuses a dispatched stage session's write before that session's stamp, and its write outside the scratch dir once the cursor has left its stage. Requires guard-kit vendored.
60
60
 
@@ -71,6 +71,7 @@ gates="${GATE_SDK_NATIVE_BIN:-./scripts/checkwright-gates}"
71
71
  "$gates" --enter-stage <stage> # stamp a stage entry (the transition itself)
72
72
  "$gates" --install-lifecycle # (re)write the registration and merge-attribute blocks
73
73
  "$gates" --emit file-gap "<gap>" # route a work-shaped finding to the gap inbox
74
+ "$gates" --emit file-consult "<item>" # route an item owed to the consult skill to its inbox
74
75
  "$gates" --emit file-survey "<question>" "<corpus>" "<oracle>" "<inferred>" "<finding>"
75
76
  "$gates" --emit cite-survey "<heading-substring>" # one carried survey, inline-ready
76
77
  "$gates" --emit session-id # the canonical stamp id, by the derivation order
@@ -90,3 +91,7 @@ Run this arm the same way:
90
91
  gates="${GATE_SDK_NATIVE_BIN:-./scripts/checkwright-gates}"
91
92
  "$gates" --run-gate-tests lifecycle-kit/gate-tests lifecycle-kit/checks
92
93
  ```
94
+
95
+ ## License
96
+
97
+ Apache-2.0. The license text is `LICENSE`, beside this file in an installed copy and at the repository root in the source tree.
@@ -1,3 +1,3 @@
1
1
  # graph: couples=.gitattributes,native/src/knobs/lifecycle_kit.rs dir=one valve=none tier=precommit
2
2
  # install: on-surface
3
- # spec: lifecycle-kit/SPEC.md §check-merge-attrs — bidirectional parity between the derived iteration-scoped supersede set and the merge=iteration-scoped lines in .gitattributes (a smuggled ours-driver attribute on a path outside the set is the reverse-direction safety edge), plus forward-only parity for the derived union set (the gap inbox must carry merge=union; the git-native union driver is legitimate consumer usage elsewhere, so no reverse edge)
3
+ # spec: lifecycle-kit/SPEC.md §check-merge-attrs — bidirectional parity between the derived iteration-scoped supersede set and the merge=iteration-scoped lines in .gitattributes (a smuggled ours-driver attribute on a path outside the set is the reverse-direction safety edge), plus forward-only parity for the derived union set (the gap and consult inboxes must carry merge=union; the git-native union driver is legitimate consumer usage elsewhere, so no reverse edge)
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # spec: lifecycle-kit/SPEC.md §The committed gap inbox — the two tracked capture arms run from a real linked worktree of a sandbox repository: each refuses at exit 2 with the hand-back steer and leaves the record absent in both the worktree and the main checkout, and each files from the main checkout. The refusal's text is pinned in native/src/emit/file_survey.rs's own #[cfg(test)] tests; the crate may not add a linked worktree itself, so the real one lives here.
2
+ # spec: lifecycle-kit/SPEC.md §The committed gap inbox — the three tracked capture arms run from a real linked worktree of a sandbox repository: each refuses at exit 2 with the hand-back steer and leaves the record absent in both the worktree and the main checkout, and each files from the main checkout. The refusal's text is pinned in native/src/emit/file_survey.rs's own #[cfg(test)] tests; the crate may not add a linked worktree itself, so the real one lives here.
3
3
  set -uo pipefail
4
4
  source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
5
5
 
@@ -22,11 +22,14 @@ run_in() { # $1=dir $2.. = arm argv -> stdout+stderr, exit code preserved
22
22
  ( cd "$1" && gate_arm_run "${@:2}" 2>&1 )
23
23
  }
24
24
 
25
- # --- from the linked worktree: both arms refuse, steer the hand-back, and write nowhere ---
26
- for arm in gap survey; do
25
+ # --- from the linked worktree: every arm refuses, steers the hand-back, and writes nowhere ---
26
+ for arm in gap consult survey; do
27
27
  if [[ "$arm" == gap ]]; then
28
28
  out="$(run_in "$wt" --emit-file-gap "a gap an isolated child found")"; rc=$?
29
29
  rec=".workflow/gap-inbox.md"
30
+ elif [[ "$arm" == consult ]]; then
31
+ out="$(run_in "$wt" --emit-file-consult "an item an isolated child found")"; rc=$?
32
+ rec=".workflow/consult-items.md"
30
33
  else
31
34
  out="$(run_in "$wt" --emit-file-survey "q" "seed.txt" "o" "none" "f")"; rc=$?
32
35
  rec=".workflow/survey-record.md"
@@ -38,16 +41,22 @@ for arm in gap survey; do
38
41
  [[ -e "$main/$rec" ]] && note "$arm-main-write" "the arm routed $rec into the main checkout"
39
42
  done
40
43
 
41
- # --- from the main checkout: both arms file as before ---
44
+ # --- from the main checkout: every arm files ---
42
45
  out="$(run_in "$main" --emit-file-gap "a gap the dispatcher files")"; rc=$?
43
46
  [[ "$rc" -eq 0 ]] || note gap-main "want exit 0 from the main checkout, got $rc -- $out"
44
47
  grep -qF -- "— a gap the dispatcher files" "$main/.workflow/gap-inbox.md" 2>/dev/null \
45
48
  || note gap-main-append "the main checkout's inbox lacks the bullet"
49
+ out="$(run_in "$main" --emit-file-consult "an item the dispatcher files")"; rc=$?
50
+ [[ "$rc" -eq 0 ]] || note consult-main "want exit 0 from the main checkout, got $rc -- $out"
51
+ grep -qF -- "— an item the dispatcher files" "$main/.workflow/consult-items.md" 2>/dev/null \
52
+ || note consult-main-append "the main checkout's consult inbox lacks the bullet"
53
+ grep -qxF -- "# contract: lifecycle-kit/SPEC.md §The consult inbox — append-only capture of items owed to the consult skill, consult-drained; one bullet per item below." "$main/.workflow/consult-items.md" 2>/dev/null \
54
+ || note consult-main-header "a fresh consult inbox was not seeded with its contract header"
46
55
  out="$(run_in "$main" --emit-file-survey "does the main checkout file" "seed.txt" "o" "none" "f")"; rc=$?
47
56
  [[ "$rc" -eq 0 ]] || note survey-main "want exit 0 from the main checkout, got $rc -- $out"
48
57
  grep -qF -- "— does the main checkout file" "$main/.workflow/survey-record.md" 2>/dev/null \
49
58
  || note survey-main-append "the main checkout's record lacks the block"
50
59
 
51
60
  [[ "$fails" -eq 0 ]] || { echo "capture-linked-worktree.test: $fails assertion(s) failed"; exit 1; }
52
- echo "capture-linked-worktree.test: clean (file-gap and file-survey refuse in a linked worktree with the hand-back steer and write the record in neither checkout, and both file from the main checkout)"
61
+ echo "capture-linked-worktree.test: clean (file-gap, file-consult and file-survey refuse in a linked worktree with the hand-back steer and write the record in neither checkout, and each files from the main checkout)"
53
62
  exit 0
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
  # Direct unit test of check-dispatch-entry — the cases one good/bad pair cannot
3
- # carry: the gap-inbox skip, an empty marker, the parallel two-line marker, and
3
+ # carry: the gap- and consult-inbox skips, an empty marker, the parallel two-line marker, and
4
4
  # the no-arg, missing-file and wrong-arity edges.
5
5
  # The gate is named, never its substrate: gate_run resolves the declaration path.
6
6
  #
@@ -22,6 +22,8 @@ printf 'build\nbuild\n' > "$tmp/two.txt"
22
22
  : > "$tmp/empty.txt"
23
23
  printf '.workflow/gap-inbox.md\n' > "$tmp/inbox-only.txt"
24
24
  printf '.workflow/gap-inbox.md\nTASK-QUEUE.md\n' > "$tmp/inbox-plus.txt"
25
+ printf '.workflow/consult-items.md\n' > "$tmp/consult-only.txt"
26
+ printf '.workflow/gap-inbox.md\n.workflow/consult-items.md\n' > "$tmp/both-inboxes.txt"
25
27
  printf 'native/src/x.rs\n' > "$tmp/work.txt"
26
28
 
27
29
  run() { # $1=marker $2=staged $3=paths
@@ -36,6 +38,10 @@ expect 0 "$(run "$tmp/one.txt" "$tmp/head.txt" "$tmp/inbox-only.txt")" \
36
38
  "a commit staging the gap inbox alone is the lead's sanctioned commit"
37
39
  expect 1 "$(run "$tmp/one.txt" "$tmp/head.txt" "$tmp/inbox-plus.txt")" \
38
40
  "the gap inbox beside another path is no longer the sanctioned commit"
41
+ expect 0 "$(run "$tmp/one.txt" "$tmp/head.txt" "$tmp/consult-only.txt")" \
42
+ "a commit staging the consult inbox alone is a sanctioned capture commit"
43
+ expect 1 "$(run "$tmp/one.txt" "$tmp/head.txt" "$tmp/both-inboxes.txt")" \
44
+ "both inboxes together are not one inbox alone"
39
45
  expect 0 "$(run "$tmp/empty.txt" "$tmp/head.txt" "$tmp/work.txt")" \
40
46
  "an empty marker declares nothing"
41
47
  expect 1 "$(run "$tmp/two.txt" "$tmp/head.txt" "$tmp/work.txt")" \
@@ -56,5 +62,5 @@ if [[ "$fails" -gt 0 ]]; then
56
62
  echo "check-dispatch-entry.test: $fails assertion(s) failed"
57
63
  exit 1
58
64
  fi
59
- echo "check-dispatch-entry.test: ok (gap-inbox skip; empty marker; parallel lines; edges)"
65
+ echo "check-dispatch-entry.test: ok (gap- and consult-inbox skips; empty marker; parallel lines; edges)"
60
66
  exit 0
@@ -3,5 +3,6 @@
3
3
  .workflow/lesson-evidence.txt merge=iteration-scoped
4
4
  .workflow/survey-record.md merge=iteration-scoped
5
5
  .workflow/gap-inbox.md merge=union
6
+ .workflow/consult-items.md merge=union
6
7
  # lifecycle-kit:merge:end
7
8
  README.md merge=iteration-scoped
@@ -3,4 +3,5 @@
3
3
  .workflow/lesson-evidence.txt merge=iteration-scoped
4
4
  .workflow/survey-record.md merge=iteration-scoped
5
5
  .workflow/gap-inbox.md merge=union
6
+ .workflow/consult-items.md merge=union
6
7
  # lifecycle-kit:merge:end
@@ -46,7 +46,7 @@ mkdir -p "$none"
46
46
  check_case "missing-gitattributes" "$none" 1 "the merge-supersede rule is unmechanized"
47
47
 
48
48
  # --- forward direction, union set: the iteration-scoped lines are complete but the
49
- # gap inbox carries no merge=union line (a filed gap would be silently dropped) ---
49
+ # inboxes carry no merge=union line (a filed bullet would be silently dropped) ---
50
50
  uf="$SANDBOX/union-forward"
51
51
  mkdir -p "$uf"
52
52
  cat >"$uf/.gitattributes" <<'EOF'
@@ -64,6 +64,7 @@ cat >"$uok/.gitattributes" <<'EOF'
64
64
  .workflow/lesson-evidence.txt merge=iteration-scoped
65
65
  .workflow/survey-record.md merge=iteration-scoped
66
66
  .workflow/gap-inbox.md merge=union
67
+ .workflow/consult-items.md merge=union
67
68
  CHANGELOG.md merge=union
68
69
  EOF
69
70
  check_case "union-reverse-legit" "$uok" 0 "MERGE-ATTRS: clean"
@@ -1,4 +1,4 @@
1
- The `consult` skill — an operator strategy session whose conclusions leave the transcript. Not an iteration stage: it invokes no `--enter-stage`, stamps no `WORKFLOW-STATE.txt`, and holds no cursor, so it may run before an iteration opens, between stages, or across an iteration boundary. Exit condition: every ruling the operator closed in the session has landed in a governed surface, every alternative refused along the way is recorded with the grounds it was refused on, and every always-loaded surface those rulings stale is corrected, flagged, or filed as work.
1
+ The `consult` skill — an operator strategy session whose conclusions leave the transcript. Not an iteration stage: it invokes no `--enter-stage`, stamps no `WORKFLOW-STATE.txt`, and holds no cursor, so it may run before an iteration opens, between stages, or across an iteration boundary. Exit condition: every ruling the operator closed in the session has landed in a governed surface, every consult-inbox item the session took up is dispositioned, every alternative refused along the way is recorded with the grounds it was refused on, and every always-loaded surface those rulings stale is corrected, flagged, or filed as work.
2
2
 
3
3
  The write authority this skill leans on is **not** the skill's to grant: it belongs to the ruling record itself, which states who may record a ruling there and under what condition. What this skill adds on top of that authority is **obligation**. Any session that closes a ruling with the operator is permitted to record it; a consultation has not finished until it has.
4
4
 
@@ -6,14 +6,16 @@ The write authority this skill leans on is **not** the skill's to grant: it belo
6
6
 
7
7
  1. **Read in before proposing anything.** *<entry-reading: the surfaces a consultation reads on entry — name paths, not topics. Typically the record of closed direction, the work queue, and any context this consumer keeps outside the tree; a consultation that skips the last of those re-opens what is already settled.>*
8
8
 
9
- 2. **Land each ruling the moment it closes, never at exit.** The landing target is chosen by what the ruling is about, from *<landing-surfaces: the surfaces a closed ruling may land on, each with the ruling class it takes — direction and refusals, work items, and the contract surfaces a ruling about mechanism belongs in. Say which one takes a ruling that fits none of them.>* Landing at exit instead is the failure mode itself, one step later: a session that batches its rulings to the end loses all of them together when it is interrupted.
9
+ 2. **Drain the consult inbox (`LIFECYCLE_KIT_CONSULT_INBOX_FILE`) as you reach its items.** Give each item you take up one disposition: ruled, landed as step 3 lands a ruling; re-classed to the queue, filed with `--emit file-gap` or entered directly where the operator directs; or discarded, with the cause in the commit message. Remove its bullet in the commit that lands the disposition, and name the disposition in that message. An item the operator defers stays in the inbox.
10
10
 
11
- 3. **Record a refused alternative beside the ruling that refused it, with its grounds.** A refusal recorded without grounds is re-proposed by the next session at full cost; a refusal recorded with them is already costed when that session reaches for it. Deletion is not disposition — an alternative weighed and rejected is *kept*, marked as rejected.
11
+ 3. **Land each ruling the moment it closes, never at exit.** The landing target is chosen by what the ruling is about, from *<landing-surfaces: the surfaces a closed ruling may land on, each with the ruling class it takes — direction and refusals, work items, and the contract surfaces a ruling about mechanism belongs in. Say which one takes a ruling that fits none of them.>* Landing at exit instead is the failure mode itself, one step later: a session that batches its rulings to the end loses all of them together when it is interrupted.
12
12
 
13
- 4. **Name what the rulings stale.** A ruling that contradicts an always-loaded surface leaves that surface teaching the superseded shape to every later session, at per-session cost. Correct it in the same session where the edit is small and unambiguous; where it is neither, file it as work with the ruling cited, so the correction is owed rather than remembered.
13
+ 4. **Record a refused alternative beside the ruling that refused it, with its grounds.** A refusal recorded without grounds is re-proposed by the next session at full cost; a refusal recorded with them is already costed when that session reaches for it. Deletion is not disposition — an alternative weighed and rejected is *kept*, marked as rejected.
14
14
 
15
- 5. **Journal in flight, and treat a held index as latency rather than loss.** Durability is the obligation and this session discharges it by whichever means is available — the rule and its two discharge paths are `delegation-kit/templates/agent-execution.md`'s **Findings you will act on are durable before you act on them** bullet, which reaches this session directly. When another session holds the shared index, journal each ruling as it closes and commit when the index frees. Waiting is safe only because the finding is already durable; waiting without the journal is the transcript failure again, wearing a different cause.
15
+ 5. **Name what the rulings stale.** A ruling that contradicts an always-loaded surface leaves that surface teaching the superseded shape to every later session, at per-session cost. Correct it in the same session where the edit is small and unambiguous; where it is neither, file it as work with the ruling cited, so the correction is owed rather than remembered.
16
16
 
17
- 6. **Dispatch by the delegation protocol, and select the tier every time.** The protocol is `delegation-kit/templates/agent-execution.md`, cited and never copied — a copy is a second tier of the same content, drifting from the day it is written. Tier selection needs its own attention here: an unselected dispatch inherits *this* session's tier, and a consultation runs at the judgment tier while most of what it dispatches is read-only research, so an unselected fan-out buys the most expensive tier for the cheapest work. Name the tier in the dispatch, downward by default, and reserve the judgment tier for a dispatch that actually rules.
17
+ 6. **Journal in flight, and treat a held index as latency rather than loss.** Durability is the obligation and this session discharges it by whichever means is available — the rule and its two discharge paths are `delegation-kit/templates/agent-execution.md`'s **Findings you will act on are durable before you act on them** bullet, which reaches this session directly. When another session holds the shared index, journal each ruling as it closes and commit when the index frees. Waiting is safe only because the finding is already durable; waiting without the journal is the transcript failure again, wearing a different cause.
18
18
 
19
- The two named slots are where this consumer's own governance layout lives — what a consultation reads, and where its rulings land. The kit ships the shape and never the surfaces: a consultation has an entry read-set and an exit landing-set, and every closed ruling reaches the landing set before the session ends.
19
+ 7. **Dispatch by the delegation protocol, and select the tier every time.** The protocol is `delegation-kit/templates/agent-execution.md`, cited and never copied — a copy is a second tier of the same content, drifting from the day it is written. Tier selection needs its own attention here: an unselected dispatch inherits *this* session's tier, and a consultation runs at the judgment tier while most of what it dispatches is read-only research, so an unselected fan-out buys the most expensive tier for the cheapest work. Name the tier in the dispatch, downward by default, and reserve the judgment tier for a dispatch that actually rules.
20
+
21
+ **Dispatched by a lead, with no operator in the session**, take up consult-inbox items only. Re-class or discard an item alone, with the cause in the commit message. Escalate each item needing a ruling or an operator direction to the lead, one Question / Options / Recommendation / Evidence block per item, all in one turn end; it stays in the inbox until an answer lands. A relayed answer lands in the class the relay names, never as a ruling (lifecycle-kit/SPEC.md §The steering vocabulary), so an item needing one waits for the operator's own consultation.