@linimin/pi-letscook 0.1.58 → 0.1.60
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/.agent/README.md +28 -0
- package/.agent/mission.md +8 -0
- package/.agent/profile.json +13 -0
- package/.agent/verify_completion_control_plane.sh +203 -0
- package/.agent/verify_completion_stop.sh +20 -0
- package/CHANGELOG.md +12 -0
- package/README.md +28 -22
- package/extensions/completion/driver.ts +51 -39
- package/extensions/completion/index.ts +29 -21
- package/extensions/completion/prompt-surfaces.ts +12 -10
- package/extensions/completion/proposal.ts +0 -15
- package/package.json +6 -1
- package/scripts/active-slice-contract-test.sh +93 -2
- package/scripts/canonical-evidence-artifact-test.sh +93 -2
- package/scripts/context-proposal-test.sh +577 -727
- package/scripts/refocus-test.sh +196 -28
- package/scripts/release-check.sh +57 -34
- package/scripts/smoke-test.sh +73 -14
- package/skills/cook-handoff-boundary/SKILL.md +16 -10
|
@@ -14,9 +14,10 @@ This skill governs the boundary between:
|
|
|
14
14
|
|
|
15
15
|
## Core Contract
|
|
16
16
|
|
|
17
|
-
- Ordinary chat may be used to clarify requirements, discuss tradeoffs,
|
|
17
|
+
- Ordinary chat may be used to clarify requirements, discuss tradeoffs, propose implementation approaches, and refine scope with the user.
|
|
18
18
|
- `/cook` is the only explicit entrypoint into long-running completion workflow.
|
|
19
|
-
- When the primary agent judges that a task has matured into completion-workflow scope, it must stop short of implementation and
|
|
19
|
+
- When the primary agent judges that a task has matured into completion-workflow scope, it must stop short of long-running implementation and treat `/cook` as the workflow boundary.
|
|
20
|
+
- Before the user explicitly runs `/cook`, ordinary chat remains ordinary chat: the agent may still answer follow-up questions and refine requirements instead of switching into a handoff-only refusal mode.
|
|
20
21
|
|
|
21
22
|
## When To Hand Off To `/cook`
|
|
22
23
|
|
|
@@ -34,12 +35,14 @@ When the task is judged ready for completion workflow, the primary agent must:
|
|
|
34
35
|
|
|
35
36
|
- stop before long-running implementation
|
|
36
37
|
- not edit tracked product files in ordinary chat for that workflow-level task
|
|
37
|
-
-
|
|
38
|
-
- explain that `/cook`
|
|
39
|
-
- distinguish a workflow-worthy handoff from an
|
|
40
|
-
-
|
|
38
|
+
- recommend bare `/cook` as the explicit workflow boundary once the task is implementation-ready
|
|
39
|
+
- explain that bare `/cook` synthesizes a startup brief from recent ordinary-chat discussion for a new workflow or next round, while active workflows resume from canonical state unless the user explicitly chooses a replacement path backed by a fresh valid explicit handoff
|
|
40
|
+
- distinguish a workflow-worthy handoff from an opt-in preview request
|
|
41
|
+
- not append an implementation-ready `/cook` handoff capsule by default once the task becomes concrete enough; ordinary chat stays advisory-first until explicit `/cook`
|
|
42
|
+
- only provide a `/cook` startup preview or `cook_handoff` capsule when the user explicitly asks for that preview behavior in ordinary chat
|
|
43
|
+
- if the user asks follow-up questions or refines requirements before running `/cook`, continue ordinary-chat discussion normally without acting as though workflow already started
|
|
41
44
|
|
|
42
|
-
|
|
45
|
+
Optional preview capsule format when the user explicitly asks for it:
|
|
43
46
|
|
|
44
47
|
````text
|
|
45
48
|
```cook_handoff
|
|
@@ -71,13 +74,15 @@ Required capsule format:
|
|
|
71
74
|
Notes:
|
|
72
75
|
|
|
73
76
|
- `constraints` may be replaced or supplemented by `non_goals` when clearer.
|
|
74
|
-
- `first_slice_goal`, `first_slice_non_goals`, `implementation_surfaces`, `verification_commands`, and `why_this_slice_first` are required only for implementation-ready
|
|
77
|
+
- `first_slice_goal`, `first_slice_non_goals`, `implementation_surfaces`, `verification_commands`, and `why_this_slice_first` are required only for an implementation-ready preview capsule.
|
|
78
|
+
- If the work is workflow-worthy but the first slice still needs refinement, say that `/cook` will be the right next step once the slice is concrete enough, then keep refining in ordinary chat without emitting a preview capsule unless the user explicitly asks for one.
|
|
79
|
+
- If later ordinary-chat discussion materially changes the startup brief before `/cook` runs, update or replace the preview capsule in a later assistant reply.
|
|
75
80
|
- The mission must be positively startable implementation work; do not use rejection or suppression text as the mission.
|
|
76
|
-
-
|
|
81
|
+
- Any preview capsule is startup intake for `/cook` only. It is not canonical `.agent/**` state, not active-slice state, and not a second repo contract source.
|
|
77
82
|
|
|
78
83
|
Suggested wording:
|
|
79
84
|
|
|
80
|
-
> This task
|
|
85
|
+
> This task now looks like `/cook` workflow work, but we are still in ordinary chat until you explicitly run `/cook`. If you want to keep refining the first slice first, we can do that here. Once you want to start implementation workflow, run bare `/cook` and it will synthesize the startup brief from our recent discussion before the Start/Cancel gate. If you explicitly want a preview capsule first, ask and I can sketch one here.
|
|
81
86
|
|
|
82
87
|
A short recap may include mission, scope, or acceptance, but that recap must not be presented as canonical plan state.
|
|
83
88
|
|
|
@@ -89,6 +94,7 @@ Once the task is judged ready for completion workflow, the primary agent must no
|
|
|
89
94
|
- modify tracked product files as part of that workflow-level task
|
|
90
95
|
- act as though `/cook` had already been invoked
|
|
91
96
|
- silently rewrite ordinary-chat discussion into active workflow state
|
|
97
|
+
- refuse ordinary-chat clarification or requirement-refinement turns solely because `/cook` would now be appropriate
|
|
92
98
|
|
|
93
99
|
## Relationship To `completion-protocol`
|
|
94
100
|
|