x-ipe 1.0.23__py3-none-any.whl → 1.0.25__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. x_ipe/app.py +32 -1
  2. x_ipe/handlers/terminal_handlers.py +6 -0
  3. x_ipe/handlers/voice_handlers.py +5 -0
  4. x_ipe/resources/copilot-instructions.md +19 -6
  5. x_ipe/resources/skills/lesson-learned/SKILL.md +208 -0
  6. x_ipe/resources/skills/lesson-learned/references/examples.md +238 -0
  7. x_ipe/resources/skills/project-quality-board-management/SKILL.md +135 -298
  8. x_ipe/resources/skills/project-quality-board-management/references/evaluation-principles.md +213 -0
  9. x_ipe/resources/skills/project-quality-board-management/references/evaluation-procedures.md +214 -0
  10. x_ipe/resources/skills/project-quality-board-management/templates/quality-report.md +70 -18
  11. x_ipe/resources/skills/task-execution-guideline/SKILL.md +2 -2
  12. x_ipe/resources/skills/task-execution-guideline/templates/task-record.yaml +1 -1
  13. x_ipe/resources/skills/task-type-code-implementation/SKILL.md +72 -270
  14. x_ipe/resources/skills/task-type-code-implementation/references/implementation-guidelines.md +432 -0
  15. x_ipe/resources/skills/task-type-code-refactor-v2/SKILL.md +127 -353
  16. x_ipe/resources/skills/task-type-code-refactor-v2/references/refactoring-techniques.md +373 -0
  17. x_ipe/resources/skills/task-type-feature-breakdown/SKILL.md +31 -243
  18. x_ipe/resources/skills/task-type-feature-breakdown/references/breakdown-guidelines.md +330 -0
  19. x_ipe/resources/skills/task-type-feature-refinement/SKILL.md +27 -180
  20. x_ipe/resources/skills/task-type-feature-refinement/references/specification-writing-guide.md +267 -0
  21. x_ipe/resources/skills/task-type-idea-mockup/SKILL.md +38 -276
  22. x_ipe/resources/skills/task-type-idea-mockup/references/mockup-guidelines.md +299 -0
  23. x_ipe/resources/skills/task-type-idea-to-architecture/SKILL.md +20 -218
  24. x_ipe/resources/skills/task-type-idea-to-architecture/references/architecture-patterns.md +342 -0
  25. x_ipe/resources/skills/task-type-ideation/SKILL.md +10 -266
  26. x_ipe/resources/skills/task-type-ideation/references/folder-naming-guide.md +55 -0
  27. x_ipe/resources/skills/task-type-ideation/references/tool-usage-guide.md +236 -0
  28. x_ipe/resources/skills/task-type-ideation-v2/SKILL.md +488 -0
  29. x_ipe/resources/skills/task-type-ideation-v2/references/examples.md +377 -0
  30. x_ipe/resources/skills/task-type-ideation-v2/references/folder-naming-guide.md +74 -0
  31. x_ipe/resources/skills/task-type-ideation-v2/references/tool-usage-guide.md +145 -0
  32. x_ipe/resources/skills/task-type-ideation-v2/references/visualization-guide.md +160 -0
  33. x_ipe/resources/skills/task-type-ideation-v2/templates/idea-summary.md +86 -0
  34. x_ipe/resources/skills/task-type-refactoring-analysis/SKILL.md +83 -145
  35. x_ipe/resources/skills/task-type-refactoring-analysis/references/output-schema.md +172 -0
  36. x_ipe/resources/skills/task-type-technical-design/SKILL.md +28 -214
  37. x_ipe/resources/skills/task-type-technical-design/references/design-templates.md +422 -0
  38. x_ipe/resources/skills/task-type-test-generation/SKILL.md +47 -332
  39. x_ipe/resources/skills/task-type-test-generation/references/test-patterns.md +368 -0
  40. x_ipe/resources/skills/tool-tracing-creator/SKILL.md +312 -0
  41. x_ipe/resources/skills/tool-tracing-creator/references/examples.md +324 -0
  42. x_ipe/resources/skills/tool-tracing-instrumentation/SKILL.md +373 -0
  43. x_ipe/resources/skills/tool-tracing-instrumentation/references/examples.md +264 -0
  44. x_ipe/resources/skills/x-ipe-skill-creator-v3/SKILL.md +486 -0
  45. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/10. example-gate-conditions.md +73 -0
  46. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/11. reference-quality-standards.md +127 -0
  47. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/2. reference-section-order.md +127 -0
  48. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/3. example-step-based-code-review.md +84 -0
  49. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/4. example-step-based-feature-implementation.md +113 -0
  50. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/5. example-function-based-validation.md +73 -0
  51. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/6. example-function-based-analysis.md +94 -0
  52. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/7. example-task-io-code-implementation.md +36 -0
  53. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/8. example-structured-summary.md +43 -0
  54. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/9. example-dor-dod.md +77 -0
  55. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/examples.md +429 -0
  56. x_ipe/resources/skills/x-ipe-skill-creator-v3/references/skill-general-guidelines-v2.md +611 -0
  57. x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/skill-meta-x-ipe-meta.md +153 -0
  58. x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/skill-meta-x-ipe-task-based.md +324 -0
  59. x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/skill-meta-x-ipe-task-category.md +109 -0
  60. x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/skill-meta-x-ipe-tool.md +205 -0
  61. x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/x-ipe-meta.md +334 -0
  62. x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/x-ipe-task-based.md +279 -0
  63. x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/x-ipe-tool.md +175 -0
  64. x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/x-ipe-workflow-orchestration.md +329 -0
  65. x_ipe/resources/skills/x-ipe-task-based-ideation/SKILL.md +487 -0
  66. x_ipe/resources/skills/x-ipe-task-based-ideation/references/examples.md +377 -0
  67. x_ipe/resources/skills/x-ipe-task-based-ideation/references/folder-naming-guide.md +74 -0
  68. x_ipe/resources/skills/x-ipe-task-based-ideation/references/tool-usage-guide.md +145 -0
  69. x_ipe/resources/skills/x-ipe-task-based-ideation/references/visualization-guide.md +160 -0
  70. x_ipe/resources/skills/x-ipe-task-based-ideation/templates/idea-summary.md +86 -0
  71. x_ipe/routes/__init__.py +2 -0
  72. x_ipe/routes/ideas_routes.py +289 -0
  73. x_ipe/routes/kb_routes.py +80 -0
  74. x_ipe/routes/main_routes.py +18 -0
  75. x_ipe/routes/project_routes.py +7 -0
  76. x_ipe/routes/proxy_routes.py +10 -2
  77. x_ipe/routes/quality_evaluation_routes.py +193 -0
  78. x_ipe/routes/settings_routes.py +6 -0
  79. x_ipe/routes/tools_routes.py +6 -0
  80. x_ipe/routes/tracing_routes.py +232 -0
  81. x_ipe/routes/uiux_feedback_routes.py +50 -0
  82. x_ipe/services/__init__.py +5 -0
  83. x_ipe/services/config_service.py +6 -0
  84. x_ipe/services/file_service.py +20 -0
  85. x_ipe/services/homepage_service.py +160 -0
  86. x_ipe/services/ideas_service.py +535 -2
  87. x_ipe/services/kb_service.py +378 -0
  88. x_ipe/services/proxy_service.py +37 -7
  89. x_ipe/services/settings_service.py +13 -0
  90. x_ipe/services/skills_service.py +4 -0
  91. x_ipe/services/terminal_service.py +24 -0
  92. x_ipe/services/themes_service.py +4 -0
  93. x_ipe/services/tools_config_service.py +4 -0
  94. x_ipe/services/tracing_service.py +333 -0
  95. x_ipe/services/uiux_feedback_service.py +148 -1
  96. x_ipe/services/voice_input_service_v2.py +11 -0
  97. x_ipe/static/css/base.css +7 -0
  98. x_ipe/static/css/homepage-infinity.css +330 -0
  99. x_ipe/static/css/kb-core.css +301 -0
  100. x_ipe/static/css/quality-evaluation.css +345 -0
  101. x_ipe/static/css/sidebar.css +14 -4
  102. x_ipe/static/css/terminal.css +23 -0
  103. x_ipe/static/css/tracing-dashboard.css +796 -0
  104. x_ipe/static/css/uiux-feedback.css +7 -1
  105. x_ipe/static/css/workplace.css +636 -0
  106. x_ipe/static/img/homepage-infinity-loop.png +0 -0
  107. x_ipe/static/js/features/confirm-dialog.js +169 -0
  108. x_ipe/static/js/features/folder-view.js +742 -0
  109. x_ipe/static/js/features/homepage-infinity.js +314 -0
  110. x_ipe/static/js/features/kb-core.js +371 -0
  111. x_ipe/static/js/features/quality-evaluation.js +387 -0
  112. x_ipe/static/js/features/sidebar.js +255 -12
  113. x_ipe/static/js/features/tracing-dashboard.js +855 -0
  114. x_ipe/static/js/features/tracing-graph.js +1031 -0
  115. x_ipe/static/js/features/tree-drag.js +227 -0
  116. x_ipe/static/js/features/tree-search.js +228 -0
  117. x_ipe/static/js/features/workplace.js +661 -33
  118. x_ipe/static/js/init.js +76 -0
  119. x_ipe/static/js/terminal-v2.js +45 -14
  120. x_ipe/static/js/terminal.js +50 -49
  121. x_ipe/static/js/uiux-feedback.js +75 -16
  122. x_ipe/templates/base.html +24 -0
  123. x_ipe/templates/index.html +10 -1
  124. x_ipe/templates/knowledge-base.html +110 -0
  125. x_ipe/templates/workplace.html +4 -0
  126. x_ipe/tracing/__init__.py +37 -0
  127. x_ipe/tracing/buffer.py +135 -0
  128. x_ipe/tracing/context.py +125 -0
  129. x_ipe/tracing/decorator.py +288 -0
  130. x_ipe/tracing/middleware.py +197 -0
  131. x_ipe/tracing/parser.py +235 -0
  132. x_ipe/tracing/redactor.py +111 -0
  133. x_ipe/tracing/writer.py +122 -0
  134. {x_ipe-1.0.23.dist-info → x_ipe-1.0.25.dist-info}/METADATA +2 -2
  135. {x_ipe-1.0.23.dist-info → x_ipe-1.0.25.dist-info}/RECORD +138 -65
  136. x_ipe/app.py.bak +0 -1333
  137. x_ipe/resources/skills/x-ipe-skill-creator/SKILL.md +0 -329
  138. x_ipe/resources/skills/x-ipe-skill-creator/references/output-patterns.md +0 -169
  139. x_ipe/resources/skills/x-ipe-skill-creator/references/skill-structure.md +0 -162
  140. x_ipe/resources/skills/x-ipe-skill-creator/references/workflows.md +0 -110
  141. x_ipe/resources/skills/x-ipe-skill-creator/templates/references/examples.md +0 -113
  142. x_ipe/resources/skills/x-ipe-skill-creator/templates/skill-category-skill.md +0 -296
  143. x_ipe/resources/skills/x-ipe-skill-creator/templates/task-type-skill.md +0 -269
  144. {x_ipe-1.0.23.dist-info → x_ipe-1.0.25.dist-info}/WHEEL +0 -0
  145. {x_ipe-1.0.23.dist-info → x_ipe-1.0.25.dist-info}/entry_points.txt +0 -0
  146. {x_ipe-1.0.23.dist-info → x_ipe-1.0.25.dist-info}/licenses/LICENSE +0 -0
@@ -74,6 +74,7 @@ Output:
74
74
  | 3 | Technical design document exists | Yes |
75
75
  | 4 | **Tests exist from Test Generation task** | Yes |
76
76
  | 5 | **All tests currently FAIL (TDD ready)** | Yes |
77
+ | 6 | **Tracing utility exists in project** | Yes (see Tracing Check) |
77
78
 
78
79
  **⚠️ PRE-CODING VERIFICATION:**
79
80
  Before writing ANY implementation code, agent MUST:
@@ -81,6 +82,12 @@ Before writing ANY implementation code, agent MUST:
81
82
  2. Verify tests FAIL (proving no implementation yet)
82
83
  3. If tests pass or don't exist → STOP and complete Test Generation first
83
84
 
85
+ **🔍 TRACING CHECK (FEATURE-023-D):**
86
+ Before implementing, verify tracing infrastructure exists:
87
+ 1. Check for `tracing/` directory or `x_ipe.tracing` import availability
88
+ 2. If NOT available → Use `tool-tracing-creator` skill to create tracing utility
89
+ 3. If available → Proceed with implementation
90
+
84
91
  ---
85
92
 
86
93
  ## Execution Flow
@@ -105,105 +112,17 @@ Execute Code Implementation by following these steps in order:
105
112
 
106
113
  ## Implementation Principles
107
114
 
108
- ### KISS (Keep It Simple, Stupid)
109
-
110
- - Write simple, readable code
111
- - No complex abstractions unless specified in design
112
- - Use standard patterns from technical design
113
- - Prefer clarity over cleverness
114
- - If implementation seems complex, question the design
115
-
116
- ---
117
-
118
- ### YAGNI (You Aren't Gonna Need It)
119
-
120
- - Implement ONLY what's in technical design
121
- - No extra features "just in case"
122
- - No "nice to have" additions
123
- - If it's not in the design doc, don't implement it
124
- - Defer future features to future tasks
125
-
126
- ---
127
-
128
- ### Test Driven Development (TDD)
129
-
130
- **Workflow:**
131
- ```
132
- 1. Write test (RED - test fails)
133
- 2. Write minimum code to pass (GREEN - test passes)
134
- 3. Refactor if needed (REFACTOR - clean up)
135
- 4. Repeat
136
- ```
137
-
138
- ---
139
-
140
- ### 🎨 Mockup Reference (Conditional)
141
-
142
- **When implementing frontend code:**
143
- ```
144
- IF Technical Scope in specification.md includes [Frontend] OR [Full Stack]:
145
- 1. MUST open and reference "Linked Mockups" from specification.md
146
- 2. Keep mockup visible during frontend implementation
147
- 3. Match implementation to mockup:
148
- - Component structure and hierarchy
149
- - Layout and positioning
150
- - Interactive elements and behaviors
151
- - Form fields and their validations
152
- - Visual states (hover, active, disabled, error)
153
- 4. Verify implementation visually matches mockup
154
- 5. Note any deviations and document reasons
155
-
156
- ELSE (Backend/API Only/Database/Infrastructure):
157
- - Skip mockup reference
158
- - Implement based on technical design only
159
- ```
160
-
161
- **Implementation Tip:**
162
- For frontend work, implement in this order:
163
- 1. Component structure (HTML/JSX)
164
- 2. Styling (CSS) to match mockup
165
- 3. Interactivity (event handlers)
166
- 4. State management
167
- 5. API integration
168
-
169
- ---
170
-
171
- ### ⚠️ Coverage ≠ Complexity
172
-
173
- **CRITICAL RULE: DO NOT make code complex just for test coverage!**
115
+ | Principle | Description |
116
+ |-----------|-------------|
117
+ | **KISS** | Keep code simple, readable, prefer clarity over cleverness |
118
+ | **YAGNI** | Implement ONLY what's in technical design, no extras |
119
+ | **TDD** | RED (test fails) → GREEN (pass) → REFACTOR → REPEAT |
120
+ | **Coverage Complexity** | Target 80%+, never add complexity for coverage |
121
+ | **Coding Standards** | Use linters, formatters, meaningful names |
174
122
 
175
- - Keep code simple and testable
176
- - Target reasonable coverage (80%+), not 100% at all costs
177
- - If code is hard to test, simplify the code
178
- - Avoid testing implementation details
179
- - Do NOT add parameters, abstractions, or indirection just to hit coverage metrics
123
+ **🎨 Mockup Reference:** For frontend work, reference mockups from specification.md and match layout, components, and visual states.
180
124
 
181
- **Good:**
182
- ```python
183
- # Simple, testable function
184
- def calculate_discount(price: float, percent: int) -> float:
185
- return price * (1 - percent / 100)
186
- ```
187
-
188
- **Bad (DON'T DO THIS):**
189
- ```python
190
- # Over-complicated just for "testability"
191
- def calculate_discount(price, percent,
192
- logger=None, cache=None,
193
- event_bus=None, metrics=None):
194
- # Unnecessary complexity added for coverage
195
- ```
196
-
197
- ---
198
-
199
- ### Follow Coding Standards
200
-
201
- - Follow project coding standards
202
- - Use linters and formatters
203
- - Consistent naming conventions
204
- - Meaningful variable/function names
205
- - Document public APIs
206
- - Handle errors appropriately
125
+ 📖 **See:** [references/implementation-guidelines.md](references/implementation-guidelines.md) for detailed principles, examples, and coding standards.
207
126
 
208
127
  ---
209
128
 
@@ -231,90 +150,32 @@ RECEIVE Feature Data Model:
231
150
 
232
151
  ### Step 2: Learn Technical Design Document
233
152
 
234
- **Action:** THOROUGHLY read and understand the technical design before writing any code
153
+ **Action:** THOROUGHLY read and understand the technical design
235
154
 
236
- ```
237
- 1. READ {technical_design_link} from Feature Data Model
238
- Location: x-ipe-docs/requirements/FEATURE-XXX/technical-design.md
239
-
240
- 2. UNDERSTAND Part 1 (Agent-Facing Summary):
241
- - Components to implement
242
- - Key interfaces and signatures
243
- - Scope and boundaries
244
- - Usage examples
245
- - Tags for context
246
-
247
- 3. UNDERSTAND Part 2 (Implementation Guide):
248
- - Data models (exact fields and types)
249
- - API endpoints (request/response formats)
250
- - Workflows (sequence and logic)
251
- - Implementation guidelines (specific notes)
252
- - Edge cases and error handling
253
-
254
- 4. NOTE any references to architecture designs
255
-
256
- 5. CHECK Design Change Log for any updates since initial design
257
- ```
155
+ 1. READ `{technical_design_link}` from Feature Data Model
156
+ 2. UNDERSTAND Part 1 (Agent-Facing Summary) and Part 2 (Implementation Guide)
157
+ 3. NOTE references to architecture designs
158
+ 4. CHECK Design Change Log for updates
258
159
 
259
- **⚠️ STRICT REQUIREMENT:**
260
- - Do NOT start coding until you fully understand the technical design!
261
- - Implementation MUST follow the technical design exactly
262
- - If design is unclear, incomplete, or incorrect - STOP and update design first
160
+ **⚠️ STRICT:** Do NOT code until design is understood. If design is unclear → STOP and update first.
263
161
 
264
162
  ---
265
163
 
266
164
  ### Step 2.1: Update Technical Design If Needed
267
165
 
268
- **Action:** If implementation reveals design issues, UPDATE the design BEFORE proceeding
166
+ If implementation reveals design issues → STOP, UPDATE technical-design.md, add to Design Change Log, then RESUME.
269
167
 
270
- ```
271
- IF during implementation you discover:
272
- - Design is not working as expected
273
- - Better implementation approach exists
274
- - Design needs changes to support feature properly
275
- - Key component interfaces need modification
276
-
277
- THEN:
278
- 1. STOP implementation
279
- 2. UPDATE technical-design.md:
280
- - Modify affected sections in Part 1 and/or Part 2
281
- - Add entry to Design Change Log:
282
- | Date | Phase | Change Summary |
283
- |------|-------|----------------|
284
- | {today} | Code Implementation | {What changed, why, impact ~100 words} |
285
- 3. RESUME implementation with updated design
286
-
287
- DO NOT:
288
- - Implement something different from the design without updating it
289
- - Make incompatible changes to key components without documenting
290
- - Skip the change log entry
291
- ```
168
+ 📖 **See:** [references/implementation-guidelines.md](references/implementation-guidelines.md#design-update-procedure) for detailed procedure.
292
169
 
293
170
  ---
294
171
 
295
172
  ### Step 3: Read Architecture Designs (If Referenced)
296
173
 
297
- **Action:** If technical design mentions common architecture rules, READ them first
298
-
299
- ```
300
- IF technical design references architecture components:
301
- 1. READ x-ipe-docs/architecture/technical-designs/{component}.md
302
- 2. UNDERSTAND:
303
- - Common patterns to follow
304
- - Required interfaces/protocols
305
- - Shared utilities to use
306
- - Integration requirements
307
-
308
- COMMON REFERENCES:
309
- - Database patterns
310
- - API standards
311
- - Error handling conventions
312
- - Logging standards
313
- - Security patterns
314
- - Authentication/Authorization
315
- ```
174
+ **Action:** If technical design references architecture patterns, READ them first
316
175
 
317
- **IMPORTANT:** Architecture designs define project-wide patterns. Follow them consistently!
176
+ - Read `x-ipe-docs/architecture/technical-designs/{component}.md`
177
+ - Understand common patterns, interfaces, and integration requirements
178
+ - Follow project-wide patterns consistently
318
179
 
319
180
  ---
320
181
 
@@ -322,51 +183,15 @@ COMMON REFERENCES:
322
183
 
323
184
  **Action:** Verify tests from Test Generation are ready BEFORE any coding
324
185
 
325
- ```
326
- 1. LOCATE test files created by Test Generation task:
327
- - tests/unit/{feature}/
328
- - tests/integration/{feature}/
329
- - tests/api/{feature}/
330
- - tests/test_{feature}.py
331
-
332
- 2. RUN all tests to verify baseline:
333
- - pytest tests/ -v (Python)
334
- - npm test (Node.js)
335
-
336
- 3. VERIFY tests FAIL:
337
- - ⚠️ All feature-related tests should FAIL
338
- - This proves no implementation exists yet
339
- - Document: "X tests failing, 0 passing (TDD ready)"
340
-
341
- 4. IF tests pass:
342
- - STOP: Implementation may already exist
343
- - Review what code exists
344
- - Determine if this is a duplicate task
345
-
346
- 5. IF tests don't exist:
347
- - ⚠️ STOP immediately
348
- - Report: "Test Generation task not completed"
349
- - Go back to Test Generation task FIRST
350
- - Do NOT proceed without tests
351
-
352
- 6. UNDERSTAND what tests expect:
353
- - Review test assertions
354
- - Note expected inputs/outputs
355
- - Identify test structure
356
- ```
186
+ 1. **LOCATE** test files: `tests/unit/{feature}/`, `tests/integration/{feature}/`, `tests/test_{feature}.py`
187
+ 2. **RUN** all tests: `pytest tests/ -v` or `npm test`
188
+ 3. **VERIFY** tests FAIL (proves TDD ready)
189
+ 4. **IF tests pass** → STOP, implementation may exist
190
+ 5. **IF tests don't exist** → STOP, complete Test Generation first
357
191
 
358
- **⚠️ NO EXCEPTIONS:**
359
- - Do NOT write any implementation code until Step 4 is complete
360
- - Do NOT skip this step even if you "know" what to implement
361
- - Tests MUST exist and MUST fail before proceeding
192
+ **⚠️ NO EXCEPTIONS:** Do NOT write implementation code until tests exist AND fail.
362
193
 
363
- **TDD Workflow:**
364
- ```
365
- RED → Tests fail (current state after Step 4)
366
- GREEN → Write minimum code to pass (Step 5)
367
- REFACTOR → Improve code quality
368
- REPEAT → Until all tests pass
369
- ```
194
+ 📖 **See:** [references/implementation-guidelines.md](references/implementation-guidelines.md#step-4-load-tests-detailed) for detailed procedure.
370
195
 
371
196
  ---
372
197
 
@@ -374,44 +199,13 @@ REPEAT → Until all tests pass
374
199
 
375
200
  **Action:** Write minimum code to pass tests (following technical design)
376
201
 
377
- **🌐 Web Search (As Needed):**
378
- Use web search capability when you encounter:
379
- - Library/framework API questions Search official documentation
380
- - Error messages → Search Stack Overflow, GitHub Issues
381
- - Implementation patterns → Search for best practices
382
- - Performance issues → Search for optimization techniques
383
- - Security concerns → Search for secure coding practices
202
+ 1. **IMPLEMENT** in order: Data models → Business logic → API endpoints → Integration
203
+ 2. **FOR EACH** component: Write code → Run tests → Verify pass → Refactor if needed
204
+ 3. **AVOID:** Extra features, over-engineering, premature optimization
384
205
 
385
- ```
386
- 1. IMPLEMENT in order specified by technical design:
387
- - Data models
388
- - Business logic/services
389
- - API endpoints (if applicable)
390
- - Integration points
391
-
392
- 2. FOR EACH component:
393
- - Write code following technical design exactly
394
- - Run related tests
395
- - Verify tests pass (GREEN phase)
396
- - Refactor if needed (keep simple!)
397
- - Verify tests still pass
398
-
399
- 3. AVOID:
400
- - Adding features not in design
401
- - Over-engineering
402
- - Premature optimization
403
- - Complex abstractions
404
- ```
206
+ **🌐 Web Search:** Use for library APIs, error messages, best practices, security.
405
207
 
406
- **Implementation Structure:**
407
- ```
408
- src/
409
- ├── models/ # Data models from design
410
- ├── services/ # Business logic from design
411
- ├── routes/ # API endpoints from design (if applicable)
412
- ├── middleware/ # Cross-cutting concerns
413
- └── utils/ # Helper functions
414
- ```
208
+ 📖 **See:** [references/implementation-guidelines.md](references/implementation-guidelines.md#step-5-implement-code-detailed) for detailed procedure.
415
209
 
416
210
  ---
417
211
 
@@ -419,30 +213,28 @@ src/
419
213
 
420
214
  **Action:** Run all checks before completion
421
215
 
422
- ```
423
- 1. RUN all tests:
424
- - pytest tests/ -v (Python)
425
- - npm test (Node.js)
426
-
427
- 2. CHECK coverage (aim for 80%+, but don't add complexity for it):
428
- - pytest --cov=src tests/
429
-
430
- 3. RUN linter:
431
- - ruff check src/ tests/
432
- - flake8 src/ tests/
433
- - eslint src/ tests/
434
-
435
- 4. RUN formatter:
436
- - ruff format src/ tests/
437
- - black src/ tests/
438
- - prettier --write src/ tests/
439
-
440
- 5. VERIFY:
441
- - [ ] All tests pass
442
- - [ ] No linter errors
443
- - [ ] Code matches technical design
444
- - [ ] No extra features added
445
- ```
216
+ 1. **RUN** tests: `pytest tests/ -v` or `npm test`
217
+ 2. **CHECK** coverage: `pytest --cov=src tests/` (aim 80%+)
218
+ 3. **RUN** linter: `ruff check` / `eslint`
219
+ 4. **RUN** formatter: `ruff format` / `prettier`
220
+ 5. **VERIFY:** All tests pass, no linter errors, code matches design
221
+
222
+ 📖 **See:** [references/implementation-guidelines.md](references/implementation-guidelines.md#step-6-verify--ensure-quality-detailed) for detailed commands.
223
+
224
+ ---
225
+
226
+ ### Step 7: Apply Tracing Instrumentation (FEATURE-023-D)
227
+
228
+ **Action:** Add tracing decorators to all implemented code
229
+
230
+ 1. **INVOKE** `tool-tracing-instrumentation` skill for all modified files
231
+ 2. **REVIEW** proposed decorators (INFO for public, DEBUG for helpers)
232
+ 3. **APPLY** decorators with sensitive param redaction
233
+ 4. **RE-RUN** tests to verify functionality
234
+
235
+ **Skip if:** No tracing infrastructure, test files, or config files.
236
+
237
+ 📖 **See:** [references/implementation-guidelines.md](references/implementation-guidelines.md#tracing-instrumentation) for detailed procedure.
446
238
 
447
239
  ---
448
240
 
@@ -459,6 +251,16 @@ src/
459
251
  | 7 | Code is simple (KISS) | Yes |
460
252
  | 8 | Linter passes | Yes |
461
253
  | 9 | Test coverage ≥ 80% for new code | Recommended |
254
+ | 10 | **All public functions have `@x_ipe_tracing` decorators** | Yes |
255
+ | 11 | **Sensitive parameters have `redact=[]` specified** | Yes |
256
+
257
+ **🔍 TRACING VERIFICATION (FEATURE-023-D):**
258
+ Before marking complete, verify tracing is applied:
259
+ 1. All API endpoints have `@x_ipe_tracing(level="INFO")`
260
+ 2. Key business functions have `@x_ipe_tracing(level="INFO")`
261
+ 3. Helper/utility functions have `@x_ipe_tracing(level="DEBUG")` or are skipped
262
+ 4. Sensitive parameters (password, token, secret, key) have `redact=["param"]`
263
+ 5. Use `tool-tracing-instrumentation` skill to add decorators if missing
462
264
 
463
265
  **Important:** After completing this skill, always return to `task-execution-guideline` skill to continue the task execution flow and validate the DoD defined there.
464
266