From 5f6f2e2531517acf97520f22b110ea41fb06540d Mon Sep 17 00:00:00 2001 From: Wayner Barrios Date: Mon, 27 Jul 2026 15:08:31 -0400 Subject: [PATCH] Preserve incomplete workflow coverage --- skills/feature-dev/SKILL.md | 5 ++++- tests/feature-dev-orchestration.test.mjs | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/skills/feature-dev/SKILL.md b/skills/feature-dev/SKILL.md index dc95174..5deece7 100644 --- a/skills/feature-dev/SKILL.md +++ b/skills/feature-dev/SKILL.md @@ -47,6 +47,8 @@ Require each child response to start with `Status: complete | partial | blocked` Maintain a coverage ledger containing assignment, focus, status (`pending | valid | blocked | failed | local-fallback`), dispatch count, resume count, retry count, evidence received, uncovered items, and fallback action. +Any uncovered scope must remain non-valid until recovered or completed through parent fallback. Never convert missing coverage into a valid result; carry any unresolved coverage into the final summary. + Use this recovery order: 1. Dispatch independent assignments in parallel. @@ -145,9 +147,10 @@ Goal: Ensure the code is simple, DRY, elegant, readable, and correct. Goal: Document what was accomplished. -1. Mark all todos complete. +1. Mark only completed todos complete; leave todos tied to unresolved coverage incomplete. 2. Summarize: - What was built - Key decisions made - Files modified + - Unresolved coverage and its impact - Suggested next steps diff --git a/tests/feature-dev-orchestration.test.mjs b/tests/feature-dev-orchestration.test.mjs index 5111947..53dec1d 100644 --- a/tests/feature-dev-orchestration.test.mjs +++ b/tests/feature-dev-orchestration.test.mjs @@ -42,6 +42,12 @@ test("feature-dev captures the complete before-state before implementation", () assert.match(feature, /implementation delta/i); }); +test("feature-dev never converts missing coverage into a clean result", () => { + assert.match(feature, /uncovered scope.*remain.*non-valid.*recovered.*parent fallback/is); + assert.match(feature, /unresolved coverage.*final summary/is); + assert.doesNotMatch(feature, /mark all todos complete/i); +}); + test("explorer and architect implement the feature-dev handoff", () => { for (const [name, skill] of [["code-explorer", explorer], ["code-architect", architect]]) { assert.match(skill, /Feature-dev handoff contract/i, name);