checkwright 0.28.0 → 0.30.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.
- package/LICENSE +202 -0
- package/README.md +22 -2
- package/package.json +5 -3
- package/payload/artifact/aarch64-apple-darwin/checkwright-gates +0 -0
- package/payload/artifact/aarch64-apple-darwin/checkwright-gates.sha256 +1 -1
- package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe +0 -0
- package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -1
- package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates +0 -0
- package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
- package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates +0 -0
- package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates.sha256 +1 -1
- package/payload/artifact/x86_64-apple-darwin/checkwright-gates +0 -0
- package/payload/artifact/x86_64-apple-darwin/checkwright-gates.sha256 +1 -1
- package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe +0 -0
- package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -1
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
- package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates +0 -0
- package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates.sha256 +1 -1
- package/payload/canon-kit/LICENSE +202 -0
- package/payload/canon-kit/README.md +7 -1
- package/payload/canon-kit/checks/check-task-label-resolution.gate +4 -0
- package/payload/canon-kit/checks/check-task-path-claim.gate +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/README.md +9 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/SPEC-family.md +10 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/SPEC-only.md +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/scripts/canon-config.knobs +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/README.md +4 -2
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/SPEC-family.md +10 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-task-label-resolution/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-task-label-resolution/bad/scripts/canon-config.knobs +4 -0
- package/payload/canon-kit/gate-tests/check-task-label-resolution/bad/work/spec.md +5 -0
- package/payload/canon-kit/gate-tests/check-task-label-resolution/bad/work/tasks.md +4 -0
- package/payload/canon-kit/gate-tests/check-task-label-resolution/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-task-label-resolution/good/scripts/canon-config.knobs +4 -0
- package/payload/canon-kit/gate-tests/check-task-label-resolution/good/work/spec.md +9 -0
- package/payload/canon-kit/gate-tests/check-task-label-resolution/good/work/tasks.md +8 -0
- package/payload/canon-kit/gate-tests/check-task-path-claim/bad/expect.txt +2 -0
- package/payload/canon-kit/gate-tests/check-task-path-claim/bad/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-task-path-claim/bad/work/tasks.md +4 -0
- package/payload/canon-kit/gate-tests/check-task-path-claim/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-task-path-claim/good/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-task-path-claim/good/src/app.py +1 -0
- package/payload/canon-kit/gate-tests/check-task-path-claim/good/work/tasks.md +13 -0
- package/payload/context-kit/LICENSE +202 -0
- package/payload/context-kit/README.md +5 -1
- package/payload/delegation-kit/LICENSE +202 -0
- package/payload/delegation-kit/README.md +5 -1
- package/payload/doctrine-kit/LICENSE +202 -0
- package/payload/doctrine-kit/README.md +5 -1
- package/payload/drift-kit/LICENSE +202 -0
- package/payload/drift-kit/README.md +4 -0
- package/payload/evidence-kit/LICENSE +202 -0
- package/payload/evidence-kit/README.md +5 -1
- package/payload/gate-sdk/LICENSE +202 -0
- package/payload/gate-sdk/README.md +1 -1
- package/payload/gate-sdk/gate-tests/check-graph/bad/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-example-gate.md +2 -2
- package/payload/gate-sdk/gate-tests/check-graph-tree.test.sh +8 -33
- package/payload/gate-sdk/lib/gate.sh +0 -14
- package/payload/guard-kit/LICENSE +202 -0
- package/payload/guard-kit/README.md +5 -1
- package/payload/lifecycle-kit/LICENSE +202 -0
- package/payload/lifecycle-kit/README.md +7 -2
- package/payload/lifecycle-kit/checks/check-close-surfaces.gate +1 -1
- package/payload/lifecycle-kit/checks/check-merge-attrs.gate +1 -1
- package/payload/lifecycle-kit/gate-tests/capture-linked-worktree.test.sh +14 -5
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +14 -8
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry.test.sh +8 -2
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs/bad/.gitattributes +1 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs/good/.gitattributes +1 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +2 -1
- package/payload/lifecycle-kit/templates/consult.md +9 -7
- package/payload/lifecycle-kit/templates/lead.md +7 -3
- package/payload/lifecycle-kit/templates/stages/close.md +2 -2
- package/payload/lifecycle-kit/templates/stages/scope.md +1 -1
- package/payload/queue-kit/LICENSE +202 -0
- package/payload/queue-kit/README.md +5 -1
- package/payload/site-kit/LICENSE +202 -0
- package/payload/site-kit/README.md +5 -1
- package/payload/site-kit/checks/check-docs-cname-parity.gate +1 -1
- package/payload/site-kit/checks/check-docs-liquid-parse.gate +2 -2
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/expect.txt +1 -0
- package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/expect.txt +1 -1
- package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/scripts/site-config.knobs +3 -0
- package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/_layouts/stale.html +4 -0
- package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/scripts/site-config.knobs +3 -0
- package/recipes/openspec/canon-config.knobs +4 -0
- package/recipes/openspec/unregister.list +1 -0
- package/recipes/openspec-lifecycle/lifecycle-config.knobs +4 -0
- package/recipes/openspec-lifecycle/unregister.list +1 -0
- package/recipes/speckit/canon-config.knobs +6 -0
- package/recipes/speckit/gate-sdk-config.knobs +2 -0
- package/recipes/speckit/unregister.list +1 -0
- /package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/docs/{_layouts → _templates}/default.html +0 -0
- /package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/{_layouts → _templates}/default.html +0 -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.
|
|
@@ -34,7 +34,7 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
|
|
|
34
34
|
```
|
|
35
35
|
<!-- gate-roster:end -->
|
|
36
36
|
|
|
37
|
-
They resolve through gate-sdk's registry path (your gates dir first, then each kit's `checks/`), and their `# graph:` manifests
|
|
37
|
+
They resolve through gate-sdk's registry path (your gates dir first, then each kit's `checks/`), and the hooks run those their `# graph:` manifests trigger, read at commit (`check-stamp-subject` and `check-dispatch-entry` in the commit-msg hook). `--emit git-hooks --write` on the gate binary `GATE_SDK_NATIVE_BIN` names writes the pre-commit hook once, and again only to add the commit-msg hook when a first `tier=commit-msg` gate is registered.
|
|
38
38
|
|
|
39
39
|
2. Give the queue file its header and each evidence file its skeleton — the stage-stamp file and the lesson-disposition file (`LIFECYCLE_KIT_LESSON_EVIDENCE_FILE`, both boundary-reset to their header). The queue header line:
|
|
40
40
|
|
|
@@ -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
|
|
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=knob:GATE_SDK_WORKFLOW_DIR/*,kit:SPEC.md,knob:LIFECYCLE_KIT_CLOSE_SURFACE_GLOBS,.gitignore dir=one valve=none tier=precommit
|
|
2
2
|
# install: on-surface
|
|
3
|
-
# spec: lifecycle-kit/SPEC.md §check-close-surfaces — the derived close-surface roster is complete and moded: no undeclared capture surface, every declaration carries a mode with a well-formed forced= citation, every capture-tier declaration names a reclaim command
|
|
3
|
+
# spec: lifecycle-kit/SPEC.md §check-close-surfaces — the derived close-surface roster is complete and moded: no undeclared capture surface, every declaration carries a mode with a well-formed forced= citation, every capture-tier declaration names a reclaim command that rotates
|
|
@@ -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
|
|
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
|
|
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:
|
|
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:
|
|
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
|
|
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,10 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# Behavioral test of check-close-surfaces over real git repos — the
|
|
3
|
-
#
|
|
3
|
+
# three assertions the good/bad pair cannot reach. A fixture case dir cannot ship
|
|
4
4
|
# a gitignored member: `git check-ignore` never reports a tracked path, and a
|
|
5
5
|
# fixture file must be tracked to survive a clone. So the capture-tier half —
|
|
6
|
-
# assertion A (an undeclared capture surface)
|
|
7
|
-
# with no reclaim command, inside or outside the workflow dir)
|
|
6
|
+
# assertion A (an undeclared capture surface), assertion C (a declared one
|
|
7
|
+
# with no reclaim command, inside or outside the workflow dir) and assertion D
|
|
8
|
+
# (a reclaim that truncates) — is exercised in sandbox repos here, the
|
|
8
9
|
# check-merge-attrs / check-exec-bit precedent. The pair covers assertion B.
|
|
9
10
|
#
|
|
10
11
|
# Run by the --run-gate-tests arm (any <tests-dir>/*.test.sh; must exit 0).
|
|
@@ -52,21 +53,26 @@ noreclaim="$SANDBOX/noreclaim"
|
|
|
52
53
|
seed_repo "$noreclaim" "close-surface: .workflow/capture.log advisory"
|
|
53
54
|
check_case "capture-without-reclaim" "$noreclaim" 1 "names no reclaim= command"
|
|
54
55
|
|
|
55
|
-
# ---
|
|
56
|
+
# --- assertion D: the reclaim is named, but truncates rather than rotates ---
|
|
57
|
+
truncating="$SANDBOX/truncating"
|
|
58
|
+
seed_repo "$truncating" "close-surface: .workflow/capture.log advisory reclaim=: > .workflow/capture.log"
|
|
59
|
+
check_case "capture-reclaimed-by-truncation" "$truncating" 1 "reclaim does not rotate the log"
|
|
60
|
+
|
|
61
|
+
# --- all satisfied: declared, moded, reclaimed by rotation ---
|
|
56
62
|
ok="$SANDBOX/ok"
|
|
57
|
-
seed_repo "$ok" "close-surface: .workflow/capture.log advisory reclaim
|
|
63
|
+
seed_repo "$ok" "close-surface: .workflow/capture.log advisory reclaim=run-gates.sh --emit capture-drain .workflow/capture.log"
|
|
58
64
|
check_case "capture-declared-and-reclaimed" "$ok" 0 "CLOSE-SURFACES: clean"
|
|
59
65
|
|
|
60
66
|
# --- assertion C reads <tracking>: a gitignored declared path outside the workflow dir, no reclaim ---
|
|
61
67
|
outside="$SANDBOX/outside"
|
|
62
|
-
seed_repo "$outside" $'close-surface: .workflow/capture.log advisory reclaim
|
|
68
|
+
seed_repo "$outside" $'close-surface: .workflow/capture.log advisory reclaim=run-gates.sh --emit capture-drain .workflow/capture.log\nclose-surface: notes/scratch.log advisory'
|
|
63
69
|
printf 'notes/\n' >>"$outside/.gitignore"
|
|
64
70
|
mkdir -p "$outside/notes"; printf 'x\n' >"$outside/notes/scratch.log"
|
|
65
71
|
check_case "ignored-outside-workflow-without-reclaim" "$outside" 1 "'close-surface: notes/scratch.log' is capture-tier"
|
|
66
72
|
|
|
67
73
|
# --- a declared log's drain companions fold into its row; a drain beside no declared log does not ---
|
|
68
74
|
drained="$SANDBOX/drained"
|
|
69
|
-
seed_repo "$drained" "close-surface: .workflow/capture.log advisory reclaim
|
|
75
|
+
seed_repo "$drained" "close-surface: .workflow/capture.log advisory reclaim=run-gates.sh --emit capture-drain .workflow/capture.log"
|
|
70
76
|
printf '.workflow/*.drain\n.workflow/*.drain.part\n' >>"$drained/.gitignore"
|
|
71
77
|
printf 'a drained line\n' >"$drained/.workflow/capture.log.drain"
|
|
72
78
|
printf 'a crashed line\n' >"$drained/.workflow/capture.log.drain.part"
|
|
@@ -78,5 +84,5 @@ if [[ "$fails" -gt 0 ]]; then
|
|
|
78
84
|
echo "check-close-surfaces.test.sh: $fails case(s) failed"
|
|
79
85
|
exit 1
|
|
80
86
|
fi
|
|
81
|
-
echo "check-close-surfaces.test.sh: clean (undeclared capture, declared-without-reclaim, the satisfied case, a gitignored declared path outside the workflow dir, a declared log's drain folded into its row, and a drain beside no declared log reported,
|
|
87
|
+
echo "check-close-surfaces.test.sh: clean (undeclared capture, declared-without-reclaim, a truncating reclaim, the satisfied case, a gitignored declared path outside the workflow dir, a declared log's drain folded into its row, and a drain beside no declared log reported, 7 cases)"
|
|
82
88
|
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
|
|
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
|
|
65
|
+
echo "check-dispatch-entry.test: ok (gap- and consult-inbox skips; empty marker; parallel lines; edges)"
|
|
60
66
|
exit 0
|
|
@@ -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
|
-
#
|
|
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. **
|
|
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. **
|
|
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. **
|
|
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. **
|
|
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. **
|
|
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
|
-
|
|
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.
|
|
@@ -110,7 +110,11 @@ Under the split posture the lead **routes** an escalation before answering it. A
|
|
|
110
110
|
|
|
111
111
|
**A split ask arrives with its own test already applied.** A session the queue's per-entry cap blocks may ask to split the entry, and that ask carries the session's statement of which side of `queue-kit/SPEC.md` §check-queue-entry-budget's split test its entry falls on. The lead rules against that test rather than re-deriving one; the authorization stays the lead's, on that section's own ground — a new entry is a new unit competing for the scope attention that ranks both.
|
|
112
112
|
|
|
113
|
-
**One class the lead never rules, under either posture.** Reversing, demoting or re-scoping a **recorded operator ruling** or a stated objective is operator-class: the lead relays it, however well-grounded the escalating session's finding and however urgent the fix. Nor does it decline a threshold-proposed entry that scope's escalation marks operator-routed. That entry has been declined twice, and it is relayed.
|
|
113
|
+
**One class the lead never rules, under either posture.** Reversing, demoting or re-scoping a **recorded operator ruling** or a stated objective is operator-class: the lead relays it, however well-grounded the escalating session's finding and however urgent the fix. Where the operator defers it, file it with `--emit file-consult` so it reaches the next consultation rather than your transcript. Nor does it decline a threshold-proposed entry that scope's escalation marks operator-routed. That entry has been declined twice, and it is relayed.
|
|
114
|
+
|
|
115
|
+
**Dispatch a consultation for the consult inbox only while no stage session is live.** At a point where no dispatched stage session is live and the inbox (`LIFECYCLE_KIT_CONSULT_INBOX_FILE`) meets the slot's threshold, dispatch the consult skill as the agent type the slot names, its prompt naming the inbox items and nothing else. It escalates to you as a stage session does. Relay each ruling-class escalation to the operator and relay the answer back, stating its class. Dispatch no stage session while it is live.
|
|
116
|
+
|
|
117
|
+
*<consult-dispatch: the agent type a lead dispatches a consultation as — never a stage-session type — and the batching threshold on the consult inbox: an item count, an oldest-item age, or off, which dispatches at the first quiet point after any item lands. Or the statement that this consumer's lead dispatches no consultation.>*
|
|
114
118
|
|
|
115
119
|
## Channel design
|
|
116
120
|
|
|
@@ -154,9 +158,9 @@ The lead writes **no** lifecycle state — no WORKFLOW-STATE stamps, no queue wr
|
|
|
154
158
|
|
|
155
159
|
**A recurrence you judge is still yours to record, and your discharge differs.** The no-queue-write rule above leaves you no way to stamp one, so you **file the judgment and its grounds into a gap bullet** (`--emit file-gap`) and the session that may write the queue stamps from your prose — at the boundary as safely as mid-iteration (lifecycle-kit/SPEC.md §The committed gap inbox). What you must not do is leave the judgment unrecorded on the ground that you cannot stamp it.
|
|
156
160
|
|
|
157
|
-
**While a dispatched stage session is live, write nothing into the checkout.** A stage session is live from its dispatch until its completion notification. While one is, write nothing into the checkout or any linked worktree: no file, no directory, no worktree added or removed, no `git` write, gitignored scratch included. Three writes stay yours: your resume journal, your session-role marker, and what the arms you run write for you (`--dispatch`, `--dispatch-withdraw`, `--open-lead-journal`, a budget verdict). A capture you make, a gap bullet or a survey block, goes to your journal. A probe that must write runs after the stage completes, or in a clone outside the checkout.
|
|
161
|
+
**While a dispatched stage session is live, write nothing into the checkout.** A stage session is live from its dispatch until its completion notification. While one is, write nothing into the checkout or any linked worktree: no file, no directory, no worktree added or removed, no `git` write, gitignored scratch included. Three writes stay yours: your resume journal, your session-role marker, and what the arms you run write for you (`--dispatch`, `--dispatch-withdraw`, `--open-lead-journal`, a budget verdict). A capture you make, a gap bullet, a consult item or a survey block, goes to your journal. A probe that must write runs after the stage completes, or in a clone outside the checkout.
|
|
158
162
|
|
|
159
|
-
**File and commit your captures between dispatches.** At the first moment no dispatched stage session is live, file each held capture to its channel (`--emit file-gap`, `--emit file-survey`) and commit it on its own. A capture commit is none of the lifecycle state the invariant above enumerates, so it is yours to make.
|
|
163
|
+
**File and commit your captures between dispatches.** At the first moment no dispatched stage session is live, file each held capture to its channel (`--emit file-gap`, `--emit file-consult`, `--emit file-survey`) and commit it on its own. A capture commit is none of the lifecycle state the invariant above enumerates, so it is yours to make. No capture arm makes a `git` call: judging when the tree is free is the filing session's (lifecycle-kit/SPEC.md §The committed gap inbox).
|
|
160
164
|
|
|
161
165
|
An answer that amounts to a design ruling is landed **by the stage session**, in the governed surface it belongs to (the amendment, the queue entry), *before* the session acts on it — and a ruling whose acting session is **not imminent** is filed to a durable governed surface (a queue entry, an amendment) in the moment it is made, because "the stage session lands it" holds only when that session exists. So is an answer that nothing changes: relay it as an answer to be landed, naming the surface that recorded the question, never as a close of the matter (lifecycle-kit/SPEC.md §The stamp protocol). The message thread is transport, never a store — so a lead crash or a lost transcript costs nothing the tracked surfaces do not already hold.
|
|
162
166
|
|
|
@@ -9,10 +9,10 @@ The `close` stage of an iteration. Harvest lessons, housekeep, optionally merge.
|
|
|
9
9
|
**The survey record is not a close surface.** It carries no disposition obligation and blocks no boundary — the next first-stage entry truncates it, and that is the whole reclaim (lifecycle-kit/SPEC.md §The survey record). Close owes it exactly one thing: a survey close *buys* while triaging is filed like any other, so a finding worth an iteration's carry does not die with this session.
|
|
10
10
|
|
|
11
11
|
1. **Process Lessons Learned** → durable rules or debt tasks, then clear the section. **Give each entry an explicit disposition before clearing, and stamp it** — one line per entry into `LIFECYCLE_KIT_LESSON_EVIDENCE_FILE` (`<iteration> lesson <kind> <ref> — <lead-line prefix>`), the record `check-lesson-disposition` reads when the entry leaves the queue (the stamp, not the commit body, is the mechanically-decidable evidence — the pre-commit battery has no commit message yet). The disposition set is →rule (name the file + section; prefer a stage-local skill file over an always-loaded doc for a stage-local procedure), →task (name the new slug), →harvest (a lesson carrying a configured harvest tag on its lead line — route its *body* to the sink this skill names for that tag, below), or →discard (state why it needs no durable home — a lesson that is private rule content discards to the consumer's local-only private brief, if one exists, rather than any tracked surface). Clearing is not processing: a lesson naming a concrete *unfixed gap* must become a task, not evaporate. When a lesson claims it was "already filed under <slug>", verify the target task's **body** actually carries the specific finding before dispositioning →task — the slug merely existing is not enough. Gap generalization, per lesson recording drift no check caught: name the check class that should have caught it, then either file the missing check as a deferred task or state in one line why no scanner is buildable — the disposition is not complete without one of the two; read the rule body first (doctrine-kit/DOCTRINE.md, Enforcement-first). Lesson-vs-task litmus (holds at filing time in any stage, not just here): if the deliverable and its done-state are nameable now, it is a task — file it in the deferred section directly, never stage it in Lessons where it waits a stage and risks →discard; Lessons is for observations about how the work should be done, whose durable home (rule vs task vs nothing) genuinely needs this stage's call. *<harvest-routing: harvest routing table: each `QUEUE_KIT_LESSON_TAGS` tag → the sink file its body appends to, plus the sink's reclaim path (a gitignored sink needs a named trigger that empties it — the runtime-artifact lifecycle rule).>*
|
|
12
|
-
2. **Drain the gap inbox** (`LIFECYCLE_KIT_GAP_INBOX_FILE`, §The committed gap inbox) → disposition every `- <date> — <gap>` bullet, then **truncate the inbox to its `# contract:` header**. **Read the drain's inputs first.** Before the first bullet, run `--emit close-surfaces` on the gate binary `GATE_SDK_NATIVE_BIN` names and read each surface the slot below names whose row is not `empty` or `absent`. A fact there bearing on a bullet's claim is that bullet's re-verification input. The surface's own disposition and reclaim stay at step 4. Name the surfaces read in the drain's commit message. *<drain-inputs: the capture surfaces holding facts a gap bullet's re-verification may need (a knowledge-friction capture, say) — never a raw machine log.>* The disposition set, **tried in this order** (§The committed gap inbox owns the order and why): →fix (resolve it inline this session — the default for a debt-shaped bullet), →promote (file a deferred queue entry carrying its `[cost:]` and `[surface:]` tags, queue-kit/SPEC.md §The tag algebra — only what →fix does not take), or →discard (state why in the close commit message — the bullet's own prose is the disposition body). The icebox is not a disposition here: it takes deferred entries that aged without recurring, at this stage's eviction step, never a bullet drained today (queue-kit/SPEC.md §The icebox tier). A →promote states in the commit message why →fix failed; the commit message also states drift-kit's `qnet` figure for the iteration, so the pool's net motion is read at every close rather than discovered at a consult. The date feeds the staleness read (an aged bullet is a signal, not a free pass). Draining is not deleting: a bullet naming a concrete unfixed gap must become a task or a fix, not evaporate — the same clearing-is-not-processing rule as Lessons. **Re-verify before dispositioning.** A bullet's prose is the filer's claim, not an established fact: capture is deliberately frictionless, so nothing upstream checked it and a bullet can assert a mechanism its filer inferred rather than ran. Per bullet, name the claim the disposition turns on and the command that establishes it, run that command, and disposition against what it returned. Record the outcome in the close commit message beside the bullet's disposition — which bullets were re-verified and what fell — so a corrected premise is visible rather than silently absorbed. A claim no cheap command settles is dispositioned *as a claim*: say so, and carry it on the promoted entry as the inferred marker (§templates/stages/; §The committed gap inbox rules why this sits at the drain and not at filing time). The next iteration's first-stage entry refuses a non-empty inbox **when this stage was skipped** (§bin/enter-stage.sh), so an undrained gap blocks the boundary rather than crossing it silently. **A finding your own later steps generate postdates this drain, and it routes to the inbox like any other.** The audits, the lesson disposition, the staleness read and the release disposition all run after this step, so what they turn up has no drainer left in this iteration. File it (`--emit file-gap`) and let it be carried: the next first-stage entry admits it and takes it as that session's intake (§The committed gap inbox). Do **not** back-date it into a drain that has already run — a second pass over an inbox your own later steps keep refilling is the loop that shape was rejected for. **Read the queue's retired citations here too, and this is a command you run rather than a file you already have open.** The drain works from `LIFECYCLE_KIT_GAP_INBOX_FILE`, so nothing in this step has touched the queue yet: invoke queue-kit's inbound-citation arm over the queue file (queue-kit/SPEC.md §The queue-edges arm) and read its **retired** block. Each entry there cites a slug that was once live and is not now — a directional pointer at work that has been disposed of, indistinguishable from a live pointer to any reader who did not run this. It is a finding, never a violation: the correction is inline on the citing entry, in this session, the way every attested instance was fixed. A row the arm marks `name live at <path>` is **not** in that set: its citations point at mechanism the tree still carries. Skip it, and spend the step on the rows left. This is the corrective transition for the class; scope's ranking survey is the other reader, and it reads the same block to a different end. **Judge the recurrence, in addition to the disposition — you are the judge, and nothing upstream ruled.** That framing is the **general** contract rather than this stage's local one — every session that judges a recurrence is obliged to stamp it, and this drain is only its mechanized instance (§The committed gap inbox owns the rule and what a stamp outside a drain owes instead). Your obligation here is undiminished by that reach. A slug appearing in a bullet is an *input*, never a verdict; the question is whether the finding **re-occurred** or is merely being cited, corrected, or argued against, and the bullet's prose is your grounds (the filer was asked at capture to write the claim there). State the call in the close commit message beside the bullet's disposition — a **declined** match stated as explicitly as a stamped one, since an unstated decline is indistinguishable from an unread bullet. On a judged recurrence, stamp it with `--queue recur <slug> <bullet-date>`, **in this same queue-writing commit** — never *instead of* the bullet's own disposition. That same-commit rule is load-bearing rather than housekeeping: the declaration is no longer re-derivable, so this commit *is* the audit artifact, carrying the judgment beside the prose it was made from. It is idempotent per (slug, date): a slug already carrying today's date gains nothing. A slug that resolves only in the done section is not a recurrence — the finding recurred after its fix landed, which is a new defect, and it files as one.
|
|
12
|
+
2. **Drain the gap inbox** (`LIFECYCLE_KIT_GAP_INBOX_FILE`, §The committed gap inbox) → disposition every `- <date> — <gap>` bullet, then **truncate the inbox to its `# contract:` header**. **Read the drain's inputs first.** Before the first bullet, run `--emit close-surfaces` on the gate binary `GATE_SDK_NATIVE_BIN` names and read each surface the slot below names whose row is not `empty` or `absent`. A fact there bearing on a bullet's claim is that bullet's re-verification input. The surface's own disposition and reclaim stay at step 4. Name the surfaces read in the drain's commit message. *<drain-inputs: the capture surfaces holding facts a gap bullet's re-verification may need (a knowledge-friction capture, say) — never a raw machine log.>* The disposition set, **tried in this order** (§The committed gap inbox owns the order and why): →fix (resolve it inline this session — the default for a debt-shaped bullet), →forward (a bullet only the operator can settle — a ruling, or a direction no stage may give: re-file it with `--emit file-consult`, carrying its prose and its date), →promote (file a deferred queue entry carrying its `[cost:]` and `[surface:]` tags, queue-kit/SPEC.md §The tag algebra — only what →fix does not take), or →discard (state why in the close commit message — the bullet's own prose is the disposition body). The icebox is not a disposition here: it takes deferred entries that aged without recurring, at this stage's eviction step, never a bullet drained today (queue-kit/SPEC.md §The icebox tier). A →promote states in the commit message why →fix and →forward failed; the commit message also states drift-kit's `qnet` figure for the iteration, so the pool's net motion is read at every close rather than discovered at a consult. The date feeds the staleness read (an aged bullet is a signal, not a free pass). Draining is not deleting: a bullet naming a concrete unfixed gap must become a task or a fix, not evaporate — the same clearing-is-not-processing rule as Lessons. **Re-verify before dispositioning.** A bullet's prose is the filer's claim, not an established fact: capture is deliberately frictionless, so nothing upstream checked it and a bullet can assert a mechanism its filer inferred rather than ran. Per bullet, name the claim the disposition turns on and the command that establishes it, run that command, and disposition against what it returned. Record the outcome in the close commit message beside the bullet's disposition — which bullets were re-verified and what fell — so a corrected premise is visible rather than silently absorbed. A claim no cheap command settles is dispositioned *as a claim*: say so, and carry it on the promoted entry as the inferred marker (§templates/stages/; §The committed gap inbox rules why this sits at the drain and not at filing time). The next iteration's first-stage entry refuses a non-empty inbox **when this stage was skipped** (§bin/enter-stage.sh), so an undrained gap blocks the boundary rather than crossing it silently. **A finding your own later steps generate postdates this drain, and it routes to the inbox like any other.** The audits, the lesson disposition, the staleness read and the release disposition all run after this step, so what they turn up has no drainer left in this iteration. File it (`--emit file-gap`) and let it be carried: the next first-stage entry admits it and takes it as that session's intake (§The committed gap inbox). Do **not** back-date it into a drain that has already run — a second pass over an inbox your own later steps keep refilling is the loop that shape was rejected for. **Read the queue's retired citations here too, and this is a command you run rather than a file you already have open.** The drain works from `LIFECYCLE_KIT_GAP_INBOX_FILE`, so nothing in this step has touched the queue yet: invoke queue-kit's inbound-citation arm over the queue file (queue-kit/SPEC.md §The queue-edges arm) and read its **retired** block. Each entry there cites a slug that was once live and is not now — a directional pointer at work that has been disposed of, indistinguishable from a live pointer to any reader who did not run this. It is a finding, never a violation: the correction is inline on the citing entry, in this session, the way every attested instance was fixed. A row the arm marks `name live at <path>` is **not** in that set: its citations point at mechanism the tree still carries. Skip it, and spend the step on the rows left. This is the corrective transition for the class; scope's ranking survey is the other reader, and it reads the same block to a different end. **Judge the recurrence, in addition to the disposition — you are the judge, and nothing upstream ruled.** That framing is the **general** contract rather than this stage's local one — every session that judges a recurrence is obliged to stamp it, and this drain is only its mechanized instance (§The committed gap inbox owns the rule and what a stamp outside a drain owes instead). Your obligation here is undiminished by that reach. A slug appearing in a bullet is an *input*, never a verdict; the question is whether the finding **re-occurred** or is merely being cited, corrected, or argued against, and the bullet's prose is your grounds (the filer was asked at capture to write the claim there). State the call in the close commit message beside the bullet's disposition — a **declined** match stated as explicitly as a stamped one, since an unstated decline is indistinguishable from an unread bullet. On a judged recurrence, stamp it with `--queue recur <slug> <bullet-date>`, **in this same queue-writing commit** — never *instead of* the bullet's own disposition. That same-commit rule is load-bearing rather than housekeeping: the declaration is no longer re-derivable, so this commit *is* the audit artifact, carrying the judgment beside the prose it was made from. It is idempotent per (slug, date): a slug already carrying today's date gains nothing. A slug that resolves only in the done section is not a recurrence — the finding recurred after its fix landed, which is a new defect, and it files as one.
|
|
13
13
|
3. **Disposition the pre-flight valve ledger** — every line of the closing iteration, in this session. A `used` line means an entry of this iteration was admitted past a refusing pre-flight: **file the blocking task its reason names and land the baseline row that names that task**, carrying the reason's `reproduces-at=<rev>` commit onto that row where evidence-kit/SPEC.md §check-evidence-baseline's flip assertion binds it, so the next iteration's pre-flight passes without a valve. Inline the finding into the filed task rather than pointing it at the ledger — the ledger dies at the next boundary, so a pointer would resolve to nothing. A residual `armed` line is dispositioned with the same weight: a session expected a refusal that never came, or armed the wrong stage, and either is worth one stated line rather than a quiet truncation. A header-only ledger is a clean disposition and says so in one line. The valve's own contract, including why a second reach in one iteration is the failure: lifecycle-kit/SPEC.md §bin/enter-stage.sh.
|
|
14
14
|
4. **Sweep the inbound triage surfaces** — run `--emit close-surfaces` on the gate binary `GATE_SDK_NATIVE_BIN` names and disposition every row (§The close-surface roster). The roster is derived, not enumerated here or in the binding below: a `forced=` row has a structural forcing function and cannot be skipped silently; an `advisory` row may be skipped, but the skip is a judgment to state, not an omission to leave invisible. An `(undeclared)` row is a capture surface nobody declared: file the missing declaration. A row's state is read too: `empty` is a clean read to state, and `absent` is a finding — nothing ever wrote the surface or its writer is gone, so confirm the writer or file the gap. A row whose `<tracking>` is not `tracked` is read by you, never by an isolated agent, which sees only committed state (delegation-kit/templates/agent-execution.md, isolation cost 3). *<housekeeping: your housekeeping sweeps beyond the roster: deprecation scan, gate-runtime budget check, backlog-aging / premise-rot review, and the per-surface triage procedures the roster's rows route to.>*
|
|
15
|
-
5. **Retire what this iteration's landings mooted, then clear Done.** The inputs are the done section's slugs and the iteration's commit range. The range runs from the head recorded on the first-stage stamp (the first data line of `.workflow/WORKFLOW-STATE.txt`) to HEAD. Derive the candidates rather than recalling them: (a) the live entries citing a done slug, which are the retired-block rows for those slugs in the inbound-citation output step 2 already produced; (b) the live entries naming a path the range deleted (`git diff --name-only --diff-filter=D`); (c) the live entries citing a markdown heading the range removed from a file it kept (`git diff --diff-filter=M` over `*.md`, its removed heading lines). Read each candidate against the landing it cites. An entry whose question the landing answered, or whose referent it removed, moves with `--queue done <slug>` in this stage's queue commit, and that commit's message names, per moved slug, the landing that mooted it. A `[roadmap:]` entry is outside every exit (queue-kit/SPEC.md §The icebox tier) and stays. A candidate still open stays too, with any stale pointer in it corrected inline, the way step 2's retired-citation read corrects one. Before moving an entry, relocate anything in its body worth more than the entry to the surface that owns it, because the done line keeps only the slug. Run the battery before committing. A red naming a moved slug is a pointer the move stranded, and it is corrected in that same commit. Then clear Done with `--queue clear-done`. Why the sweep sits here and not in build, and the moots its candidates cannot reach: lifecycle-kit/SPEC.md §templates/stages/.
|
|
15
|
+
5. **Retire what this iteration's landings mooted, then clear Done.** The inputs are the done section's slugs and the iteration's commit range. The range runs from the head recorded on the first-stage stamp (the first data line of `.workflow/WORKFLOW-STATE.txt`) to HEAD. Derive the candidates rather than recalling them: (a) the live entries citing a done slug, which are the retired-block rows for those slugs in the inbound-citation output step 2 already produced; (b) the live entries naming a path the range deleted (`git diff --name-only --diff-filter=D`); (c) the live entries citing a markdown heading the range removed from a file it kept (`git diff --diff-filter=M` over `*.md`, its removed heading lines). Read each candidate against the landing it cites. An entry whose question the landing answered, or whose referent it removed, moves with `--queue done <slug>` in this stage's queue commit, and that commit's message names, per moved slug, the landing that mooted it. A `[roadmap:]` entry is outside every exit (queue-kit/SPEC.md §The icebox tier) and stays. **Then read the roadmap's motion.** Run `--emit roadmap` over the queue file as it stood at the range's start (`git show <start>:<queue-file>` into the scratch dir, passed as the arm's operand) and over the queue file now. Where the arm exits 2 for want of a configured horizon, skip the read. File one consult-owed item with `--emit file-consult` naming every slug the first output lists and the second does not, and one when the first configured horizon holds no bullet now, unless an item already in the consult inbox names it. Re-tag nothing: a consultation sets the direction. A candidate still open stays too, with any stale pointer in it corrected inline, the way step 2's retired-citation read corrects one. Before moving an entry, relocate anything in its body worth more than the entry to the surface that owns it, because the done line keeps only the slug. Run the battery before committing. A red naming a moved slug is a pointer the move stranded, and it is corrected in that same commit. Then clear Done with `--queue clear-done`. Why the sweep sits here and not in build, and the moots its candidates cannot reach: lifecycle-kit/SPEC.md §templates/stages/.
|
|
16
16
|
6. Review top-level docs for staleness (*is it still true?*). Same gap-generalization obligation as step 1, per staleness actually found: name the check class that should have caught it, and file the missing check as a deferred task or state in one line why no scanner is buildable — a silent fix forfeits the check.
|
|
17
17
|
7. **Repair the ruling record** — read it for aged facts and fired discharge conditions, and repair what its own contract puts in this session's hands. The record grants the authority and states the boundary; this step only adds the obligation to look, so read the boundary there rather than from a restatement here. A repair is **fix-shaped by the drain's own litmus** and needs no new criterion — it adds no governed name and lands test-and-doc- complete in this session's own commit — so a two-word correction is not routed through a deferred entry. The record is a declared row on the close-surface roster (§The close-surface roster), so a consumer that configures none sees this step skip rather than fail, and the probe that reports fired conditions, undeclared ones and the citing sites is lifecycle-kit/SPEC.md §The ruling-staleness probe. It lands here, beside the staleness read, and not in the brevity pass: a repair asks *is it still true?* exactly, and running it under a pass whose licence is compression would put a correction inside a step licensed to delete. **One discharge this step records rather than repairs:** where an operator directive was discharged by **falsification** — the premise it rested on measured false rather than the work being done — that discharge is recorded on the record as a closed-ruling line, because it leaves no landed unit and no queue trace, so a later session reading only the directive re-derives the whole investigation.
|
|
18
18
|
8. **Review the audit roster**, where `LIFECYCLE_KIT_AUDIT_ROSTER_FILE` names one (lifecycle-kit/SPEC.md §The audit roster). Per class block, judge which `due:` events fired since `last:` (a `last:` naming another stage is a pre-stamp, so unreviewed), then perform each due audit or defer it as a costed filing. Per audit: derive the corpus from `scope:` and the range it names (this iteration's range unless `scope:` names another base); the predecessor's `corpus:` is a floor; triage every hit; **replace** `last:`, `corpus:`, `hits:` and `declined:`; fold a reading that changes the next sweep into `scope:` by re-phrasing. Narration and findings go in the commit message, never on the roster.
|
|
@@ -2,7 +2,7 @@ The `scope` stage of an iteration — the exploratory half of design. Identify a
|
|
|
2
2
|
|
|
3
3
|
**First step — reset + stamp evidence.** Run the lifecycle arm `--enter-stage scope` on the gate binary `GATE_SDK_NATIVE_BIN` names. `scope` is the iteration boundary, so the tool *resets* the evidence file: it truncates `.workflow/WORKFLOW-STATE.txt` back to its header (dropping the prior iteration's stamps — git history is the permanent audit trail; the gates only ever read the current iteration), stamps `— scope <session-id> <date> <head>` under the unnamed-iteration sentinel, and sets the queue header to `## Iteration: —`. It reads `<session-id>` from the `--emit-session-id` arm itself (the newest transcript — never hand-picked), uses `date +%F`, and refuses (writing nothing) if `check-stage-entry` is red. On a refusal, **do not force the entry** — escalate to the lead (where one exists and this is not a standalone session) and stop; a refused entry is a gate verdict to resolve at its source, never to override. *<evidence-reset: reset any per-iteration evidence file your validate stage writes that the tool does not already truncate — the tool truncates WORKFLOW-STATE, the lesson-evidence file, and every `LIFECYCLE_KIT_BOUNDARY_TRUNCATE` member, in the same commit as this stamp.>* A new iteration stays `—` until this skill names it (below); only `scope` resets, later stages append. Honest limit: the stamp proves the skill was *invoked*, not that the work was done faithfully — it forces deliberate invocation and an audit trail, nothing more.
|
|
4
4
|
|
|
5
|
-
**Second step — take the carried gap bullets, if the entry reported any.** The entry admits a boundary whose gap inbox holds bullets the closing stage could not have drained, and prints them as an advisory naming them this session's intake (lifecycle-kit/SPEC.md §The committed gap inbox owns why it admits rather than refuses). Each carried bullet gets **exactly one** disposition — promoted to a queue entry after the owner lookup (lifecycle-kit/SPEC.md §The committed gap inbox), fixed inline this session, or discarded with cause in the commit message — after which this session truncates the inbox to its `# contract:` header **in the same commit**. That is the drain's own disposition set, run by the stage that can now legally run it; no linked-and-skipped middle state, per the gap-disposition rule, and deleting a bullet without a disposition is not a drain. Two properties are obliged rather than suggested. The disposition happens **after the stamp**, in-stage — that is the whole point of admitting the entry, since a pre-stamp queue write is attributed to a stage that has not started. And a promoted entry's provenance sentence carries the **bullet's own date** and names the iteration whose close generated it, because the finding's disposition lands in this iteration's ledger while the finding belongs to the last one; a record that is late and says so is what that trade buys.
|
|
5
|
+
**Second step — take the carried gap bullets, if the entry reported any.** The entry admits a boundary whose gap inbox holds bullets the closing stage could not have drained, and prints them as an advisory naming them this session's intake (lifecycle-kit/SPEC.md §The committed gap inbox owns why it admits rather than refuses). Each carried bullet gets **exactly one** disposition — promoted to a queue entry after the owner lookup (lifecycle-kit/SPEC.md §The committed gap inbox), fixed inline this session, forwarded to the consult inbox (`--emit file-consult`), or discarded with cause in the commit message — after which this session truncates the inbox to its `# contract:` header **in the same commit**. That is the drain's own disposition set, run by the stage that can now legally run it; no linked-and-skipped middle state, per the gap-disposition rule, and deleting a bullet without a disposition is not a drain. Two properties are obliged rather than suggested. The disposition happens **after the stamp**, in-stage — that is the whole point of admitting the entry, since a pre-stamp queue write is attributed to a stage that has not started. And a promoted entry's provenance sentence carries the **bullet's own date** and names the iteration whose close generated it, because the finding's disposition lands in this iteration's ledger while the finding belongs to the last one; a record that is late and says so is what that trade buys.
|
|
6
6
|
|
|
7
7
|
## Session ritual
|
|
8
8
|
|