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.
@@ -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 complete acceptance 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 acceptance authority.
13
-
14
- ## Purpose
15
-
16
- Consumes a complete acceptance packet and emits a paste-ready Superpowers target-mode prompt. The input packet normally comes from `/normal-long-task`.
17
-
18
- Use this Skill only after the implementation/source plan and full acceptance checklist already exist or are pasted in full. Do not generate, derive, rewrite, strengthen, or repair the full checklist in this Skill. If the checklist is incomplete, stop and send the user back to `/normal-long-task` or ask for the missing fields.
19
-
20
- ## Direct Invocation
21
-
22
- Use this Skill through explicit invocation:
23
-
24
- ```text
25
- /superpowers-long-task
26
- ```
27
-
28
- Do not rely on broad automatic keyword routing. Use `/normal-long-task` first when the implementation/source plan and full acceptance checklist do not already exist.
29
-
30
- ## Use Cases
31
-
32
- Use this Skill when a complete plan/checklist packet needs:
33
-
34
- - Superpowers target-mode prompt.
35
- - Superpowers goal-mode prompt.
36
- - Superpowers 目标模式文本.
37
- - Superpowers-compatible Codex target prompt.
38
- - Maximum official Superpowers workflow value from an existing acceptance checklist.
39
-
40
- 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.
41
-
42
- ## Required Input Packet
43
-
44
- The input must fully expose these fields:
45
-
46
- - Original requirement source or original plan summary.
47
- - implementation/source plan path or pasted text.
48
- - full acceptance checklist path or pasted text.
49
- - local audit path, normally `tmp/ty-context/plan-acceptance/<plan-slug>-local-audit.md`.
50
- - relevant Context that must be read before execution.
51
- - required tests / core paths.
52
- - Evidence Layer Separation rules.
53
- - Invalid Evidence Rules.
54
- - Completion State Machine rules.
55
- - UI-Facing Gate rules when any AC touches UI.
56
- - hard blockers or an explicit no-blocker statement.
57
-
58
- If any of these are missing required fields, stop. Do not generate the Superpowers target-mode prompt. Report the missing fields and say whether they belong in the development plan, full checklist, local audit rule, blocker section or Context reference.
59
-
60
- ## Source Roles
61
-
62
- - Original requirement source prevents implementation/source plan or checklist shrinkage.
63
- - implementation/source plan is execution direction, not proof.
64
- - full acceptance checklist is the highest-priority completion standard.
65
- - local audit records progress, evidence, blockers and invalidating evidence only; it is not proof.
66
- - relevant Context remains the durable repo intent and boundary source.
67
- - required tests / core paths bind AC gaps to executable verification.
68
-
69
- Do not let a compact target prompt override the full checklist. The compact prompt is direction, priority and recovery navigation only. The full checklist wins conflicts.
70
-
71
- ## Evidence Layer Separation
72
-
73
- Keep these layers separate in the prompt when relevant:
74
-
75
- - code implemented.
76
- - runtime configured.
77
- - runtime exercised.
78
- - artifact generated.
79
- - artifact accepted by validator.
80
- - API/UI reflected or API/UI reflects accepted evidence.
81
- - browser or user path verified.
82
- - final gate/check command passed.
83
-
84
- An AC cannot be complete when its required layer is missing.
85
-
86
- ## Invalid Evidence Rules
87
-
88
- The prompt must reject false proof:
89
-
90
- - viewmodel-only does not prove a real page.
91
- - unit test does not prove real API behavior or latency.
92
- - artifact exists does not prove artifact accepted by validator.
93
- - old result does not prove current state.
94
- - build passes does not prove product acceptance.
95
- - stale, partial, smoke-only, dry-run or research evidence cannot prove full completion.
96
- - unresolved API/UI/data/test contradictions invalidate completion claims.
97
-
98
- ## Completion State Machine
99
-
100
- Every AC starts as `unknown / not_run`.
101
-
102
- Only fresh required evidence can mark an AC complete.
103
-
104
- Any fresh browser / API / runtime / data / test contradiction must downgrade the affected AC and overall status and must be recorded as invalidating evidence. Do not preserve a previous complete status after contradictory fresh evidence appears.
105
-
106
- ## UI-Facing Gate
107
-
108
- 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.
109
-
110
- ## Autonomous Progress Protocol
111
-
112
- 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.
113
-
114
- 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.
115
-
116
- 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.
117
-
118
- ## Official Superpowers Binding
119
-
120
- Bind the target prompt to the official Skill names and their documented roles:
121
-
122
- - If the implementation/source plan is not bite-sized enough, use `superpowers:writing-plans`.
123
- - Prefer `superpowers:subagent-driven-development` when subagents are available.
124
- - Use `superpowers:executing-plans` when executing a written plan without the same-session subagent workflow.
125
- - AC gap -> TDD: every behavior acceptance gap uses `superpowers:test-driven-development` to write a failing test, observe failure, then implement minimally.
126
- - Before any completion claim, use `superpowers:verification-before-completion` against the full checklist and fresh evidence.
127
- - review / finish cannot override the full checklist; if the checklist is unsatisfied, continue implementation or report blockers.
128
-
129
- 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.
130
-
131
- ## Local Audit Requirements
132
-
133
- The Superpowers target prompt must require the future executor to update local audit after each round with:
134
-
135
- - overall status.
136
- - each AC status and current evidence.
137
- - command/result/time and failure reason.
138
- - required test command/result/failure.
139
- - artifact or evidence paths.
140
- - blockers, missing evidence and acceptance impact.
141
- - deferred or narrowed scope.
142
- - stale, partial, smoke, dry-run, research or other invalid evidence.
143
-
144
- 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`.
145
-
146
- ## Prompt Generation Rules
147
-
148
- - The prompt must visibly output `Superpowers 输入包` for Chinese prompts or `Superpowers input packet` for English prompts.
149
- - The prompt must visibly output `Superpowers 执行绑定` for Chinese prompts or `Superpowers execution binding` for English prompts.
150
- - The prompt must identify plan path, full checklist path and local audit path at the top.
151
- - The prompt must state that the full checklist is the complete acceptance standard and wins conflicts.
152
- - 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.
153
- - 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.
154
- - 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.
155
- - 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.`
156
- - The prompt must fit 3850 characters including line breaks.
157
- - Do not include explanatory preface inside the generated prompt.
158
-
159
- Recommended compact Chinese prompt shape:
160
-
161
- ```text
162
- 实施计划: tmp/ty-context/plan-acceptance/<plan-slug>.md(source/implementation plan,非验收证明)
163
- 完整验收清单: tmp/ty-context/plan-acceptance/<plan-slug>-acceptance-checklist.md(该文件是完整验收标准,验收以这个为准。完成前必须逐项检查,不满足则继续实现。)
164
- 执行审计: tmp/ty-context/plan-acceptance/<plan-slug>-local-audit.md(临时 progress state,非 Context/proof)
165
- 可多开agent,agent名额不够了就关掉不用的。
166
- 本摘要只负责 direction/priority/recovery navigation;允许与完整 checklist 重叠,冲突时以完整 checklist 为准。This is not a Superpowers official schema / 不是 Superpowers 官方 schema。
167
- Superpowers 输入包:
168
- - 原始需求源/原始方案摘要:防止计划/checklist 缩水
169
- - 实施计划:执行方向;不够 bite-sized 时用 superpowers:writing-plans
170
- - 完整验收清单:最高优先级完成标准;completion gate 以它为准
171
- - local audit:只记 progress/evidence/blocker/invalidating evidence,非 proof
172
- - relevant Context:执行前读取;冲突按完整 checklist Context 规则处理
173
- - required tests / core paths:把每个 AC gap 绑定到测试、API/UI/runtime/browser 验证
174
-
175
- 自主推进:在当前平台/仓库/工具/用户已授权权限内推进到所有 agent 能安全完成的事项;不把可自助发现/执行/验证的事交给用户。
176
- 权限策略:遵循当前仓库/全局 AGENTS.md 或 agent instructions;已授权 sudo/gsudo/admin elevation 不视为用户阻塞,先尝试使用;只有提权不可用/失败/需用户系统授权时才记 blocker。
177
- 强卡点:仅在本地无法解决的账号/凭证/真实环境/人工审批/敏感字段等阻塞时暂停;暂停时给最小用户执行清单(具体页面/系统、字段位置、脱敏/勿发值、拿到后下一步)。
178
- 如果 Superpowers 未安装,先按当前平台 official Superpowers installation path 安装;若 installation is blocked by 权限/网络/平台限制,写入 audit,不得算完成。
179
- Superpowers 执行绑定:
180
- - 先读完整验收清单,验收以它为准
181
- - 计划不够可执行时,用 superpowers:writing-plans 转成 bite-sized implementation plan
182
- - subagent 支持时优先用 superpowers:subagent-driven-development;否则用 superpowers:executing-plans
183
- - AC gap -> TDD:每个行为验收缺口先用 superpowers:test-driven-development write a failing test 并 observe failure,再写最小实现
184
- - 完成声明前用 superpowers:verification-before-completion 按完整 checklist 和 fresh evidence 做 gate
185
- - review / finish cannot override the full checklist;不满足则继续实现或报告 blocker
186
- - 每轮后更新 audit:AC status、证据、命令/结果/时间、required test command/result/failure、evidence path、blocker、deferred/narrowed scope、无效证据
187
-
188
- 状态机:AC 初始 unknown / not_run;只有 fresh required evidence 才能 complete;任何 fresh browser / API / runtime / data / test contradiction 必须 downgrade the affected AC and overall status,并记录 invalidating evidence。
189
- UI-Facing Gate:UI 验收必须打开 real page path 且用户可见状态匹配;component / viewmodel / mock / unit test 只算辅助证据,除非完整 checklist 明确说明。
190
- 禁止完成于:只改代码/计划、只跑部分测试、旧或部分证据、runtime 未配置/未演练、artifact 未被 validator accepted、API/UI 未 reflected、强卡点未解除、API/UI/data/test 矛盾。
191
- ```
192
-
193
- Recommended compact English prompt shape:
194
-
195
- ```text
196
- Plan: tmp/ty-context/plan-acceptance/<plan-slug>.md (implementation/source plan, not acceptance proof)
197
- Full checklist: tmp/ty-context/plan-acceptance/<plan-slug>-acceptance-checklist.md (complete acceptance standard; judge against it; check every item before completion)
198
- Local audit: tmp/ty-context/plan-acceptance/<plan-slug>-local-audit.md (temporary progress state, not Context or proof)
199
- You may use multiple agents; if agent slots run low, close idle or unnecessary agents.
200
- This summary is direction/priority/recovery only; overlap is allowed and the full checklist wins conflicts. This is not a Superpowers official schema / 不是 Superpowers 官方 schema.
201
- Superpowers input packet:
202
- - Source/original requirement: prevents plan/checklist shrinkage.
203
- - Plan: execution direction; if not bite-sized, use superpowers:writing-plans.
204
- - Full checklist: acceptance authority and completion gate.
205
- - Local audit: progress/evidence/blockers/invalidating evidence only; not proof.
206
- - Relevant Context: read before execution; resolve conflicts through checklist + Context.
207
- - Required tests/core paths: map AC gaps to test/API/UI/runtime/browser evidence.
208
-
209
- Autonomous progress: within current platform/repo/tool/user-authorized permissions, do everything the agent can safely do; do not hand self-service discovery/execution/verification to the user. Hard blockers: pause only for locally unsatisfiable account/credential/real-env/human-approval/sensitive-field needs; give a minimal user action list (exact page/system, field location, redaction/do-not-send values, next agent step).
210
- Permission policy: follow current repo/global AGENTS.md or agent instructions; authorized sudo/gsudo/admin elevation is not a user blocker, try it before pausing; pause only if elevation is unavailable, fails, or needs user/system authorization.
211
- If Superpowers is missing, install it through the current platform's official Superpowers installation path; if installation is blocked by permissions/network/platform, record in audit and do not count as complete.
212
- Superpowers execution binding:
213
- - Read the full checklist first; acceptance is judged against it.
214
- - Use superpowers:writing-plans if the plan is not executable enough.
215
- - Prefer superpowers:subagent-driven-development with subagents; otherwise use superpowers:executing-plans.
216
- - AC gap -> TDD: every behavior acceptance gap first uses superpowers:test-driven-development to write a failing test, observe failure, then implement minimally.
217
- - Before any completion claim, use superpowers:verification-before-completion against fresh evidence.
218
- - review / finish cannot override the full checklist; if unsatisfied, continue or report blockers.
219
- - After each round update audit: AC status, evidence, command/result/time, required test command/result/failure, evidence paths, blockers, deferred/narrowed scope, invalid evidence.
220
-
221
- State machine: ACs start unknown / not_run; only fresh required evidence can mark complete; any fresh browser / API / runtime / data / test contradiction downgrades the affected AC and overall status and is invalidating evidence.
222
- UI-Facing Gate: open the real page path and confirm visible state; component / viewmodel / mock / unit test evidence is auxiliary unless checklist says otherwise.
223
- Never complete on: code-only, plan-only, partial tests, stale/partial evidence, unconfigured/unexercised runtime, artifact not accepted by validator, API/UI not reflected, hard blockers, or API/UI/data/test contradictions.
224
- ```
225
-
226
- Before final response, check the prompt length. If it exceeds 3850 characters, tighten wording while preserving paths, input roles, official Superpowers skill names, state machine, UI gate, blockers and invalid evidence.
227
-
228
- ## Final Response Requirements
229
-
230
- When successful, return:
231
-
232
- - The implementation/source plan path.
233
- - The full checklist path.
234
- - The local audit path.
235
- - Whether required input was complete.
236
- - The paste-ready Superpowers target-mode prompt in a code block.
237
-
238
- When blocked, return:
239
-
240
- - Missing required fields.
241
- - Which source should provide each missing field.
242
- - A clear statement that no Superpowers target-mode prompt was generated.
243
-
244
- Do not claim any AC has passed unless the user explicitly asked for current completion audit and current evidence was inspected.
245
-
246
- ## Forbidden Behaviors
247
-
248
- Do not generate, derive, rewrite, strengthen, or repair the full checklist.
249
-
250
- Do not execute the generated prompt.
251
-
252
- Do not mark any goal complete.
253
-
254
- Do not hide missing source files, ambiguous scope, weak evidence or blockers.
255
-
256
- 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.
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.