@prmichaelsen/remember-mcp 2.3.0 → 2.3.4
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.
- package/AGENT.md +114 -3
- package/CHANGELOG.md +27 -0
- package/agent/commands/acp.commit.md +511 -0
- package/agent/commands/acp.package-install.md +347 -0
- package/agent/commands/acp.report.md +392 -0
- package/agent/commands/acp.sync.md +323 -0
- package/agent/commands/acp.update.md +301 -0
- package/agent/commands/acp.validate.md +385 -0
- package/agent/design/comment-memory-type.md +556 -0
- package/agent/design/unified-public-collection.md +545 -0
- package/agent/progress.yaml +26 -0
- package/agent/scripts/install.sh +25 -1
- package/agent/scripts/update.sh +37 -0
- package/agent/tasks/task-44-implement-remember-retract.md +263 -0
- package/agent/tasks/task-45-fix-publish-false-success-bug.md +230 -0
- package/dist/server-factory.js +93 -7
- package/dist/server.js +93 -7
- package/package.json +1 -1
- package/src/services/confirmation-token.service.ts +33 -0
- package/src/tools/confirm.ts +49 -4
- package/src/tools/create-memory.ts +7 -0
- package/src/tools/publish.ts +26 -3
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
# Command: update
|
|
2
|
+
|
|
3
|
+
> **🤖 Agent Directive**: If you are reading this file, the command `@acp.update` has been invoked. Follow the steps below to execute this command.
|
|
4
|
+
|
|
5
|
+
**Namespace**: acp
|
|
6
|
+
**Version**: 1.0.0
|
|
7
|
+
**Created**: 2026-02-16
|
|
8
|
+
**Last Updated**: 2026-02-16
|
|
9
|
+
**Status**: Active
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
**Purpose**: Update progress.yaml with latest project status, task completion, and recent work
|
|
14
|
+
**Category**: Documentation
|
|
15
|
+
**Frequency**: As Needed
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## What This Command Does
|
|
20
|
+
|
|
21
|
+
This command updates `agent/progress.yaml` with the latest project status. It's used after completing work to ensure progress tracking accurately reflects what's been accomplished. The command updates task statuses, milestone progress percentages, recent work entries, and next steps.
|
|
22
|
+
|
|
23
|
+
Use this command when you've completed tasks, made significant progress, or need to ensure the progress tracking is current. It's particularly useful after finishing a work session or when transitioning between tasks.
|
|
24
|
+
|
|
25
|
+
Unlike `@acp.sync` which updates documentation based on code changes, `@acp.update` focuses specifically on updating the progress tracking file to reflect completed work and current status.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Prerequisites
|
|
30
|
+
|
|
31
|
+
- [ ] ACP installed in project
|
|
32
|
+
- [ ] `agent/progress.yaml` exists
|
|
33
|
+
- [ ] Work has been completed that needs to be tracked
|
|
34
|
+
- [ ] You know which tasks/milestones to update
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Steps
|
|
39
|
+
|
|
40
|
+
### 1. Read Current Progress
|
|
41
|
+
|
|
42
|
+
Read `agent/progress.yaml` to understand current state.
|
|
43
|
+
|
|
44
|
+
**Actions**:
|
|
45
|
+
- Open and parse `agent/progress.yaml`
|
|
46
|
+
- Note current milestone and its progress
|
|
47
|
+
- Identify tasks and their statuses
|
|
48
|
+
- Review recent work entries
|
|
49
|
+
- Check next steps
|
|
50
|
+
|
|
51
|
+
**Expected Outcome**: Current progress state understood
|
|
52
|
+
|
|
53
|
+
### 2. Identify What Changed
|
|
54
|
+
|
|
55
|
+
Determine what work was completed since last update.
|
|
56
|
+
|
|
57
|
+
**Actions**:
|
|
58
|
+
- Review what tasks were worked on
|
|
59
|
+
- Identify completed tasks
|
|
60
|
+
- Note any milestone completions
|
|
61
|
+
- Determine new blockers or resolved blockers
|
|
62
|
+
- Identify what should be in recent work
|
|
63
|
+
|
|
64
|
+
**Expected Outcome**: Changes to track are identified
|
|
65
|
+
|
|
66
|
+
### 3. Update Task Statuses
|
|
67
|
+
|
|
68
|
+
Update individual task statuses and completion dates.
|
|
69
|
+
|
|
70
|
+
**Actions**:
|
|
71
|
+
- Mark completed tasks as `completed`
|
|
72
|
+
- Set `completed_date` to today's date (YYYY-MM-DD)
|
|
73
|
+
- Update task notes if needed
|
|
74
|
+
- Change `in_progress` tasks if no longer active
|
|
75
|
+
|
|
76
|
+
**Expected Outcome**: Task statuses reflect reality
|
|
77
|
+
|
|
78
|
+
### 4. Update Milestone Progress
|
|
79
|
+
|
|
80
|
+
Recalculate and update milestone progress percentages.
|
|
81
|
+
|
|
82
|
+
**Actions**:
|
|
83
|
+
- Count tasks completed vs total tasks
|
|
84
|
+
- Calculate progress percentage
|
|
85
|
+
- Update `progress` field (0-100)
|
|
86
|
+
- Update `tasks_completed` count
|
|
87
|
+
- Set `completed` date if milestone finished
|
|
88
|
+
- Update milestone status if needed
|
|
89
|
+
|
|
90
|
+
**Expected Outcome**: Milestone progress is accurate
|
|
91
|
+
|
|
92
|
+
### 5. Add Recent Work Entry
|
|
93
|
+
|
|
94
|
+
Add entry to `recent_work` section documenting what was done.
|
|
95
|
+
|
|
96
|
+
**Actions**:
|
|
97
|
+
- Add new entry with today's date
|
|
98
|
+
- Write clear description of work completed
|
|
99
|
+
- List specific items accomplished (use ✅, 📋, ⚠️ emojis)
|
|
100
|
+
- Keep entries concise but informative
|
|
101
|
+
- Maintain chronological order (newest first)
|
|
102
|
+
|
|
103
|
+
**Expected Outcome**: Recent work documented
|
|
104
|
+
|
|
105
|
+
### 6. Update Next Steps
|
|
106
|
+
|
|
107
|
+
Refresh the `next_steps` list based on current state.
|
|
108
|
+
|
|
109
|
+
**Actions**:
|
|
110
|
+
- Remove completed items
|
|
111
|
+
- Add new next steps based on progress
|
|
112
|
+
- Prioritize by importance/urgency
|
|
113
|
+
- Keep list focused (3-5 items)
|
|
114
|
+
- Be specific and actionable
|
|
115
|
+
|
|
116
|
+
**Expected Outcome**: Next steps are current
|
|
117
|
+
|
|
118
|
+
### 7. Update Blockers
|
|
119
|
+
|
|
120
|
+
Update the `current_blockers` list.
|
|
121
|
+
|
|
122
|
+
**Actions**:
|
|
123
|
+
- Remove resolved blockers
|
|
124
|
+
- Add new blockers discovered
|
|
125
|
+
- Keep descriptions clear and actionable
|
|
126
|
+
- Empty list if no blockers
|
|
127
|
+
|
|
128
|
+
**Expected Outcome**: Blockers list is accurate
|
|
129
|
+
|
|
130
|
+
### 8. Save Changes
|
|
131
|
+
|
|
132
|
+
Write updated progress.yaml back to disk.
|
|
133
|
+
|
|
134
|
+
**Actions**:
|
|
135
|
+
- Ensure YAML formatting is correct
|
|
136
|
+
- Preserve structure and indentation
|
|
137
|
+
- Save file
|
|
138
|
+
- Verify file was written successfully
|
|
139
|
+
|
|
140
|
+
**Expected Outcome**: progress.yaml updated on disk
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## Verification
|
|
145
|
+
|
|
146
|
+
- [ ] progress.yaml file updated successfully
|
|
147
|
+
- [ ] Task statuses reflect completed work
|
|
148
|
+
- [ ] Milestone progress percentages are accurate
|
|
149
|
+
- [ ] Recent work entry added with today's date
|
|
150
|
+
- [ ] Next steps list is current and actionable
|
|
151
|
+
- [ ] Blockers list is accurate
|
|
152
|
+
- [ ] YAML syntax is valid
|
|
153
|
+
- [ ] No data was lost or corrupted
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
## Expected Output
|
|
158
|
+
|
|
159
|
+
### Files Modified
|
|
160
|
+
- `agent/progress.yaml` - Updated with latest progress
|
|
161
|
+
|
|
162
|
+
### Console Output
|
|
163
|
+
```
|
|
164
|
+
📝 Updating Progress Tracking
|
|
165
|
+
|
|
166
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
167
|
+
|
|
168
|
+
Reading current progress...
|
|
169
|
+
✓ Current milestone: M2 - Documentation & Utility Commands
|
|
170
|
+
✓ Progress: 40% (2/5 tasks completed)
|
|
171
|
+
|
|
172
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
173
|
+
|
|
174
|
+
Updating progress...
|
|
175
|
+
✓ Marked task-5 as completed
|
|
176
|
+
✓ Updated milestone progress: 40% → 60%
|
|
177
|
+
✓ Added recent work entry (2026-02-16)
|
|
178
|
+
✓ Updated next steps
|
|
179
|
+
✓ No new blockers
|
|
180
|
+
|
|
181
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
182
|
+
|
|
183
|
+
✅ Progress Updated!
|
|
184
|
+
|
|
185
|
+
Summary:
|
|
186
|
+
- Tasks completed: 2 → 3
|
|
187
|
+
- Milestone progress: 40% → 60%
|
|
188
|
+
- Recent work: Added entry for today
|
|
189
|
+
- Next: task-6 - Implement Utility Commands
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
### Status Update
|
|
193
|
+
- Task statuses updated
|
|
194
|
+
- Milestone progress recalculated
|
|
195
|
+
- Recent work documented
|
|
196
|
+
- Next steps refreshed
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
## Examples
|
|
201
|
+
|
|
202
|
+
### Example 1: After Completing a Task
|
|
203
|
+
|
|
204
|
+
**Context**: Just finished task-3, need to update progress
|
|
205
|
+
|
|
206
|
+
**Invocation**: `@acp.update`
|
|
207
|
+
|
|
208
|
+
**Result**: Marks task-3 as completed, updates milestone from 40% to 60%, adds recent work entry, identifies task-4 as next
|
|
209
|
+
|
|
210
|
+
### Example 2: Mid-Task Progress Update
|
|
211
|
+
|
|
212
|
+
**Context**: Made significant progress on task-5 but not complete
|
|
213
|
+
|
|
214
|
+
**Invocation**: `@acp.update`
|
|
215
|
+
|
|
216
|
+
**Result**: Adds recent work entry documenting progress, updates task notes, keeps task status as in_progress
|
|
217
|
+
|
|
218
|
+
### Example 3: Milestone Completion
|
|
219
|
+
|
|
220
|
+
**Context**: Just finished last task in milestone
|
|
221
|
+
|
|
222
|
+
**Invocation**: `@acp.update`
|
|
223
|
+
|
|
224
|
+
**Result**: Marks task and milestone as completed, sets completion dates, updates to next milestone, celebrates achievement
|
|
225
|
+
|
|
226
|
+
---
|
|
227
|
+
|
|
228
|
+
## Related Commands
|
|
229
|
+
|
|
230
|
+
- [`@acp.status`](acp.status.md) - View current status before updating
|
|
231
|
+
- [`@acp.proceed`](acp.proceed.md) - Automatically updates progress after completing tasks
|
|
232
|
+
- [`@acp.sync`](acp.sync.md) - Update documentation based on code changes
|
|
233
|
+
- [`@acp.report`](acp.report.md) - Generate comprehensive progress report
|
|
234
|
+
|
|
235
|
+
---
|
|
236
|
+
|
|
237
|
+
## Troubleshooting
|
|
238
|
+
|
|
239
|
+
### Issue 1: YAML syntax error after update
|
|
240
|
+
|
|
241
|
+
**Symptom**: progress.yaml has syntax errors
|
|
242
|
+
|
|
243
|
+
**Cause**: Incorrect indentation or formatting
|
|
244
|
+
|
|
245
|
+
**Solution**: Validate YAML syntax, fix indentation (use 2 spaces), ensure proper structure
|
|
246
|
+
|
|
247
|
+
### Issue 2: Progress percentages don't match
|
|
248
|
+
|
|
249
|
+
**Symptom**: Calculated percentage doesn't match tasks completed
|
|
250
|
+
|
|
251
|
+
**Cause**: Math error or incorrect task count
|
|
252
|
+
|
|
253
|
+
**Solution**: Recalculate: (tasks_completed / tasks_total) * 100, round to nearest integer
|
|
254
|
+
|
|
255
|
+
### Issue 3: Recent work entries out of order
|
|
256
|
+
|
|
257
|
+
**Symptom**: Dates not in chronological order
|
|
258
|
+
|
|
259
|
+
**Cause**: New entry added in wrong position
|
|
260
|
+
|
|
261
|
+
**Solution**: Ensure newest entries are first in the list, maintain reverse chronological order
|
|
262
|
+
|
|
263
|
+
---
|
|
264
|
+
|
|
265
|
+
## Security Considerations
|
|
266
|
+
|
|
267
|
+
### File Access
|
|
268
|
+
- **Reads**: `agent/progress.yaml`
|
|
269
|
+
- **Writes**: `agent/progress.yaml` (updates progress tracking)
|
|
270
|
+
- **Executes**: None
|
|
271
|
+
|
|
272
|
+
### Network Access
|
|
273
|
+
- **APIs**: None
|
|
274
|
+
- **Repositories**: None
|
|
275
|
+
|
|
276
|
+
### Sensitive Data
|
|
277
|
+
- **Secrets**: Does not access any secrets or credentials
|
|
278
|
+
- **Credentials**: Does not access any credentials
|
|
279
|
+
|
|
280
|
+
---
|
|
281
|
+
|
|
282
|
+
## Notes
|
|
283
|
+
|
|
284
|
+
- This command only updates progress.yaml, not other documentation
|
|
285
|
+
- Use `@acp.sync` to update design docs and other documentation
|
|
286
|
+
- Progress percentages should be integers (0-100)
|
|
287
|
+
- Recent work entries should be concise but informative
|
|
288
|
+
- Keep next steps list focused (3-5 items maximum)
|
|
289
|
+
- Update frequently to maintain accurate tracking
|
|
290
|
+
- Can be run multiple times per day as needed
|
|
291
|
+
|
|
292
|
+
---
|
|
293
|
+
|
|
294
|
+
**Namespace**: acp
|
|
295
|
+
**Command**: update
|
|
296
|
+
**Version**: 1.0.0
|
|
297
|
+
**Created**: 2026-02-16
|
|
298
|
+
**Last Updated**: 2026-02-16
|
|
299
|
+
**Status**: Active
|
|
300
|
+
**Compatibility**: ACP 1.1.0+
|
|
301
|
+
**Author**: ACP Project
|
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
# Command: validate
|
|
2
|
+
|
|
3
|
+
> **🤖 Agent Directive**: If you are reading this file, the command `@acp.validate` has been invoked. Follow the steps below to execute this command.
|
|
4
|
+
|
|
5
|
+
**Namespace**: acp
|
|
6
|
+
**Version**: 1.0.0
|
|
7
|
+
**Created**: 2026-02-16
|
|
8
|
+
**Last Updated**: 2026-02-16
|
|
9
|
+
**Status**: Active
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
**Purpose**: Validate all ACP documents for structure, consistency, and correctness
|
|
14
|
+
**Category**: Documentation
|
|
15
|
+
**Frequency**: As Needed
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## What This Command Does
|
|
20
|
+
|
|
21
|
+
This command validates all ACP documentation to ensure it follows proper structure, maintains consistency, and contains no errors. It checks document formatting, verifies links and references, validates YAML syntax, and ensures all required sections are present.
|
|
22
|
+
|
|
23
|
+
Use this command before committing documentation changes, after creating new documents, or periodically to ensure documentation quality. It's particularly useful before releases or when onboarding new contributors.
|
|
24
|
+
|
|
25
|
+
Unlike `@acp.sync` which compares docs to code, `@acp.validate` checks the internal consistency and correctness of the documentation itself.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Prerequisites
|
|
30
|
+
|
|
31
|
+
- [ ] ACP installed in project
|
|
32
|
+
- [ ] Documentation exists in `agent/` directory
|
|
33
|
+
- [ ] You want to verify documentation quality
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Steps
|
|
38
|
+
|
|
39
|
+
### 1. Validate Directory Structure
|
|
40
|
+
|
|
41
|
+
Check that all required directories and files exist.
|
|
42
|
+
|
|
43
|
+
**Actions**:
|
|
44
|
+
- Verify `agent/` directory exists
|
|
45
|
+
- Check for `agent/design/`, `agent/milestones/`, `agent/patterns/`, `agent/tasks/`
|
|
46
|
+
- Verify `agent/progress.yaml` exists
|
|
47
|
+
- Check for `agent/commands/` directory
|
|
48
|
+
- Note any missing directories
|
|
49
|
+
|
|
50
|
+
**Expected Outcome**: Directory structure validated
|
|
51
|
+
|
|
52
|
+
### 2. Validate progress.yaml
|
|
53
|
+
|
|
54
|
+
Check YAML syntax and required fields.
|
|
55
|
+
|
|
56
|
+
**Actions**:
|
|
57
|
+
- Parse `agent/progress.yaml` as YAML
|
|
58
|
+
- Verify required fields exist (project, milestones, tasks)
|
|
59
|
+
- Check field types (strings, numbers, dates)
|
|
60
|
+
- Validate date formats (YYYY-MM-DD)
|
|
61
|
+
- Verify progress percentages (0-100)
|
|
62
|
+
- Check milestone/task references are consistent
|
|
63
|
+
- Validate status values (not_started, in_progress, completed)
|
|
64
|
+
|
|
65
|
+
**Expected Outcome**: progress.yaml is valid
|
|
66
|
+
|
|
67
|
+
### 3. Validate Design Documents
|
|
68
|
+
|
|
69
|
+
Check design document structure and content.
|
|
70
|
+
|
|
71
|
+
**Actions**:
|
|
72
|
+
- Read all files in `agent/design/`
|
|
73
|
+
- Verify required sections exist (Overview, Problem, Solution)
|
|
74
|
+
- Check for proper markdown formatting
|
|
75
|
+
- Validate code blocks have language tags
|
|
76
|
+
- Verify dates are in correct format
|
|
77
|
+
- Check status values are valid
|
|
78
|
+
- Ensure no broken internal links
|
|
79
|
+
|
|
80
|
+
**Expected Outcome**: Design docs are well-formed
|
|
81
|
+
|
|
82
|
+
### 4. Validate Milestone Documents
|
|
83
|
+
|
|
84
|
+
Check milestone document structure.
|
|
85
|
+
|
|
86
|
+
**Actions**:
|
|
87
|
+
- Read all files in `agent/milestones/`
|
|
88
|
+
- Verify required sections (Overview, Deliverables, Success Criteria)
|
|
89
|
+
- Check naming convention (milestone-N-name.md)
|
|
90
|
+
- Validate task references exist
|
|
91
|
+
- Verify success criteria are checkboxes
|
|
92
|
+
- Check for proper formatting
|
|
93
|
+
|
|
94
|
+
**Expected Outcome**: Milestone docs are valid
|
|
95
|
+
|
|
96
|
+
### 5. Validate Task Documents
|
|
97
|
+
|
|
98
|
+
Check task document structure.
|
|
99
|
+
|
|
100
|
+
**Actions**:
|
|
101
|
+
- Read all files in `agent/tasks/`
|
|
102
|
+
- Verify required sections (Objective, Steps, Verification)
|
|
103
|
+
- Check naming convention (task-N-name.md)
|
|
104
|
+
- Validate milestone references
|
|
105
|
+
- Verify verification items are checkboxes
|
|
106
|
+
- Check for proper formatting
|
|
107
|
+
|
|
108
|
+
**Expected Outcome**: Task docs are valid
|
|
109
|
+
|
|
110
|
+
### 6. Validate Pattern Documents
|
|
111
|
+
|
|
112
|
+
Check pattern document structure.
|
|
113
|
+
|
|
114
|
+
**Actions**:
|
|
115
|
+
- Read all files in `agent/patterns/`
|
|
116
|
+
- Verify required sections (Overview, Implementation, Examples)
|
|
117
|
+
- Check code examples are properly formatted
|
|
118
|
+
- Validate examples have language tags
|
|
119
|
+
- Verify no broken links
|
|
120
|
+
|
|
121
|
+
**Expected Outcome**: Pattern docs are valid
|
|
122
|
+
|
|
123
|
+
### 7. Validate Command Documents
|
|
124
|
+
|
|
125
|
+
Check command document structure.
|
|
126
|
+
|
|
127
|
+
**Actions**:
|
|
128
|
+
- Read all files in `agent/commands/`
|
|
129
|
+
- Verify required sections (Purpose, Steps, Verification)
|
|
130
|
+
- Check agent directive is present
|
|
131
|
+
- Validate namespace and version fields
|
|
132
|
+
- Verify examples are complete
|
|
133
|
+
- Check related commands links work
|
|
134
|
+
|
|
135
|
+
**Expected Outcome**: Command docs are valid
|
|
136
|
+
|
|
137
|
+
### 8. Check Cross-References
|
|
138
|
+
|
|
139
|
+
Validate links between documents.
|
|
140
|
+
|
|
141
|
+
**Actions**:
|
|
142
|
+
- Extract all internal links from documents
|
|
143
|
+
- Verify linked files exist
|
|
144
|
+
- Check milestone → task references
|
|
145
|
+
- Verify task → milestone back-references
|
|
146
|
+
- Validate command → command links
|
|
147
|
+
- Note any broken links
|
|
148
|
+
|
|
149
|
+
**Expected Outcome**: All links are valid
|
|
150
|
+
|
|
151
|
+
### 9. Generate Validation Report
|
|
152
|
+
|
|
153
|
+
Summarize validation results.
|
|
154
|
+
|
|
155
|
+
**Actions**:
|
|
156
|
+
- Count total documents validated
|
|
157
|
+
- List any errors found
|
|
158
|
+
- List any warnings
|
|
159
|
+
- Provide recommendations
|
|
160
|
+
- Suggest fixes for issues
|
|
161
|
+
|
|
162
|
+
**Expected Outcome**: Validation report generated
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
## Verification
|
|
167
|
+
|
|
168
|
+
- [ ] All required directories exist
|
|
169
|
+
- [ ] progress.yaml is valid YAML
|
|
170
|
+
- [ ] progress.yaml has all required fields
|
|
171
|
+
- [ ] All design documents are well-formed
|
|
172
|
+
- [ ] All milestone documents are valid
|
|
173
|
+
- [ ] All task documents are valid
|
|
174
|
+
- [ ] All pattern documents are valid
|
|
175
|
+
- [ ] All command documents are valid
|
|
176
|
+
- [ ] No broken internal links
|
|
177
|
+
- [ ] Validation report generated
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## Expected Output
|
|
182
|
+
|
|
183
|
+
### Files Modified
|
|
184
|
+
None - this is a read-only validation command
|
|
185
|
+
|
|
186
|
+
### Console Output
|
|
187
|
+
```
|
|
188
|
+
✓ Validating ACP Documentation
|
|
189
|
+
|
|
190
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
191
|
+
|
|
192
|
+
Directory Structure:
|
|
193
|
+
✓ agent/ directory exists
|
|
194
|
+
✓ agent/design/ exists (5 files)
|
|
195
|
+
✓ agent/milestones/ exists (2 files)
|
|
196
|
+
✓ agent/patterns/ exists (3 files)
|
|
197
|
+
✓ agent/tasks/ exists (7 files)
|
|
198
|
+
✓ agent/commands/ exists (11 files)
|
|
199
|
+
|
|
200
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
201
|
+
|
|
202
|
+
progress.yaml:
|
|
203
|
+
✓ Valid YAML syntax
|
|
204
|
+
✓ All required fields present
|
|
205
|
+
✓ Date formats correct
|
|
206
|
+
✓ Progress percentages valid (0-100)
|
|
207
|
+
✓ Status values valid
|
|
208
|
+
✓ Task/milestone references consistent
|
|
209
|
+
|
|
210
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
211
|
+
|
|
212
|
+
Design Documents (5):
|
|
213
|
+
✓ All have required sections
|
|
214
|
+
✓ Markdown formatting correct
|
|
215
|
+
✓ Code blocks properly tagged
|
|
216
|
+
⚠️ auth-design.md: Missing "Last Updated" date
|
|
217
|
+
|
|
218
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
219
|
+
|
|
220
|
+
Milestone Documents (2):
|
|
221
|
+
✓ All have required sections
|
|
222
|
+
✓ Naming convention followed
|
|
223
|
+
✓ Task references valid
|
|
224
|
+
✓ Success criteria are checkboxes
|
|
225
|
+
|
|
226
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
227
|
+
|
|
228
|
+
Task Documents (7):
|
|
229
|
+
✓ All have required sections
|
|
230
|
+
✓ Naming convention followed
|
|
231
|
+
✓ Milestone references valid
|
|
232
|
+
✓ Verification items are checkboxes
|
|
233
|
+
|
|
234
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
235
|
+
|
|
236
|
+
Pattern Documents (3):
|
|
237
|
+
✓ All have required sections
|
|
238
|
+
✓ Code examples properly formatted
|
|
239
|
+
✓ No broken links
|
|
240
|
+
|
|
241
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
242
|
+
|
|
243
|
+
Command Documents (11):
|
|
244
|
+
✓ All have required sections
|
|
245
|
+
✓ Agent directives present
|
|
246
|
+
✓ Namespace and version fields valid
|
|
247
|
+
✓ Examples complete
|
|
248
|
+
✓ Related command links valid
|
|
249
|
+
|
|
250
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
251
|
+
|
|
252
|
+
Cross-References:
|
|
253
|
+
✓ All internal links valid
|
|
254
|
+
✓ Milestone → task references correct
|
|
255
|
+
✓ Task → milestone back-references correct
|
|
256
|
+
✓ Command → command links work
|
|
257
|
+
|
|
258
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
259
|
+
|
|
260
|
+
✅ Validation Complete!
|
|
261
|
+
|
|
262
|
+
Summary:
|
|
263
|
+
- Documents validated: 28
|
|
264
|
+
- Errors: 0
|
|
265
|
+
- Warnings: 1
|
|
266
|
+
- Overall: PASS
|
|
267
|
+
|
|
268
|
+
Warnings:
|
|
269
|
+
⚠️ auth-design.md: Missing "Last Updated" date
|
|
270
|
+
|
|
271
|
+
Recommendations:
|
|
272
|
+
- Add "Last Updated" date to auth-design.md
|
|
273
|
+
- Consider adding more code examples to patterns
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
### Status Update
|
|
277
|
+
- Validation completed
|
|
278
|
+
- Issues identified (if any)
|
|
279
|
+
- Documentation quality confirmed
|
|
280
|
+
|
|
281
|
+
---
|
|
282
|
+
|
|
283
|
+
## Examples
|
|
284
|
+
|
|
285
|
+
### Example 1: Before Committing Changes
|
|
286
|
+
|
|
287
|
+
**Context**: Made changes to several docs, want to verify before commit
|
|
288
|
+
|
|
289
|
+
**Invocation**: `@acp.validate`
|
|
290
|
+
|
|
291
|
+
**Result**: Validates all docs, finds 2 broken links, reports them, you fix them before committing
|
|
292
|
+
|
|
293
|
+
### Example 2: After Creating New Documents
|
|
294
|
+
|
|
295
|
+
**Context**: Created 3 new design documents
|
|
296
|
+
|
|
297
|
+
**Invocation**: `@acp.validate`
|
|
298
|
+
|
|
299
|
+
**Result**: Validates new docs, confirms they follow proper structure, identifies missing section in one doc
|
|
300
|
+
|
|
301
|
+
### Example 3: Periodic Quality Check
|
|
302
|
+
|
|
303
|
+
**Context**: Monthly documentation review
|
|
304
|
+
|
|
305
|
+
**Invocation**: `@acp.validate`
|
|
306
|
+
|
|
307
|
+
**Result**: Validates all 50+ documents, finds minor formatting issues in 3 files, overall quality is good
|
|
308
|
+
|
|
309
|
+
---
|
|
310
|
+
|
|
311
|
+
## Related Commands
|
|
312
|
+
|
|
313
|
+
- [`@acp.sync`](acp.sync.md) - Sync documentation with code (different from validation)
|
|
314
|
+
- [`@acp.update`](acp.update.md) - Update progress tracking
|
|
315
|
+
- [`@acp.report`](acp.report.md) - Generate comprehensive report including validation results
|
|
316
|
+
- [`@acp.init`](acp.init.md) - Can include validation as part of initialization
|
|
317
|
+
|
|
318
|
+
---
|
|
319
|
+
|
|
320
|
+
## Troubleshooting
|
|
321
|
+
|
|
322
|
+
### Issue 1: YAML parsing errors
|
|
323
|
+
|
|
324
|
+
**Symptom**: progress.yaml fails to parse
|
|
325
|
+
|
|
326
|
+
**Cause**: Invalid YAML syntax (indentation, special characters)
|
|
327
|
+
|
|
328
|
+
**Solution**: Use YAML validator, check indentation (2 spaces), quote strings with special characters
|
|
329
|
+
|
|
330
|
+
### Issue 2: Many broken links reported
|
|
331
|
+
|
|
332
|
+
**Symptom**: Validation finds numerous broken links
|
|
333
|
+
|
|
334
|
+
**Cause**: Files were moved or renamed
|
|
335
|
+
|
|
336
|
+
**Solution**: Update links to reflect new file locations, use relative paths, verify files exist
|
|
337
|
+
|
|
338
|
+
### Issue 3: Validation takes too long
|
|
339
|
+
|
|
340
|
+
**Symptom**: Command runs for several minutes
|
|
341
|
+
|
|
342
|
+
**Cause**: Very large project with many documents
|
|
343
|
+
|
|
344
|
+
**Solution**: This is normal for large projects, consider validating specific directories only, run less frequently
|
|
345
|
+
|
|
346
|
+
---
|
|
347
|
+
|
|
348
|
+
## Security Considerations
|
|
349
|
+
|
|
350
|
+
### File Access
|
|
351
|
+
- **Reads**: All files in `agent/` directory
|
|
352
|
+
- **Writes**: None (read-only validation)
|
|
353
|
+
- **Executes**: None
|
|
354
|
+
|
|
355
|
+
### Network Access
|
|
356
|
+
- **APIs**: None
|
|
357
|
+
- **Repositories**: None
|
|
358
|
+
|
|
359
|
+
### Sensitive Data
|
|
360
|
+
- **Secrets**: Does not access secrets or credentials
|
|
361
|
+
- **Credentials**: Does not access credentials files
|
|
362
|
+
|
|
363
|
+
---
|
|
364
|
+
|
|
365
|
+
## Notes
|
|
366
|
+
|
|
367
|
+
- This is a read-only command - it doesn't modify files
|
|
368
|
+
- Validation should be fast (< 30 seconds for most projects)
|
|
369
|
+
- Run before committing documentation changes
|
|
370
|
+
- Integrate into CI/CD pipeline if desired
|
|
371
|
+
- Warnings are informational, not failures
|
|
372
|
+
- Errors should be fixed before proceeding
|
|
373
|
+
- Consider running after major documentation updates
|
|
374
|
+
- Can be automated as a pre-commit hook
|
|
375
|
+
|
|
376
|
+
---
|
|
377
|
+
|
|
378
|
+
**Namespace**: acp
|
|
379
|
+
**Command**: validate
|
|
380
|
+
**Version**: 1.0.0
|
|
381
|
+
**Created**: 2026-02-16
|
|
382
|
+
**Last Updated**: 2026-02-16
|
|
383
|
+
**Status**: Active
|
|
384
|
+
**Compatibility**: ACP 1.1.0+
|
|
385
|
+
**Author**: ACP Project
|