From af2f86c3c2bffd851e70702ca4508eaaf83d6873 Mon Sep 17 00:00:00 2001 From: Mikael Hugo Date: Sat, 16 May 2026 13:10:15 +0200 Subject: [PATCH] sf snapshot: uncommitted changes after 827m inactivity --- src/resources/extensions/sf/auto-prompts.js | 23 +++---------------- .../extensions/sf/prompts/forensics.md | 2 +- 2 files changed, 4 insertions(+), 21 deletions(-) diff --git a/src/resources/extensions/sf/auto-prompts.js b/src/resources/extensions/sf/auto-prompts.js index 1f6cd4113..a88bc925b 100644 --- a/src/resources/extensions/sf/auto-prompts.js +++ b/src/resources/extensions/sf/auto-prompts.js @@ -2109,30 +2109,13 @@ export async function buildExecuteTaskPrompt( // Only include knowledge if it has content (not a "not found" result) // #4782 phase 3: knowledge and graph moved to composer computed registry. // The composer produces inline blocks including the computed knowledge/graph entries. + // Note: slice-plan and task-plan are returned as null from the resolver — they + // are already passed as separate template variables ({{taskPlanInline}}, {{slicePlanExcerpt}}) + // and adding them to the composer would render them twice. const { inline: composedInlines } = await composeUnitContext("execute-task", { base, resolveArtifact: async (key) => { switch (key) { - case "task-plan": - return taskPlanContent - ? [ - "## Inlined Task Plan (authoritative local execution contract)", - `Source: \`${taskPlanRelPath}\``, - "", - taskPlanContent.trim(), - ].join("\n") - : [ - "## Inlined Task Plan (authoritative local execution contract)", - `Task plan not found at dispatch time. Read \`${taskPlanRelPath}\` before executing.`, - ].join("\n"); - case "slice-plan": { - return slicePlanContent - ? extractSliceExecutionExcerpt( - slicePlanContent, - relSliceFile(base, mid, sid, "PLAN"), - ) - : null; - } case "prior-task-summaries": { if (priorSummaries.length === 0) return null; const lines = priorSummaries.map((p) => `- \`${p}\``).join("\n"); diff --git a/src/resources/extensions/sf/prompts/forensics.md b/src/resources/extensions/sf/prompts/forensics.md index 84c071227..b033eb1fc 100644 --- a/src/resources/extensions/sf/prompts/forensics.md +++ b/src/resources/extensions/sf/prompts/forensics.md @@ -21,7 +21,7 @@ SF extension source code is at: `{{sfSourceDir}}` | **Forensics & recovery** | `forensics.ts` `session-forensics.ts` `crash-recovery.ts` `session-lock.ts` | | **Metrics & telemetry** | `metrics.ts` `skill-telemetry.ts` `token-counter.ts` | | **Health & diagnostics** | `doctor.ts` `doctor-types.ts` `doctor-checks.ts` `doctor-format.ts` `doctor-environment.ts` | -| **Prompts & context** | `prompt-loader.ts` `prompt-cache-optimizer.ts` `context-budget.ts` | +| **Prompts & context** | `prompt-loader.ts` `context-budget.ts` | | **Git & worktrees** | `git-service.ts` `worktree.ts` `worktree-manager.ts` `git-self-heal.ts` | | **Commands** | `commands.ts` `commands-inspect.ts` `commands-maintenance.ts` |