project-tiny-context-harness 0.2.69 → 0.2.71
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/README.md +41 -30
- package/assets/README.md +42 -33
- package/assets/README.zh-CN.md +14 -7
- package/assets/agents/AGENTS_CORE.md +37 -30
- package/assets/skills/context_development_engineer/SKILL.md +14 -9
- package/assets/skills/context_product_plan/SKILL.md +13 -8
- package/assets/skills/context_surface_contract/SKILL.md +27 -19
- package/assets/skills/context_uiux_design/SKILL.md +13 -8
- package/assets/skills/superpowers-long-task/SKILL.md +372 -256
- package/dist/commands/index.js +9 -3
- package/dist/commands/validate.js +1 -1
- package/dist/lib/plan-acceptance-json.d.ts +15 -0
- package/dist/lib/plan-acceptance-json.js +129 -0
- package/dist/lib/plan-acceptance-validator.d.ts +2 -0
- package/dist/lib/plan-acceptance-validator.js +187 -0
- package/dist/lib/plan-contract-validator.d.ts +2 -0
- package/dist/lib/plan-contract-validator.js +127 -0
- package/dist/lib/plan-validator-common.d.ts +24 -0
- package/dist/lib/plan-validator-common.js +196 -0
- package/dist/lib/validators.d.ts +1 -1
- package/dist/lib/validators.js +8 -4
- package/package.json +1 -1
|
@@ -1,256 +1,372 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: superpowers-long-task
|
|
3
|
-
description: Use when directly invoked for Superpowers long-running task target prompt preparation.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Superpowers Long Task Skill
|
|
7
|
-
|
|
8
|
-
## Package-Managed Boundary
|
|
9
|
-
|
|
10
|
-
This Skill is generated by `ty-context sync` and owned by the Harness package. Do not edit the generated `superpowers-long-task` Skill directly in a consumer project.
|
|
11
|
-
|
|
12
|
-
This is Tiny Context's adapter for feeding a
|
|
13
|
-
|
|
14
|
-
## Purpose
|
|
15
|
-
|
|
16
|
-
Consumes
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
Use this Skill
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
-
|
|
37
|
-
|
|
38
|
-
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
The
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
-
|
|
66
|
-
-
|
|
67
|
-
-
|
|
68
|
-
|
|
69
|
-
Do not
|
|
70
|
-
|
|
71
|
-
##
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
-
|
|
76
|
-
-
|
|
77
|
-
-
|
|
78
|
-
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
-
|
|
93
|
-
|
|
94
|
-
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
-
|
|
123
|
-
-
|
|
124
|
-
-
|
|
125
|
-
-
|
|
126
|
-
-
|
|
127
|
-
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
-
|
|
136
|
-
-
|
|
137
|
-
-
|
|
138
|
-
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
-
|
|
149
|
-
-
|
|
150
|
-
-
|
|
151
|
-
-
|
|
152
|
-
-
|
|
153
|
-
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
-
|
|
169
|
-
-
|
|
170
|
-
-
|
|
171
|
-
-
|
|
172
|
-
-
|
|
173
|
-
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
-
|
|
181
|
-
-
|
|
182
|
-
-
|
|
183
|
-
-
|
|
184
|
-
-
|
|
185
|
-
-
|
|
186
|
-
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
-
|
|
203
|
-
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
-
|
|
214
|
-
|
|
215
|
-
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
-
|
|
233
|
-
-
|
|
234
|
-
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
1
|
+
---
|
|
2
|
+
name: superpowers-long-task
|
|
3
|
+
description: Use when directly invoked for Superpowers long-running task target prompt preparation.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Superpowers Long Task Skill
|
|
7
|
+
|
|
8
|
+
## Package-Managed Boundary
|
|
9
|
+
|
|
10
|
+
This Skill is generated by `ty-context sync` and owned by the Harness package. Do not edit the generated `superpowers-long-task` Skill directly in a consumer project.
|
|
11
|
+
|
|
12
|
+
This is Tiny Context's adapter for feeding a recommended three-input long-task packet into the external Superpowers workflow. It is not a Superpowers official schema and 不是 Superpowers 官方 schema. It only makes the target-mode prompt explicit enough that the official Superpowers skills can do their intended work without losing Tiny Context context-delta, plan-conformance and acceptance authority.
|
|
13
|
+
|
|
14
|
+
## Purpose
|
|
15
|
+
|
|
16
|
+
Consumes three existing upstream inputs and emits a paste-ready Superpowers target-mode prompt:
|
|
17
|
+
|
|
18
|
+
- Product / Architecture Source: original intent source for scope, product logic, surface responsibility and durable architecture intent.
|
|
19
|
+
- Technical Realization Plan: the execution blueprint and plan-conformance source.
|
|
20
|
+
- Acceptance Checklist: the acceptance authority and final-verdict source.
|
|
21
|
+
|
|
22
|
+
Use this Skill only after all three inputs already exist or are pasted in full. Two-document compatibility is allowed only when the first document explicitly contains both Product / Architecture Source and Technical Realization Plan sections; otherwise stop for a missing Technical Realization Plan. Do not generate, derive, or infer the Technical Realization Plan. Do not generate, derive, rewrite, strengthen, or repair the full checklist in this Skill. If plan items or ACs are too vague to trace, stop and ask for the missing fields. If only generic conformance or verdict rules are missing, inject this Skill's default rules into the generated prompt.
|
|
23
|
+
|
|
24
|
+
## Direct Invocation
|
|
25
|
+
|
|
26
|
+
Use this Skill through explicit invocation:
|
|
27
|
+
|
|
28
|
+
```text
|
|
29
|
+
/superpowers-long-task
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Do not rely on broad automatic keyword routing. `/normal-long-task` remains useful for ordinary acceptance preparation, but this Skill does not require it when the product/architecture source, technical realization plan and acceptance checklist are already supplied.
|
|
33
|
+
|
|
34
|
+
## Use Cases
|
|
35
|
+
|
|
36
|
+
Use this Skill when a three-input long-task packet needs:
|
|
37
|
+
|
|
38
|
+
- Superpowers target-mode prompt.
|
|
39
|
+
- Superpowers goal-mode prompt.
|
|
40
|
+
- Superpowers 目标模式文本.
|
|
41
|
+
- Superpowers-compatible Codex target prompt.
|
|
42
|
+
- Superpowers execution binding with Context Delta, plan-conformance and acceptance-evidence gates.
|
|
43
|
+
|
|
44
|
+
Do not trigger merely because a plan mentions TDD or subagents. The user must ask for a Superpowers target/goal prompt or equivalent execution adapter.
|
|
45
|
+
|
|
46
|
+
## Required Three-Input Packet
|
|
47
|
+
|
|
48
|
+
The input must fully expose these fields:
|
|
49
|
+
|
|
50
|
+
- Product / Architecture Source path or pasted text.
|
|
51
|
+
- original requirement source or original plan summary.
|
|
52
|
+
- durable product intent when applicable: product capability, user flow, business state/rule, page/surface responsibility, information architecture, product ownership, status meaning, operation boundary or acceptance semantics.
|
|
53
|
+
- durable architecture intent when applicable: module boundary, dependency direction, API/schema/data/event contract, worker/runtime/state-machine semantics, verification/deployment path or stable technical tradeoff.
|
|
54
|
+
- Technical Realization Plan path or pasted text.
|
|
55
|
+
- traceable plan items or sections that affect behavior.
|
|
56
|
+
- expected implementation surfaces when applicable: code, API/schema, UI/page, worker/runtime, artifact, data, tests.
|
|
57
|
+
- required code/API/schema/UI/worker/runtime/data/test/evidence mapping when applicable.
|
|
58
|
+
- full-scope versus sample/optional boundaries.
|
|
59
|
+
- explicitly non-completing shortcuts, such as local-only enhancement, old page continuing to own a moved responsibility, sampled path, plan-only work or test-only patch.
|
|
60
|
+
- full acceptance checklist path or pasted text.
|
|
61
|
+
- acceptance items or AC IDs.
|
|
62
|
+
- required evidence and verification method per AC.
|
|
63
|
+
- required tests or explicit no-test scope.
|
|
64
|
+
- valid and invalid evidence rules.
|
|
65
|
+
- Completion State Machine rules.
|
|
66
|
+
- UI-Facing Gate rules when any AC touches UI.
|
|
67
|
+
- hard blockers or an explicit no-blocker statement.
|
|
68
|
+
|
|
69
|
+
If any of these are missing required fields, stop. Do not generate the Superpowers target-mode prompt. Report whether each missing field belongs in Product / Architecture Source, Technical Realization Plan, Acceptance Checklist, blocker section or Context reference. If the user supplied only a product/architecture source plus checklist, report missing Technical Realization Plan.
|
|
70
|
+
|
|
71
|
+
## Source Roles
|
|
72
|
+
|
|
73
|
+
- Product / Architecture Source prevents scope shrinkage and drives Product Context Delta / architecture-intent checks; it is not the code construction plan.
|
|
74
|
+
- Technical Realization Plan is the execution blueprint and the source for `plan-conformance-matrix.*`; it is not proof.
|
|
75
|
+
- Acceptance Checklist is the completion authority and the source for `final-acceptance-verdict.*`.
|
|
76
|
+
- local audit records progress, candidate status, evidence, blockers and invalidating evidence only; it is not proof and must not mark final completion.
|
|
77
|
+
- relevant Context remains the durable repo intent and boundary source.
|
|
78
|
+
- required tests / core paths bind plan and AC gaps to executable verification.
|
|
79
|
+
|
|
80
|
+
Do not let a compact target prompt override the product/architecture source, technical realization plan or full checklist. The compact prompt is direction, priority and recovery navigation only. The technical realization plan controls plan conformance; the product/architecture source prevents scope shrinkage; the full checklist controls acceptance.
|
|
81
|
+
|
|
82
|
+
## Context Delta Assessment
|
|
83
|
+
|
|
84
|
+
The prompt must require the future executor to evaluate Context before implementation using:
|
|
85
|
+
|
|
86
|
+
```text
|
|
87
|
+
Product Context Delta: none|required
|
|
88
|
+
Technical Context Delta: none|required
|
|
89
|
+
Context Delta: none|required
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Any required sub-delta makes overall Context Delta required. This is prompt-level workflow discipline, not a validator gate, not a machine-enforced gate, not a phase gate and not a new document chain.
|
|
93
|
+
|
|
94
|
+
`Product Context Delta: required` applies when the product/architecture source changes durable product facts such as product capability, user flow, business state/rule, page or surface responsibility, main/drilldown ownership, information architecture, user-visible terminology, status meaning, operation boundary, product/domain ownership or acceptance semantics.
|
|
95
|
+
|
|
96
|
+
`Technical Context Delta: required` applies when the product/architecture source or Technical Realization Plan changes durable technical facts such as API/schema/event/data contract, module ownership, dependency direction, worker/runtime/state-machine semantics, data model, persistence, scheduling, failure/retry/recovery semantics, verification/deployment/bootstrap path or stable technical tradeoff.
|
|
97
|
+
|
|
98
|
+
When overall `Context Delta: required`, the executor must update the smallest owning `project_context/**` or `DESIGN.md` fact before implementation continues. Use existing roles only: `area`, `subdomain`, `contract`, `foundation`, `verification`, `deployment`, `implementation-index` and `decision-rationale`. Do not write local audit, plan-conformance matrix, final acceptance verdict, temporary plan, sampled evidence, one-off logs, raw outputs, screenshots or PR notes into Context.
|
|
99
|
+
|
|
100
|
+
## Plan Conformance Gate
|
|
101
|
+
|
|
102
|
+
The prompt must require the future executor to create or initialize `tmp/ty-context/plan-acceptance/<plan-slug>-plan-conformance-matrix.md` and `.json` before substantial implementation, then update it after each meaningful implementation slice.
|
|
103
|
+
|
|
104
|
+
Each behavior-affecting Technical Realization Plan item must have a trace entry with:
|
|
105
|
+
|
|
106
|
+
- plan item id and plan requirement.
|
|
107
|
+
- acceptance ids covered by the plan item when applicable.
|
|
108
|
+
- expected surfaces.
|
|
109
|
+
- implemented paths.
|
|
110
|
+
- missing paths.
|
|
111
|
+
- tests.
|
|
112
|
+
- runtime or artifact evidence.
|
|
113
|
+
- scope assessment.
|
|
114
|
+
- status.
|
|
115
|
+
- drift.
|
|
116
|
+
- Context fact refs when Context Delta is required.
|
|
117
|
+
- For Product Surface, IA or architecture-migration items: conformance type, owner surface, required user paths, forbidden primary surfaces, real page evidence, negative surface checks and default visibility requirement.
|
|
118
|
+
|
|
119
|
+
Allowed plan-conformance statuses:
|
|
120
|
+
|
|
121
|
+
- `complete`
|
|
122
|
+
- `partial`
|
|
123
|
+
- `sampled_only`
|
|
124
|
+
- `not_implemented`
|
|
125
|
+
- `blocked`
|
|
126
|
+
- `scope_changed_requires_user_approval`
|
|
127
|
+
- `contradicted_by_current_state`
|
|
128
|
+
- `out_of_scope_NA`
|
|
129
|
+
|
|
130
|
+
Hard rules:
|
|
131
|
+
|
|
132
|
+
- Passing tests does not imply plan conformance.
|
|
133
|
+
- A sampled implementation path does not imply full plan implementation.
|
|
134
|
+
- A local audit cannot narrow plan scope or mark completion.
|
|
135
|
+
- Scope correction requires explicit user approval or a revised product/architecture source, Technical Realization Plan and checklist.
|
|
136
|
+
- Every behavior-affecting plan section must have an implementation trace entry.
|
|
137
|
+
- Product Surface, IA or architecture-migration rows cannot be complete without owner surface, required user paths, real page evidence, negative surface checks for forbidden primary surfaces and Context fact refs when Context Delta is required.
|
|
138
|
+
- Any `partial`, `sampled_only`, `not_implemented`, unresolved blocker, unapproved scope change or current contradiction prevents overall done.
|
|
139
|
+
|
|
140
|
+
## Acceptance Evidence Gate
|
|
141
|
+
|
|
142
|
+
The prompt must require the future executor to generate `tmp/ty-context/plan-acceptance/<plan-slug>-final-acceptance-verdict.md` and `.json` only at the final gate, after Context Delta handling, Plan Conformance Gate and current evidence checks.
|
|
143
|
+
|
|
144
|
+
Each AC verdict entry must include:
|
|
145
|
+
|
|
146
|
+
- AC id or acceptance item.
|
|
147
|
+
- related plan item ids when applicable.
|
|
148
|
+
- status.
|
|
149
|
+
- required evidence.
|
|
150
|
+
- fresh evidence.
|
|
151
|
+
- missing evidence.
|
|
152
|
+
- contradictions.
|
|
153
|
+
- decision.
|
|
154
|
+
|
|
155
|
+
Allowed AC statuses:
|
|
156
|
+
|
|
157
|
+
- `complete`
|
|
158
|
+
- `partial`
|
|
159
|
+
- `blocked`
|
|
160
|
+
- `not_run`
|
|
161
|
+
- `invalidated`
|
|
162
|
+
- `out_of_scope_NA`
|
|
163
|
+
|
|
164
|
+
Hard rules:
|
|
165
|
+
|
|
166
|
+
- Final completion requires an AC-by-AC final acceptance verdict.
|
|
167
|
+
- Before any completion claim, run `ty-context validate-plan-acceptance tmp/ty-context/plan-acceptance/<plan-slug>`; failure prevents final complete and must produce partial / blocker / missing-evidence output.
|
|
168
|
+
- `validate-plan-acceptance` rejects contradictory matrix/verdict JSON, weak-proof complete rows, missing cross-references and declared surface/architecture binding gaps; it checks artifact consistency and references, not product quality.
|
|
169
|
+
- Current API/UI/runtime/data/test contradictions override historical passing evidence.
|
|
170
|
+
- local audit, subagent summaries, final result card text, passing test logs, stale artifacts, partial smoke, dry-run or sampled paths cannot prove completion by themselves.
|
|
171
|
+
- Any current contradiction downgrades the affected AC and overall status.
|
|
172
|
+
- Scope narrowing in audit does not modify acceptance unless the user approved a revised source/plan/checklist.
|
|
173
|
+
- `out_of_scope_NA` requires explicit reason and source reference; arbitrary prose cannot waive missing evidence.
|
|
174
|
+
|
|
175
|
+
## Evidence Layer Separation
|
|
176
|
+
|
|
177
|
+
Keep these layers separate in the prompt when relevant:
|
|
178
|
+
|
|
179
|
+
- code implemented.
|
|
180
|
+
- API/schema reflected.
|
|
181
|
+
- worker/runtime path reflected.
|
|
182
|
+
- UI/page reflected.
|
|
183
|
+
- runtime configured.
|
|
184
|
+
- runtime exercised.
|
|
185
|
+
- artifact generated.
|
|
186
|
+
- artifact accepted by validator.
|
|
187
|
+
- API/UI reflects accepted evidence.
|
|
188
|
+
- browser or user path verified.
|
|
189
|
+
- final gate/check command passed.
|
|
190
|
+
|
|
191
|
+
A plan item or AC cannot be complete when its required layer is missing.
|
|
192
|
+
|
|
193
|
+
## Invalid Evidence Rules
|
|
194
|
+
|
|
195
|
+
The prompt must reject false proof:
|
|
196
|
+
|
|
197
|
+
- viewmodel-only does not prove a real page.
|
|
198
|
+
- unit test does not prove real API behavior or latency.
|
|
199
|
+
- artifact exists does not prove artifact accepted by validator.
|
|
200
|
+
- old result does not prove current state.
|
|
201
|
+
- build passes does not prove product acceptance.
|
|
202
|
+
- stale, partial, smoke-only, dry-run, sampled-only or research evidence cannot prove full completion.
|
|
203
|
+
- unresolved API/UI/data/runtime/test contradictions invalidate completion claims.
|
|
204
|
+
|
|
205
|
+
## Completion State Machine
|
|
206
|
+
|
|
207
|
+
Every plan item and AC starts as `unknown / not_run`.
|
|
208
|
+
|
|
209
|
+
Only fresh required evidence can mark a plan item or AC complete.
|
|
210
|
+
|
|
211
|
+
Any fresh browser / API / runtime / data / test contradiction must downgrade the affected plan item, AC and overall status and must be recorded as invalidating evidence. Do not preserve a previous complete status after contradictory fresh evidence appears.
|
|
212
|
+
|
|
213
|
+
## UI-Facing Gate
|
|
214
|
+
|
|
215
|
+
For UI-facing acceptance, the executor must open the real page path and confirm the user-visible state matches the AC. component / viewmodel / mock / unit test evidence is auxiliary unless the full checklist explicitly says otherwise.
|
|
216
|
+
|
|
217
|
+
## Autonomous Progress Protocol
|
|
218
|
+
|
|
219
|
+
The Superpowers target prompt must require maximum safe autonomous progress within current platform, repository, tool and user-authorized permission boundaries. Do not ask the user for work the executor can safely discover, run, inspect or verify itself.
|
|
220
|
+
|
|
221
|
+
The Superpowers target prompt must inherit current repository/global `AGENTS.md` or agent-instruction permission policy. Authorized `sudo` / `gsudo` / administrator elevation is not a user blocker; the executor must try it before pausing. Pause only if elevation is unavailable, fails, or requires user/system authorization.
|
|
222
|
+
|
|
223
|
+
Pause only for locally unsatisfiable hard blockers such as missing accounts, credentials, production access, paid services, legal/security approval, user-only browser sessions or sensitive fields the executor cannot access safely. When pausing, give the minimum user action list: exact page, system, command or owner to open/contact; exact field or value location; how to redact or avoid sending sensitive values; what the executor will do immediately after receiving the input.
|
|
224
|
+
|
|
225
|
+
## Official Superpowers Binding
|
|
226
|
+
|
|
227
|
+
Bind the target prompt to the official Skill names and their documented roles:
|
|
228
|
+
|
|
229
|
+
- If the Technical Realization Plan is not bite-sized enough, use `superpowers:writing-plans`.
|
|
230
|
+
- Prefer `superpowers:subagent-driven-development` when subagents are available.
|
|
231
|
+
- Use `superpowers:executing-plans` when executing a written plan without the same-session subagent workflow.
|
|
232
|
+
- Plan or AC behavior gap -> TDD: each behavior gap uses `superpowers:test-driven-development` to write a failing test, observe failure, then implement minimally.
|
|
233
|
+
- Before any completion claim, use `superpowers:verification-before-completion` against both `plan-conformance-matrix.*` and `final-acceptance-verdict.*` with fresh evidence, then run `ty-context validate-plan-acceptance tmp/ty-context/plan-acceptance/<plan-slug>`.
|
|
234
|
+
- review / finish cannot override the plan-conformance matrix or full checklist; if either gate is unsatisfied, continue implementation or report blockers.
|
|
235
|
+
|
|
236
|
+
If Superpowers is missing, install it through the current platform's official Superpowers installation path. If installation is blocked by permissions, network or platform limits, record the blocker in local audit and do not count it as complete.
|
|
237
|
+
|
|
238
|
+
## Local Audit Requirements
|
|
239
|
+
|
|
240
|
+
The Superpowers target prompt must require the future executor to update local audit after each round with:
|
|
241
|
+
|
|
242
|
+
- candidate status, not final completion.
|
|
243
|
+
- Product Context Delta, Technical Context Delta and overall Context Delta decision.
|
|
244
|
+
- plan item and AC status.
|
|
245
|
+
- current evidence.
|
|
246
|
+
- command/result/time and failure reason.
|
|
247
|
+
- required test command/result/failure.
|
|
248
|
+
- artifact or evidence paths.
|
|
249
|
+
- blockers, missing evidence and acceptance impact.
|
|
250
|
+
- deferred or narrowed scope with user approval state.
|
|
251
|
+
- stale, partial, sampled-only, smoke, dry-run, research or other invalid evidence.
|
|
252
|
+
|
|
253
|
+
The local audit is not Context, not proof, not a global task manager, and not a replacement for project tests, CI, review, human acceptance, Task Contract or workflow-contract `plan.md`. It must not contain `overall_status: done`, `status: done` or `final_gate: passed`; use `candidate_status: claims_done_but_unverified` when needed.
|
|
254
|
+
|
|
255
|
+
## Prompt Generation Rules
|
|
256
|
+
|
|
257
|
+
- The prompt must visibly output `Superpowers 输入包` for Chinese prompts or `Superpowers input packet` for English prompts.
|
|
258
|
+
- The prompt must visibly output `Superpowers 执行绑定` for Chinese prompts or `Superpowers execution binding` for English prompts.
|
|
259
|
+
- The prompt must identify Product / Architecture Source, Technical Realization Plan, Acceptance Checklist, local audit, plan-conformance matrix and final verdict paths at the top.
|
|
260
|
+
- The prompt must state that the Technical Realization Plan controls plan conformance, the Product / Architecture Source prevents scope shrinkage and the full checklist controls acceptance.
|
|
261
|
+
- The prompt must require Product Context Delta and Technical Context Delta evaluation before implementation.
|
|
262
|
+
- The prompt must preserve hard-blocker semantics: if only locally unsatisfiable hard blockers remain, pause for the user or external owner instead of marking complete.
|
|
263
|
+
- The prompt must require maximum safe autonomous progress within current platform, repository, tool and user-authorized permission boundaries and must include the minimum user action list for locally unsatisfiable hard blockers.
|
|
264
|
+
- The prompt must inherit current repository/global `AGENTS.md` or agent-instruction permission policy. Authorized `sudo` / `gsudo` / administrator elevation is not a user blocker; the executor must try it before pausing. Pause only if elevation is unavailable, fails, or requires user/system authorization.
|
|
265
|
+
- The prompt must include the resource lifecycle line: `可多开agent,agent名额不够了就关掉不用的。` or `You may use multiple agents; if agent slots run low, close idle or unnecessary agents.`
|
|
266
|
+
- The prompt must fit 3850 characters including line breaks.
|
|
267
|
+
- Do not include explanatory preface inside the generated prompt.
|
|
268
|
+
|
|
269
|
+
Recommended compact Chinese prompt shape:
|
|
270
|
+
|
|
271
|
+
```text
|
|
272
|
+
产品/架构源: tmp/ty-context/plan-acceptance/<plan-slug>-product-architecture-source.md(原始意图/防 scope shrinkage,非施工图)
|
|
273
|
+
技术实现方案: tmp/ty-context/plan-acceptance/<plan-slug>-technical-realization-plan.md(执行图纸/plan conformance source,非证明)
|
|
274
|
+
验收清单: tmp/ty-context/plan-acceptance/<plan-slug>-acceptance-checklist.md(完整验收标准,final verdict 以它为准)
|
|
275
|
+
执行审计: tmp/ty-context/plan-acceptance/<plan-slug>-local-audit.md(过程日志,非 proof,不能写 done/final_gate passed)
|
|
276
|
+
对图纸矩阵: tmp/ty-context/plan-acceptance/<plan-slug>-plan-conformance-matrix.md/json(先建,边做边更新)
|
|
277
|
+
最终验收: tmp/ty-context/plan-acceptance/<plan-slug>-final-acceptance-verdict.md/json(最后逐 AC 生成)
|
|
278
|
+
可多开agent,agent名额不够了就关掉不用的。
|
|
279
|
+
This is not a Superpowers official schema / 不是 Superpowers 官方 schema。
|
|
280
|
+
Superpowers 输入包:
|
|
281
|
+
- Product/Architecture Source:原始产品/架构意图,防止 scope shrinkage,不是施工图
|
|
282
|
+
- Technical Realization Plan:施工图;每个行为 plan item 都要进 matrix
|
|
283
|
+
- Acceptance Checklist:最高验收标准;每个 AC 都要进 final verdict
|
|
284
|
+
- local audit:只记 progress/candidate status/evidence/blocker/invalidating evidence,不能裁判完成
|
|
285
|
+
- Context/tests/core paths:执行前读取,把 plan/AC gap 绑定到测试、API/UI/runtime/browser 证据
|
|
286
|
+
|
|
287
|
+
执行顺序:
|
|
288
|
+
1. 读三份输入和 Context。先写 Task Contract:Product Context Delta none|required;Technical Context Delta none|required;任一 required -> Context Delta required。这不是 validator gate。
|
|
289
|
+
2. Context Delta required 时,先最小更新 owning project_context/** 或 DESIGN.md;不要把 audit/matrix/verdict/日志/截图/sample evidence 写进 Context。
|
|
290
|
+
3. 检查技术实现方案覆盖产品/架构源关键要求;若只有产品方案没有技术实现方案,停止报告 missing Technical Realization Plan,不现场生成。
|
|
291
|
+
4. 初始化 plan-conformance matrix;计划不够 bite-sized 时用 superpowers:writing-plans。
|
|
292
|
+
5. 有 subagent 支持时优先 superpowers:subagent-driven-development,否则 superpowers:executing-plans。
|
|
293
|
+
6. Plan/AC behavior gap -> superpowers:test-driven-development:先写 failing test 并 observe failure,再最小实现。
|
|
294
|
+
7. 每个实现 slice 后更新 matrix 和 audit。
|
|
295
|
+
8. Candidate done 前跑 Plan Conformance Gate:测试通过不等于按图纸完成;sampled path 不等于 full implementation;每个行为 plan item 必须有 code/API/UI/runtime/test/evidence trace。
|
|
296
|
+
9. 再跑 Acceptance Evidence Gate:按验收清单生成 final verdict;current API/UI/runtime/data/test contradiction 高于历史通过记录。
|
|
297
|
+
10. 完成声明前用 superpowers:verification-before-completion 检查 matrix/verdict,并运行 ty-context validate-plan-acceptance tmp/ty-context/plan-acceptance/<plan-slug>;失败就继续或报告 blocker。
|
|
298
|
+
|
|
299
|
+
权限/卡点:在当前平台/仓库/工具/用户已授权权限内最大自主推进;已授权 sudo/gsudo/admin elevation 先尝试,不算用户阻塞。只有本地无法解决的账号/凭证/真实环境/人工审批/敏感字段等才暂停,并给最小用户执行清单(具体页面/系统、字段位置、脱敏/勿发值、拿到后下一步)。
|
|
300
|
+
禁止完成于:local audit、subagent summary、final card、只改代码/计划、只跑部分测试、旧/部分/抽样证据、runtime 未演练、artifact 未被 validator accepted、API/UI 未 reflected、未批准 scope narrowing、任何 API/UI/data/runtime/test 矛盾。
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
Recommended compact English prompt shape:
|
|
304
|
+
|
|
305
|
+
```text
|
|
306
|
+
Product / Architecture Source: tmp/ty-context/plan-acceptance/<plan-slug>-product-architecture-source.md (original intent / scope guard, not construction plan)
|
|
307
|
+
Technical Realization Plan: tmp/ty-context/plan-acceptance/<plan-slug>-technical-realization-plan.md (blueprint / plan-conformance source, not proof)
|
|
308
|
+
Acceptance Checklist: tmp/ty-context/plan-acceptance/<plan-slug>-acceptance-checklist.md (acceptance authority; final verdict is judged against it)
|
|
309
|
+
Local audit: tmp/ty-context/plan-acceptance/<plan-slug>-local-audit.md (process log, not proof; must not write done/final_gate passed)
|
|
310
|
+
Plan matrix: tmp/ty-context/plan-acceptance/<plan-slug>-plan-conformance-matrix.md/json (create early, update during work)
|
|
311
|
+
Final verdict: tmp/ty-context/plan-acceptance/<plan-slug>-final-acceptance-verdict.md/json (generate at final gate, AC by AC)
|
|
312
|
+
You may use multiple agents; if agent slots run low, close idle or unnecessary agents.
|
|
313
|
+
This is not a Superpowers official schema / 不是 Superpowers 官方 schema.
|
|
314
|
+
Superpowers input packet:
|
|
315
|
+
- Product / Architecture Source: original intent; prevents scope shrinkage; not the construction plan.
|
|
316
|
+
- Technical Realization Plan: execution blueprint; every behavior-affecting item needs a matrix trace.
|
|
317
|
+
- Acceptance Checklist: acceptance authority; every AC needs a final verdict entry.
|
|
318
|
+
- Local audit: progress/candidate status/evidence/blockers/invalidating evidence only; never final proof.
|
|
319
|
+
- Context/tests/core paths: read before execution; map plan/AC gaps to test/API/UI/runtime/browser evidence.
|
|
320
|
+
|
|
321
|
+
Execution order:
|
|
322
|
+
1. Read the three inputs and Context. Write Task Contract: Product Context Delta none|required; Technical Context Delta none|required; any required sub-delta makes overall Context Delta required. This is not a validator gate.
|
|
323
|
+
2. If Context Delta required, minimally update the owning project_context/** or DESIGN.md; never store audit/matrix/verdict/logs/screenshots/sample evidence as Context.
|
|
324
|
+
3. Check the Technical Realization Plan covers Product / Architecture Source requirements; if only a product plan exists, stop with missing Technical Realization Plan, do not generate it.
|
|
325
|
+
4. Initialize plan-conformance matrix; use superpowers:writing-plans if the plan is not bite-sized.
|
|
326
|
+
5. Prefer superpowers:subagent-driven-development with subagents; otherwise use superpowers:executing-plans.
|
|
327
|
+
6. Plan/AC behavior gap -> superpowers:test-driven-development: write a failing test, observe failure, then implement minimally.
|
|
328
|
+
7. After each slice, update matrix and audit.
|
|
329
|
+
8. Before candidate done, run Plan Conformance Gate: passing tests does not prove plan conformance; sampled path does not prove full implementation; every behavior plan item needs code/API/UI/runtime/test/evidence trace.
|
|
330
|
+
9. Then run Acceptance Evidence Gate: generate final verdict from the checklist; current API/UI/runtime/data/test contradictions override old passing evidence.
|
|
331
|
+
10. Before completion, run superpowers:verification-before-completion on matrix/verdict and ty-context validate-plan-acceptance tmp/ty-context/plan-acceptance/<plan-slug>; if either fails, continue/report blockers.
|
|
332
|
+
|
|
333
|
+
Autonomy/blockers: within current platform/repo/tool/user-authorized permissions, do all safe self-service discovery/execution/verification. Authorized sudo/gsudo/admin elevation is not a user blocker; try it first. Pause only for locally unsatisfiable account/credential/real-env/human-approval/sensitive-field needs; give exact page/system, field location, redaction/do-not-send values and next agent step.
|
|
334
|
+
Never complete on: local audit, subagent summary, final card, code-only/plan-only work, partial tests, stale/partial/sampled evidence, unexercised runtime, artifact not accepted by validator, API/UI not reflected, missing validate-plan-acceptance pass, unapproved scope narrowing or any API/UI/data/runtime/test contradiction.
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
Before final response, check the prompt length. If it exceeds 3850 characters, tighten wording while preserving paths, input roles, official Superpowers skill names, Product Context Delta, Technical Context Delta, plan-conformance matrix, final verdict, state machine, UI gate, blockers and invalid evidence.
|
|
338
|
+
|
|
339
|
+
## Final Response Requirements
|
|
340
|
+
|
|
341
|
+
When successful, return:
|
|
342
|
+
|
|
343
|
+
- The Product / Architecture Source path.
|
|
344
|
+
- The Technical Realization Plan path.
|
|
345
|
+
- The full checklist path.
|
|
346
|
+
- The local audit path.
|
|
347
|
+
- The plan-conformance matrix path.
|
|
348
|
+
- The final acceptance verdict path.
|
|
349
|
+
- Whether required input was complete.
|
|
350
|
+
- The paste-ready Superpowers target-mode prompt in a code block.
|
|
351
|
+
|
|
352
|
+
When blocked, return:
|
|
353
|
+
|
|
354
|
+
- Missing required fields.
|
|
355
|
+
- Which source should provide each missing field.
|
|
356
|
+
- A clear statement that no Superpowers target-mode prompt was generated.
|
|
357
|
+
|
|
358
|
+
Do not claim any plan item or AC has passed unless the user explicitly asked for current completion audit and current evidence was inspected.
|
|
359
|
+
|
|
360
|
+
## Forbidden Behaviors
|
|
361
|
+
|
|
362
|
+
Do not generate, derive, or infer the Technical Realization Plan.
|
|
363
|
+
|
|
364
|
+
Do not generate, derive, rewrite, strengthen, or repair the full checklist.
|
|
365
|
+
|
|
366
|
+
Do not execute the generated prompt.
|
|
367
|
+
|
|
368
|
+
Do not mark any goal complete.
|
|
369
|
+
|
|
370
|
+
Do not hide missing source files, ambiguous scope, weak evidence, implementation drift or blockers.
|
|
371
|
+
|
|
372
|
+
Do not include business-domain logic, concrete provider names, API names, UI names, artifact schemas or one-off project details in this package-managed Skill.
|