@linimin/pi-letscook 0.1.67 → 0.1.68
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/CHANGELOG.md +8 -0
- package/README.md +11 -11
- package/extensions/completion/driver.ts +25 -26
- package/extensions/completion/index.ts +25 -87
- package/extensions/completion/prompt-surfaces.ts +3 -3
- package/extensions/completion/proposal.ts +42 -7
- package/extensions/completion/role-runner.ts +6 -2
- package/package.json +1 -1
- package/scripts/active-slice-contract-test.sh +7 -12
- package/scripts/canonical-evidence-artifact-test.sh +9 -14
- package/scripts/context-proposal-test.sh +307 -1426
- package/scripts/refocus-test.sh +185 -459
- package/scripts/release-check.sh +7 -5
- package/scripts/role-runner-contract-test.sh +2 -2
- package/scripts/smoke-test.sh +11 -16
- package/skills/cook-handoff-boundary/SKILL.md +7 -6
|
@@ -182,17 +182,16 @@ bash .agent/verify_completion_control_plane.sh >/dev/null
|
|
|
182
182
|
ROOT="$TMPDIR/repo"
|
|
183
183
|
SYSTEM_REMINDER="$TMPDIR/system-reminder.txt"
|
|
184
184
|
BOOTSTRAP_SESSION="$TMPDIR/session-canonical-evidence-bootstrap.jsonl"
|
|
185
|
-
|
|
185
|
+
BOOTSTRAP_DISCUSSION=$'Prepare the canonical evidence bootstrap fixture and tell me when it is ready for /cook.'
|
|
186
|
+
GENERATED_HANDOFF="$(python3 - <<'PY'
|
|
186
187
|
import json
|
|
187
188
|
capsule = {
|
|
188
189
|
"kind": "cook_handoff",
|
|
189
190
|
"source": "primary_agent",
|
|
190
|
-
"captured_at": "2026-01-01T00:00:02.000Z",
|
|
191
|
-
"source_turn_id": "m0002",
|
|
192
191
|
"mission": "Exercise canonical evidence fixture bootstrap.",
|
|
193
192
|
"scope": [
|
|
194
193
|
"Materialize canonical completion files for the evidence artifact fixture.",
|
|
195
|
-
"Keep the verification-evidence bootstrap on the supported
|
|
194
|
+
"Keep the verification-evidence bootstrap on the supported same-entry synthesis startup path."
|
|
196
195
|
],
|
|
197
196
|
"constraints": [
|
|
198
197
|
"Use supported bare /cook startup only."
|
|
@@ -202,7 +201,7 @@ capsule = {
|
|
|
202
201
|
"Keep scripts/canonical-evidence-artifact-test.sh aligned with packaged bootstrap behavior."
|
|
203
202
|
],
|
|
204
203
|
"risks": [
|
|
205
|
-
"Evidence-artifact bootstrap must stay anchored to
|
|
204
|
+
"Evidence-artifact bootstrap must stay anchored to same-entry primary-agent startup-plan synthesis."
|
|
206
205
|
],
|
|
207
206
|
"notes": [
|
|
208
207
|
"This fixture exists only to scaffold canonical files before rewriting them for evidence parity coverage."
|
|
@@ -224,20 +223,16 @@ capsule = {
|
|
|
224
223
|
"evaluation_profile": "completion-rubric-v1",
|
|
225
224
|
"why_cook_now": "The fixture bootstrap is concrete enough to create canonical control-plane files."
|
|
226
225
|
}
|
|
227
|
-
|
|
228
|
-
{"role": "user", "content": "Prepare the canonical evidence bootstrap fixture and tell me when it is ready for /cook."},
|
|
229
|
-
{"role": "assistant", "content": "The canonical evidence bootstrap fixture is ready for /cook. Run /cook to confirm it.\n\n```cook_handoff\n" + json.dumps(capsule, ensure_ascii=False, indent=2) + "\n```"},
|
|
230
|
-
]
|
|
231
|
-
print(json.dumps(messages, ensure_ascii=False))
|
|
226
|
+
print("```cook_handoff\n" + json.dumps(capsule, ensure_ascii=False, indent=2) + "\n```")
|
|
232
227
|
PY
|
|
233
228
|
)"
|
|
234
229
|
mkdir -p "$ROOT"
|
|
235
230
|
cd "$ROOT"
|
|
236
231
|
git init -q
|
|
237
|
-
|
|
232
|
+
write_session "$BOOTSTRAP_SESSION" "$ROOT" "$BOOTSTRAP_DISCUSSION"
|
|
238
233
|
|
|
239
234
|
PI_COMPLETION_CONTEXT_PROPOSAL_ACTION=accept \
|
|
240
|
-
|
|
235
|
+
PI_COMPLETION_PRIMARY_HANDOFF_OUTPUT="$GENERATED_HANDOFF" \
|
|
241
236
|
PI_COMPLETION_SKIP_DRIVER_KICKOFF=1 \
|
|
242
237
|
pi --session "$BOOTSTRAP_SESSION" -e "$PKG_ROOT" -p "/cook" \
|
|
243
238
|
>"$TMPDIR/pi-canonical-evidence-bootstrap.out" 2>"$TMPDIR/pi-canonical-evidence-bootstrap.err"
|
|
@@ -292,7 +287,7 @@ startup_plan = {
|
|
|
292
287
|
'schema_version': 1,
|
|
293
288
|
'artifact_type': 'completion-startup-plan',
|
|
294
289
|
'status': 'approved',
|
|
295
|
-
'source': '
|
|
290
|
+
'source': 'deferred_primary_agent_handoff',
|
|
296
291
|
'captured_at': '2026-05-03T00:00:00Z',
|
|
297
292
|
'mission_anchor': mission,
|
|
298
293
|
'goal_text': 'Mission: Exercise canonical verification evidence parity.\n\nScope:\n- Persist canonical verification evidence for the selected slice.\n- Keep the verifier fail-closed on stale or missing evidence.\n\nAcceptance:\n- Canonical verification evidence is recorded for the selected slice.\n- Fail-closed verification rejects missing or stale evidence.',
|
|
@@ -399,7 +394,7 @@ Path('.agent/startup-plan.json').write_text(json.dumps(startup_plan, indent=2) +
|
|
|
399
394
|
Path('.agent/startup-plan.md').write_text(
|
|
400
395
|
'# Approved Startup Plan\n\n'
|
|
401
396
|
f'Mission anchor: {mission}\n'
|
|
402
|
-
'Source:
|
|
397
|
+
'Source: deferred_primary_agent_handoff\n'
|
|
403
398
|
'Captured at: 2026-05-03T00:00:00Z\n'
|
|
404
399
|
f'Task type: {task_type}\n'
|
|
405
400
|
f'Evaluation profile: {evaluation_profile}\n\n'
|