From 1f863ac1faf60a85e1b30f4ef74ff7331c651458 Mon Sep 17 00:00:00 2001 From: "copilot-dreamer[bot]" <310654851+Copilot Dreamer@users.noreply.github.com> Date: Tue, 1 Dec 2026 22:15:11 +0000 Subject: [PATCH 1/4] [Copilot Dreaming] Explain when clarification answers become durable Accepted answers risk remaining only in working memory when the questioning loop advances before integration. Naming the per-answer save and validation checkpoint in the package overview makes that safeguard visible to maintainers evaluating Full SDD. https://github.com/github/spec-kit-copilot/blob/37fb940ee89ca72985ab8c9d4058d5183aa49c45/spec-kit-presets/copilot-full-sdd/commands/speckit.clarify.md#L147-L171 --- spec-kit-presets/copilot-full-sdd/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec-kit-presets/copilot-full-sdd/README.md b/spec-kit-presets/copilot-full-sdd/README.md index 0029efe9..a155b9e9 100644 --- a/spec-kit-presets/copilot-full-sdd/README.md +++ b/spec-kit-presets/copilot-full-sdd/README.md @@ -14,7 +14,9 @@ before writing files, uses the resolved template only for new specs, preserves unrelated content in an explicitly selected existing spec, and sets the active feature only after saving the spec. Its quality checklist and validation flow remain unchanged. The `converge` command also avoids appending work already -covered by unchecked tasks. Script metadata and portable command references +covered by unchecked tasks. The `clarify` command integrates, saves, and validates +each accepted answer before asking the next question. Script metadata and +portable command references remain for Specify to render for the project. This is a Specify preset, not a `copilot plugin` package. From e63a4cd7fcbf2dc1a64da1fb8a1f177b51b8ebbc Mon Sep 17 00:00:00 2001 From: "copilot-dreamer[bot]" <310654851+Copilot Dreamer@users.noreply.github.com> Date: Tue, 1 Dec 2026 22:15:11 +0000 Subject: [PATCH 2/4] [Copilot Dreaming] Explain clarification provenance without an exact-match claim Maintainers could expect the clarified question loop to remain byte-identical to the hook-stripped upstream command. Distinguishing its reviewed downstream body from the six exact-match commands keeps the source-comparison instructions accurate. The existing comparison mechanism supports checking the upstream baseline and reviewed body separately. https://github.com/github/spec-kit-copilot/blob/37fb940ee89ca72985ab8c9d4058d5183aa49c45/spec-kit-presets/tests/test_full_sdd.py#L139-L177 --- spec-kit-presets/copilot-full-sdd/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec-kit-presets/copilot-full-sdd/README.md b/spec-kit-presets/copilot-full-sdd/README.md index a155b9e9..134d5d8d 100644 --- a/spec-kit-presets/copilot-full-sdd/README.md +++ b/spec-kit-presets/copilot-full-sdd/README.md @@ -118,9 +118,9 @@ each preset with its own compatible CLI. Leaving `FULL_SPECIFY_BIN` unset skips only Full's real-CLI checks, even when `SPECIFY_BIN` is set for Lean. Set `FULL_PRESET_ARCHIVE` to a local release zip for archive verification. Set `FULL_CORE_SOURCE` to a checkout of the pinned Spec Kit source for -source comparison against pinned Git blob IDs. Seven commands must exactly match +source comparison against pinned Git blob IDs. Six commands must exactly match core with only the enumerated hook-related deletions and no added bytes. For -`specify` and `converge`, the tests verify both the hook-stripped upstream +`specify`, `clarify`, and `converge`, the tests verify both the hook-stripped upstream baseline and the reviewed downstream version. The `specify` quality workflow must still match core exactly. Digest, source, and archive comparisons use the same CRLF-to-LF From ecf087288273b420c14adc57b07059f72908d583 Mon Sep 17 00:00:00 2001 From: "copilot-dreamer[bot]" <310654851+Copilot Dreamer@users.noreply.github.com> Date: Tue, 1 Dec 2026 22:15:11 +0000 Subject: [PATCH 3/4] [Copilot Dreaming] Remove deferred writes from the clarification loop Copilot could advance to another question before saving an accepted answer because the loop contradicts its own integration steps. Completing those steps before advancing removes that ambiguity and reduces the risk of losing accepted clarifications. The removed deferred-write direction applies nowhere afterward; working-memory recording, per-answer saving and validation remain in the same command. https://github.com/github/spec-kit-copilot/blob/37fb940ee89ca72985ab8c9d4058d5183aa49c45/spec-kit-presets/copilot-full-sdd/commands/speckit.clarify.md#L147-L171 --- spec-kit-presets/copilot-full-sdd/commands/speckit.clarify.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec-kit-presets/copilot-full-sdd/commands/speckit.clarify.md b/spec-kit-presets/copilot-full-sdd/commands/speckit.clarify.md index a35eae87..17505658 100644 --- a/spec-kit-presets/copilot-full-sdd/commands/speckit.clarify.md +++ b/spec-kit-presets/copilot-full-sdd/commands/speckit.clarify.md @@ -136,7 +136,7 @@ Execution steps: - If the user replies with "yes", "recommended", or "suggested", use your previously stated recommendation/suggestion as the answer. - Otherwise, validate the answer maps to one option or fits the <=5 word constraint. - If ambiguous, ask for a quick disambiguation (count still belongs to same question; do not advance). - - Once satisfactory, record it in working memory (do not yet write to disk) and move to the next queued question. + - Once satisfactory, record the answer in working memory, then complete steps 6–7 (integrate, save, and validate it) before moving to the next queued question. - Stop asking further questions when: - All critical ambiguities resolved early (remaining queued items become unnecessary), OR - User signals completion ("done", "good", "no more"), OR From f088120ab33149ed1f570a4cf06eb6a792532e7b Mon Sep 17 00:00:00 2001 From: "copilot-dreamer[bot]" <310654851+Copilot Dreamer@users.noreply.github.com> Date: Tue, 1 Dec 2026 22:15:11 +0000 Subject: [PATCH 4/4] [Copilot Dreaming] Preserve upstream provenance for the clarification safeguard The sequencing safeguard makes clarify a reviewed downstream variant, so requiring its body to equal the hook-stripped upstream command would reject the intended change. The existing exception map checks both upstream provenance and the reviewed body, allowing the two fingerprints to remain protected. Exact byte equality still applies to commands outside that map. https://github.com/github/spec-kit-copilot/blob/37fb940ee89ca72985ab8c9d4058d5183aa49c45/spec-kit-presets/tests/test_full_sdd.py#L139-L177 --- spec-kit-presets/tests/test_full_sdd.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spec-kit-presets/tests/test_full_sdd.py b/spec-kit-presets/tests/test_full_sdd.py index e46d63ca..56d434b2 100644 --- a/spec-kit-presets/tests/test_full_sdd.py +++ b/spec-kit-presets/tests/test_full_sdd.py @@ -27,11 +27,11 @@ "hooks.before_", "hooks.after_", "Extension Hooks", "Mandatory Post-Execution Hooks", "before_specify", ) -# Reviewed command bodies: hook-stripped core, plus the specify and converge safeguards. +# Reviewed command bodies: hook-stripped core, plus specify, clarify, and converge safeguards. REVIEWED_SHA256 = { "constitution": "775a220b62d7d59b8740df9f01b36465478cea511e619d21ae3d558599946143", "specify": "bb1543d4527e9edf336fca129277eeb40c76a52ee2980a5ce0366ae131cb76ce", - "clarify": "dcae481e2a2934576ee9ba8278c37b6d911d423b2087fbd456b48d8619ba21c6", + "clarify": "04c77991cf14680ad15e052213ad1cc00fd1959a7a2848e7a3ec66771f52e391", "plan": "018293a3440991384ff13b7c5b1bc328d652296fa6304db8c5ad93f9df31605f", "tasks": "acd75ba6d4a46704cd2fea7a05bb7578533a9e0b283b14c6140a28c8cd0a22a6", "analyze": "e03e7c94a7253d2537fab197e5f2365a7ed9b9cdc6ef8fbec9d3c2663a7c9588", @@ -40,6 +40,7 @@ "converge": "68948b28e9ee57861e1c052bb30a4fdc9846fa40f97b621d6ed31e01984a4a98", } HOOK_STRIPPED_BASELINE_SHA256 = { + "clarify": "dcae481e2a2934576ee9ba8278c37b6d911d423b2087fbd456b48d8619ba21c6", "specify": "090c4af532316e6529373e722d7957bec2f27cd74b3f18d525fdbeeaa1aae320", "converge": "2a3cbec425ccf205e7d048f0629584f0d3242d2b92402da196a0c3022198c79e", }