agentic-code 0.6.7 → 0.6.8

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.
@@ -97,6 +97,10 @@ description: "Guides PRD, ADR, Design Doc, and Work Plan creation. Use when: pla
97
97
  - Complete enumeration of integration points
98
98
  - Data contract clarification
99
99
  - **Agreement checklist** (agreements with stakeholders)
100
+ - **Code inspection evidence** (inspected files/functions during investigation)
101
+ - **Field propagation map** (when fields cross component boundaries)
102
+ - **Data representation decision** (when introducing new structures)
103
+ - **Applicable standards** (explicit/implicit classification)
100
104
  - **Prerequisite ADRs** (including common ADRs)
101
105
 
102
106
  **Required Structural Elements**:
@@ -148,6 +152,7 @@ API Contract Change Matrix:
148
152
  ## Creation Process
149
153
 
150
154
  1. **Problem Analysis**: Change scale assessment, ADR condition check
155
+ - Identify explicit and implicit project standards before investigation
151
156
  2. **ADR Option Consideration** (ADR only): Compare 3+ options, specify trade-offs
152
157
  3. **Creation**: Use templates, include measurable conditions
153
158
  4. **Approval**: "Accepted" after review enables implementation
@@ -102,12 +102,31 @@ Create ADR and Design Documents.
102
102
  □ Acceptance criteria defined and verifiable
103
103
  □ References cited
104
104
  □ Complexity assessment completed (if medium/high, rationale justifies necessity)
105
+ □ Standards identification gate completed
106
+ □ Code inspection evidence recorded
107
+ □ Data representation decision documented (when new structures introduced)
108
+ □ Field propagation map included (when fields cross boundaries)
105
109
 
106
110
  ## Mandatory Process Before Document Creation [STRICT COMPLIANCE]
107
111
 
108
112
  **These steps MUST be completed to pass the entry gate:**
109
113
 
110
- ### 1. Existing Documentation Investigation [REQUIRED - CANNOT SKIP]
114
+ ### 1. Standards Identification Gate [REQUIRED - CANNOT SKIP]
115
+ Must be performed before any investigation:
116
+
117
+ 1. **Identify Project Standards**
118
+ - Scan project configuration, rule files, and existing code patterns
119
+ - Classify each: **Explicit** (documented) or **Implicit** (observed pattern only)
120
+
121
+ 2. **Record in Design Doc**
122
+ - List in "Applicable Standards" section with `[explicit]`/`[implicit]` tags
123
+ - Implicit standards require user confirmation before design proceeds
124
+
125
+ 3. **Alignment Rule**
126
+ - Design decisions must reference applicable standards
127
+ - Deviations require documented rationale
128
+
129
+ ### 2. Existing Documentation Investigation [REQUIRED - CANNOT SKIP]
111
130
  Must be performed before any design:
112
131
 
113
132
  1. **PRD Investigation** (if applicable)
@@ -128,7 +147,7 @@ Must be performed before any design:
128
147
  - Check for superseded ADRs that might need updating
129
148
  - List applicable ADRs in "Prerequisite ADRs" section
130
149
 
131
- ### 2. Existing Code Investigation [REQUIRED - CANNOT SKIP]
150
+ ### 3. Existing Code Investigation [REQUIRED - CANNOT SKIP]
132
151
  Must be performed after documentation review:
133
152
 
134
153
  1. **Implementation File Path Verification**
@@ -153,7 +172,24 @@ Must be performed after documentation review:
153
172
  - Clearly document similar functionality search results
154
173
  - Record adopted decision and rationale
155
174
 
156
- ### 3. Agreement Checklist【MOST IMPORTANT】
175
+ 5. **Code Inspection Evidence**
176
+ - Record all inspected files and key functions in "Code Inspection Evidence" section of Design Doc
177
+ - Each entry must state relevance (similar functionality / integration point / pattern reference)
178
+
179
+ ### 4. Data Representation Decision [REQUIRED WHEN APPLICABLE]
180
+ When the design introduces or significantly modifies data structures:
181
+
182
+ 1. **Reuse-vs-New Assessment**
183
+ - Search for existing structures with overlapping purpose
184
+ - Evaluate: semantic fit, responsibility fit, lifecycle fit, boundary/interop cost
185
+
186
+ 2. **Decision Rule**
187
+ - All criteria satisfied → Reuse existing
188
+ - 1-2 criteria fail → Evaluate extension with adapter
189
+ - 3+ criteria fail → New structure justified
190
+ - Record decision and rationale in Design Doc
191
+
192
+ ### 5. Agreement Checklist【MOST IMPORTANT】
157
193
  Must be performed at the beginning of Design Doc creation:
158
194
 
159
195
  1. **List agreements with user in bullet points**
@@ -167,7 +203,7 @@ Must be performed at the beginning of Design Doc creation:
167
203
  - [ ] Confirm no design contradicts agreements
168
204
  - [ ] If any agreements not reflected, state reason
169
205
 
170
- ### 4. Latest Information Research [BLOCKING REQUIREMENT]
206
+ ### 6. Latest Information Research [BLOCKING REQUIREMENT]
171
207
 
172
208
  **Web research MUST use SESSION_BASELINE_DATE year - NEVER hardcoded years:**
173
209
  - Format: "[technology] best practices [YEAR from SESSION_BASELINE_DATE]"
@@ -283,9 +319,19 @@ unknowns:
283
319
  - [ ] Constraints: [limitations]
284
320
  - [ ] Performance: [requirements]
285
321
 
322
+ #### Applicable Standards
323
+ - [ ] [Standard/convention] `[explicit]` - Source: [config / rule file / documentation path]
324
+ - [ ] [Observed pattern] `[implicit]` - Evidence: [file paths] - Confirmed: [Yes/No]
325
+
286
326
  ## Existing Codebase Analysis
287
327
  [Investigation results, similar functionality, decision]
288
328
 
329
+ ### Code Inspection Evidence
330
+
331
+ | File/Function | Relevance |
332
+ |---------------|-----------|
333
+ | [path:function] | [similar functionality / integration point / pattern reference] |
334
+
289
335
  ## Requirements
290
336
  [Functional, Non-functional, Constraints]
291
337
 
@@ -313,6 +359,17 @@ unknowns:
313
359
  ### Integration Point Analysis [MANDATORY for feature modifications]
314
360
  [Use format from section above]
315
361
 
362
+ ### Data Representation Decision (When Introducing New Structures)
363
+
364
+ | Criterion | Assessment | Reason |
365
+ |-----------|-----------|--------|
366
+ | Semantic Fit | [Yes/No] | [Does existing structure's meaning align?] |
367
+ | Responsibility Fit | [Yes/No] | [Same bounded context?] |
368
+ | Lifecycle Fit | [Yes/No] | [Same creation/mutation/deletion timing?] |
369
+ | Boundary/Interop Cost | [Low/Medium/High] | [Cost of sharing across boundaries?] |
370
+
371
+ **Decision**: [reuse / extend / new] — [rationale in 1-2 sentences]
372
+
316
373
  ## Implementation Details
317
374
 
318
375
  ### Technology Stack
@@ -321,6 +378,12 @@ unknowns:
321
378
  ### Change Impact Map
322
379
  [Target, Direct impact, Indirect impact]
323
380
 
381
+ ### Field Propagation Map (When Fields Cross Boundaries)
382
+
383
+ | Field | Boundary | Status | Detail |
384
+ |-------|----------|--------|--------|
385
+ | [field name] | [Component A → B] | preserved / transformed / dropped | [logic or reason] |
386
+
324
387
  ## Testing Strategy
325
388
  [Unit and integration test approaches]
326
389
 
@@ -60,6 +60,9 @@ Confirm document type and determine validation baseline:
60
60
 
61
61
  ### Stage 2: Structure Compliance Check
62
62
 
63
+ #### Gate 0: Structural Existence (must pass before quality review)
64
+ Verify required elements exist per template. Gate 0 failure on any item → `blocked`.
65
+
63
66
  #### For Design Doc
64
67
 
65
68
  | Required Section | Check Item |
@@ -68,13 +71,19 @@ Confirm document type and determine validation baseline:
68
71
  | Design Summary (Meta) | risk_level, constraints, unknowns defined |
69
72
  | Agreement Checklist | Scope/Non-scope/Constraints documented |
70
73
  | Existing Codebase Analysis | Investigation results included |
74
+ | Applicable Standards | Explicit/implicit classification listed |
75
+ | Code Inspection Evidence | Inspected files and functions recorded |
71
76
  | Acceptance Criteria | Specific, testable conditions |
72
77
  | Architecture | Approach, components, data flow defined |
73
78
  | Integration Points | External dependencies identified |
79
+ | Field Propagation Map | Present when fields cross boundaries |
74
80
  | Testing Strategy | Test approach outlined |
75
81
  | Risks and Mitigations | Technical risks documented |
76
82
  | References | Sources cited |
77
83
 
84
+ #### Gate 1: Quality Assessment (only after Gate 0 passes)
85
+ Proceed to Stage 3-5 only after all Gate 0 structural checks pass.
86
+
78
87
  #### For ADR
79
88
 
80
89
  | Required Section | Check Item |
@@ -104,8 +113,10 @@ Confirm document type and determine validation baseline:
104
113
  | Specificity | Concrete, not vague | Abstract statements without examples |
105
114
  | Testability | Acceptance criteria verifiable | Cannot be tested |
106
115
  | Consistency | No internal contradictions | Sections contradict each other |
107
- | Completeness | All required sections present | Missing sections |
116
+ | Completeness | All required sections present with depth | Missing sections |
108
117
  | Clarity | Unambiguous language | Multiple interpretations possible |
118
+ | Rationale Verification | Design decisions reference identified standards | Unverifiable rationale without standard reference |
119
+ | Code Inspection Evidence | Inspected files relevant to design scope | Key related files missing from evidence |
109
120
 
110
121
  ### Stage 4: Failure Scenario Review (Design Docs Only)
111
122
 
@@ -153,17 +164,25 @@ When sources exist:
153
164
  - [ ] Terminology used consistently
154
165
  - [ ] Scope aligned throughout document
155
166
 
167
+ ### Design Doc Additional Validation
168
+ - [ ] Gate 0 structural existence checks pass before quality review
169
+ - [ ] Design decision rationales verified against identified standards/patterns
170
+ - [ ] Code inspection evidence covers files relevant to design scope
171
+ - [ ] Field propagation map present when fields cross component boundaries
172
+
156
173
  ## Output Format
157
174
 
158
175
  ### Status Determination
159
176
 
160
177
  **approved**:
178
+ - Gate 0: All structural existence checks pass
161
179
  - All required sections present and complete
162
180
  - Content is specific and testable
163
181
  - Failure scenarios covered (Design Docs)
164
182
  - No high severity issues
165
183
 
166
184
  **needs_revision**:
185
+ - Gate 0: All structural existence checks pass
167
186
  - Some sections incomplete
168
187
  - Content quality issues exist
169
188
  - Failure scenarios partially covered
@@ -171,6 +190,7 @@ When sources exist:
171
190
  - Complexity level is medium/high but rationale does not justify necessity (Design Docs)
172
191
 
173
192
  **blocked**:
193
+ - Gate 0: Any structural existence check fails OR
174
194
  - Critical sections missing
175
195
  - Major contradictions found
176
196
  - Document type unclear
@@ -186,6 +206,9 @@ verdict: approved | needs_revision | blocked
186
206
  completenessRate: [X]%
187
207
 
188
208
  [STRUCTURE COMPLIANCE]
209
+ gate0:
210
+ status: pass | fail
211
+ missing_elements: []
189
212
  requiredSections: [count]
190
213
  presentSections: [count]
191
214
  missingSections:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-code",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
4
4
  "description": "Task-oriented context engineering framework for LLM coding agents - AGENTS.md standard compliant",
5
5
  "files": [
6
6
  "bin/",