project-tiny-context-harness 0.2.63 → 0.2.64
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
CHANGED
|
@@ -139,7 +139,7 @@ npm ci
|
|
|
139
139
|
npm run smoke:quickstart
|
|
140
140
|
npm run preview:pack
|
|
141
141
|
cd /path/to/your/test-repo
|
|
142
|
-
npm install -D /path/to/project-tiny-context-harness/tmp/ty-context/source-preview/package/project-tiny-context-harness-0.2.
|
|
142
|
+
npm install -D /path/to/project-tiny-context-harness/tmp/ty-context/source-preview/package/project-tiny-context-harness-0.2.64.tgz
|
|
143
143
|
npx --no-install ty-context init --adopt
|
|
144
144
|
make validate-context
|
|
145
145
|
```
|
package/assets/README.md
CHANGED
|
@@ -94,7 +94,7 @@ That smoke packs the local workspace, installs it into a disposable repo, runs `
|
|
|
94
94
|
```sh
|
|
95
95
|
npm run preview:pack
|
|
96
96
|
cd /path/to/your/test-repo
|
|
97
|
-
npm install -D /path/to/project-tiny-context-harness/tmp/ty-context/source-preview/package/project-tiny-context-harness-0.2.
|
|
97
|
+
npm install -D /path/to/project-tiny-context-harness/tmp/ty-context/source-preview/package/project-tiny-context-harness-0.2.64.tgz
|
|
98
98
|
npx --no-install ty-context init --adopt
|
|
99
99
|
make validate-context
|
|
100
100
|
```
|
|
@@ -28,7 +28,7 @@ This Skill is generic. Do not embed business-specific rules, vendor-specific rul
|
|
|
28
28
|
Every completed invocation must produce:
|
|
29
29
|
|
|
30
30
|
1. A preserved copy of the plan under `tmp/ty-context/plan-acceptance/`. The copied plan is the implementation/source plan, not acceptance proof.
|
|
31
|
-
2. A rigorous full acceptance checklist under a separate `tmp/ty-context/plan-acceptance/<plan-slug>-acceptance-checklist.md` path. If the plan contains an explicit concrete acceptance checklist, reuse that plan-provided checklist verbatim; otherwise derive the checklist from the plan and relevant project Context. The full checklist is the complete acceptance standard.
|
|
31
|
+
2. A rigorous full acceptance checklist under a separate `tmp/ty-context/plan-acceptance/<plan-slug>-acceptance-checklist.md` path. If the plan contains an explicit concrete acceptance checklist, reuse that plan-provided checklist verbatim; otherwise derive the checklist from the plan and relevant project Context. The full checklist is the complete acceptance standard and owns required automated test evidence.
|
|
32
32
|
3. A goal/target-mode prompt the user can paste directly into Codex. The prompt may include a compact checklist summary for direction, priority and recovery navigation, but the full checklist owns the acceptance details.
|
|
33
33
|
4. When a local audit path is referenced, it is temporary execution/progress state only, not Context and not proof by itself.
|
|
34
34
|
|
|
@@ -157,7 +157,7 @@ The local audit path is for the future goal/target-mode executor. This compiler
|
|
|
157
157
|
|
|
158
158
|
## Step 2: Reuse Any Explicit Plan-Provided Checklist
|
|
159
159
|
|
|
160
|
-
After materializing the plan, inspect it for an explicit concrete acceptance checklist before generating a new checklist.
|
|
160
|
+
After materializing the plan, inspect it for an explicit concrete acceptance checklist and any explicit test requirements before generating a new checklist.
|
|
161
161
|
|
|
162
162
|
Plan-provided checklist reuse applies only when the plan contains a clearly labeled checklist or checklist table section, such as `Acceptance Checklist`, `Acceptance Criteria`, `验收清单`, `验收标准`, or equivalent heading, and that section contains concrete acceptance items rather than only saying that acceptance is needed.
|
|
163
163
|
|
|
@@ -168,6 +168,7 @@ When a plan-provided checklist is found:
|
|
|
168
168
|
- Do not derive, strengthen, reorder, translate, normalize, merge, split, or add acceptance items.
|
|
169
169
|
- Do not prepend the generated `Acceptance Contract`, checklist table, self-test, or false-completion traps to the full checklist file when reusing a plan-provided checklist.
|
|
170
170
|
- If multiple explicit checklist sections exist, copy all of them into the full checklist file in source order.
|
|
171
|
+
- If the plan also includes explicit test requirements, such as `Required tests`, `Automated tests`, `Test Plan`, `必须新增/补强的自动化测试`, `测试文件`, or equivalent concrete test sections, copy those test requirements verbatim into the full checklist file as plan-provided acceptance evidence. These test requirements are acceptance evidence, not generated additions.
|
|
171
172
|
- Keep the copied plan file and full checklist file separate, even if the checklist already appears inside the plan.
|
|
172
173
|
- Continue to read relevant Context only as needed to explain ambiguities, conflicts, the goal/target-mode prompt, and any required local-audit or false-completion guidance. Do not use Context to expand the reused checklist unless the user separately asks for an audit or rewrite.
|
|
173
174
|
- If the plan-provided checklist is too large for the 3850-character prompt budget, keep it intact in the full checklist file and make the prompt reference that file as the acceptance authority; do not invent a compact replacement checklist with new criteria.
|
|
@@ -175,6 +176,13 @@ When a plan-provided checklist is found:
|
|
|
175
176
|
|
|
176
177
|
When no explicit concrete plan-provided checklist exists, continue with the generated-checklist flow below.
|
|
177
178
|
|
|
179
|
+
When a plan already includes explicit test requirements but not a full acceptance checklist:
|
|
180
|
+
|
|
181
|
+
- Use those plan-provided test requirements as the source of truth for the generated checklist's `Required automated tests / 必须新增或补强的自动化测试` section.
|
|
182
|
+
- Preserve concrete test file paths, test names, behavior descriptions, commands, and failure notes from the plan.
|
|
183
|
+
- Do not replace them with generic AC10 wording, do not create an unrelated test system, and do not invent competing test lists.
|
|
184
|
+
- If the plan's test requirements are broad but concrete enough to preserve, keep the original wording and add only the minimum acceptance mapping needed to show which AC each test supports.
|
|
185
|
+
|
|
178
186
|
## Step 3: Read Relevant Project Context
|
|
179
187
|
|
|
180
188
|
Read only the Context needed for the plan's impacted surfaces. Use Context to identify what the project says the system should mean.
|
|
@@ -281,6 +289,31 @@ Allowed `Conclusion` values:
|
|
|
281
289
|
|
|
282
290
|
Missing ledger evidence means incomplete, not complete. Do not let missing evidence, old evidence, partial evidence or evidence from a different read path satisfy a current-state claim.
|
|
283
291
|
|
|
292
|
+
### Required Automated Tests / 必须新增或补强的自动化测试
|
|
293
|
+
|
|
294
|
+
Every generated full checklist must include a `Required automated tests / 必须新增或补强的自动化测试` section. Test requirements are acceptance evidence: a future executor cannot mark a relevant implementation item complete when required test evidence is missing.
|
|
295
|
+
|
|
296
|
+
No fourth artifact: keep these requirements inside `<plan-slug>-acceptance-checklist.md`. Do not create `tmp/ty-context/plan-acceptance/<plan-slug>-test-requirements.md` or another standalone test requirements file.
|
|
297
|
+
|
|
298
|
+
Use this table shape when tests are required:
|
|
299
|
+
|
|
300
|
+
```markdown
|
|
301
|
+
## Required automated tests / 必须新增或补强的自动化测试
|
|
302
|
+
|
|
303
|
+
| Test file path | Test name or behavior description | Covered acceptance item(s) | Verification command | Failure condition | Source |
|
|
304
|
+
|---|---|---|---|---|---|
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
Rules:
|
|
308
|
+
|
|
309
|
+
- If the plan already includes explicit test requirements, use those plan-provided test requirements as the source of truth. Preserve the plan's test file path, test name or behavior description, verification command and failure condition when present.
|
|
310
|
+
- Do not replace plan-provided test requirements with generic AC10, do not invent a separate test taxonomy, and do not add unrelated tests merely because a generic category exists.
|
|
311
|
+
- If no explicit test section exists, derive required tests from the plan's behavior changes, risk, Context contracts and real code/test surfaces.
|
|
312
|
+
- If an exact test name cannot be inferred safely, write a behavior-level test description and do not invent exact test names.
|
|
313
|
+
- Each required test row must identify the covered acceptance item(s), the verification command, and the failure condition that blocks acceptance.
|
|
314
|
+
- If no new or strengthened automated tests are required, state that explicitly with the reason and the acceptance items covered by existing verification.
|
|
315
|
+
- The local audit must record each required test's command, result and failure reason when it is run or when it remains blocked.
|
|
316
|
+
|
|
284
317
|
## Hard Blocker Handling
|
|
285
318
|
|
|
286
319
|
Treat any unresolved required blocker as non-completion. A checklist may describe blocked acceptance work, but blocked work is still not accepted until the required evidence exists.
|
|
@@ -486,6 +519,7 @@ Hard requirements:
|
|
|
486
519
|
- If the full checklist is too large, write the full checklist to `tmp/ty-context/plan-acceptance/<plan-slug>-acceptance-checklist.md`, then compress the goal/target-mode prompt by increasing information density while preserving all core acceptance categories.
|
|
487
520
|
- If the full checklist came from a plan-provided checklist and is too large, keep the extracted checklist unchanged in the full checklist file and compress the prompt by referencing the full checklist path, not by rewriting or adding criteria.
|
|
488
521
|
- The compact prompt may reference the full checklist path, but it must still include the core completion criteria directly and state that the summary is direction/priority/recovery navigation, not the acceptance authority.
|
|
522
|
+
- Compact prompts must not expand long test lists. AC10 must reference the Required automated tests section in the full checklist and state that behavior changes still use `superpowers:test-driven-development`.
|
|
489
523
|
|
|
490
524
|
Recommended compact Chinese prompt shape:
|
|
491
525
|
|
|
@@ -515,9 +549,9 @@ AC6 <运行态/配置/外部依赖/阻塞分类要求>
|
|
|
515
549
|
AC7 <artifact/evidence/schema/freshness/provenance 要求>
|
|
516
550
|
AC8 <UI/用户可见/API 投影一致性要求>
|
|
517
551
|
AC9 <安全/隐私/脱敏/secret 要求>
|
|
518
|
-
AC10
|
|
552
|
+
AC10 测试要求:按完整验收清单的 `Required automated tests / 必须新增或补强的自动化测试` section 执行;compact prompt 不展开长测试列表;行为变更仍用 superpowers:test-driven-development。
|
|
519
553
|
AC11 <文档/Context 更新要求,仅在计划要求时执行>
|
|
520
|
-
AC12 维护执行审计:恢复执行先读 audit;记录总体状态、每个 AC
|
|
554
|
+
AC12 维护执行审计:恢复执行先读 audit;记录总体状态、每个 AC 当前证据、命令/结果/时间、每个 required test 的 command/result/failure reason、artifact/evidence 路径、blocker、deferred/narrowed scope、不能证明 full completion 的旧/部分/smoke/dry-run/research 证据;audit 不是 Context、完成证明、全局任务管理器,也不替代 Task Contract 或流程契约 plan.md。
|
|
521
555
|
AC13 最小用户卡点:问用户前先完成安全自助发现;需要用户介入时只给最小动作清单,写明已尝试、缺失项、具体页面/菜单/字段/按钮、最小值/动作、不要发送的敏感信息、验收影响、fallback/deferred。
|
|
522
556
|
AC14 完成前审计:逐条对照实施计划和完整 checklist;每个 core 项必须有当前证据;未跑验证必须明示;有可继续执行的 core 项不得标记完成;外部/强卡点必须写明原因、缺失证据、验收影响和下一步;若剩余未完成项只有无法本地解决的强卡点,暂停并等待用户/外部 owner,不能标记目标完成。
|
|
523
557
|
|
|
@@ -552,9 +586,9 @@ AC6 <runtime / configuration / external dependency / blocker classification>
|
|
|
552
586
|
AC7 <artifact / evidence / schema / freshness / provenance requirements>
|
|
553
587
|
AC8 <UI / user-visible / API projection consistency>
|
|
554
588
|
AC9 <security / privacy / redaction / secret handling>
|
|
555
|
-
AC10
|
|
589
|
+
AC10 Test requirements: follow the full checklist's `Required automated tests / 必须新增或补强的自动化测试` section; the compact prompt must not expand long test lists; behavior changes still use superpowers:test-driven-development.
|
|
556
590
|
AC11 <documentation / Context updates only when required by the plan>
|
|
557
|
-
AC12 Maintain local audit: read it before resuming; record overall status, every AC's current evidence, commands/results/time, artifact/evidence paths, blockers, deferred/narrowed scope, and stale/partial/smoke/dry-run/research evidence that cannot prove full completion; audit is not Context, completion proof, a global task manager, or a replacement for Task Contract or workflow-contract plan.md.
|
|
591
|
+
AC12 Maintain local audit: read it before resuming; record overall status, every AC's current evidence, commands/results/time, each required test's command/result/failure reason, artifact/evidence paths, blockers, deferred/narrowed scope, and stale/partial/smoke/dry-run/research evidence that cannot prove full completion; audit is not Context, completion proof, a global task manager, or a replacement for Task Contract or workflow-contract plan.md.
|
|
558
592
|
AC13 Minimal user blocker protocol: before asking the user, complete safe self-service discovery; when user action is needed, provide only the smallest action list with what was tried, missing item, exact page/menu/path/field/button, minimum value/action, sensitive material not to send, acceptance impact, and fallback/deferred option.
|
|
559
593
|
AC14 Final audit: compare every item against the plan and full checklist; every core item needs current evidence; missing validation must be stated; any executable core item left open means the task is not complete; external or hard blockers need cause, missing evidence, acceptance impact, and next action; if only locally unsatisfiable hard blockers remain, pause for the user or external owner instead of marking the goal complete.
|
|
560
594
|
|