{"id":7152,"date":"2026-09-26T14:57:59","date_gmt":"2026-09-26T19:57:59","guid":{"rendered":"https:\/\/ykim.synology.me\/wordpress\/spec-driven-development-7152\/"},"modified":"2026-09-28T14:11:28","modified_gmt":"2026-09-28T19:11:28","slug":"spec-driven-development","status":"publish","type":"post","link":"https:\/\/ykim.synology.me\/wordpress\/spec-driven-development-7152\/","title":{"rendered":"Spec-Driven Development (SDD)"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/github.com\/yBarn1\/Images\/blob\/main\/sporting-goods-stores\/dicks-store-entrance-longhorns-floor-angle.jpg?raw=true\" alt=\"\" style=\"width:auto;height:500px\"\/><\/figure>\n\n\n<p><div class=\"github-readme-container markdown-body\"><div id=\"file\" class=\"md\" data-path=\"AIOps\/SDD\/spec-driven-development-ko.md\"><article class=\"markdown-body entry-content container-lg\" itemprop=\"text\"><div class=\"markdown-heading\" dir=\"auto\"><h1 class=\"heading-element\" dir=\"auto\">Spec-Driven Development (SDD)<\/h1><a id=\"user-content-spec-driven-development-sdd\" class=\"anchor\" aria-label=\"Permalink: Spec-Driven Development (SDD)\" href=\"#spec-driven-development-sdd\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Version 8 | Created: 2026-09-26 | Updated: 2026-11-07 13:46 UTC<\/p>\n<ul dir=\"auto\">\n<li><a href=\"#1-purpose\">1. Purpose<\/a><\/li>\n<li><a href=\"#2-summary\">2. Summary<\/a><\/li>\n<li><a href=\"#3-taxonomy-and-its-hierarchy\">3. Taxonomy and its Hierarchy<\/a>\n<ul dir=\"auto\">\n<li><a href=\"#31-comparison\">3.1 Comparison<\/a><\/li>\n<li><a href=\"#32-spec-components\">3.2 Spec Components<\/a><\/li>\n<li><a href=\"#33-requirement-notation\">3.3 Requirement Notation<\/a><\/li>\n<li><a href=\"#34-persistence-model\">3.4 Persistence Model<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#4-workflow\">4. Workflow<\/a>\n<ul dir=\"auto\">\n<li><a href=\"#41-roles\">4.1 Roles<\/a><\/li>\n<li><a href=\"#42-phase-1-spec-writing\">4.2 Phase 1: Spec Writing<\/a><\/li>\n<li><a href=\"#43-phase-2-plan-and-test-gate\">4.3 Phase 2: Plan and Test Gate<\/a><\/li>\n<li><a href=\"#44-phase-3-implementation\">4.4 Phase 3: Implementation<\/a><\/li>\n<li><a href=\"#45-phase-4-self-verification-loop\">4.5 Phase 4: Self-Verification Loop<\/a><\/li>\n<li><a href=\"#46-phase-5-review\">4.6 Phase 5: Review<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#5-effects-and-limits\">5. Effects and Limits<\/a><\/li>\n<li><a href=\"#6-further-work\">6. Further Work<\/a><\/li>\n<li><a href=\"#references\">References<\/a><\/li>\n<li><a href=\"#appendix-a-terminology\">Appendix A. Terminology<\/a><\/li>\n<\/ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">1. Purpose<\/h2><a id=\"user-content-1-purpose\" class=\"anchor\" aria-label=\"Permalink: 1. Purpose\" href=\"#1-purpose\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<ul dir=\"auto\">\n<li><strong>Problem Statement<\/strong>: Prompt \ub9cc\uc73c\ub85c AI coding agent \uc5d0 \uad6c\ud604\uc744 \ub9e1\uae30\uba74 codebase \uac00 \ucee4\uc9c8\uc218\ub85d \uae30\uc874 \uc124\uacc4\uc640\uc758 \ubd88\uc77c\uce58, side effect, \ud488\uc9c8 \uc800\ud558\uac00 \uc0dd\uae34\ub2e4.<\/li>\n<li><strong>Goal<\/strong>: Data science \uc5d4\uc9c0\ub2c8\uc5b4\uac00 specifier \ub85c\uc11c agent \uc5d0 \ub9e1\uae38 \uc791\uc5c5\uc744 spec \ud30c\uc77c \ud558\ub098\ub85c \uc815\uc758\ud558\uace0, reviewer \ub85c\uc11c agent \uc758 \uacb0\uacfc\ub97c \uadf8 spec \uc5d0 \ube44\ucd94\uc5b4 \ubc1b\uc544\ub4e4\uc77c\uc9c0 \ub3cc\ub824\ubcf4\ub0bc\uc9c0 \ud310\uc815\ud560 \uc218 \uc788\uac8c \ud55c\ub2e4.<\/li>\n<li><strong>Non-Goal<\/strong>: \ud2b9\uc815 agent \uc81c\ud488\uc758 \uc124\uce58\uc640 \uc124\uc815, \uadf8\ub9ac\uace0 \uc81c\ud488 \uc0ac\uc774\uc758 \uae30\ub2a5 \ube44\uad50\ub294 \ub2e4\ub8e8\uc9c0 \uc54a\ub294\ub2e4.<\/li>\n<\/ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">2. Summary<\/h2><a id=\"user-content-2-summary\" class=\"anchor\" aria-label=\"Permalink: 2. Summary\" href=\"#2-summary\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Spec-Driven Development (SDD) \ub294 \uc0ac\ub78c\uc774 \uad6c\uc870\uc640 \uba85\uc138 (spec) \ub97c \uc815\ud558\uace0, AI coding agent \uac00 \uadf8 spec \uc5d0 \ub530\ub77c code \ub97c \uad6c\ud604\ud558\uace0 \uac80\uc99d\ud558\uba70, \uc0ac\ub78c\uc774 \uadf8 \uacb0\uacfc\ub97c \ub2e4\uc2dc \uac80\uc218\ud558\ub294 \uac1c\ubc1c \ubc29\uc2dd\uc774\ub2e4. Spec \ud30c\uc77c\uc740 \ub124 \uc694\uc18c, \uace7 scope, data schema, behavior, acceptance criteria \ub97c \ub2f4\ub294\ub2e4. Agent \ub294 scope \uc548\uc758 \ud30c\uc77c\ub9cc \uace0\uce58\uace0, acceptance criteria \uc5d0 \uc801\ud78c \uba85\ub839\uc774 \ubaa8\ub450 \ud1b5\uacfc\ud560 \ub54c\uae4c\uc9c0 \uad6c\ud604\uc744 \ub418\ud480\uc774\ud55c\ub2e4.<\/p>\n<p dir=\"auto\">Specifier \uc640 reviewer \ub294 \uae30\uc874 code writer \uac00 code \ub97c \uc4f0\uae30 \uc804\uacfc \uc4f4 \ub4a4\uc5d0 \ud558\ub358 \uc77c\uc774, AI \ub97c \uc0ac\uc6a9\ud568\uc73c\ub85c\uc368 \uac15\uc870\ub41c \uc5ed\ud560\uc774\ub2e4. Code writer \ub294 code \ub97c \uc4f0\uae30 \uc804\uc5d0 \ubb34\uc5c7\uc744 \ub9cc\ub4e4\uc9c0 \uc815\ud558\uace0, \uc4f4 \ub4a4\uc5d0 \uadf8 code \uac00 \uc758\ub3c4\ub300\ub85c \ub3d9\uc791\ud558\ub294\uc9c0 \uac80\ud1a0\ud588\ub2e4. AI coding agent \uac00 \uadf8 \uc0ac\uc774\uc758 code \uc791\uc131\uc744 \ub9e1\uc73c\uba74\uc11c, \uc0ac\ub78c\uc758 \uc77c\uc740 \uadf8 \uc55e\uc758 \uba85\uc138 (specifier) \uc640 \uadf8 \ub4a4\uc758 \uac80\uc218 (reviewer) \uc5d0 \ubaa8\uc778\ub2e4. Specifier \ub294 spec \uc73c\ub85c agent \uc758 \uc791\uc5c5 \ubc94\uc704\uc640 \ud1b5\uacfc \uae30\uc900\uc744 \uc815\ud558\uace0, reviewer \ub294 \uad6c\ud604 \uc804\uc5d0 agent \uc758 plan \uacfc test \ub97c \uc2b9\uc778\ud558\uba70, \uad6c\ud604 \ub4a4\uc5d0\ub294 test \uac00 \uac00\ub9ac\uc9c0 \ubabb\ud55c \uacb0\ud568\uc744 \ucc3e\uc544 agent \ub098 specifier \uc5d0\uac8c \ub3cc\ub824\ubcf4\ub0b8\ub2e4.<\/p>\n<p dir=\"auto\">GitHub Spec Kit, Kiro, OpenSpec \uac19\uc740 SDD \ub3c4\uad6c\ub294 \uae30\ub2a5\ub9c8\ub2e4 spec, plan, tasks \uc758 \uc138 \ud30c\uc77c\uc744 \ub450\uace0, \ubaa8\ub4e0 \uae30\ub2a5\uc5d0 \uacf5\ud1b5\uc73c\ub85c \uc801\uc6a9\ud560 project \uaddc\uce59\uc744 constitution \uc774\ub098 steering \ud30c\uc77c\uc5d0 \ub530\ub85c \ub454\ub2e4 [<a href=\"#ref-1\">1<\/a>] [<a href=\"#ref-3\">3<\/a>] [<a href=\"#ref-4\">4<\/a>]. \uc694\uad6c\uc0ac\ud56d\uc740 \ubc88\ud638\ub97c \ubd99\uc778 MUST \ubb38\uc7a5\uacfc Given-When-Then scenario \ub85c \uc801\uace0, \uc815\ud558\uc9c0 \ubabb\ud55c \uc790\ub9ac\ub294 <code>&#91;NEEDS CLARIFICATION&#93;<\/code> \uc73c\ub85c \ud45c\uc2dc\ud558\uc5ec agent \uac00 \ucd94\uce21\uc73c\ub85c \uba54\uc6b0\uc9c0 \ubabb\ud558\uac8c \ud55c\ub2e4 [<a href=\"#ref-2\">2<\/a>]. \uae30\ub2a5\uc774 \ub05d\ub09c \ub4a4 spec \uc744 \uc5b4\ub5bb\uac8c \ub2e4\ub8e8\ub294\uac00\uc5d0 \ub530\ub77c SDD \ub294 spec-first, spec-anchored, spec-as-source \uc758 \uc138 \uc218\uc900\uc73c\ub85c \ub098\ub25c\ub2e4 [<a href=\"#ref-5\">5<\/a>].<\/p>\n<p dir=\"auto\">Spec \ud30c\uc77c\uc740 \ub300\ud654 \uc774\ub825 \ub300\uc2e0 single source of truth \uac00 \ub418\uc5b4, LLM \uc758 hallucination \uacfc context drift \ub97c \uc904\uc778\ub2e4. \uac19\uc740 spec \uc5d0\uc11c\ub294 \uc2e4\ud589\ub9c8\ub2e4 \uacb0\uacfc\uac00 \uac19\uc740 \uae30\uc900\uc73c\ub85c \ud310\uc815\ub418\ubbc0\ub85c, \ub300\uaddc\ubaa8 codebase \uc5d0\uc11c\ub3c4 agent \uc758 \uacb0\uacfc\ub97c \uc608\uce21\ud560 \uc218 \uc788\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">3. Taxonomy and its Hierarchy<\/h2><a id=\"user-content-3-taxonomy-and-its-hierarchy\" class=\"anchor\" aria-label=\"Permalink: 3. Taxonomy and its Hierarchy\" href=\"#3-taxonomy-and-its-hierarchy\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">AI \ub97c \uc4f0\ub294 \uac1c\ubc1c \ubc29\uc2dd\uc740 agent \uc5d0\uac8c \uc124\uacc4 \uacb0\uc815\uae4c\uc9c0 \ub9e1\uae30\ub294\uac00\ub85c \uac08\ub9b0\ub2e4. Prompt-based development \ub294 \uc124\uacc4\uc640 \uad6c\ud604\uc744 \ubaa8\ub450 agent \uc5d0\uac8c \ub9e1\uae30\uace0, SDD \ub294 \uc124\uacc4\ub97c spec \uc73c\ub85c \uace0\uc815\ud55c \ub4a4 \uad6c\ud604\ub9cc \ub9e1\uae34\ub2e4. <a href=\"#fig-1\">Fig 1<\/a> \uc740 \ub450 \ubc29\uc2dd\uacfc SDD \uac00 \uc4f0\ub294 \ud30c\uc77c\uc758 \uacc4\uce35, \uadf8\ub9ac\uace0 spec \uc758 \ub124 \uc694\uc18c\ub97c \ubcf4\uc5ec \uc900\ub2e4.<\/p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"AI-assisted coding\n\u251c\u2500\u2500 Prompt-based development   ad-hoc natural-language prompt; agent designs and implements\n\u2514\u2500\u2500 Spec-driven development    structured files; agent implements within them\n    \u251c\u2500\u2500 Project rules            constitution \/ steering; apply to every feature\n    \u251c\u2500\u2500 Spec (spec.md)           what to build; written by the specifier\n    \u2502   \u251c\u2500\u2500 1. Scope &amp; Context       target files, tech stack, library versions\n    \u2502   \u251c\u2500\u2500 2. Data Schema           input\/output schema, DataFrame and table contracts\n    \u2502   \u251c\u2500\u2500 3. Behavior              numbered MUST requirements, Given-When-Then scenarios\n    \u2502   \u2514\u2500\u2500 4. Acceptance Criteria   test and check commands that decide pass or fail\n    \u251c\u2500\u2500 Plan (plan.md)           how to build it; drafted by the agent, approved by the reviewer\n    \u251c\u2500\u2500 Tasks (tasks.md)         ordered work items the agent executes\n    \u2514\u2500\u2500 Persistence model        spec-first | spec-anchored | spec-as-source\"><pre lang=\"text\" class=\"notranslate\"><code>AI-assisted coding\n\u251c\u2500\u2500 Prompt-based development   ad-hoc natural-language prompt; agent designs and implements\n\u2514\u2500\u2500 Spec-driven development    structured files; agent implements within them\n    \u251c\u2500\u2500 Project rules            constitution \/ steering; apply to every feature\n    \u251c\u2500\u2500 Spec (spec.md)           what to build; written by the specifier\n    \u2502   \u251c\u2500\u2500 1. Scope &amp; Context       target files, tech stack, library versions\n    \u2502   \u251c\u2500\u2500 2. Data Schema           input\/output schema, DataFrame and table contracts\n    \u2502   \u251c\u2500\u2500 3. Behavior              numbered MUST requirements, Given-When-Then scenarios\n    \u2502   \u2514\u2500\u2500 4. Acceptance Criteria   test and check commands that decide pass or fail\n    \u251c\u2500\u2500 Plan (plan.md)           how to build it; drafted by the agent, approved by the reviewer\n    \u251c\u2500\u2500 Tasks (tasks.md)         ordered work items the agent executes\n    \u2514\u2500\u2500 Persistence model        spec-first | spec-anchored | spec-as-source\n<\/code><\/pre><\/div>\n<p dir=\"auto\"><a id=\"user-content-fig-1\"><\/a>\nFig 1. Development styles, SDD files, the four components of a spec and the persistence models<\/p>\n<p dir=\"auto\">SDD \uc758 \ud30c\uc77c\uc740 \uc704\uc5d0\uc11c \uc544\ub798\ub85c \uc801\uc6a9 \ubc94\uc704\uac00 \uc881\uc544\uc9c4\ub2e4. Project rules \ub294 \ubaa8\ub4e0 \uae30\ub2a5\uc5d0, spec \uc740 \ud55c \uae30\ub2a5\uc5d0, plan \uc740 \uadf8 \uae30\ub2a5\uc758 \uad6c\ud604 \ubc29\ubc95\uc5d0, tasks \ub294 agent \uac00 \ud55c \ubc88\uc5d0 \uc2e4\ud589\ud560 \uc791\uc5c5 \ud558\ub098\uc5d0 \uc801\uc6a9\ub41c\ub2e4. \uc544\ub798 \ud30c\uc77c\uc740 \uc704 \ud30c\uc77c\uc744 \uc5b4\uae38 \uc218 \uc5c6\uc73c\uba70, plan \uc774 project rules \uc640 \uc5b4\uae0b\ub098\uba74 reviewer \uac00 Phase 2 \uc758 gate \uc5d0\uc11c plan \uc744 \ubc18\ub824\ud55c\ub2e4.<\/p>\n<p dir=\"auto\">Spec \uc758 \ub124 \uc694\uc18c\ub294 \uc704\uc5d0\uc11c \uc544\ub798\ub85c agent \uac00 \uc2a4\uc2a4\ub85c \uc815\ud560 \uc218 \uc788\ub294 \ud3ed\uc744 \uc881\ud78c\ub2e4. Scope \ub294 \uc190\ub308 \ud30c\uc77c\uacfc library \ub97c, data schema \ub294 \uc785\ucd9c\ub825\uc758 \ubaa8\uc591\uc744, behavior \ub294 \uacbd\uacc4 \uc870\uac74\uc5d0\uc11c\uc758 \ub3d9\uc791\uc744 \uace0\uc815\ud55c\ub2e4. Acceptance criteria \ub294 \uc55e\uc758 \uc138 \uc694\uc18c\ub97c \uc2e4\ud589\ud560 \uc218 \uc788\ub294 \uba85\ub839\uc73c\ub85c \ubc14\uafb8\uc5b4, \ud1b5\uacfc \uc5ec\ubd80\ub97c \uc0ac\ub78c\uc758 \ud310\ub2e8 \uc5c6\uc774 \uac00\ub9b0\ub2e4. \uc55e\uc758 \uc138 \uc694\uc18c\ub9cc \uc788\uace0 acceptance criteria \uac00 \uc5c6\uc73c\uba74 agent \ub294 \uad6c\ud604\uc744 \ub9c8\ucce4\ub2e4\uace0 \ubcf4\uace0\ud560 \ubfd0 spec \uc744 \uc9c0\ucf30\ub294\uc9c0\ub294 \ud655\uc778\ud558\uc9c0 \uc54a\ub294\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">3.1 Comparison<\/h3><a id=\"user-content-31-comparison\" class=\"anchor\" aria-label=\"Permalink: 3.1 Comparison\" href=\"#31-comparison\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">\uc544\ub798 \ud45c\ub294 \ub450 \ubc29\uc2dd\uc744 \uac19\uc740 \ud56d\ubaa9\uc73c\ub85c \ub098\ub780\ud788 \ub193\ub294\ub2e4.<\/p>\n<p dir=\"auto\">Table 1. Prompt-based development and spec-driven development<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th align=\"center\">Aspect<\/th>\n<th align=\"center\">Prompt-based development<\/th>\n<th align=\"center\">Spec-driven development<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">Anchor<\/td>\n<td align=\"center\">\uc790\uc5f0\uc5b4 prompt (ad-hoc)<\/td>\n<td align=\"center\">\uad6c\uc870\ud654\ub41c spec \ubb38\uc11c (spec as code)<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">Agent role<\/td>\n<td align=\"center\">\uc790\uc728\uc801\uc778 \uc124\uacc4\uc640 \uad6c\ud604<\/td>\n<td align=\"center\">Spec \uc5d0 \ubb36\uc778 \uad6c\ud604\uacfc \uc790\uac00 \uac80\uc99d<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">Human role<\/td>\n<td align=\"center\">Prompt \uc791\uc131\uacfc \uacb0\uacfc \ud655\uc778<\/td>\n<td align=\"center\">Specifier \uc640 reviewer<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">Context keeping<\/td>\n<td align=\"center\">\ub300\ud654 \uc774\ub825\uc774 \uae38\uc5b4\uc9c8\uc218\ub85d hallucination \uc99d\uac00<\/td>\n<td align=\"center\">Spec \ud30c\uc77c\uc744 single source of truth \ub85c \uc720\uc9c0<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">Reproducibility<\/td>\n<td align=\"center\">\uc2e4\ud589\ub9c8\ub2e4 \uacb0\uacfc\uc758 \ubcc0\ub3d9 \ud3ed \ud07c<\/td>\n<td align=\"center\">\uac19\uc740 spec \uae30\uc900\uc73c\ub85c \uacb0\uacfc\uac00 \uc77c\uad00\ub428<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">Assumption<\/td>\n<td align=\"center\">\uc791\uc5c5\uc774 \ub300\ud654 \uba87 \ubc88 \uc548\uc5d0 \ub05d\ub0a8<\/td>\n<td align=\"center\">Acceptance criteria \ub97c \uba85\ub839\uc73c\ub85c \uc801\uc744 \uc218 \uc788\uc74c<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">Breaks when<\/td>\n<td align=\"center\">\ud30c\uc77c\uc774 \uc5ec\ub7ff\uc774\uace0 \uae30\uc874 \uc124\uacc4\uc640 \uc5bd\ud798<\/td>\n<td align=\"center\">Spec \uc774 \ubaa8\ud638\ud558\uac70\ub098 test \uac00 \ube44\uc5b4 \uc788\uc74c<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">Use at<\/td>\n<td align=\"center\">\uc77c\ud68c\uc131 \uc9c8\uc758\uc751\ub2f5, \ud0d0\uc0c9\uc6a9 notebook code<\/td>\n<td align=\"center\">Pipeline, feature \uacc4\uc0b0, \ubc30\ud3ec\ud560 model code<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\">Prompt-based development \ub294 \uacb0\uacfc\ub97c \ubc84\ub824\ub3c4 \ub418\ub294 \ud0d0\uc0c9 \ub2e8\uacc4\uc5d0 \ub9de\uace0, SDD \ub294 \ub2e4\ub978 code \uac00 \uadf8 \uacb0\uacfc\uc5d0 \uc758\uc874\ud558\ub294 \ub2e8\uacc4\uc5d0 \ub9de\ub294\ub2e4. Notebook \uc5d0\uc11c \uac00\uc124\uc744 \ud655\uc778\ud558\ub294 \ub3d9\uc548\uc740 prompt \ub85c \ucda9\ubd84\ud558\uc9c0\ub9cc, \uadf8 \uacc4\uc0b0\uc744 pipeline \uc758 module \ub85c \uc62e\uae30\ub294 \uc21c\uac04\ubd80\ud130\ub294 spec \uc744 \uc4f4\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">3.2 Spec Components<\/h3><a id=\"user-content-32-spec-components\" class=\"anchor\" aria-label=\"Permalink: 3.2 Spec Components\" href=\"#32-spec-components\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">\ub124 \uc694\uc18c\ub294 data science code \uc5d0\uc11c \uc544\ub798 \ub0b4\uc6a9\uc744 \ub2f4\ub294\ub2e4.<\/p>\n<ol dir=\"auto\">\n<li><strong>Scope &amp; Context<\/strong>\n<ul dir=\"auto\">\n<li>\uc0c8\ub85c \ub9cc\ub4e4\uac70\ub098 \uace0\uce60 \ud30c\uc77c\uc758 \ubaa9\ub85d\uacfc, \uace0\uce58\uc9c0 \uc54a\uc744 \ud30c\uc77c<\/li>\n<li>Python, pandas, scikit-learn \ub4f1 \uc4f8 library \uc640 \uadf8 version \uc81c\uc57d<\/li>\n<\/ul>\n<\/li>\n<li><strong>Data Schema<\/strong>\n<ul dir=\"auto\">\n<li>\uc785\ub825\uacfc \ucd9c\ub825 DataFrame \uc758 \uc5f4 \uc774\ub984, dtype, index, \uc815\ub82c \uc870\uac74<\/li>\n<li>\uc77d\uace0 \uc4f0\ub294 table \uacfc file \uc758 \ud615\uc2dd, API \uc758 request \uc640 response \ud615\uc2dd<\/li>\n<\/ul>\n<\/li>\n<li><strong>Behavior<\/strong>\n<ul dir=\"auto\">\n<li>Pre-condition \uacfc post-condition<\/li>\n<li>\uacb0\uce21\uac12, \ube48 \uc785\ub825, \uc815\ub82c\ub418\uc9c0 \uc54a\uc740 \uc2dc\uac04 \uc5f4 \uac19\uc740 edge case \uc640 \uadf8\ub54c\uc758 \uc624\ub958 \ucc98\ub9ac<\/li>\n<li>Look-ahead leakage \ub97c \ub9c9\ub294 \uc2dc\uac04 \uae30\uc900\ucc98\ub7fc \uacb0\uacfc\uc758 \ud0c0\ub2f9\uc131\uc744 \uc815\ud558\ub294 \uaddc\uce59<\/li>\n<\/ul>\n<\/li>\n<li><strong>Acceptance Criteria<\/strong>\n<ul dir=\"auto\">\n<li>\ud1b5\uacfc \uc5ec\ubd80\ub97c \uac00\ub974\ub294 test \ud30c\uc77c\uacfc \uc2e4\ud589 \uba85\ub839<\/li>\n<li>Type check, lint \uba85\ub839<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p dir=\"auto\">Seed \uace0\uc815, \uc6d0\ubcf8 data \uc758 \ubd88\ubcc0, \uc2dc\uac04 \uae30\uc900 train\/test \ubd84\ud560\ucc98\ub7fc \ubaa8\ub4e0 \uae30\ub2a5\uc774 \uc9c0\ucf1c\uc57c \ud558\ub294 \uaddc\uce59\uc740 \uae30\ub2a5\ub9c8\ub2e4 spec \uc5d0 \ub418\ud480\uc774\ud558\uc9c0 \uc54a\uace0 project rules \ud30c\uc77c\uc5d0 \ud55c \ubc88 \uc801\ub294\ub2e4. Spec Kit \uc740 \uc774 \ud30c\uc77c\uc744 constitution \uc774\ub77c \ubd80\ub974\uba70, test \ub97c \uad6c\ud604\ubcf4\ub2e4 \uba3c\uc800 \uc4f0\uace0 \uadf8 test \uac00 \uc2e4\ud328\ud558\ub294 \uac83\uc744 \ud655\uc778\ud558\ub77c\ub294 TDD \uc758 test-first \uaddc\uce59\uc744 \uadf8 \uc870\ud56d\uc758 \ud558\ub098\ub85c \ub454\ub2e4 [<a href=\"#ref-1\">1<\/a>].<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">3.3 Requirement Notation<\/h3><a id=\"user-content-33-requirement-notation\" class=\"anchor\" aria-label=\"Permalink: 3.3 Requirement Notation\" href=\"#33-requirement-notation\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Behavior \uc758 \uc694\uad6c\uc0ac\ud56d\uc740 \ubc88\ud638\ub97c \ubd99\uc778 MUST \ubb38\uc7a5\uc73c\ub85c \uc801\uace0, \ub300\ud45c \uacbd\uc6b0\ub97c Given-When-Then scenario \ub85c \ub367\ubd99\uc778\ub2e4. \ubc88\ud638\ub294 \uc694\uad6c\uc0ac\ud56d\uacfc test \ub97c \ud558\ub098\uc529 \uc9dd\uc9d3\ub294 key \uac00 \ub418\uc5b4, reviewer \uac00 \ube60\uc9c4 test \ub97c \ubc88\ud638\ub85c \ucc3e\ub294\ub2e4. \uc544\ub798 \ud45c\ub294 SDD \ub3c4\uad6c\uac00 \uc4f0\ub294 \ud45c\uae30\ub97c \ubaa8\uc740\ub2e4.<\/p>\n<p dir=\"auto\">Table 2. Requirement notation in SDD tools<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th align=\"center\">Notation<\/th>\n<th align=\"center\">Form<\/th>\n<th align=\"center\">Purpose<\/th>\n<th align=\"center\">Source<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">Numbered requirement<\/td>\n<td align=\"center\">FR-001: System MUST ...<\/td>\n<td align=\"center\">\uc694\uad6c\uc0ac\ud56d\uacfc test \uc758 1 \ub300 1 \ub300\uc751<\/td>\n<td align=\"center\">Spec Kit [<a href=\"#ref-2\">2<\/a>]<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">Acceptance scenario<\/td>\n<td align=\"center\">Given ..., When ..., Then ...<\/td>\n<td align=\"center\">\uc785\ub825 \uc0c1\ud0dc, \ub3d9\uc791, \uae30\ub300 \uacb0\uacfc\uc758 \uace0\uc815<\/td>\n<td align=\"center\">Spec Kit [<a href=\"#ref-2\">2<\/a>]<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">Clarification marker<\/td>\n<td align=\"center\">[NEEDS CLARIFICATION: ...]<\/td>\n<td align=\"center\">\uc815\ud558\uc9c0 \ubabb\ud55c \uc790\ub9ac\uc758 \ud45c\uc2dc, agent \uc758 \ucd94\uce21 \uae08\uc9c0<\/td>\n<td align=\"center\">Spec Kit [<a href=\"#ref-1\">1<\/a>]<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">Delta spec<\/td>\n<td align=\"center\">ADDED, MODIFIED, REMOVED<\/td>\n<td align=\"center\">\uae30\uc874 spec \uc5d0 \ub300\ud55c \ubcc0\uacbd\ubd84\ub9cc \uae30\ub85d<\/td>\n<td align=\"center\">OpenSpec [<a href=\"#ref-3\">3<\/a>]<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">Executable property<\/td>\n<td align=\"center\">\uc0dd\uc131\ud55c \uc785\ub825 \uc804\uccb4\uc5d0\uc11c \uc131\ub9bd\ud560 \uc870\uac74<\/td>\n<td align=\"center\">\uc608\uc2dc test \uac00 \ub193\uce58\ub294 \uc785\ub825\uc758 \uac80\uc99d<\/td>\n<td align=\"center\">Kiro [<a href=\"#ref-4\">4<\/a>]<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\">Clarification marker \ub294 Phase 1 \uc758 spec \uc5d0\ub9cc \ub0a8\uc744 \uc218 \uc788\uace0, Phase 2 \ub85c \ub118\uc5b4\uac00\uae30 \uc804\uc5d0 specifier \uac00 \ubaa8\ub450 \ud480\uc5b4\uc57c \ud55c\ub2e4. Delta spec \uc740 \uc774\ubbf8 \uc6b4\uc601 \uc911\uc778 pipeline \uc744 \uace0\uce60 \ub54c \uc4f4\ub2e4. \ubcc0\uacbd\uc774 \ub05d\ub098\uba74 delta \ub97c \ubcf8\ub798 spec \uc5d0 \ud569\uccd0, spec \uc774 \uc5b8\uc81c\ub098 \ud604\uc7ac code \uc758 \ub3d9\uc791\uc744 \uc801\uc740 \uc0c1\ud0dc\ub85c \ub0a8\uac8c \ud55c\ub2e4 [<a href=\"#ref-3\">3<\/a>]. Executable property \ub294 data science code \uc5d0\uc11c \"\ucd9c\ub825 \ud589 \uc218\ub294 \uc785\ub825 \ud589 \uc218\uc640 \uac19\ub2e4\" \ucc98\ub7fc \ubaa8\ub4e0 \uc785\ub825\uc5d0\uc11c \uc131\ub9bd\ud574\uc57c \ud558\ub294 \uc870\uac74\uc774\uba70, property-based test \ub85c \ubb34\uc791\uc704 \uc785\ub825\uc744 \ub9cc\ub4e4\uc5b4 \uac80\uc99d\ud55c\ub2e4 [<a href=\"#ref-4\">4<\/a>].<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">3.4 Persistence Model<\/h3><a id=\"user-content-34-persistence-model\" class=\"anchor\" aria-label=\"Permalink: 3.4 Persistence Model\" href=\"#34-persistence-model\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">SDD \ub294 \uad6c\ud604\uc744 \ub9c8\uce5c \ub4a4 spec \uc744 \ubc84\ub9ac\ub294\uac00, code \uc640 \ud568\uaed8 \uc720\uc9c0\ud558\ub294\uac00, code \ub300\uc2e0 spec \ub9cc \uace0\uce58\ub294\uac00\uc5d0 \ub530\ub77c spec-first, spec-anchored, spec-as-source \uc758 \uc138 \uc218\uc900\uc73c\ub85c \ub098\ub25c\ub2e4. Spec Kit \uc740 martinfowler.com \uc5d0 \uc2e4\ub9b0 SDD \ub3c4\uad6c \uac1c\uad00\uc5d0\uc11c \uc774 \ubd84\ub958\ub97c \uac00\uc838\uc640 persistence model \ub85c \uc18c\uac1c\ud558\uba70, \uc5b4\ub290 \uc218\uc900\ub3c4 \uae30\ubcf8\uac12\uc73c\ub85c \uac15\uc81c\ud558\uc9c0 \uc54a\ub294\ub2e4 [<a href=\"#ref-5\">5<\/a>]. \uc544\ub798 \ud45c\ub294 \uc138 \uc218\uc900\uc744 spec \uc774 \uc720\uc9c0\ub418\ub294 \ubc94\uc704\uc758 \uc21c\uc11c\ub85c \ub193\ub294\ub2e4.<\/p>\n<p dir=\"auto\">Table 3. Spec persistence models<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th align=\"center\">Model<\/th>\n<th align=\"center\">Spec after implementation<\/th>\n<th align=\"center\">Who edits code<\/th>\n<th align=\"center\">Fits when<\/th>\n<th align=\"center\">Use at<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">Spec-first<\/td>\n<td align=\"center\">\uad6c\ud604 \ub4a4 \ubc84\ub9b4 \uc218 \uc788\uc74c<\/td>\n<td align=\"center\">\uc0ac\ub78c\uacfc agent<\/td>\n<td align=\"center\">\uc911\uac04 \uacb0\uc815\uc744 \ub0a8\uae38 \ud544\uc694\uac00 \uc5c6\ub294 \ube60\ub978 \ubc18\ubcf5<\/td>\n<td align=\"center\">\ud0d0\uc0c9 \ubd84\uc11d, \uc77c\ud68c\uc131 data \ucd94\ucd9c<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">Spec-anchored<\/td>\n<td align=\"center\">\uad6c\ud604\uacfc \ud568\uaed8 \uc720\uc9c0, \uc774\ud6c4 \ubcc0\uacbd\uc758 \uae30\uc900<\/td>\n<td align=\"center\">\uc0ac\ub78c\uacfc agent<\/td>\n<td align=\"center\">\uc694\uad6c\uc0ac\ud56d \ubcc0\uacbd\uc758 \uc774\ub825\uacfc \uac10\uc0ac \ucd94\uc801\uc774 \ud544\uc694\ud568<\/td>\n<td align=\"center\">\uc6b4\uc601 \uc911\uc778 feature pipeline, \ubc30\ud3ec\ud55c model code<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">Spec-as-source<\/td>\n<td align=\"center\">\uc0ac\ub78c\uc774 \uace0\uce58\ub294 \uc720\uc77c\ud55c \uc6d0\ubcf8<\/td>\n<td align=\"center\">Agent \ub9cc, spec \uc5d0\uc11c \ub2e4\uc2dc \uc0dd\uc131<\/td>\n<td align=\"center\">\uc81c\ud488 \uacc4\uc57d\uc774 \uc548\uc815\ub418\uc5b4 \uc694\uad6c\uc0ac\ud56d\uacfc \uad6c\ud604\uc758 \uc77c\uce58\uac00 \uc6b0\uc120\ud568<\/td>\n<td align=\"center\">Schema \uc640 \ub3d9\uc791\uc774 \uace0\uc815\ub41c data \ubcc0\ud658 module<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\">Fits when \uc5f4\uc740 Spec Kit \ubb38\uc11c\uc758 \uae30\uc900\uc744 \uc62e\uae34 \uac83\uc774\uace0 [<a href=\"#ref-5\">5<\/a>], use at \uc5f4\uc740 \uadf8 \uae30\uc900\uc744 data science \uc791\uc5c5\uc5d0 \ub300\uc751\uc2dc\ud0a8 \uac83\uc774\ub2e4. \uc774 \ubb38\uc11c\uc758 workflow \ub294 spec-anchored \ub97c \uc804\uc81c\ub85c \ud55c\ub2e4. Section 4.6 \uc758 return to specifier \ub294 \uacb0\ud568\uc744 spec \uc5d0 \uba3c\uc800 \ub354\ud558\uace0, section 3.3 \uc758 delta spec \uc740 \ubcc0\uacbd\uc744 \ubcf8\ub798 spec \uc5d0 \ud569\uccd0, \uad6c\ud604\uc774 \ub05d\ub09c \ub4a4\uc5d0\ub3c4 spec \uc744 code \uc640 \ud568\uaed8 \uc720\uc9c0\ud55c\ub2e4. Spec-as-source \ub294 code \ub97c \uc5b8\uc81c\ub4e0 spec \uc5d0\uc11c \ub2e4\uc2dc \ub9cc\ub4e4 \uc218 \uc788\uc5b4\uc57c \ud558\ubbc0\ub85c, \uc0ac\ub78c\uc774 code \ub97c \uc9c1\uc811 \uace0\uce5c \uc774\ub825\uc774 \uc788\ub294 pipeline \uc5d0\ub294 \uadf8 \uc774\ub825\uc744 spec \uc5d0 \uba3c\uc800 \uc62e\uae34 \ub4a4\uc5d0\ub9cc \uc4f8 \uc218 \uc788\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">4. Workflow<\/h2><a id=\"user-content-4-workflow\" class=\"anchor\" aria-label=\"Permalink: 4. Workflow\" href=\"#4-workflow\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">SDD \ub294 specifier \uc758 spec \uc791\uc131, agent \uac00 \ub9cc\ub4e0 plan \uacfc test \uc758 reviewer \uc2b9\uc778, agent \uc758 \uad6c\ud604, agent \uc758 \uc790\uac00 \uac80\uc99d, reviewer \uc758 \uac80\uc218\uc758 \ub2e4\uc12f \ub2e8\uacc4\ub85c \uc9c4\ud589\ud55c\ub2e4. \uc790\uac00 \uac80\uc99d\uc774 \uc2e4\ud328\ud558\uba74 agent \uac00 \uad6c\ud604\uc73c\ub85c \ub3cc\uc544\uac00\uace0, \uac80\uc218\uc5d0\uc11c \uacb0\ud568\uc774 \ub098\uc624\uba74 reviewer \uac00 \uadf8 \uc6d0\uc778\uc5d0 \ub530\ub77c \uacb0\uacfc\ub97c agent \ub098 specifier \uc5d0\uac8c \ub3cc\ub824\ubcf4\ub0b8\ub2e4. <a href=\"#fig-2\">Fig 2<\/a> \ub294 \uadf8 \ud750\ub984\uc744 \ubcf4\uc5ec \uc900\ub2e4.<\/p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"Phase 1  Specifier   [ Spec file ] &lt;\u2500\u2500 spec gap \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n                           \u2502                                                    \u2502\n                           v                                                    \u2502\nPhase 2  Agent       [ Plan, tasks, tests ]                                     \u2502\n                           \u2502      ^                                             \u2502\n                           v      \u2502 rejected                                    \u2502\nPhase 2  Reviewer    [ Plan and test gate ]                                     \u2502\n                           \u2502 approved                                           \u2502\n                           v                                                    \u2502\nPhase 3  Agent       [ Implementation ] &lt;\u2500\u2500 spec violation \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510       \u2502\n                           \u2502      ^                                     \u2502       \u2502\n                           v      \u2502 fail                                \u2502       \u2502\nPhase 4  Agent       [ Verification ]                                   \u2502       \u2502\n                           \u2502 pass                                       \u2502       \u2502\n                           v                                            \u2502       \u2502\nPhase 5  Reviewer    [ Review ] \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n                           \u2502 accept\n                           v\n                     [ Merge ]\"><pre lang=\"text\" class=\"notranslate\"><code>Phase 1  Specifier   &#91; Spec file &#93; &lt;\u2500\u2500 spec gap \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n                           \u2502                                                    \u2502\n                           v                                                    \u2502\nPhase 2  Agent       &#91; Plan, tasks, tests &#93;                                     \u2502\n                           \u2502      ^                                             \u2502\n                           v      \u2502 rejected                                    \u2502\nPhase 2  Reviewer    &#91; Plan and test gate &#93;                                     \u2502\n                           \u2502 approved                                           \u2502\n                           v                                                    \u2502\nPhase 3  Agent       &#91; Implementation &#93; &lt;\u2500\u2500 spec violation \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510       \u2502\n                           \u2502      ^                                     \u2502       \u2502\n                           v      \u2502 fail                                \u2502       \u2502\nPhase 4  Agent       &#91; Verification &#93;                                   \u2502       \u2502\n                           \u2502 pass                                       \u2502       \u2502\n                           v                                            \u2502       \u2502\nPhase 5  Reviewer    &#91; Review &#93; \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n                           \u2502 accept\n                           v\n                     &#91; Merge &#93;\n<\/code><\/pre><\/div>\n<p dir=\"auto\"><a id=\"user-content-fig-2\"><\/a>\nFig 2. SDD workflow with the specifier and reviewer loops<\/p>\n<p dir=\"auto\">Phase 4 \uc758 fail loop \ub294 agent \uac00 \uc0ac\ub78c \uc5c6\uc774 \ub3cc\ub9ac\uace0, Phase 2 \uc640 Phase 5 \uc758 loop \ub294 reviewer \uac00 \ud310\uc815\ud558\uc5ec \uc5f0\ub2e4. Phase 2 \uc758 gate \ub294 \uad6c\ud604 \uc804\uc5d0 \ubc29\ud5a5\uc744 \ud655\uc778\ud558\uc5ec, \ud2c0\ub9b0 plan \uc704\uc5d0 code \uac00 \uc313\uc774\ub294 \uac83\uc744 \ub9c9\ub294\ub2e4. Phase 5 \uc758 spec violation \uc740 spec \uc744 \uadf8\ub300\ub85c \ub450\uace0 agent \ub97c \ub2e4\uc2dc \uc2e4\ud589\ud558\uba70, spec gap \uc740 specifier \uac00 spec \uc744 \uace0\uce5c \ub4a4 Phase 1 \ubd80\ud130 \ub2e4\uc2dc \uc2dc\uc791\ud55c\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">4.1 Roles<\/h3><a id=\"user-content-41-roles\" class=\"anchor\" aria-label=\"Permalink: 4.1 Roles\" href=\"#41-roles\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">SDD \uc5d0\uc11c \uc0ac\ub78c\uc740 specifier \uc640 reviewer \uc758 \ub450 \uc5ed\ud560\uc744 \ub9e1\uace0, \uadf8 \uc0ac\uc774\uc758 plan \ucd08\uc548, \uad6c\ud604, \uac80\uc99d \uba85\ub839 \uc2e4\ud589\uc740 agent \uac00 \ub9e1\ub294\ub2e4. Specifier \ub294 \ubb34\uc5c7\uc744 \ub9cc\ub4e4\uc9c0\ub97c spec \uc73c\ub85c \uc815\ud558\uace0, reviewer \ub294 \uad6c\ud604 \uc804\uc5d0\ub294 plan \uacfc test \ub97c, \uad6c\ud604 \ub4a4\uc5d0\ub294 \uacb0\uacfc\ub97c \uadf8 spec \uc5d0 \ube44\ucd94\uc5b4 \ubc1b\uc544\ub4e4\uc77c\uc9c0 \uc815\ud55c\ub2e4. \ud55c \uc0ac\ub78c\uc774 \ub450 \uc5ed\ud560\uc744 \ud568\uaed8 \ub9e1\uc744 \uc218 \uc788\uc73c\uba70, \uc5ed\ud560\uc740 \ud558\ub294 \uc77c\ub85c \ub098\ub208\ub2e4.<\/p>\n<p dir=\"auto\">Table 4. Roles in SDD<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th align=\"center\">Role<\/th>\n<th align=\"center\">Actor<\/th>\n<th align=\"center\">Phase<\/th>\n<th align=\"center\">Output<\/th>\n<th align=\"center\">Decides<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">Specifier<\/td>\n<td align=\"center\">Human<\/td>\n<td align=\"center\">Phase\u00a01<\/td>\n<td align=\"center\">Spec file, project rules<\/td>\n<td align=\"center\">Scope, data schema, behavior, acceptance criteria<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">Agent<\/td>\n<td align=\"center\">AI\u00a0coding\u00a0agent<\/td>\n<td align=\"center\">Phase\u00a02,\u00a03,\u00a04<\/td>\n<td align=\"center\">Plan, tasks, test, code<\/td>\n<td align=\"center\">How to implement within the spec<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">Reviewer<\/td>\n<td align=\"center\">Human<\/td>\n<td align=\"center\">Phase\u00a02,\u00a05<\/td>\n<td align=\"center\">Gate approval, acceptance, return to agent, return to specifier<\/td>\n<td align=\"center\">Approval of plan and test, acceptance of the result, where to return a defect<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\">Reviewer \ub294 \ucc3e\uc740 \uacb0\ud568\uc744 agent \ub098 specifier \uc5d0\uac8c \ub3cc\ub824\ubcf4\ub0b4 spec \uc744 \uac70\uccd0 \uace0\uce58\uac8c \ud55c\ub2e4. Reviewer \uac00 code \ub97c \uc9c1\uc811 \uace0\uce58\uba74 spec \uacfc code \uac00 \uc5b4\uae0b\ub098 spec \uc774 single source of truth \ub85c \ub0a8\uc9c0 \uc54a\ub294\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">4.2 Phase 1: Spec Writing<\/h3><a id=\"user-content-42-phase-1-spec-writing\" class=\"anchor\" aria-label=\"Permalink: 4.2 Phase 1: Spec Writing\" href=\"#42-phase-1-spec-writing\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Specifier \uac00 \uad6c\ud604\ud560 \uae30\ub2a5\uc758 spec \uc744 Markdown \uc73c\ub85c <code>spec.md<\/code> \uac19\uc740 \ud30c\uc77c\uc5d0 \uc801\ub294\ub2e4. \uc544\ub798\ub294 sensor trace \uc5d0 rolling mean feature \ub97c \ub354\ud558\ub294 \ud568\uc218\uc758 spec \uc774\ub2e4.<\/p>\n<div class=\"highlight highlight-text-md notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"# Spec: Rolling mean feature for sensor trace\n\n## Context &amp; Boundaries\n- Target files: `src\/features\/rolling.py`, `tests\/test_rolling.py`\n- Tech stack: Python 3.11, pandas 2.x, pytest, hypothesis, mypy, ruff\n- Do not modify any other file.\n\n## Input Schema\n```python\n# Python\nimport pandas as pd\n\n\ndef add_rolling_mean(*, df: pd.DataFrame, value_col: str, window: int, time_col: str = &quot;timestamp&quot;) -&gt; pd.DataFrame:\n    &quot;&quot;&quot;Append the trailing rolling mean of value_col.\n\n    Returns:\n        pd.DataFrame: index and columns of df unchanged, plus one float64 column named f&quot;{value_col}_rm{window}&quot;.\n    &quot;&quot;&quot;\n```\n\n- `time_col`: datetime64[ns], sorted ascending, no duplicates.\n- `value_col`: float64, may contain NaN.\n\n## Requirements\n- FR-001: The function MUST raise `ValueError` when `window &lt; 1`.\n- FR-002: The function MUST raise `KeyError` naming the column when `value_col` or `time_col` is missing.\n- FR-003: The function MUST raise `ValueError` when `time_col` is not sorted; it MUST NOT sort silently.\n- FR-004: Each output row MUST use only the current and earlier rows (no look-ahead leakage).\n- FR-005: The first `window - 1` rows of the new column MUST be NaN.\n- FR-006: The function MUST NOT mutate the input `df`.\n\n## Acceptance Scenarios\n- Given `value_col` = [1, 2, 3, 4] and `window` = 2, When the function runs, Then the new column is [NaN, 1.5, 2.5, 3.5].\n- Given a later value changed from 4 to 100, When the function runs, Then the first three rows of the new column do not change (FR-004).\n\n## Properties\n- For any valid input, the output has the same number of rows and the same index as the input.\n\n## Verification \/ Acceptance Criteria\n- [ ] `pytest tests\/test_rolling.py` passes; each FR-00N has at least one test named after it.\n- [ ] `mypy src\/features\/rolling.py` reports no error.\n- [ ] `ruff check src\/features` reports no error.\"><pre><span class=\"pl-mh\"># <span class=\"pl-en\">Spec: Rolling mean feature for sensor trace<\/span><\/span>\n\n<span class=\"pl-mh\">## <span class=\"pl-en\">Context &amp; Boundaries<\/span><\/span>\n<span class=\"pl-v\">-<\/span> Target files: <span class=\"pl-s\">`<\/span><span class=\"pl-c1\">src\/features\/rolling.py<\/span><span class=\"pl-s\">`<\/span>, <span class=\"pl-s\">`<\/span><span class=\"pl-c1\">tests\/test_rolling.py<\/span><span class=\"pl-s\">`<\/span>\n<span class=\"pl-v\">-<\/span> Tech stack: Python 3.11, pandas 2.x, pytest, hypothesis, mypy, ruff\n<span class=\"pl-v\">-<\/span> Do not modify any other file.\n\n<span class=\"pl-mh\">## <span class=\"pl-en\">Input Schema<\/span><\/span>\n<span class=\"pl-s\">```<\/span><span class=\"pl-en\">python<\/span>\n<span class=\"pl-c\"><span class=\"pl-c\">#<\/span> Python<\/span>\n<span class=\"pl-k\">import<\/span> pandas <span class=\"pl-k\">as<\/span> pd\n\n\n<span class=\"pl-k\">def<\/span> <span class=\"pl-en\">add_rolling_mean<\/span>(<span class=\"pl-k\">*<\/span>, <span class=\"pl-smi\">df<\/span>: pd.DataFrame, <span class=\"pl-smi\">value_col<\/span>: <span class=\"pl-c1\">str<\/span>, <span class=\"pl-smi\">window<\/span>: <span class=\"pl-c1\">int<\/span>, <span class=\"pl-smi\">time_col<\/span>: <span class=\"pl-c1\">str<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-s\"><span class=\"pl-pds\">\"<\/span>timestamp<span class=\"pl-pds\">\"<\/span><\/span>) -&gt; pd.DataFrame:\n    <span class=\"pl-s\"><span class=\"pl-pds\">\"\"\"<\/span>Append the trailing rolling mean of value_col.<\/span>\n<span class=\"pl-s\"><\/span>\n<span class=\"pl-s\">    Returns:<\/span>\n<span class=\"pl-s\">        pd.DataFrame: index and columns of df unchanged, plus one float64 column named f\"{value_col}_rm{window}\".<\/span>\n<span class=\"pl-s\">    <span class=\"pl-pds\">\"\"\"<\/span><\/span>\n<span class=\"pl-s\">```<\/span>\n\n<span class=\"pl-v\">-<\/span> <span class=\"pl-s\">`<\/span><span class=\"pl-c1\">time_col<\/span><span class=\"pl-s\">`<\/span>: datetime64<span class=\"pl-s\">&#91;<\/span>ns<span class=\"pl-s\">&#93;<\/span>, sorted ascending, no duplicates.\n<span class=\"pl-v\">-<\/span> <span class=\"pl-s\">`<\/span><span class=\"pl-c1\">value_col<\/span><span class=\"pl-s\">`<\/span>: float64, may contain NaN.\n\n<span class=\"pl-mh\">## <span class=\"pl-en\">Requirements<\/span><\/span>\n<span class=\"pl-v\">-<\/span> FR-001: The function MUST raise <span class=\"pl-s\">`<\/span><span class=\"pl-c1\">ValueError<\/span><span class=\"pl-s\">`<\/span> when <span class=\"pl-s\">`<\/span><span class=\"pl-c1\">window &lt; 1<\/span><span class=\"pl-s\">`<\/span>.\n<span class=\"pl-v\">-<\/span> FR-002: The function MUST raise <span class=\"pl-s\">`<\/span><span class=\"pl-c1\">KeyError<\/span><span class=\"pl-s\">`<\/span> naming the column when <span class=\"pl-s\">`<\/span><span class=\"pl-c1\">value_col<\/span><span class=\"pl-s\">`<\/span> or <span class=\"pl-s\">`<\/span><span class=\"pl-c1\">time_col<\/span><span class=\"pl-s\">`<\/span> is missing.\n<span class=\"pl-v\">-<\/span> FR-003: The function MUST raise <span class=\"pl-s\">`<\/span><span class=\"pl-c1\">ValueError<\/span><span class=\"pl-s\">`<\/span> when <span class=\"pl-s\">`<\/span><span class=\"pl-c1\">time_col<\/span><span class=\"pl-s\">`<\/span> is not sorted; it MUST NOT sort silently.\n<span class=\"pl-v\">-<\/span> FR-004: Each output row MUST use only the current and earlier rows (no look-ahead leakage).\n<span class=\"pl-v\">-<\/span> FR-005: The first <span class=\"pl-s\">`<\/span><span class=\"pl-c1\">window - 1<\/span><span class=\"pl-s\">`<\/span> rows of the new column MUST be NaN.\n<span class=\"pl-v\">-<\/span> FR-006: The function MUST NOT mutate the input <span class=\"pl-s\">`<\/span><span class=\"pl-c1\">df<\/span><span class=\"pl-s\">`<\/span>.\n\n<span class=\"pl-mh\">## <span class=\"pl-en\">Acceptance Scenarios<\/span><\/span>\n<span class=\"pl-v\">-<\/span> Given <span class=\"pl-s\">`<\/span><span class=\"pl-c1\">value_col<\/span><span class=\"pl-s\">`<\/span> = <span class=\"pl-s\">&#91;<\/span>1, 2, 3, 4<span class=\"pl-s\">&#93;<\/span> and <span class=\"pl-s\">`<\/span><span class=\"pl-c1\">window<\/span><span class=\"pl-s\">`<\/span> = 2, When the function runs, Then the new column is <span class=\"pl-s\">&#91;<\/span>NaN, 1.5, 2.5, 3.5<span class=\"pl-s\">&#93;<\/span>.\n<span class=\"pl-v\">-<\/span> Given a later value changed from 4 to 100, When the function runs, Then the first three rows of the new column do not change (FR-004).\n\n<span class=\"pl-mh\">## <span class=\"pl-en\">Properties<\/span><\/span>\n<span class=\"pl-v\">-<\/span> For any valid input, the output has the same number of rows and the same index as the input.\n\n<span class=\"pl-mh\">## <span class=\"pl-en\">Verification \/ Acceptance Criteria<\/span><\/span>\n<span class=\"pl-v\">-<\/span> <span class=\"pl-k\">&#91; &#93;<\/span> <span class=\"pl-s\">`<\/span><span class=\"pl-c1\">pytest tests\/test_rolling.py<\/span><span class=\"pl-s\">`<\/span> passes; each FR-00N has at least one test named after it.\n<span class=\"pl-v\">-<\/span> <span class=\"pl-k\">&#91; &#93;<\/span> <span class=\"pl-s\">`<\/span><span class=\"pl-c1\">mypy src\/features\/rolling.py<\/span><span class=\"pl-s\">`<\/span> reports no error.\n<span class=\"pl-v\">-<\/span> <span class=\"pl-k\">&#91; &#93;<\/span> <span class=\"pl-s\">`<\/span><span class=\"pl-c1\">ruff check src\/features<\/span><span class=\"pl-s\">`<\/span> reports no error.<\/pre><\/div>\n<p dir=\"auto\">Spec \uc758 \uac01 FR \ubc88\ud638\ub294 <code>tests\/test_rolling.py<\/code> \uc758 test \ud558\ub098 \uc774\uc0c1\uc73c\ub85c \uc62e\uaca8 \uc801\uc744 \uc218 \uc788\ub2e4. \uc62e\uaca8 \uc801\uc744 \uc218 \uc5c6\ub294 \uc694\uad6c\uc0ac\ud56d\uc740 agent \ub3c4 \uac80\uc99d\ud560 \uc218 \uc5c6\uc73c\ubbc0\ub85c, \uadf8 \uc694\uad6c\uc0ac\ud56d\uc744 test \ud560 \uc218 \uc788\ub294 \ubb38\uc7a5\uc73c\ub85c \uace0\uce5c\ub2e4. \uacb0\uce21\uac12\uc744 \uac74\ub108\ub6f8\uc9c0 NaN \uc73c\ub85c \ub458\uc9c0\ucc98\ub7fc \uc544\uc9c1 \uc815\ud558\uc9c0 \ubabb\ud55c \uc790\ub9ac\ub294 <code>&#91;NEEDS CLARIFICATION: skip or propagate NaN?&#93;<\/code> \uc73c\ub85c \uc801\uc5b4 \ub450\uace0, Phase 2 \ub85c \ub118\uae30\uae30 \uc804\uc5d0 specifier \uac00 \ub2f5\uc744 \uc801\ub294\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">4.3 Phase 2: Plan and Test Gate<\/h3><a id=\"user-content-43-phase-2-plan-and-test-gate\" class=\"anchor\" aria-label=\"Permalink: 4.3 Phase 2: Plan and Test Gate\" href=\"#43-phase-2-plan-and-test-gate\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Specifier \ub294 spec \ud30c\uc77c\uc744 agent \uc758 \uc785\ub825\uc73c\ub85c \uc8fc\uace0, agent \ub294 \uad6c\ud604\uc5d0 \uc55e\uc11c plan, tasks, test \ub97c \ub9cc\ub4e0\ub2e4. Plan \uc5d0\ub294 \uc4f8 pandas \uc5f0\uc0b0\uacfc \uc624\ub958\ub97c \uac80\uc0ac\ud558\ub294 \uc21c\uc11c\ub97c, tasks \uc5d0\ub294 \uc2e4\ud589\ud560 \uc791\uc5c5 \ub2e8\uc704 (task) \ub97c, test \uc5d0\ub294 FR \ubc88\ud638\ub9c8\ub2e4 \ud558\ub098 \uc774\uc0c1\uc758 test \ud568\uc218\ub97c \uc801\ub294\ub2e4.<\/p>\n<p dir=\"auto\">Reviewer \ub294 \uc774 \uc14b\uc744 \uc2b9\uc778\ud55c \ub4a4\uc5d0\ub9cc \uad6c\ud604\uc744 \ud5c8\ub77d\ud55c\ub2e4. Plan \uc774 project rules \ub098 spec \uc758 scope \ub97c \ubc97\uc5b4\ub098\uba74 \ubc18\ub824\ud558\uace0, test \ub294 FR \ubc88\ud638\uc640 \ud558\ub098\uc529 \ub300\uc870\ud55c \ub4a4 \uad6c\ud604 \uc804\uc5d0 \uc2e4\ud589\ud558\uc5ec \ubaa8\ub450 \uc2e4\ud328\ud558\ub294\uc9c0 \ud655\uc778\ud55c\ub2e4. \uad6c\ud604 \uc804\uc5d0 \ud1b5\uacfc\ud558\ub294 test \ub294 \uc544\ubb34 \ub3d9\uc791\ub3c4 \uac80\uc0ac\ud558\uc9c0 \uc54a\ub294 test \uc774\ubbc0\ub85c \uace0\uce58\uac8c \ud55c\ub2e4. \uc5ec\uae30\uc11c \uc2b9\uc778\ud55c test \ub294 Phase 5 \uc5d0\uc11c test \uac00 \uc57d\ud574\uc84c\ub294\uc9c0 \uac00\ub9ac\ub294 \uae30\uc900\uc774 \ub41c\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">4.4 Phase 3: Implementation<\/h3><a id=\"user-content-44-phase-3-implementation\" class=\"anchor\" aria-label=\"Permalink: 4.4 Phase 3: Implementation\" href=\"#44-phase-3-implementation\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Agent \ub294 tasks \uc758 \uc21c\uc11c\ub300\ub85c code \ub97c \uc4f0\uba70, Context &amp; Boundaries \uc5d0 \uc801\ud78c \ud30c\uc77c\ub9cc \ub9cc\ub4e4\uac70\ub098 \uace0\uce5c\ub2e4. Phase 2 \uc5d0\uc11c \uc2b9\uc778\ud55c test \ub294 \uace0\uce58\uc9c0 \uc54a\ub294\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">4.5 Phase 4: Self-Verification Loop<\/h3><a id=\"user-content-45-phase-4-self-verification-loop\" class=\"anchor\" aria-label=\"Permalink: 4.5 Phase 4: Self-Verification Loop\" href=\"#45-phase-4-self-verification-loop\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Agent \ub294 code \ub97c \uc4f4 \ub4a4 Verification \uc5d0 \uc801\ud78c \uba85\ub839\uc744 \uc2a4\uc2a4\ub85c \uc2e4\ud589\ud55c\ub2e4.<\/p>\n<ul dir=\"auto\">\n<li>\uc2e4\ud328\ud558\uba74 agent \uac00 error log \ub97c \uc77d\uace0 code \ub97c \uace0\uce5c \ub4a4 \uba85\ub839\uc744 \ub2e4\uc2dc \uc2e4\ud589\ud55c\ub2e4.<\/li>\n<li>\ubaa8\ub450 \ud1b5\uacfc\ud558\uba74 agent \uac00 commit \ub610\ub294 pull request \ub97c \ub9cc\ub4e4\uc5b4 Phase 5 \uc758 reviewer \uc5d0\uac8c \ub118\uae34\ub2e4.<\/li>\n<\/ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">4.6 Phase 5: Review<\/h3><a id=\"user-content-46-phase-5-review\" class=\"anchor\" aria-label=\"Permalink: 4.6 Phase 5: Review\" href=\"#46-phase-5-review\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Reviewer \ub294 acceptance criteria \uac00 \uac00\ub9ac\uc9c0 \ubabb\ud558\ub294 \uacb0\ud568\uc744 \ucc3e\ub294\ub2e4. Acceptance criteria \ub294 spec \uc5d0 \uc801\ud78c \uba85\ub839\uc758 \ud1b5\uacfc \uc5ec\ubd80\ub9cc \uac00\ub9ac\ubbc0\ub85c, agent \uac00 test \ub97c \uc57d\ud558\uac8c \uace0\uccd0 \ud1b5\uacfc\uc2dc\ud0a8 \uacbd\uc6b0, scope \ubc16\uc758 \ud30c\uc77c\uc744 \uace0\uce5c \uacbd\uc6b0, spec \uc5d0 \uc5c6\ub294 \ub3d9\uc791\uc744 \ub123\uc740 \uacbd\uc6b0\ub294 \ud1b5\uacfc \uacb0\uacfc\uc5d0 \ub4dc\ub7ec\ub098\uc9c0 \uc54a\ub294\ub2e4. Data science code \uc5d0\uc11c\ub294 test \uac00 \ud1b5\uacfc\ud574\ub3c4 look-ahead leakage \ub098 \ud589 \ub204\ub77d\uc73c\ub85c \uacb0\uacfc \uc218\uce58\uac00 \ud2c0\ub9b4 \uc218 \uc788\uc5b4, reviewer \ub294 \uc791\uc740 \ud45c\ubcf8\uc5d0 code \ub97c \uc9c1\uc811 \uc2e4\ud589\ud574 \uac12\uc744 \ud655\uc778\ud55c\ub2e4.<\/p>\n<p dir=\"auto\">Table 5. Review checklist<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th align=\"center\">Check<\/th>\n<th align=\"center\">Looks for<\/th>\n<th align=\"center\">Evidence<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">Scope<\/td>\n<td align=\"center\">Target file \ubc16\uc758 \uc218\uc815<\/td>\n<td align=\"center\">git diff --stat<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">Test integrity<\/td>\n<td align=\"center\">Phase 2 \uc5d0\uc11c \uc2b9\uc778\ud55c test \uc758 \uc0ad\uc81c, skip, \uae30\ub300\uac12 \ubcc0\uacbd<\/td>\n<td align=\"center\">\uc2b9\uc778\ud55c test \uc640\uc758 diff, pytest -rs \uc758 skip \ubaa9\ub85d<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">Requirement coverage<\/td>\n<td align=\"center\">FR \ubc88\ud638\ub9c8\ub2e4 \ub300\uc751\ud558\ub294 test<\/td>\n<td align=\"center\">FR \ubc88\ud638\uc640 test \ud568\uc218 \uc774\ub984\uc758 \ub300\uc870<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">Unspecified behavior<\/td>\n<td align=\"center\">Spec \uc5d0 \uc5c6\ub294 fallback, \uc554\ubb35\uc801 \uc815\ub82c, \uacb0\uce21 \ub300\uccb4<\/td>\n<td align=\"center\">Code \uc77d\uae30<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">Data validity<\/td>\n<td align=\"center\">\ud589 \uc218, dtype, \uac12 \ubc94\uc704, look-ahead leakage<\/td>\n<td align=\"center\">\uc791\uc740 \ud45c\ubcf8\uc5d0 \uc2e4\ud589\ud55c \uacb0\uacfc<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\">Scope \uc640 test integrity \ub294 diff \ub9cc\uc73c\ub85c \uac00\ub824\uc9c0\uace0, \ub098\uba38\uc9c0 \uc14b\uc740 reviewer \uac00 spec \uacfc code \ub97c \ud568\uaed8 \uc77d\uc5b4\uc57c \uac00\ub824\uc9c4\ub2e4. Reviewer \ub294 checklist \uc758 \uacb0\uacfc\ub85c \uc544\ub798 \uc14b \uc911 \ud558\ub098\ub97c \ud310\uc815\ud55c\ub2e4.<\/p>\n<p dir=\"auto\">Table 6. Review decisions<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th align=\"center\">Decision<\/th>\n<th align=\"center\">Condition<\/th>\n<th align=\"center\">Returns to<\/th>\n<th align=\"center\">Next step<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">Accept<\/td>\n<td align=\"center\">\ubaa8\ub4e0 check \ud1b5\uacfc<\/td>\n<td align=\"center\">\uc5c6\uc74c<\/td>\n<td align=\"center\">Merge<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">Return to agent<\/td>\n<td align=\"center\">Spec \uc5d0 \uc801\ud78c \ud56d\ubaa9\uc758 \uc704\ubc18<\/td>\n<td align=\"center\">Agent<\/td>\n<td align=\"center\">\uc5b4\uae34 FR \ubc88\ud638\ub97c \ubd99\uc5ec \uac19\uc740 spec \uc73c\ub85c Phase 3 \ubd80\ud130 \uc7ac\uc2e4\ud589<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">Return to specifier<\/td>\n<td align=\"center\">Spec \uc774 \uc815\ud558\uc9c0 \uc54a\uc740 \ub3d9\uc791\uc758 \uacb0\ud568<\/td>\n<td align=\"center\">Specifier<\/td>\n<td align=\"center\">\uc694\uad6c\uc0ac\ud56d\uacfc test \ub97c spec \uc5d0 \ub354\ud55c \ub4a4 Phase 1 \ubd80\ud130 \uc7ac\uc2e4\ud589<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\">Return to specifier \ub85c spec \uc5d0 \ub354\ud55c test \ub294 \ub2e4\uc74c \uc2e4\ud589\ubd80\ud130 acceptance criteria \uac00 \ub418\uc5b4, \uac19\uc740 \uacb0\ud568\uc744 reviewer \ub300\uc2e0 \uba85\ub839\uc774 \uac00\ub9b0\ub2e4. Review \ub97c \uac70\uce60 \ub54c\ub9c8\ub2e4 \uc0ac\ub78c\uc774 \ud310\ub2e8\ud560 \ud56d\ubaa9\uc774 test \ub85c \uc62e\uaca8 \uac00\ubbc0\ub85c, reviewer \ub294 test \ub85c \uc801\uc744 \uc218 \uc5c6\ub294 \ud310\ub2e8\uc5d0 \uc2dc\uac04\uc744 \uc4f4\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">5. Effects and Limits<\/h2><a id=\"user-content-5-effects-and-limits\" class=\"anchor\" aria-label=\"Permalink: 5. Effects and Limits\" href=\"#5-effects-and-limits\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">SDD \ub294 agent \uc758 \uc791\uc5c5 \ubc94\uc704\uc640 \ud310\uc815 \uae30\uc900\uc744 \uace0\uc815\ud558\ub294 \ub300\uac00\ub85c, spec \uc744 \uc4f0\ub294 \uc2dc\uac04\uacfc \uacb0\uacfc\ub97c \uac80\uc218\ud558\ub294 \uc2dc\uac04\uc744 \uc0ac\ub78c\uc5d0\uac8c \uc694\uad6c\ud55c\ub2e4.<\/p>\n<ul dir=\"auto\">\n<li><strong>Token \uacfc \ube44\uc6a9 \uc808\uac10<\/strong>: Agent \uac00 \ubc94\uc704 \ubc16\uc744 \ud0d0\uc0c9\ud558\uc9c0 \uc54a\uace0 spec \uc774 \uc815\ud55c \ud30c\uc77c \uc548\uc5d0\uc11c\ub9cc \uc791\uc5c5\ud55c\ub2e4.<\/li>\n<li><strong>Code \ud488\uc9c8 \uc720\uc9c0<\/strong>: Agent \uac00 \uad6c\uc870\ub97c \uc784\uc758\ub85c \ubc14\uafb8\uac70\ub098 spec \uc5d0 \uc5c6\ub294 \ub3d9\uc791\uc744 \ub123\ub294 \uac83\uc744 \ub9c9\ub294\ub2e4.<\/li>\n<li><strong>\ubb38\uc11c\uc640 code \uc758 \uc77c\uce58<\/strong>: Spec \ud30c\uc77c\uc774 \uadf8\ub300\ub85c \uadf8 \uae30\ub2a5\uc758 \uc124\uacc4 \ubb38\uc11c\uac00 \ub41c\ub2e4.<\/li>\n<li><strong>\ucd08\uae30 spec \uc791\uc131 \ube44\uc6a9<\/strong>: Spec \uc744 \uaf3c\uaf3c\ud788 \uc4f0\ub294 \ub370 specifier \uc758 \uc2dc\uac04\uc774 \ub4e0\ub2e4. Agent \uc5d0\uac8c spec \ucd08\uc548\uc744 \uc4f0\uac8c \ud558\uace0 \uc0ac\ub78c\uc774 \uac80\uc218\ud558\uba74 \uc774 \uc2dc\uac04\uc744 \uc904\uc77c \uc218 \uc788\ub2e4.<\/li>\n<li><strong>Spec \uc758 \uba85\ud655\uc131 \uc694\uad6c<\/strong>: \ubaa8\ud638\ud55c spec \uc740 \ubaa8\ud638\ud55c \uacb0\uacfc\ub97c \ub0b8\ub2e4. \ubaa8\ub4e0 FR \ubc88\ud638\ub97c test \ud560 \uc218 \uc788\ub294 \uc218\uc900\uc73c\ub85c \uc801\uc5b4\uc57c \ud55c\ub2e4.<\/li>\n<li><strong>Reviewer \uc758 \uac80\uc218 \ubd80\ub2f4<\/strong>: Agent \uac00 code \ub97c \ube68\ub9ac \ub9cc\ub4e4\uc218\ub85d reviewer \uac00 \uc77d\uc744 diff \uac00 \ub298\uc5b4\ub09c\ub2e4. Phase 2 \uc758 gate \ub294 \ubc29\ud5a5\uc774 \ud2c0\ub9b0 \uacb0\uacfc\ub97c \uad6c\ud604 \uc804\uc5d0 \uac78\ub7ec \uc774 \ubd80\ub2f4\uc744 \uc904\uc774\uace0, section 4.6 \uc758 return to specifier \ub294 \uacb0\ud568\uc744 test \ub85c \uc62e\uaca8 \ub2e4\uc74c review \uc758 \ubd80\ub2f4\uc744 \uc904\uc778\ub2e4.<\/li>\n<\/ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">6. Further Work<\/h2><a id=\"user-content-6-further-work\" class=\"anchor\" aria-label=\"Permalink: 6. Further Work\" href=\"#6-further-work\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<ul dir=\"auto\">\n<li><strong>\uc6b4\uc601 \uc911\uc778 pipeline \uc758 spec \ud654<\/strong>\n<ul dir=\"auto\">\n<li>\ubb34\uc5c7\uc744 \ud558\ub294\uac00: \uc774\ubbf8 \uc6b4\uc601 \uc911\uc778 feature pipeline \uc758 \ud604\uc7ac \ub3d9\uc791\uc744 spec \uc73c\ub85c \uac70\uafb8\ub85c \uc801\uace0, \uc774\ud6c4\uc758 \ubcc0\uacbd\uc740 delta spec \uc73c\ub85c\ub9cc \uc801\ub294\ub2e4.<\/li>\n<li>\uc65c \uc9c0\uae08\uc778\uac00: OpenSpec \uc774 \uae30\uc874 codebase \ub97c \ub300\uc0c1\uc73c\ub85c delta spec \uacfc, delta spec \uc744 \ubcf8\ub798 spec \uc5d0 \ud569\uce58\ub294 archive \ub2e8\uacc4\ub97c \ub3c4\uad6c\ub85c \uc81c\uacf5\ud55c\ub2e4 [<a href=\"#ref-3\">3<\/a>].<\/li>\n<li>\ubb34\uc5c7\uc774 \ud544\uc694\ud55c\uac00: \uae30\uc874 pipeline \uc758 \uc785\ucd9c\ub825 schema \uae30\ub85d\uacfc, \ud604\uc7ac \ub3d9\uc791\uc744 \uace0\uc815\ud558\ub294 regression test.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">References<\/h2><a id=\"user-content-references\" class=\"anchor\" aria-label=\"Permalink: References\" href=\"#references\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\"><a id=\"user-content-ref-1\"><\/a>\n[1] GitHub. <a href=\"https:\/\/github.com\/github\/spec-kit\/blob\/main\/spec-driven.md\">Specification-Driven Development (SDD)<\/a>. <em>github\/spec-kit<\/em>, GitHub repository.<br>\n<a id=\"user-content-ref-2\"><\/a>\n[2] GitHub. <a href=\"https:\/\/github.com\/github\/spec-kit\/blob\/main\/templates\/spec-template.md\">Feature Specification Template<\/a>. <em>github\/spec-kit<\/em>, GitHub repository.<br>\n<a id=\"user-content-ref-3\"><\/a>\n[3] Fission AI. <a href=\"https:\/\/github.com\/Fission-AI\/OpenSpec\">OpenSpec<\/a>. GitHub repository.<br>\n<a id=\"user-content-ref-4\"><\/a>\n[4] Kiro. <a href=\"https:\/\/github.com\/kirodotdev\/Kiro\">Kiro<\/a>. GitHub repository.<br>\n<a id=\"user-content-ref-5\"><\/a>\n[5] GitHub. <a href=\"https:\/\/github.com\/github\/spec-kit\/blob\/main\/docs\/concepts\/spec-persistence.md\">Spec Persistence Models<\/a>. <em>github\/spec-kit<\/em> documentation, GitHub repository.<\/p>\n<hr>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">Appendix A. Terminology<\/h2><a id=\"user-content-appendix-a-terminology\" class=\"anchor\" aria-label=\"Permalink: Appendix A. Terminology\" href=\"#appendix-a-terminology\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<ul dir=\"auto\">\n<li><strong>acceptance criteria<\/strong>: \uad6c\ud604\uc774 spec \uc744 \ub9cc\uc871\ud558\ub294\uc9c0 \uac00\ub974\ub294 \uc870\uac74. SDD \uc5d0\uc11c\ub294 test, type check, lint \uc758 \uc2e4\ud589 \uba85\ub839\uc73c\ub85c \uc801\ub294\ub2e4.<\/li>\n<li><strong>AI coding agent<\/strong>: \ud30c\uc77c\uc744 \uc77d\uace0 \uc4f0\uace0 \uba85\ub839\uc744 \uc2e4\ud589\ud558\uba74\uc11c code \ub97c \uad6c\ud604\ud558\ub294 LLM \uae30\ubc18 \ub3c4\uad6c.<\/li>\n<li><strong>code writer<\/strong>: AI coding agent \ub97c \uc4f0\uae30 \uc804\uc758 \uac1c\ubc1c\uc790 \uc5ed\ud560. \ubb34\uc5c7\uc744 \ub9cc\ub4e4\uc9c0 \uc815\ud558\uace0, code \ub97c \uc9c1\uc811 \uc4f0\uace0, \uc4f4 code \ub97c \uac80\ud1a0\ud558\ub294 \uc77c\uc744 \ud55c \uc0ac\ub78c\uc774 \ubaa8\ub450 \ub9e1\ub294\ub2e4.<\/li>\n<li><strong>constitution<\/strong>: Spec Kit \uc5d0\uc11c \ubaa8\ub4e0 \uae30\ub2a5\uc5d0 \uacf5\ud1b5\uc73c\ub85c \uc801\uc6a9\ud558\ub294 project \uaddc\uce59\uc744 \uc801\uc740 \ud30c\uc77c.<\/li>\n<li><strong>context drift<\/strong>: \ub300\ud654\uac00 \uae38\uc5b4\uc9c0\uba74\uc11c agent \uac00 \uc55e\uc11c \uc815\ud55c \uc870\uac74\uacfc \uc124\uacc4\ub97c \ub193\uce58\ub294 \ud604\uc0c1.<\/li>\n<li><strong>delta spec<\/strong>: \uae30\uc874 spec \uc5d0 \ub300\ud55c \ubcc0\uacbd\ubd84\ub9cc\uc744 ADDED, MODIFIED, REMOVED \ub85c \ub098\ub204\uc5b4 \uc801\uc740 spec.<\/li>\n<li><strong>edge case<\/strong>: \uc785\ub825\uc774 \ud5c8\uc6a9 \ubc94\uc704\uc758 \uacbd\uacc4\ub098 \uc608\uc678\uc5d0 \ub193\uc778 \uacbd\uc6b0. \ube48 DataFrame, \uacb0\uce21\uac12, \uc815\ub82c\ub418\uc9c0 \uc54a\uc740 \uc2dc\uac04 \uc5f4\uc774 \uadf8 \uc608\ub2e4.<\/li>\n<li><strong>Given-When-Then<\/strong>: \uc785\ub825 \uc0c1\ud0dc (Given), \ub3d9\uc791 (When), \uae30\ub300 \uacb0\uacfc (Then) \uc758 \uc138 \ubd80\ubd84\uc73c\ub85c acceptance scenario \ub97c \uc801\ub294 \ud615\uc2dd.<\/li>\n<li><strong>hallucination<\/strong>: LLM \uc774 \uc874\uc7ac\ud558\uc9c0 \uc54a\ub294 API, \ud30c\uc77c, \uc0ac\uc2e4\uc744 \uadf8\ub7f4\ub4ef\ud558\uac8c \ub9cc\ub4e4\uc5b4 \ub0b4\ub294 \ud604\uc0c1.<\/li>\n<li><strong>LLM<\/strong>: Large language model. \ub300\ub7c9\uc758 text \ub85c \ud559\uc2b5\ud558\uc5ec \ub2e4\uc74c token \uc744 \uc608\uce21\ud558\ub294 model.<\/li>\n<li><strong>look-ahead leakage<\/strong>: Feature \ub97c \uacc4\uc0b0\ud560 \ub54c \uadf8 \uc2dc\uc810 \uc774\ud6c4\uc758 \uac12\uc774 \ub4e4\uc5b4\uac00, \ud559\uc2b5 \uacb0\uacfc\uac00 \uc2e4\uc81c \uc6b4\uc6a9\ubcf4\ub2e4 \uc88b\uac8c \ub098\uc624\ub294 \uc624\ub958.<\/li>\n<li><strong>plan<\/strong>: Spec \uc744 \uad6c\ud604\ud558\ub294 \uae30\uc220\uc801 \ubc29\ubc95\uc744 \uc801\uc740 \ud30c\uc77c. Agent \uac00 \ucd08\uc548\uc744 \uc4f0\uace0 reviewer \uac00 \uc2b9\uc778\ud55c\ub2e4.<\/li>\n<li><strong>post-condition<\/strong>: \ud568\uc218\uac00 \ub05d\ub09c \ub4a4 \ubc18\ub4dc\uc2dc \uc131\ub9bd\ud574\uc57c \ud558\ub294 \uc870\uac74.<\/li>\n<li><strong>pre-condition<\/strong>: \ud568\uc218\ub97c \ud638\ucd9c\ud558\uae30 \uc804\uc5d0 \uc785\ub825\uc774 \ub9cc\uc871\ud574\uc57c \ud558\ub294 \uc870\uac74.<\/li>\n<li><strong>property-based test<\/strong>: \uc785\ub825\uc744 \ubb34\uc791\uc704\ub85c \ub9ce\uc774 \ub9cc\ub4e4\uc5b4, \ubaa8\ub4e0 \uc785\ub825\uc5d0\uc11c \uc131\ub9bd\ud574\uc57c \ud558\ub294 \uc870\uac74\uc744 \uac80\uc0ac\ud558\ub294 test.<\/li>\n<li><strong>regression test<\/strong>: \uc774\ubbf8 \uc788\ub294 \ub3d9\uc791\uc774 \ubcc0\uacbd \ub4a4\uc5d0\ub3c4 \uadf8\ub300\ub85c\uc778\uc9c0 \uac80\uc0ac\ud558\ub294 test.<\/li>\n<li><strong>reviewer<\/strong>: \uad6c\ud604 \uc804\uc5d0 agent \uc758 plan \uacfc test \ub97c \uc2b9\uc778\ud558\uace0, \uad6c\ud604 \ub4a4\uc5d0 agent \uac00 acceptance criteria \ub97c \ud1b5\uacfc\uc2dc\ud0a8 \uacb0\uacfc\ub97c spec \uc5d0 \ube44\ucd94\uc5b4 \uac80\uc218\ud558\uc5ec, \uc218\uc6a9\ud560\uc9c0 agent \ub098 specifier \uc5d0\uac8c \ub3cc\ub824\ubcf4\ub0bc\uc9c0 \uc815\ud558\ub294 \uc0ac\ub78c\uc758 \uc5ed\ud560.<\/li>\n<li><strong>single source of truth<\/strong>: \uac19\uc740 \uc815\ubcf4\ub97c \ud55c \uacf3\uc5d0\ub9cc \ub450\uc5b4, \ub2e4\ub978 \ubaa8\ub4e0 \uacf3\uc774 \uadf8\uacf3\uc744 \ub530\ub974\uac8c \ud558\ub294 \uc6d0\uce59.<\/li>\n<li><strong>spec<\/strong>: \uad6c\ud604\ud560 \uae30\ub2a5\uc758 \ubc94\uc704, data schema, \ub3d9\uc791, \uac80\uc99d \uc870\uac74\uc744 \uc801\uc740 \ubb38\uc11c.<\/li>\n<li><strong>specifier<\/strong>: \uad6c\ud604\ud560 \uae30\ub2a5\uc758 spec \uc744 \uc4f0\uace0, reviewer \uac00 \ub3cc\ub824\ubcf4\ub0b8 \uacb0\ud568\uc5d0 \ub9de\ucdb0 spec \uc744 \uace0\uce58\ub294 \uc0ac\ub78c\uc758 \uc5ed\ud560.<\/li>\n<li><strong>steering<\/strong>: Kiro \uc5d0\uc11c agent \uac00 \ubaa8\ub4e0 \uc791\uc5c5\uc5d0 \ub530\ub974\ub3c4\ub85d project \uad00\ub840\ub97c \uc801\uc740 \ud30c\uc77c.<\/li>\n<li><strong>tasks<\/strong>: Plan \uc744 agent \uac00 \ucc28\ub840\ub85c \uc2e4\ud589\ud560 \uc791\uc5c5 \ub2e8\uc704\ub85c \ub098\ub208 \ubaa9\ub85d \ud30c\uc77c.<\/li>\n<li><strong>TDD<\/strong>: Test-driven development. \uad6c\ud604\ubcf4\ub2e4 test \ub97c \uba3c\uc800 \uc4f0\uace0, \uadf8 test \ub97c \ud1b5\uacfc\uc2dc\ud0a4\ub294 code \ub97c \uc4f0\ub294 \uac1c\ubc1c \ubc29\uc2dd.<\/li>\n<\/ul>\n<\/article><\/div><\/div><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n<div style='text-align:center' class='yasr-auto-insert-overall'><\/div><div style='text-align:center' class='yasr-auto-insert-visitor'><\/div>","protected":false},"excerpt":{"rendered":"<p>In spec-driven development a person fixes scope, data schema, behavior and acceptance criteria in one file, and the coding agent implements only inside it, looping until every listed check passes. The human roles narrow to specifier before and reviewer after, and the spec, not the chat history, is the source of truth.<\/p>\n","protected":false},"author":4,"featured_media":7153,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","yasr_overall_rating":0,"yasr_post_is_review":"","yasr_auto_insert_disabled":"","yasr_review_type":"","fifu_image_url":"","fifu_image_alt":"","iawp_total_views":22,"footnotes":""},"categories":[56,291],"tags":[386,446],"class_list":["post-7152","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-science-slug","category-aiops-slug","tag-github-hosted","tag-sdd"],"yasr_visitor_votes":{"stars_attributes":{"read_only":false,"span_bottom":false},"number_of_votes":0,"sum_votes":0},"jetpack_featured_media_url":"https:\/\/ykim.synology.me\/wordpress\/wp-content\/uploads\/2026\/09\/dicks-store-entrance-longhorns-floor-angle.jpg","_links":{"self":[{"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts\/7152","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/comments?post=7152"}],"version-history":[{"count":3,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts\/7152\/revisions"}],"predecessor-version":[{"id":7166,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts\/7152\/revisions\/7166"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/media\/7153"}],"wp:attachment":[{"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/media?parent=7152"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/categories?post=7152"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/tags?post=7152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}