pi-soly 1.13.5 → 1.15.0
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 +29 -15
- package/artifact/index.ts +3 -3
- package/artifact/render.ts +2 -2
- package/ask/README.md +3 -1
- package/ask/index.ts +16 -2
- package/codemap.ts +2 -2
- package/commands.ts +34 -63
- package/config.ts +20 -12
- package/core.ts +16 -18
- package/docs.ts +4 -4
- package/index.ts +20 -21
- package/init.ts +7 -7
- package/intent.ts +12 -12
- package/iteration.ts +14 -12
- package/notification.ts +1 -1
- package/notifications-log.ts +2 -2
- package/nudge.ts +41 -6
- package/package.json +1 -2
- package/skills/soly-framework/SKILL.md +34 -42
- package/status.ts +2 -2
- package/tools.ts +14 -14
- package/util.ts +2 -2
- package/visual/welcome.ts +3 -3
- package/workflows/done.ts +203 -0
- package/workflows/execute.ts +105 -16
- package/workflows/index.ts +25 -9
- package/workflows/inspect.ts +16 -15
- package/workflows/migrate.ts +150 -63
- package/workflows/new.ts +159 -0
- package/workflows/parser.ts +52 -1
- package/workflows/pause.ts +5 -5
- package/workflows/planning.ts +107 -22
- package/workflows/quick.ts +7 -7
- package/workflows/resume.ts +14 -14
- package/workflows-data/discuss-phase.md +9 -9
- package/workflows-data/execute-phase.md +4 -4
- package/workflows-data/execute-plan.md +8 -8
- package/workflows-data/execute-task.md +7 -7
- package/workflows-data/pause-work.md +18 -18
- package/workflows-data/plan-phase.md +7 -7
- package/workflows-data/plan-task.md +18 -18
- package/migrate.ts +0 -258
package/workflows/planning.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
import * as fs from "node:fs";
|
|
16
16
|
import * as path from "node:path";
|
|
17
17
|
import { fileURLToPath } from "node:url";
|
|
18
|
-
import { describePlanTarget, type SolyCommand } from "./parser.ts";
|
|
18
|
+
import { describePlanTarget, parsePlanName, type SolyCommand } from "./parser.ts";
|
|
19
19
|
import type { SolyState } from "../core.js";
|
|
20
20
|
import {
|
|
21
21
|
extractPlanSummary,
|
|
@@ -67,7 +67,7 @@ export function buildPlanTransform(cmd: SolyCommand, state: SolyState): Planning
|
|
|
67
67
|
return {
|
|
68
68
|
handled: true,
|
|
69
69
|
transformedText:
|
|
70
|
-
`soly plan: no .
|
|
70
|
+
`soly plan: no .agents/ directory in cwd (${state.solyDir || "<cwd>"}) — cannot plan.\n` +
|
|
71
71
|
`Initialize a soly project first.`,
|
|
72
72
|
};
|
|
73
73
|
}
|
|
@@ -91,8 +91,45 @@ export function buildPlanTransform(cmd: SolyCommand, state: SolyState): Planning
|
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
// ===
|
|
94
|
+
// === PLAN MODE (new dual-mode: `<type>/<name>` plans live under .agents/plans/<name>/) ===
|
|
95
|
+
if (target.kind === "plan") {
|
|
96
|
+
const planDirAbs = `${state.solyDir}/plans/${target.name}`;
|
|
97
|
+
const planFile = `${planDirAbs}/PLAN.md`;
|
|
98
|
+
let planBody: string;
|
|
99
|
+
try {
|
|
100
|
+
planBody = fs.readFileSync(planFile, "utf-8");
|
|
101
|
+
} catch {
|
|
102
|
+
planBody = "_No PLAN.md yet — the LLM should ask the user for goal / steps / acceptance and write it from scratch._";
|
|
103
|
+
}
|
|
104
|
+
const instruction = `soly plan ${target.raw} — fleshing out PLAN.md for plan.
|
|
105
|
+
|
|
106
|
+
**Plan:** ${target.name}
|
|
107
|
+
**Branch:** ${target.raw}
|
|
108
|
+
**PLAN.md:** ${planFile}
|
|
109
|
+
|
|
110
|
+
**Inline current PLAN.md body (so you have the existing TBD sections before reading the file):**
|
|
111
|
+
\`\`\`markdown
|
|
112
|
+
${planBody.slice(0, 4000)}${planBody.length > 4000 ? "\n…(truncated)" : ""}
|
|
113
|
+
\`\`\`
|
|
114
|
+
|
|
115
|
+
**0-POINT CHECK.** Re-read .agents/docs/ (intent) before fleshing out the plan.
|
|
116
|
+
|
|
117
|
+
If ask_pro is available, use it ONCE to gather goal / steps / acceptance criteria (freeText questions, batched). Then write PLAN.md with the answers. If ask_pro is NOT available, write a sensible stub plan and tell the user to refine it via \`soly plan ${target.raw}\` again.
|
|
118
|
+
|
|
119
|
+
Hard rules:
|
|
120
|
+
- Update ONLY ${planFile}. Don't touch other plans or the project root.
|
|
121
|
+
- Use Conventional Commits format: # Plan: ${target.raw} (h1), ## Goal, ## Steps, ## Acceptance.
|
|
122
|
+
- Don't commit — the user reviews and commits.`;
|
|
123
|
+
return { handled: true, transformedText: instruction };
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// === PHASE MODE (legacy — see W6 in the plans-instead-of-phases plan) ===
|
|
95
127
|
if (target.kind === "phase") {
|
|
128
|
+
const deprecationNotice =
|
|
129
|
+
"⚠️ PHASE MODE IS LEGACY. Phases have been replaced by plans (each plan = a git branch `<type>/<name>` with `.agents/plans/<name>/PLAN.md`).\n" +
|
|
130
|
+
"To migrate an existing phase to a plan, run \`soly migrate phases-to-plans\` once.\n" +
|
|
131
|
+
"For new work, use \`soly new <type>/<name>\` (e.g. \`soly new feat/auth-jwt\`).\n" +
|
|
132
|
+
"This phase handler still works for backward compat but won't get new features.\n\n";
|
|
96
133
|
const phase = state.phases.find((p) => p.number === target.phase);
|
|
97
134
|
if (!phase) {
|
|
98
135
|
return {
|
|
@@ -118,13 +155,13 @@ export function buildPlanTransform(cmd: SolyCommand, state: SolyState): Planning
|
|
|
118
155
|
kind: "plan",
|
|
119
156
|
phaseNumber: target.phase,
|
|
120
157
|
});
|
|
121
|
-
const instruction = `soly plan ${target.raw} — planning phase ${target.phase} (${phase.name}).
|
|
158
|
+
const instruction = deprecationNotice + `soly plan ${target.raw} — planning phase ${target.phase} (${phase.name}).
|
|
122
159
|
|
|
123
160
|
**Iteration context file written:** \`${iter.relPath}\` (${iter.tokens} tokens, ${iter.bytes} bytes)
|
|
124
161
|
The planner reads this file first — it contains intent, STATE, ROADMAP row for this phase, phase CONTEXT, phase RESEARCH, and prior SUMMARYs.
|
|
125
162
|
|
|
126
|
-
**0-POINT CHECK — read .
|
|
127
|
-
These documents hold the project's INTENT — business context, design vision, what the user wants this app to be. Plans that ignore intent produce code that "works" but doesn't fit. If the plan would diverge from anything in .
|
|
163
|
+
**0-POINT CHECK — read .agents/docs/ first.**
|
|
164
|
+
These documents hold the project's INTENT — business context, design vision, what the user wants this app to be. Plans that ignore intent produce code that "works" but doesn't fit. If the plan would diverge from anything in .agents/docs/, surface that as a discussion point before committing to it.
|
|
128
165
|
|
|
129
166
|
Phase directory: ${phase.dir}
|
|
130
167
|
Current state: planCount=${phase.planCount}, context=${phase.contextExists}, research=${phase.researchExists}
|
|
@@ -155,11 +192,11 @@ ${workflow}
|
|
|
155
192
|
|
|
156
193
|
Hard rules:
|
|
157
194
|
- Do not write production code. Planning only.
|
|
158
|
-
- One task = one PLAN.md under .
|
|
195
|
+
- One task = one PLAN.md under .agents/phases/<NN>-<slug>/tasks/<task-id>/ (task id = <short-slug>-<4hex>).
|
|
159
196
|
- Each task PLAN.md starts with frontmatter: id, kind, status: ready, depends-on: [task ids], optional feature. The cross-task dependency graph must be acyclic.
|
|
160
197
|
- Each task PLAN needs requirements, must_haves.truths, must_haves.artifacts, must_haves.key_links.
|
|
161
|
-
- PATH DISCIPLINE: all task PLAN.md / phase CONTEXT.md / RESEARCH.md go under \`.
|
|
162
|
-
- Update .
|
|
198
|
+
- PATH DISCIPLINE: all task PLAN.md / phase CONTEXT.md / RESEARCH.md go under \`.agents/phases/<NN>-<slug>/\`. Never write to the project root.
|
|
199
|
+
- Update .agents/STATE.md Current Position at the end.
|
|
163
200
|
- Return: created task ids, the dependency order (which tasks are ready first), open questions.
|
|
164
201
|
\`
|
|
165
202
|
})
|
|
@@ -231,7 +268,7 @@ The planner reads this file first — it contains intent, STATE, the feature REA
|
|
|
231
268
|
**Inline plan summary (so you have the must-haves even before reading the file):**
|
|
232
269
|
${inlineSummary}
|
|
233
270
|
|
|
234
|
-
**0-POINT CHECK.** Re-read .
|
|
271
|
+
**0-POINT CHECK.** Re-read .agents/docs/ (intent) and .agents/features/${task.feature}/README.md (feature context) before refining the plan.
|
|
235
272
|
|
|
236
273
|
This task already has PLAN.md. Your job is to flesh it out / improve it based on intent and feature context — not to start from scratch.
|
|
237
274
|
|
|
@@ -265,7 +302,7 @@ Hard rules:
|
|
|
265
302
|
- Preserve the existing frontmatter (id, kind, feature, status, etc.) — only update if you find a bug.
|
|
266
303
|
- If you change the plan body materially, commit it as \`chore(tasks): refine plan <task-id>\`.
|
|
267
304
|
- If you only add small clarifications, no commit needed (or include in same commit).
|
|
268
|
-
- PATH DISCIPLINE: PLAN.md lives at \`.
|
|
305
|
+
- PATH DISCIPLINE: PLAN.md lives at \`.agents/features/<feature>/tasks/<id>/PLAN.md\`. Never write to the project root.
|
|
269
306
|
- Return: what changed, open questions, dependencies discovered.
|
|
270
307
|
\`
|
|
271
308
|
})
|
|
@@ -289,8 +326,8 @@ When the subagent returns, summarize what was refined. Do not execute — planni
|
|
|
289
326
|
return {
|
|
290
327
|
handled: true,
|
|
291
328
|
transformedText:
|
|
292
|
-
`soly plan: could not create .
|
|
293
|
-
`Create it manually: \`mkdir -p .
|
|
329
|
+
`soly plan: could not create .agents/features/${target.feature}/tasks/ (${(e as Error).message}). ` +
|
|
330
|
+
`Create it manually: \`mkdir -p .agents/features/${target.feature}/tasks/\``,
|
|
294
331
|
};
|
|
295
332
|
}
|
|
296
333
|
try {
|
|
@@ -305,8 +342,8 @@ When the subagent returns, summarize what was refined. Do not execute — planni
|
|
|
305
342
|
return {
|
|
306
343
|
handled: true,
|
|
307
344
|
transformedText:
|
|
308
|
-
`soly plan: created .
|
|
309
|
-
`Continue manually: \`touch .
|
|
345
|
+
`soly plan: created .agents/features/${target.feature}/tasks/ but failed to write README.md (${(e as Error).message}). ` +
|
|
346
|
+
`Continue manually: \`touch .agents/features/${target.feature}/README.md\``,
|
|
310
347
|
};
|
|
311
348
|
}
|
|
312
349
|
// Re-read state so the planner sees the new feature
|
|
@@ -331,13 +368,13 @@ When the subagent returns, summarize what was refined. Do not execute — planni
|
|
|
331
368
|
**Slug:** ${target.slug}
|
|
332
369
|
**Feature README:** ${featureDir}/README.md
|
|
333
370
|
|
|
334
|
-
**0-POINT CHECK.** Re-read .
|
|
371
|
+
**0-POINT CHECK.** Re-read .agents/docs/ (intent) and .agents/features/${target.feature}/README.md (feature context) before planning.
|
|
335
372
|
|
|
336
373
|
**Step 1 — generate task ID.** The task ID is \`<slug>-<4hex>\` (e.g. \`${target.slug}-a3f9\`). Generate 4 lowercase hex chars (use \`crypto.randomBytes(2).toString('hex')\` in node, or any 4-char [0-9a-f]{4} string if you don't have a shell handy).
|
|
337
374
|
|
|
338
375
|
**Step 2 — create the dir:**
|
|
339
376
|
\`\`\`
|
|
340
|
-
mkdir -p .
|
|
377
|
+
mkdir -p .agents/features/${target.feature}/tasks/<id>
|
|
341
378
|
\`\`\`
|
|
342
379
|
|
|
343
380
|
**Step 3 — write PLAN.md** with the frontmatter below + the plan body.
|
|
@@ -379,7 +416,7 @@ ${workflow}
|
|
|
379
416
|
Hard rules:
|
|
380
417
|
- Do not write production code. Planning only.
|
|
381
418
|
- Generate the task id as \`<slug>-<4hex>\` (e.g. \`${target.slug}-a3f9\`) — use 4 lowercase hex chars.
|
|
382
|
-
- Create the dir \`.
|
|
419
|
+
- Create the dir \`.agents/features/${target.feature}/tasks/<id>/\` first.
|
|
383
420
|
- Write PLAN.md with the frontmatter (id, kind, feature, status: ready, priority, parallelizable, depends-on).
|
|
384
421
|
- Pick a \`kind:\` value matching the work (be|fe|infra|docs|integration).
|
|
385
422
|
- Pick a reasonable \`priority:\` (default: medium).
|
|
@@ -457,19 +494,67 @@ export function buildDiscussTransform(
|
|
|
457
494
|
return {
|
|
458
495
|
handled: true,
|
|
459
496
|
transformedText:
|
|
460
|
-
`soly discuss: no .
|
|
497
|
+
`soly discuss: no .agents/ directory in cwd (${state.solyDir || "<cwd>"}) — cannot discuss.\n` +
|
|
461
498
|
`Initialize a soly project first.`,
|
|
462
499
|
};
|
|
463
500
|
}
|
|
464
501
|
|
|
465
502
|
const projectRoot = path.dirname(state.solyDir);
|
|
503
|
+
const arg = (cmd.args[0] ?? "").trim();
|
|
504
|
+
if (!arg) {
|
|
505
|
+
const known = state.phases.map((p) => p.number).join(", ") || "(none)";
|
|
506
|
+
return {
|
|
507
|
+
handled: true,
|
|
508
|
+
transformedText:
|
|
509
|
+
`soly discuss: argument required.\n` +
|
|
510
|
+
`Usage:\n` +
|
|
511
|
+
` soly discuss <N> — discuss phase N (legacy)\n` +
|
|
512
|
+
` soly discuss <type>/<name> — discuss plan <type>/<name> (e.g. feat/auth-jwt)\n` +
|
|
513
|
+
`Known phases: ${known}`,
|
|
514
|
+
};
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
// Plan mode: `<type>/<name>`
|
|
518
|
+
const planParsed = parsePlanName(arg);
|
|
519
|
+
if (!("error" in planParsed)) {
|
|
520
|
+
const planDirAbs = `${state.solyDir}/plans/${planParsed.name}`;
|
|
521
|
+
const planFile = `${planDirAbs}/PLAN.md`;
|
|
522
|
+
let planBody: string;
|
|
523
|
+
try {
|
|
524
|
+
planBody = fs.readFileSync(planFile, "utf-8");
|
|
525
|
+
} catch {
|
|
526
|
+
planBody = "_No PLAN.md yet._";
|
|
527
|
+
}
|
|
528
|
+
const instruction = `soly discuss ${arg} — interactive discussion mode for plan.
|
|
529
|
+
|
|
530
|
+
**Plan:** ${planParsed.name}
|
|
531
|
+
**Branch:** ${arg}
|
|
532
|
+
**PLAN.md:** ${planFile}
|
|
533
|
+
|
|
534
|
+
**Inline current PLAN.md body:**
|
|
535
|
+
\`\`\`markdown
|
|
536
|
+
${planBody.slice(0, 4000)}${planBody.length > 4000 ? "\n…(truncated)" : ""}
|
|
537
|
+
\`\`\`
|
|
538
|
+
|
|
539
|
+
**0-POINT CHECK.** Re-read .agents/docs/ (intent) before discussing.
|
|
540
|
+
|
|
541
|
+
Use \`soly_finish_discuss\` to capture the discussion outcome. The flow:
|
|
542
|
+
1. Read the plan above.
|
|
543
|
+
2. Identify ambiguities / open questions / scope clarifications.
|
|
544
|
+
3.${hasAskPro ? " Use \`ask_pro\` (batched freeText questions) to resolve them with the user." : " Ask the user ONE clear question at a time via the chat."}
|
|
545
|
+
4. Call \`soly_finish_discuss\` with the captured decision.
|
|
546
|
+
5. Tell the user the next step: \`soly plan ${arg}\` to update PLAN.md with the discussion outcome.`;
|
|
547
|
+
return { handled: true, transformedText: instruction };
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
// Phase mode (legacy)
|
|
466
551
|
const target = getPhaseForDiscuss(state, cmd.args);
|
|
467
552
|
if (!target) {
|
|
468
553
|
const known = state.phases.map((p) => p.number).join(", ") || "(none)";
|
|
469
554
|
return {
|
|
470
555
|
handled: true,
|
|
471
556
|
transformedText:
|
|
472
|
-
`soly discuss:
|
|
557
|
+
`soly discuss: bad argument "${arg}".\n` +
|
|
473
558
|
`Usage: soly discuss <N> (e.g. "soly discuss 11")\n` +
|
|
474
559
|
`Known phases: ${known}`,
|
|
475
560
|
};
|
|
@@ -594,7 +679,7 @@ soly_ask_user({
|
|
|
594
679
|
{ category: "<cat>", choice: "<what was chosen>", rationale: "<why>" },
|
|
595
680
|
...
|
|
596
681
|
],
|
|
597
|
-
canonical_refs: [".
|
|
682
|
+
canonical_refs: [".agents/docs/<file>", ".agents/ROADMAP.md", ...],
|
|
598
683
|
deferred_ideas: ["<scope creep for future phase>", ...],
|
|
599
684
|
codebase_context: ["src/components/Card.tsx — has rounded/shadow variants, reuse", ...],
|
|
600
685
|
})
|
|
@@ -608,7 +693,7 @@ soly_ask_user({
|
|
|
608
693
|
- ${hasAskPro ? "`ask_pro` — multi-question tabbed picker (PREFERRED)" : "`soly_ask_user` — single-question picker (fallback)"}
|
|
609
694
|
- \`soly_save_discuss_checkpoint\` — save partial progress (use after each answer)
|
|
610
695
|
- \`soly_finish_discuss\` — finalize: writes CONTEXT.md, deletes checkpoint
|
|
611
|
-
- \`soly_read\`, \`soly_snippet\`, \`soly_doc_search\` — read .
|
|
696
|
+
- \`soly_read\`, \`soly_snippet\`, \`soly_doc_search\` — read .agents/ artifacts as needed (intent docs are already in your system prompt)
|
|
612
697
|
- \`soly_log_decision\` — log to STATE.md Decisions table (use sparingly)
|
|
613
698
|
- Standard pi tools: \`read\`, \`bash\`, \`grep\`, \`find\` for codebase context
|
|
614
699
|
|
package/workflows/quick.ts
CHANGED
|
@@ -36,7 +36,7 @@ export function showStatus(
|
|
|
36
36
|
config?: SolyConfig,
|
|
37
37
|
): void {
|
|
38
38
|
if (!state.exists) {
|
|
39
|
-
ui.notify("soly: no .
|
|
39
|
+
ui.notify("soly: no .agents/ directory in cwd", "error");
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
42
|
const maxPhases = config?.display.maxPhasesInStatus ?? 20;
|
|
@@ -122,7 +122,7 @@ const DECISIONS_TABLE_ROW = /^\|\s*([^|]+)\s*\|\s*([^|]+)\s*\|\s*([^|]+)\s*\|\s*
|
|
|
122
122
|
|
|
123
123
|
export function showLog(cmd: SolyCommand, state: SolyState, ui: QuickUI): void {
|
|
124
124
|
if (!state.exists) {
|
|
125
|
-
ui.notify("soly log: no .
|
|
125
|
+
ui.notify("soly log: no .agents/ directory in cwd", "error");
|
|
126
126
|
return;
|
|
127
127
|
}
|
|
128
128
|
|
|
@@ -214,7 +214,7 @@ export async function showDiff(
|
|
|
214
214
|
state: SolyState,
|
|
215
215
|
ui: QuickUI,
|
|
216
216
|
): Promise<void> {
|
|
217
|
-
// Graceful without .
|
|
217
|
+
// Graceful without .agents/: use cwd as project root, skip the .agents/ filter
|
|
218
218
|
const projectRoot = state.solyDir ? path.dirname(state.solyDir) : process.cwd();
|
|
219
219
|
const solyDir = state.solyDir; // may be empty when run outside a soly project
|
|
220
220
|
|
|
@@ -222,7 +222,7 @@ export async function showDiff(
|
|
|
222
222
|
const status = await safeExec("git", ["status", "--short", "--branch"], projectRoot);
|
|
223
223
|
// 2. git diff (tracked changes, no untracked)
|
|
224
224
|
const diff = await safeExec("git", ["diff", "--stat"], projectRoot);
|
|
225
|
-
// 3. uncommitted .
|
|
225
|
+
// 3. uncommitted .agents/ file changes (since last commit)
|
|
226
226
|
const solyChanges = await safeExec(
|
|
227
227
|
"git",
|
|
228
228
|
["status", "--short", "--", solyDir],
|
|
@@ -230,7 +230,7 @@ export async function showDiff(
|
|
|
230
230
|
);
|
|
231
231
|
|
|
232
232
|
const out: string[] = [];
|
|
233
|
-
out.push(state.exists ? "=== soly diff ===" : "=== git diff (no .
|
|
233
|
+
out.push(state.exists ? "=== soly diff ===" : "=== git diff (no .agents/ in cwd) ===");
|
|
234
234
|
out.push("");
|
|
235
235
|
|
|
236
236
|
if (status.code !== 0) {
|
|
@@ -246,10 +246,10 @@ export async function showDiff(
|
|
|
246
246
|
}
|
|
247
247
|
if (solyDir) {
|
|
248
248
|
if (solyChanges.stdout.trim()) {
|
|
249
|
-
out.push("uncommitted .
|
|
249
|
+
out.push("uncommitted .agents/ changes:");
|
|
250
250
|
out.push(solyChanges.stdout.trim());
|
|
251
251
|
} else {
|
|
252
|
-
out.push("uncommitted .
|
|
252
|
+
out.push("uncommitted .agents/ changes: (none)");
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
}
|
package/workflows/resume.ts
CHANGED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
// session context from the last handoff.
|
|
8
8
|
//
|
|
9
9
|
// Reads:
|
|
10
|
-
// - .
|
|
11
|
-
// - .
|
|
10
|
+
// - .agents/HANDOFF.json (machine-readable state, written by pause/compact)
|
|
11
|
+
// - .agents/.continue-here.md (human-readable context, written by pause/compact)
|
|
12
12
|
//
|
|
13
13
|
// If neither file exists, falls back to a "no prior handoff" message that
|
|
14
|
-
// tells the LLM to load context from .
|
|
14
|
+
// tells the LLM to load context from .agents/STATE.md + ROADMAP.md normally.
|
|
15
15
|
// =============================================================================
|
|
16
16
|
|
|
17
17
|
import * as fs from "node:fs";
|
|
@@ -73,7 +73,7 @@ function formatListSection(label: string, items: string[] | undefined): string {
|
|
|
73
73
|
function formatHandoffSummary(h: HandoffJson): string {
|
|
74
74
|
const lines: string[] = [];
|
|
75
75
|
|
|
76
|
-
lines.push("=== From .
|
|
76
|
+
lines.push("=== From .agents/HANDOFF.json ===");
|
|
77
77
|
if (h.generated_at) lines.push(` generated_at: ${h.generated_at}`);
|
|
78
78
|
if (h.milestone) lines.push(` milestone: ${h.milestone}${h.milestone_name ? ` — ${h.milestone_name}` : ""}`);
|
|
79
79
|
if (h.status) lines.push(` status: ${h.status}`);
|
|
@@ -112,7 +112,7 @@ export function buildResumeTransform(cmd: SolyCommand, state: SolyState): Resume
|
|
|
112
112
|
return {
|
|
113
113
|
handled: true,
|
|
114
114
|
transformedText:
|
|
115
|
-
`soly resume: no .
|
|
115
|
+
`soly resume: no .agents/ directory in cwd (${state.solyDir || "<cwd>"}) — nothing to resume.\n` +
|
|
116
116
|
`Initialize a soly project first, or run \`soly pause\` later to create handoff files.`,
|
|
117
117
|
};
|
|
118
118
|
}
|
|
@@ -149,24 +149,24 @@ export function buildResumeTransform(cmd: SolyCommand, state: SolyState): Resume
|
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
if (!handoff && !continueMd) {
|
|
152
|
-
// No prior handoff — fall back to loading from .
|
|
152
|
+
// No prior handoff — fall back to loading from .agents/STATE.md directly.
|
|
153
153
|
const fallbackScope = phaseFilter != null
|
|
154
154
|
? `Focus: phase ${phaseFilter}.`
|
|
155
155
|
: "Scope: full project.";
|
|
156
156
|
return {
|
|
157
157
|
handled: true,
|
|
158
158
|
transformedText:
|
|
159
|
-
`soly resume: no handoff files found (looked for .
|
|
160
|
-
`No prior \`soly pause\` was run — loading context from .
|
|
159
|
+
`soly resume: no handoff files found (looked for .agents/HANDOFF.json and .agents/.continue-here.md).\n` +
|
|
160
|
+
`No prior \`soly pause\` was run — loading context from .agents/STATE.md and .agents/ROADMAP.md directly.\n\n` +
|
|
161
161
|
`${fallbackScope}\n\n` +
|
|
162
|
-
`Read .
|
|
162
|
+
`Read .agents/STATE.md (Current Position, Decisions, Blockers sections) and .agents/ROADMAP.md.\n` +
|
|
163
163
|
`Summarize: where the project is, what's next, what's blocking. Then ask the user what to focus on first.`,
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
const handoffBlock = handoff ? formatHandoffSummary(handoff) : "(no HANDOFF.json found)";
|
|
168
168
|
const continueBlock = continueMd
|
|
169
|
-
? `\n=== From .
|
|
169
|
+
? `\n=== From .agents/.continue-here.md ===\n${continueMd.trim()}\n`
|
|
170
170
|
: "";
|
|
171
171
|
|
|
172
172
|
const focusLine = phaseFilter != null
|
|
@@ -182,10 +182,10 @@ ${continueBlock}
|
|
|
182
182
|
|
|
183
183
|
=== Resume protocol ===
|
|
184
184
|
|
|
185
|
-
1. **Read .
|
|
186
|
-
2. Read .
|
|
187
|
-
3. Read .
|
|
188
|
-
4. Compare handoff's "work remaining" with the actual repo state (git status, recent commits, .
|
|
185
|
+
1. **Read .agents/docs/ first** — the project's 0-point intent. Pickup is meaningless without knowing what the user is building toward.
|
|
186
|
+
2. Read .agents/STATE.md to confirm current position (the handoff may be stale).
|
|
187
|
+
3. Read .agents/ROADMAP.md and any CONTEXT.md / RESEARCH.md for the active phase.
|
|
188
|
+
4. Compare handoff's "work remaining" with the actual repo state (git status, recent commits, .agents/ files).
|
|
189
189
|
5. Produce a one-screen "Where we are" summary:
|
|
190
190
|
- current phase + plan
|
|
191
191
|
- what's actually been done (verified via filesystem / git)
|
|
@@ -10,7 +10,7 @@ canonical CONTEXT.md. For design/architecture forks you may reach for
|
|
|
10
10
|
markdown is background context, not a strict protocol.</purpose>
|
|
11
11
|
|
|
12
12
|
<path_discipline>
|
|
13
|
-
**All soly-managed files live under `.
|
|
13
|
+
**All soly-managed files live under `.agents/`.** CONTEXT.md, RESEARCH.md, and the discuss checkpoint all go in `.agents/phases/<NN>-<slug>/`. Never write these to the project root. Use absolute paths.
|
|
14
14
|
|
|
15
15
|
The iteration context file (path given by the parent in the task prompt) is your single source of truth for intent, STATE, ROADMAP, and any existing phase artifacts. Read it FIRST.
|
|
16
16
|
</path_discipline>
|
|
@@ -36,7 +36,7 @@ The iteration context file (path given by the parent in the task prompt) is your
|
|
|
36
36
|
**Resume:** if a checkpoint file exists, the parent detects it and tells you to resume from where the prior session left off. Acknowledge locked decisions at the top of your output, then continue with the next un-answered gray area.
|
|
37
37
|
</interactive_flow>
|
|
38
38
|
|
|
39
|
-
<read_first>`.
|
|
39
|
+
<read_first>`.agents/docs/` (INTENT, 0-point) · `.agents/STATE.md` · `.agents/ROADMAP.md` · `${PHASE_DIR}/*-CONTEXT.md` if exists (refine, don't re-derive) · `${PHASE_DIR}/*-DISCUSS-CHECKPOINT.json` if exists (resume from `areas_completed`)</read_first>
|
|
40
40
|
|
|
41
41
|
<philosophy>
|
|
42
42
|
**User = visionary. Worker = builder.** The user knows: how it should feel, what's essential vs nice-to-have, specific references. The user doesn't know (don't ask): codebase patterns, technical risks, implementation approach, success metrics.
|
|
@@ -90,7 +90,7 @@ PHASE=$1
|
|
|
90
90
|
# Worker subagent inherits the parent's cwd (the project root), so
|
|
91
91
|
# `pwd` IS the project root. The previous `cd .. && pwd` was a bug.
|
|
92
92
|
PROJECT_ROOT="$(pwd)"
|
|
93
|
-
SOLY_DIR="$PROJECT_ROOT/.
|
|
93
|
+
SOLY_DIR="$PROJECT_ROOT/.agents"
|
|
94
94
|
PHASE_DIR=$(ls -d "$SOLY_DIR/phases/"*"-$PHASE-"* 2>/dev/null | head -1) || { echo "Phase $PHASE not found" >&2; exit 1; }
|
|
95
95
|
PADDED_PHASE=$(printf "%02d" "$(echo "$PHASE" | grep -oE '^[0-9]+' | sed 's/^0*//')")
|
|
96
96
|
PHASE_SLUG=$(basename "$PHASE_DIR")
|
|
@@ -137,7 +137,7 @@ If you cannot answer from `.continue-here.md`, return `## Clarifications Needed`
|
|
|
137
137
|
[ -f "$SOLY_DIR/DECISIONS-INDEX.md" ] && echo "DECISIONS-INDEX.md (prefer over per-phase if present)"
|
|
138
138
|
```
|
|
139
139
|
|
|
140
|
-
Most-recent 3 prior `*-CONTEXT.md` files (prefer DECISIONS-INDEX if present). Extract `<decisions>`, `<specifics>`, and patterns (e.g., "user prefers minimal UI"). If `.
|
|
140
|
+
Most-recent 3 prior `*-CONTEXT.md` files (prefer DECISIONS-INDEX if present). Extract `<decisions>`, `<specifics>`, and patterns (e.g., "user prefers minimal UI"). If `.agents/spikes/MANIFEST.md` or `.agents/sketches/MANIFEST.md` exist with `WRAPPED: true` frontmatter, read as validated findings.
|
|
141
141
|
|
|
142
142
|
**6. Cross-reference todos.** (Worker doesn't have `soly_todos`; use `bash` + `grep` with phase-domain keywords.)
|
|
143
143
|
|
|
@@ -217,9 +217,9 @@ Requirements locked by SPEC.md. Do not re-litigate.
|
|
|
217
217
|
</decisions>
|
|
218
218
|
|
|
219
219
|
<canonical_refs> <!-- MANDATORY -->
|
|
220
|
-
- `.
|
|
221
|
-
- `.
|
|
222
|
-
- `.
|
|
220
|
+
- `.agents/docs/<file>` — <why>
|
|
221
|
+
- `.agents/features/<feat>/README.md` — <why>
|
|
222
|
+
- `.agents/contracts/<file>` — <why>
|
|
223
223
|
- (no external docs referenced) <!-- only if literally none -->
|
|
224
224
|
</canonical_refs>
|
|
225
225
|
|
|
@@ -289,8 +289,8 @@ Update after every round. Delete after `write_context` succeeds.
|
|
|
289
289
|
<hard_rules>
|
|
290
290
|
- No production code. Discussion/planning only.
|
|
291
291
|
- No PLAN.md from this workflow — that's `soly plan`.
|
|
292
|
-
- Don't assume missing intent. If `.
|
|
292
|
+
- Don't assume missing intent. If `.agents/docs/` is silent, ask.
|
|
293
293
|
- No scope creep. Deferred ideas → `<deferred_ideas>`, not decisions.
|
|
294
|
-
- No subagents (you ARE one). No `.
|
|
294
|
+
- No subagents (you ARE one). No `.agents/rules/` edits.
|
|
295
295
|
- Return: structured output per output_protocol + checkpoint updates. Parent relays to user.
|
|
296
296
|
</hard_rules>
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
<purpose>Execute all plans in a phase, wave by wave. Per plan, follow `execute-plan.md` inline. Update STATE.md between plans. Generate a phase-level VERIFICATION.md at the end. You ARE the executor (`maxSubagentDepth: 1` is enforced — no sub-sub-agents). Checkpoint requests return a structured block; parent relays to user; next `soly execute <N>` resumes from `.execute-checkpoint.json`.</purpose>
|
|
4
4
|
|
|
5
5
|
<path_discipline>
|
|
6
|
-
**All soly-managed files live under `.
|
|
6
|
+
**All soly-managed files live under `.agents/`.** Never write PLAN.md, CONTEXT.md, RESEARCH.md, SUMMARY.md, iteration files, or handoffs to the project root. All phase files go in `.agents/phases/<NN>-<slug>/`. Use absolute paths (or paths starting with `$SOLY_DIR`) — never bare relative names that could land in cwd.
|
|
7
7
|
|
|
8
8
|
The iteration context file (path given by the parent in the task prompt) is your single source of truth for intent, STATE, ROADMAP, and any existing phase artifacts. Read it FIRST, before any of your own `read` or `ls` calls.
|
|
9
9
|
</path_discipline>
|
|
10
10
|
|
|
11
|
-
<read_first>`.
|
|
11
|
+
<read_first>`.agents/STATE.md` (single source of truth for "where am I") · `.agents/ROADMAP.md` (phase goal + reqs) · `.agents/docs/` (INTENT, re-read before each plan) · the phase directory: list PLAN.md sorted, plus any SUMMARY.md / CONTEXT.md / RESEARCH.md / `.execute-checkpoint.json`. If `.agents/` missing → stop + error.</read_first>
|
|
12
12
|
|
|
13
13
|
<core_principle>
|
|
14
14
|
**Orchestrate, don't re-specify.** Each PLAN.md is the contract; `execute-plan.md` is the per-plan protocol. This file adds: wave grouping, state transitions between plans, phase-level aggregation (VERIFICATION.md), safe resumption from partial state. The full per-plan steps live in `execute-plan.md` — read it once, then apply per plan.
|
|
@@ -28,7 +28,7 @@ PHASE="$1"
|
|
|
28
28
|
# would fall back to the `write` tool with a relative path, polluting
|
|
29
29
|
# the project root).
|
|
30
30
|
PROJECT_ROOT="$(pwd)"
|
|
31
|
-
SOLY_DIR="$PROJECT_ROOT/.
|
|
31
|
+
SOLY_DIR="$PROJECT_ROOT/.agents"
|
|
32
32
|
PHASE_DIR=$(ls -d "$SOLY_DIR/phases/"*"-$PHASE-"* 2>/dev/null | head -1) || { echo "Phase $PHASE not found" >&2; exit 1; }
|
|
33
33
|
PADDED_PHASE=$(printf "%02d" "$(echo "$PHASE" | grep -oE '^[0-9]+' | sed 's/^0*//')")
|
|
34
34
|
PHASE_SLUG=$(basename "$PHASE_DIR")
|
|
@@ -190,7 +190,7 @@ phase: <N> phase_slug: <slug> status: pending generated: <ISO>
|
|
|
190
190
|
</process>
|
|
191
191
|
|
|
192
192
|
<hard_rules>
|
|
193
|
-
- No `.
|
|
193
|
+
- No `.agents/rules/` edits. No subagents (`maxSubagentDepth: 1`).
|
|
194
194
|
- No silent skip of partial-state plans — surface and stop.
|
|
195
195
|
- No flipping VERIFICATION.md to `passed` yourself.
|
|
196
196
|
- No silent architectural decisions — use `execute-plan.md`'s Rule 4 + checkpoint.
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
<purpose>Execute one PLAN.md, produce a matching SUMMARY.md, update STATE.md/ROADMAP.md. Single worker — no sub-subagents.</purpose>
|
|
4
4
|
|
|
5
5
|
<path_discipline>
|
|
6
|
-
**All soly-managed files live under `.
|
|
6
|
+
**All soly-managed files live under `.agents/`.** Never write PLAN.md, CONTEXT.md, RESEARCH.md, SUMMARY.md, iteration files, or handoffs to the project root. All phase files go in `.agents/phases/<NN>-<slug>/`. Use absolute paths (or paths starting with `$SOLY_DIR`) — never bare relative names that could land in cwd.
|
|
7
7
|
|
|
8
8
|
The iteration context file (path given by the parent in the task prompt) is your single source of truth for intent, STATE, ROADMAP, phase CONTEXT/RESEARCH, prior SUMMARYs, and (section 6) the current PLAN. Read it FIRST.
|
|
9
9
|
</path_discipline>
|
|
10
10
|
|
|
11
|
-
<read_first>`.
|
|
11
|
+
<read_first>`.agents/STATE.md` · `.agents/ROADMAP.md` · `PLAN.md` (the contract) · `<phase>-CONTEXT.md` if exists (honor user decisions) · `<phase>-RESEARCH.md` if exists (use chosen libs/patterns). If `.agents/` missing → stop + error.</read_first>
|
|
12
12
|
|
|
13
13
|
<atomic_close_out>
|
|
14
14
|
**Only legal close-out order:** `production-code commit(s) → SUMMARY commit → STATE/ROADMAP update`.
|
|
@@ -24,7 +24,7 @@ PHASE="$1"; PLAN="$2" # PLAN optional — defaults to next unfinished
|
|
|
24
24
|
# Worker subagent inherits the parent's cwd (the project root), so
|
|
25
25
|
# `pwd` IS the project root. The previous `cd .. && pwd` was a bug.
|
|
26
26
|
PROJECT_ROOT="$(pwd)"
|
|
27
|
-
SOLY_DIR="$PROJECT_ROOT/.
|
|
27
|
+
SOLY_DIR="$PROJECT_ROOT/.agents"
|
|
28
28
|
PHASE_DIR=$(ls -d "$SOLY_DIR/phases/"*"-$PHASE-"* 2>/dev/null | head -1) || { echo "Phase $PHASE not found" >&2; exit 1; }
|
|
29
29
|
PADDED_PHASE=$(printf "%02d" "$(echo "$PHASE" | grep -oE '^[0-9]+' | sed 's/^0*//')")
|
|
30
30
|
PHASE_SLUG=$(basename "$PHASE_DIR")
|
|
@@ -60,7 +60,7 @@ PARTIAL_PLAN=$([ "$COMMIT_COUNT" -gt 0 ] && [ "$SUMMARY_EXISTS" = false ] && ech
|
|
|
60
60
|
**5. Execute tasks in order.** Per task:
|
|
61
61
|
|
|
62
62
|
1. **Read first** — open every `<read_first>` file.
|
|
63
|
-
2. **Implement** — minimal correct change, follow project patterns. No speculative scaffolding. No `.
|
|
63
|
+
2. **Implement** — minimal correct change, follow project patterns. No speculative scaffolding. No `.agents/rules/` edits.
|
|
64
64
|
3. **Verify acceptance criteria (HARD GATE):**
|
|
65
65
|
- Run the grep/file-check/CLI for each criterion in `<acceptance_criteria>`.
|
|
66
66
|
- Log PASS/FAIL with output. If ANY fails → fix immediately, re-run ALL.
|
|
@@ -123,7 +123,7 @@ Can't talk to user directly. Stop, return structured block, parent relays.
|
|
|
123
123
|
|
|
124
124
|
**9. Pre-commit hook failure:**
|
|
125
125
|
1. `git commit` fails with hook error. 2. Read error — names hook + what failed. 3. Fix (type/lint/secret). 4. `git add` fixed. 5. Retry. 6. Budget 1–2 cycles per commit. If still failing → `type: "human-action"` checkpoint with hook output.
|
|
126
|
-
**Do NOT use `--no-verify`** unless project's `.
|
|
126
|
+
**Do NOT use `--no-verify`** unless project's `.agents/docs/` or ROADMAP.md explicitly opts out.
|
|
127
127
|
|
|
128
128
|
**10. Verification failure gate:** 1st retry (hooks flake) → 2nd retry (fix obvious cause) → 3rd retry (apply deviation rules) → 3+ fails → `type: "decision"` checkpoint, STOP.
|
|
129
129
|
|
|
@@ -212,7 +212,7 @@ git commit -m "chore(${PADDED_PHASE}-${PLAN_NUM}): complete plan <N>"
|
|
|
212
212
|
- Bump `current_plan` in "Current Position".
|
|
213
213
|
- Add `key-decisions` to "Decisions" table (skip if trivial).
|
|
214
214
|
- Update `last_updated`.
|
|
215
|
-
- Keep < 150 lines — archive long-form to `.
|
|
215
|
+
- Keep < 150 lines — archive long-form to `.agents/DECISIONS-INDEX.md` if it grows.
|
|
216
216
|
|
|
217
217
|
**Update ROADMAP.md** — phase's progress row: increment completed plan count; status → `In Progress` (more plans) or `Complete` (last) with date.
|
|
218
218
|
|
|
@@ -222,7 +222,7 @@ git commit -m "chore(${PADDED_PHASE}-${PLAN_NUM}): complete plan <N>"
|
|
|
222
222
|
REQUIREMENTS=$(grep -A1 "^requirements:" "$PLAN_PATH" | tail -1 | sed -E 's/.*\[([^]]+)\].*/\1/' | tr ',' ' ')
|
|
223
223
|
```
|
|
224
224
|
|
|
225
|
-
For each ID, find line in `.
|
|
225
|
+
For each ID, find line in `.agents/REQUIREMENTS.md`, flip status to `Complete`.
|
|
226
226
|
|
|
227
227
|
**15. Return:**
|
|
228
228
|
|
|
@@ -241,7 +241,7 @@ For each ID, find line in `.soly/REQUIREMENTS.md`, flip status to `Complete`.
|
|
|
241
241
|
</process>
|
|
242
242
|
|
|
243
243
|
<hard_rules>
|
|
244
|
-
- No `.
|
|
244
|
+
- No `.agents/rules/` edits. No `.agents/docs/` edits without explicit user decision in conversation.
|
|
245
245
|
- No subagents (you ARE one). `maxSubagentDepth: 1` is enforced.
|
|
246
246
|
- **Never skip `<acceptance_criteria>` HARD GATE.** Not optional.
|
|
247
247
|
- **Never emit narrative between SUMMARY `write` and `git commit`** (truncation is a known failure mode).
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# Execute Task
|
|
2
2
|
|
|
3
|
-
<purpose>Execute ONE task (atomic unit — a feature slice, one endpoint, one page, one contract wire). Produce SUMMARY.md. Tasks live under `.
|
|
3
|
+
<purpose>Execute ONE task (atomic unit — a feature slice, one endpoint, one page, one contract wire). Produce SUMMARY.md. Tasks live under `.agents/features/<feature>/tasks/<task-id>/` with PLAN.md as the contract.</purpose>
|
|
4
4
|
|
|
5
5
|
<path_discipline>
|
|
6
|
-
**All soly-managed files live under `.
|
|
6
|
+
**All soly-managed files live under `.agents/`.** Never write PLAN.md, SUMMARY.md, iteration files, or handoffs to the project root. Task files go in `.agents/features/<feature>/tasks/<task-id>/`. Use absolute paths — never bare relative names that could land in cwd.
|
|
7
7
|
|
|
8
8
|
The iteration context file (path given by the parent in the task prompt) is your single source of truth for intent, STATE, the feature README, prior task SUMMARYs, and the current task PLAN. Read it FIRST.
|
|
9
9
|
</path_discipline>
|
|
10
10
|
|
|
11
|
-
<read_first>`.
|
|
11
|
+
<read_first>`.agents/STATE.md` · `.agents/docs/` (INTENT, 0-point) · `.agents/features/<feature>/README.md` · `PLAN.md` (the contract) · `.agents/contracts/*` if PLAN.md references it. If `.agents/features/` or task dir missing → error + stop, do not invent paths.</read_first>
|
|
12
12
|
|
|
13
13
|
<task_frontmatter>
|
|
14
14
|
PLAN.md frontmatter (executor must respect all fields; **flag** incomplete ones in your report, don't silently fill):
|
|
@@ -46,13 +46,13 @@ STATUS=$(awk '/^---$/{c++; next} c==1{print}' "$TASK_DIR/PLAN.md" | grep -E '^st
|
|
|
46
46
|
|
|
47
47
|
If not → return `## Blocker` to parent, stop. Do NOT start a blocked task.
|
|
48
48
|
|
|
49
|
-
**2. Read intent + feature context.** **0-POINT CHECK** — the iteration context file (path given in the task prompt) already contains the intent docs as a summary, the feature README, prior task SUMMARYs, and the current task PLAN. Use that. If intent and PLAN.md conflict, flag it. Read `.
|
|
49
|
+
**2. Read intent + feature context.** **0-POINT CHECK** — the iteration context file (path given in the task prompt) already contains the intent docs as a summary, the feature README, prior task SUMMARYs, and the current task PLAN. Use that. If intent and PLAN.md conflict, flag it. Read `.agents/contracts/*` (if it exists) only if the task touches API surfaces.
|
|
50
50
|
|
|
51
51
|
**3. Execute** with standard worker self-audit:
|
|
52
52
|
|
|
53
53
|
1. Write code.
|
|
54
54
|
2. Run build / typecheck / lint — **0 warnings**.
|
|
55
|
-
3. Cross-check diff against `.
|
|
55
|
+
3. Cross-check diff against `.agents/rules/coding/*` (or `.editorconfig`).
|
|
56
56
|
4. **Rule gap?** Invoke the project's rule-authoring skill (`analyzer-coach` or equivalent) — it proposes an `.editorconfig` entry, a coding-rule doc addition, or a custom-analyzer rule. Loop until clean, max 3 iterations.
|
|
57
57
|
5. Commit production-code changes (one or more commits).
|
|
58
58
|
|
|
@@ -101,7 +101,7 @@ You may combine into one commit, but the SUMMARY must be on disk before the fron
|
|
|
101
101
|
</process>
|
|
102
102
|
|
|
103
103
|
<hard_rules>
|
|
104
|
-
- No `.
|
|
104
|
+
- No `.agents/rules/` edits. No subagents (you ARE one).
|
|
105
105
|
- No starting tasks with un-`done` `depends-on:`.
|
|
106
106
|
- If rule gap → add via the rule-authoring skill. **No silent workarounds** (`#pragma`, `severity = none`).
|
|
107
107
|
- Return: changed files, commands + exit codes, validation evidence, surprises, decisions needing parent approval.
|
|
@@ -112,5 +112,5 @@ You may combine into one commit, but the SUMMARY must be on disk before the fron
|
|
|
112
112
|
</interactive_rules_out_of_scope>
|
|
113
113
|
|
|
114
114
|
<dual_mode_note>
|
|
115
|
-
Project may also have `.
|
|
115
|
+
Project may also have `.agents/phases/` (phase-based layout, distinct from task-based). You are only responsible for this task. Don't touch phases. Don't modify ROADMAP.md or STATE.md beyond what your close-out requires (typically nothing for tasks — the parent updates those).
|
|
116
116
|
</dual_mode_note>
|