@linimin/pi-letscook 0.1.37 → 0.1.39
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 +18 -2
- package/README.md +9 -15
- package/extensions/completion/index.ts +166 -229
- package/package.json +1 -1
- package/scripts/active-slice-contract-test.sh +45 -1
- package/scripts/canonical-evidence-artifact-test.sh +45 -1
- package/scripts/context-proposal-test.sh +324 -133
- package/scripts/refocus-test.sh +76 -31
- package/scripts/release-check.sh +39 -11
- package/scripts/smoke-test.sh +73 -1
package/scripts/refocus-test.sh
CHANGED
|
@@ -47,7 +47,13 @@ PY
|
|
|
47
47
|
cd "$TMPDIR"
|
|
48
48
|
git init -q
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
BOOTSTRAP_SESSION="$TMPDIR/session-bootstrap.jsonl"
|
|
51
|
+
BOOTSTRAP_DISCUSSION=$'Mission: Smoke-test mission.\nScope:\n- Bootstrap a completion workflow for the refocus regression fixture.\nConstraints:\n- Use supported bare /cook discussion flow only.\nAcceptance:\n- Materialize canonical state for active-workflow refocus tests.'
|
|
52
|
+
write_session "$BOOTSTRAP_SESSION" "$TMPDIR" "$BOOTSTRAP_DISCUSSION"
|
|
53
|
+
|
|
54
|
+
PI_COMPLETION_CONTEXT_PROPOSAL_ACTION=accept \
|
|
55
|
+
PI_COMPLETION_DISABLE_CONTEXT_PROPOSAL_ANALYST=1 \
|
|
56
|
+
pi --session "$BOOTSTRAP_SESSION" -e "$PKG_ROOT" -p "/cook" >"$TMPDIR/pi-completion-refocus-bootstrap.out" 2>"$TMPDIR/pi-completion-refocus-bootstrap.err" &
|
|
51
57
|
PI_PID=$!
|
|
52
58
|
for _ in $(seq 1 60); do
|
|
53
59
|
if [[ -f .agent/profile.json && -f .agent/state.json && -f .agent/plan.json && -f .agent/active-slice.json ]]; then
|
|
@@ -73,45 +79,78 @@ print(state['mission_anchor'])
|
|
|
73
79
|
PY
|
|
74
80
|
)"
|
|
75
81
|
|
|
76
|
-
|
|
82
|
+
INLINE_REJECTION_ROUTING="$TMPDIR/inline-arg-routing.json"
|
|
83
|
+
INLINE_REJECTION_PROPOSAL="$TMPDIR/inline-arg-proposal.json"
|
|
84
|
+
INLINE_REJECTION_CHOOSER="$TMPDIR/inline-arg-chooser.json"
|
|
85
|
+
INLINE_REJECTION_BASELINE="$TMPDIR/inline-arg-before.json"
|
|
86
|
+
python3 - "$INLINE_REJECTION_BASELINE" <<'PY'
|
|
87
|
+
import json
|
|
88
|
+
import sys
|
|
89
|
+
from pathlib import Path
|
|
90
|
+
|
|
91
|
+
tracked = [
|
|
92
|
+
Path('.agent/mission.md'),
|
|
93
|
+
Path('.agent/profile.json'),
|
|
94
|
+
Path('.agent/state.json'),
|
|
95
|
+
Path('.agent/plan.json'),
|
|
96
|
+
Path('.agent/active-slice.json'),
|
|
97
|
+
Path('.agent/verification-evidence.json'),
|
|
98
|
+
]
|
|
99
|
+
Path(sys.argv[1]).write_text(json.dumps({path.name: path.read_text() for path in tracked}, indent=2) + '\n')
|
|
100
|
+
PY
|
|
101
|
+
|
|
77
102
|
PI_COMPLETION_EXISTING_WORKFLOW_ACTION=cancel \
|
|
78
|
-
|
|
103
|
+
PI_COMPLETION_TEST_ACTIVE_WORKFLOW_ROUTING_PATH="$INLINE_REJECTION_ROUTING" \
|
|
104
|
+
PI_COMPLETION_TEST_CONTEXT_PROPOSAL_PATH="$INLINE_REJECTION_PROPOSAL" \
|
|
105
|
+
PI_COMPLETION_TEST_EXISTING_WORKFLOW_CHOOSER_PATH="$INLINE_REJECTION_CHOOSER" \
|
|
79
106
|
PI_COMPLETION_SKIP_DRIVER_KICKOFF=1 \
|
|
80
107
|
pi -e "$PKG_ROOT" -p "/cook replacement mission that should stay in the main chat" \
|
|
81
|
-
>"$TMPDIR/pi-completion-refocus-
|
|
108
|
+
>"$TMPDIR/pi-completion-refocus-inline-arg.out" 2>"$TMPDIR/pi-completion-refocus-inline-arg.err"
|
|
82
109
|
|
|
83
|
-
python3 - "$
|
|
110
|
+
python3 - "$TMPDIR/pi-completion-refocus-inline-arg.out" "$TMPDIR/pi-completion-refocus-inline-arg.err" "$INLINE_REJECTION_ROUTING" "$INLINE_REJECTION_PROPOSAL" "$INLINE_REJECTION_CHOOSER" "$INITIAL_MISSION" "$INLINE_REJECTION_BASELINE" <<'PY'
|
|
84
111
|
import json
|
|
85
112
|
import sys
|
|
86
113
|
from pathlib import Path
|
|
87
114
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
assert '
|
|
104
|
-
assert '
|
|
115
|
+
output = Path(sys.argv[1]).read_text() + Path(sys.argv[2]).read_text()
|
|
116
|
+
routing = Path(sys.argv[3])
|
|
117
|
+
proposal = Path(sys.argv[4])
|
|
118
|
+
chooser = Path(sys.argv[5])
|
|
119
|
+
initial_mission = sys.argv[6]
|
|
120
|
+
before = json.loads(Path(sys.argv[7]).read_text())
|
|
121
|
+
tracked = [
|
|
122
|
+
Path('.agent/mission.md'),
|
|
123
|
+
Path('.agent/profile.json'),
|
|
124
|
+
Path('.agent/state.json'),
|
|
125
|
+
Path('.agent/plan.json'),
|
|
126
|
+
Path('.agent/active-slice.json'),
|
|
127
|
+
Path('.agent/verification-evidence.json'),
|
|
128
|
+
]
|
|
129
|
+
current_state = json.loads(before['state.json'])
|
|
130
|
+
assert current_state['mission_anchor'] == initial_mission, 'active inline /cook args should start from the current mission anchor'
|
|
131
|
+
assert 'Inline /cook arguments are no longer supported.' in output, 'active inline /cook args should explain the hard rejection'
|
|
132
|
+
assert 'Clarify the mission in the main chat and rerun bare /cook.' in output, 'active inline /cook args should redirect users back to main chat plus bare /cook'
|
|
133
|
+
assert not routing.exists(), 'active inline /cook args should not run active-workflow routing'
|
|
134
|
+
assert not proposal.exists(), 'active inline /cook args should not open proposal confirmation'
|
|
135
|
+
assert not chooser.exists(), 'active inline /cook args should not open the existing-workflow chooser'
|
|
136
|
+
after = {path.name: path.read_text() for path in tracked}
|
|
137
|
+
assert before == after, 'active inline /cook args should leave canonical files unchanged'
|
|
105
138
|
PY
|
|
106
139
|
|
|
107
|
-
|
|
140
|
+
SESSION_INITIAL_REFOCUS="$TMPDIR/session-initial-bare-refocus.jsonl"
|
|
141
|
+
INITIAL_REFOCUS_DISCUSSION=$'Mission: Remove completion status line, keep widget.\nScope:\n- Replace the initial smoke-test workflow with the widget mission.\nConstraints:\n- Keep the approval-only Start/Cancel refocus gate.\nAcceptance:\n- Rewrite canonical state only after the replacement mission is approved.'
|
|
142
|
+
INITIAL_REFOCUS_ROUTING="$TMPDIR/initial-bare-refocus-routing.json"
|
|
143
|
+
write_session "$SESSION_INITIAL_REFOCUS" "$TMPDIR" "$INITIAL_REFOCUS_DISCUSSION"
|
|
144
|
+
|
|
145
|
+
PI_COMPLETION_DISABLE_CONTEXT_PROPOSAL_ANALYST=1 \
|
|
108
146
|
PI_COMPLETION_EXISTING_WORKFLOW_ACTION=refocus \
|
|
109
|
-
|
|
147
|
+
PI_COMPLETION_CONTEXT_PROPOSAL_ACTION=accept \
|
|
148
|
+
PI_COMPLETION_TEST_ACTIVE_WORKFLOW_ROUTING_PATH="$INITIAL_REFOCUS_ROUTING" \
|
|
110
149
|
PI_COMPLETION_SKIP_DRIVER_KICKOFF=1 \
|
|
111
|
-
pi -e "$PKG_ROOT" -p "/cook
|
|
150
|
+
pi --session "$SESSION_INITIAL_REFOCUS" -e "$PKG_ROOT" -p "/cook" \
|
|
112
151
|
>"$TMPDIR/pi-completion-refocus.out" 2>"$TMPDIR/pi-completion-refocus.err"
|
|
113
152
|
|
|
114
|
-
python3 - "$
|
|
153
|
+
python3 - "$INITIAL_REFOCUS_ROUTING" <<'PY'
|
|
115
154
|
import json
|
|
116
155
|
import sys
|
|
117
156
|
from pathlib import Path
|
|
@@ -144,10 +183,12 @@ assert state['next_mandatory_role'] == 'completion-regrounder', 'next_mandatory_
|
|
|
144
183
|
assert state['continuation_reason'].startswith('User refocused workflow via /cook:'), 'continuation_reason should record the refocus'
|
|
145
184
|
assert plan['plan_basis'] == 'user_refocus', 'plan.json plan_basis should be user_refocus after refocus'
|
|
146
185
|
assert active['status'] == 'idle', 'active-slice.json status should reset to idle after refocus'
|
|
147
|
-
assert routing['mode'] == '
|
|
148
|
-
assert
|
|
149
|
-
assert
|
|
150
|
-
assert routing['
|
|
186
|
+
assert routing['mode'] == 'bare', 'supported refocus should use bare active-workflow routing mode'
|
|
187
|
+
assert 'explicitGoal' not in routing, 'supported bare refocus should not expose removed explicit-goal shim fields'
|
|
188
|
+
assert 'explicitGoalProvided' not in routing, 'supported bare refocus should not expose removed explicit-goal shim fields'
|
|
189
|
+
assert routing['action'] == 'refocus', 'supported bare /cook should classify as refocus when the mission changes'
|
|
190
|
+
assert routing['reason'] == 'clear_refocus', 'supported bare /cook should record the clear-refocus routing reason'
|
|
191
|
+
assert routing['proposedMissionAnchor'] == new_anchor, 'bare refocus routing snapshot should expose the replacement mission anchor'
|
|
151
192
|
PY
|
|
152
193
|
|
|
153
194
|
UPDATED_MISSION="$(python3 - <<'PY'
|
|
@@ -159,7 +200,7 @@ PY
|
|
|
159
200
|
)"
|
|
160
201
|
|
|
161
202
|
if [[ "$INITIAL_MISSION" == "$UPDATED_MISSION" ]]; then
|
|
162
|
-
echo "expected mission anchor to change during
|
|
203
|
+
echo "expected mission anchor to change during supported bare refocus" >&2
|
|
163
204
|
exit 1
|
|
164
205
|
fi
|
|
165
206
|
|
|
@@ -198,6 +239,8 @@ assert state['mission_anchor'] == updated_mission, 'chooser cancel should keep t
|
|
|
198
239
|
assert plan['mission_anchor'] == updated_mission, 'chooser cancel should keep plan.json unchanged'
|
|
199
240
|
assert active['mission_anchor'] == updated_mission, 'chooser cancel should keep active-slice.json unchanged'
|
|
200
241
|
assert routing['mode'] == 'bare', 'bare /cook should snapshot bare active-workflow routing mode'
|
|
242
|
+
assert 'explicitGoal' not in routing, 'bare chooser routing should not expose removed explicit-goal shim fields'
|
|
243
|
+
assert 'explicitGoalProvided' not in routing, 'bare chooser routing should not expose removed explicit-goal shim fields'
|
|
201
244
|
assert routing['action'] == 'refocus', 'clear structured discussion should classify active bare /cook as refocus'
|
|
202
245
|
assert routing['reason'] == 'clear_refocus', 'clear structured discussion should record the clear-refocus routing reason'
|
|
203
246
|
assert routing['currentMissionAnchor'] == updated_mission, 'clear-refocus routing should keep the current mission anchor until the user approves replacement'
|
|
@@ -280,6 +323,8 @@ active = json.loads(Path('.agent/active-slice.json').read_text())
|
|
|
280
323
|
|
|
281
324
|
assert proposal['mission'] == new_anchor, 'accepted bare refocus should preserve the replacement proposal mission'
|
|
282
325
|
assert routing['mode'] == 'bare', 'accepted bare refocus should keep bare routing mode'
|
|
326
|
+
assert 'explicitGoal' not in routing, 'accepted bare refocus should not expose removed explicit-goal shim fields'
|
|
327
|
+
assert 'explicitGoalProvided' not in routing, 'accepted bare refocus should not expose removed explicit-goal shim fields'
|
|
283
328
|
assert routing['action'] == 'refocus', 'accepted bare refocus should keep the clear-refocus classification'
|
|
284
329
|
assert routing['reason'] == 'clear_refocus', 'accepted bare refocus should keep the clear-refocus reason'
|
|
285
330
|
assert routing['currentMissionAnchor'] == 'Remove completion status line, keep widget.', 'accepted bare refocus should expose the original mission until Start is accepted'
|
package/scripts/release-check.sh
CHANGED
|
@@ -4,40 +4,68 @@ set -euo pipefail
|
|
|
4
4
|
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
5
5
|
cd "$ROOT"
|
|
6
6
|
|
|
7
|
-
echo "[release-check] running control-plane validation,
|
|
7
|
+
echo "[release-check] running control-plane validation, bare /cook parity, startup/refocus/context regressions, canonical evidence artifact, active-slice contract, observability, evaluator calibration, and rubric contract coverage"
|
|
8
8
|
bash .agent/verify_completion_control_plane.sh
|
|
9
9
|
|
|
10
|
-
echo "[release-check] verifying public /cook
|
|
10
|
+
echo "[release-check] verifying public bare /cook parity"
|
|
11
11
|
python3 - <<'PY'
|
|
12
|
+
import re
|
|
12
13
|
from pathlib import Path
|
|
13
14
|
|
|
14
15
|
checks = {
|
|
15
16
|
"README.md": [
|
|
16
|
-
"Bare `/cook` is
|
|
17
|
-
"
|
|
17
|
+
"Bare `/cook` is the only supported workflow entrypoint.",
|
|
18
|
+
"clarify the mission in the main chat before rerunning bare `/cook`",
|
|
18
19
|
"Matching or unclear discussion resumes from canonical `.agent/**` state.",
|
|
19
20
|
"approval-only Start/Cancel gate",
|
|
20
21
|
"Start new workflow from recent discussion",
|
|
21
22
|
"fails closed instead of guessing",
|
|
22
23
|
],
|
|
23
24
|
"CHANGELOG.md": [
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"release-gated public-parity assertions",
|
|
25
|
+
"bare `/cook` as the only supported workflow entrypoint",
|
|
26
|
+
"clarify the mission before rerunning bare `/cook`",
|
|
27
|
+
"packaged parity now fails closed on the bare-only contract",
|
|
28
|
+
"that old inline-argument path is no longer supported now that bare `/cook` is the only public entrypoint",
|
|
29
29
|
],
|
|
30
30
|
"extensions/completion/index.ts": [
|
|
31
31
|
'description: "Discussion-driven /cook workflow: start, continue, refocus, or start the next round"',
|
|
32
|
-
"
|
|
32
|
+
"Inline /cook arguments are no longer supported. Clarify the mission in the main chat and rerun bare /cook.",
|
|
33
|
+
"Bare /cook failed closed because recent discussion did not contain a clear structured Mission/Scope/Constraints/Acceptance proposal. Add that structure in the main chat and rerun bare /cook.",
|
|
33
34
|
],
|
|
34
35
|
}
|
|
35
36
|
|
|
37
|
+
forbidden = {
|
|
38
|
+
"README.md": ["compatibility" + " shim"],
|
|
39
|
+
"CHANGELOG.md": ["compatibility" + " shim"],
|
|
40
|
+
"extensions/completion/index.ts": ["temporary" + " compatibility" + " shim, pass /cook"],
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public_doc_paths = [
|
|
44
|
+
Path("README.md"),
|
|
45
|
+
Path("CHANGELOG.md"),
|
|
46
|
+
Path("PUBLISHING.md"),
|
|
47
|
+
]
|
|
48
|
+
inline_cook_pattern = re.compile(r"/cook\s*<[^>]+>")
|
|
49
|
+
|
|
36
50
|
for path, needles in checks.items():
|
|
37
51
|
text = Path(path).read_text()
|
|
38
52
|
for needle in needles:
|
|
39
53
|
if needle not in text:
|
|
40
|
-
raise SystemExit(f"[release-check] missing expected
|
|
54
|
+
raise SystemExit(f"[release-check] missing expected bare /cook parity text in {path}: {needle}")
|
|
55
|
+
|
|
56
|
+
for path, needles in forbidden.items():
|
|
57
|
+
text = Path(path).read_text()
|
|
58
|
+
for needle in needles:
|
|
59
|
+
if needle in text:
|
|
60
|
+
raise SystemExit(f"[release-check] found stale compatibility wording in {path}: {needle}")
|
|
61
|
+
|
|
62
|
+
for path in public_doc_paths:
|
|
63
|
+
text = path.read_text()
|
|
64
|
+
match = inline_cook_pattern.search(text)
|
|
65
|
+
if match:
|
|
66
|
+
raise SystemExit(
|
|
67
|
+
f"[release-check] found unsupported inline /cook syntax in {path}: {match.group(0)}"
|
|
68
|
+
)
|
|
41
69
|
PY
|
|
42
70
|
|
|
43
71
|
npm run smoke-test
|
package/scripts/smoke-test.sh
CHANGED
|
@@ -5,20 +5,92 @@ PKG_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
|
5
5
|
TMPDIR="$(mktemp -d)"
|
|
6
6
|
trap 'rm -rf "$TMPDIR"' EXIT
|
|
7
7
|
|
|
8
|
+
write_session() {
|
|
9
|
+
local session_path="$1"
|
|
10
|
+
local cwd="$2"
|
|
11
|
+
local text="$3"
|
|
12
|
+
python3 - "$session_path" "$cwd" "$text" <<'PY'
|
|
13
|
+
import json
|
|
14
|
+
import sys
|
|
15
|
+
from pathlib import Path
|
|
16
|
+
|
|
17
|
+
session_path = Path(sys.argv[1])
|
|
18
|
+
cwd = sys.argv[2]
|
|
19
|
+
text = sys.argv[3]
|
|
20
|
+
session_path.parent.mkdir(parents=True, exist_ok=True)
|
|
21
|
+
entries = [
|
|
22
|
+
{
|
|
23
|
+
"type": "session",
|
|
24
|
+
"version": 3,
|
|
25
|
+
"id": "11111111-1111-4111-8111-111111111111",
|
|
26
|
+
"timestamp": "2026-01-01T00:00:00.000Z",
|
|
27
|
+
"cwd": cwd,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "message",
|
|
31
|
+
"id": "a1b2c3d4",
|
|
32
|
+
"parentId": None,
|
|
33
|
+
"timestamp": "2026-01-01T00:00:01.000Z",
|
|
34
|
+
"message": {
|
|
35
|
+
"role": "user",
|
|
36
|
+
"content": text,
|
|
37
|
+
"timestamp": 1767225601000,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
]
|
|
41
|
+
with session_path.open('w', encoding='utf-8') as fh:
|
|
42
|
+
for entry in entries:
|
|
43
|
+
fh.write(json.dumps(entry, ensure_ascii=False) + "\n")
|
|
44
|
+
PY
|
|
45
|
+
}
|
|
46
|
+
|
|
8
47
|
ROOT="$TMPDIR/repo"
|
|
9
48
|
KICKOFF_PROMPT="$TMPDIR/kickoff-prompt.txt"
|
|
10
49
|
RESUME_PROMPT="$TMPDIR/resume-prompt.txt"
|
|
11
50
|
UNCLEAR_ROUTING_SNAPSHOT="$TMPDIR/active-unclear-routing.json"
|
|
12
51
|
UNCLEAR_CHOOSER_SNAPSHOT="$TMPDIR/unexpected-existing-workflow-chooser.json"
|
|
13
52
|
AUTO_RESUME_PROMPT="$TMPDIR/auto-resume-prompt.txt"
|
|
53
|
+
INLINE_REJECTION_ROUTING_SNAPSHOT="$TMPDIR/inline-arg-routing.json"
|
|
54
|
+
INLINE_REJECTION_PROPOSAL_SNAPSHOT="$TMPDIR/inline-arg-proposal.json"
|
|
55
|
+
INLINE_REJECTION_CHOOSER_SNAPSHOT="$TMPDIR/inline-arg-chooser.json"
|
|
56
|
+
BOOTSTRAP_SESSION="$TMPDIR/session-smoke-bootstrap.jsonl"
|
|
57
|
+
BOOTSTRAP_DISCUSSION=$'Mission: Exercise smoke-test bootstrap.\nScope:\n- Materialize the canonical completion control-plane files.\n- Keep the smoke test on supported bare /cook behavior.\nConstraints:\n- Do not rely on inline /cook arguments.\nAcceptance:\n- Scaffold canonical files and kickoff prompts for the smoke fixture.'
|
|
14
58
|
|
|
15
59
|
mkdir -p "$ROOT"
|
|
16
60
|
cd "$ROOT"
|
|
17
61
|
git init -q
|
|
18
62
|
|
|
19
63
|
PI_COMPLETION_SKIP_DRIVER_KICKOFF=1 \
|
|
20
|
-
|
|
64
|
+
PI_COMPLETION_TEST_ACTIVE_WORKFLOW_ROUTING_PATH="$INLINE_REJECTION_ROUTING_SNAPSHOT" \
|
|
65
|
+
PI_COMPLETION_TEST_CONTEXT_PROPOSAL_PATH="$INLINE_REJECTION_PROPOSAL_SNAPSHOT" \
|
|
66
|
+
PI_COMPLETION_TEST_EXISTING_WORKFLOW_CHOOSER_PATH="$INLINE_REJECTION_CHOOSER_SNAPSHOT" \
|
|
21
67
|
pi -e "$PKG_ROOT" -p "/cook smoke-test mission" \
|
|
68
|
+
>"$TMPDIR/pi-completion-smoke-inline-arg.out" 2>"$TMPDIR/pi-completion-smoke-inline-arg.err"
|
|
69
|
+
|
|
70
|
+
python3 - "$TMPDIR/pi-completion-smoke-inline-arg.out" "$TMPDIR/pi-completion-smoke-inline-arg.err" "$INLINE_REJECTION_ROUTING_SNAPSHOT" "$INLINE_REJECTION_PROPOSAL_SNAPSHOT" "$INLINE_REJECTION_CHOOSER_SNAPSHOT" <<'PY'
|
|
71
|
+
import sys
|
|
72
|
+
from pathlib import Path
|
|
73
|
+
|
|
74
|
+
output = Path(sys.argv[1]).read_text() + Path(sys.argv[2]).read_text()
|
|
75
|
+
routing = Path(sys.argv[3])
|
|
76
|
+
proposal = Path(sys.argv[4])
|
|
77
|
+
chooser = Path(sys.argv[5])
|
|
78
|
+
|
|
79
|
+
assert not Path('.agent').exists(), 'startup inline /cook args should fail closed without creating canonical state'
|
|
80
|
+
assert not routing.exists(), 'startup inline /cook args should not open active-workflow routing'
|
|
81
|
+
assert not proposal.exists(), 'startup inline /cook args should not open the proposal confirmation flow'
|
|
82
|
+
assert not chooser.exists(), 'startup inline /cook args should not open the chooser flow'
|
|
83
|
+
assert 'Inline /cook arguments are no longer supported.' in output, 'startup inline /cook args should explain the hard rejection'
|
|
84
|
+
assert 'Clarify the mission in the main chat and rerun bare /cook.' in output, 'startup inline /cook args should redirect users back to main chat plus bare /cook'
|
|
85
|
+
PY
|
|
86
|
+
|
|
87
|
+
write_session "$BOOTSTRAP_SESSION" "$ROOT" "$BOOTSTRAP_DISCUSSION"
|
|
88
|
+
|
|
89
|
+
PI_COMPLETION_CONTEXT_PROPOSAL_ACTION=accept \
|
|
90
|
+
PI_COMPLETION_DISABLE_CONTEXT_PROPOSAL_ANALYST=1 \
|
|
91
|
+
PI_COMPLETION_SKIP_DRIVER_KICKOFF=1 \
|
|
92
|
+
PI_COMPLETION_TEST_DRIVER_PROMPT_PATH="$KICKOFF_PROMPT" \
|
|
93
|
+
pi --session "$BOOTSTRAP_SESSION" -e "$PKG_ROOT" -p "/cook" \
|
|
22
94
|
>"$TMPDIR/pi-completion-smoke-bootstrap.out" 2>"$TMPDIR/pi-completion-smoke-bootstrap.err"
|
|
23
95
|
|
|
24
96
|
for file in .agent/profile.json .agent/state.json .agent/plan.json .agent/active-slice.json .agent/verification-evidence.json; do
|