From 22109cee6a26ff70d9dcc9c3d3755f0736761cdd Mon Sep 17 00:00:00 2001 From: Mikael Hugo Date: Sun, 3 May 2026 00:22:54 +0200 Subject: [PATCH] docs(sf): escalation.ts header lists carry-forward + memory persistence The header listed "artifact I/O, detection, flag flips, resolution" but not the carry-forward injection (claimOverrideForInjection / formatOverrideBlock) or the memory persistence calls now embedded in both writeEscalationArtifact (continueWithDefault path, b9bff3762 sibling) and resolveEscalation (00c13bc5a). These are load-bearing behaviors a contributor should know up front. Also folded the "SF's local ADR-011 is 'Swarm Chat'" disambiguation note into the header (matches the convention the rest of the disambiguation sweep set). Co-Authored-By: Claude Opus 4.7 (1M context) --- src/resources/extensions/sf/escalation.ts | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/resources/extensions/sf/escalation.ts b/src/resources/extensions/sf/escalation.ts index 9e198343e..eb120c7fc 100644 --- a/src/resources/extensions/sf/escalation.ts +++ b/src/resources/extensions/sf/escalation.ts @@ -1,8 +1,15 @@ -// SF Extension — ADR-011 Phase 2 Mid-Execution Escalation (gsd-2 ADR) +// SF Extension — gsd-2 ADR-011 Phase 2 Mid-Execution Escalation // -// Owns: artifact I/O (read/build/write), detection, producer-side flag flips, -// and user-facing resolution. The reject-blocker choice from gsd-2 is -// deferred — needs a blocker_source column SF doesn't yet have. +// Owns: artifact I/O (read/build/write), detection, producer-side flag +// flips, user-facing resolution, carry-forward injection (claim/format), +// and memory persistence — every successful escalation flow (resolve, +// auto-accept, continueWithDefault) deposits a "[escalation:T##] ..." +// memory in the architecture category so the choice + rationale flows +// into downstream prompts via getRelevantMemoriesRanked. +// +// SF's local ADR-011 is "Swarm Chat and Debate Mode" — unrelated. +// The reject-blocker choice from gsd-2 is deferred — needs a +// blocker_source column SF doesn't yet have. import { existsSync, mkdirSync, readFileSync } from "node:fs"; import { dirname, join } from "node:path";